【TestPlugin.java】
package com.plugin.testPlugin;
import org.apache.cordova.CordovaPlugin;
import org.apache.cordova.CallbackContext;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import android.content.pm.PackageManager;
import android.media.AudioRecord;
import android.media.MediaRecorder;
// import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.media.AudioRecord;
import android.media.MediaRecorder;
import java.io.File;
import android.os.Environment;
import android.util.Log;
import android.media.AudioFormat;
import java.io.FileOutputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.List;
import android.os.Build;
import android.Manifest;
import android.media.AudioTrack;
import android.media.AudioAttributes;
import android.media.AudioManager;
//import com.plugin.testPlugin.PluginTest.JNITest;
import java.io.FileInputStream;
/**