저는 위성 모뎀을 통해 통신을 수행하는 Android 프로젝트에 있습니다.Android - ppid = 1로 프로세스를 죽이는 방법
android를 통해 연결하려면 모뎀에 pppd 명령을 실행해야합니다.
이 명령은 bash를 통해 수행했습니다. 안드로이드는이 프로세스를 생성 어떤 순간에
process = Runtime.getRuntime().exec(new String[]{"su", "root", "-c", "/data/local/android_connect.sh", "&> /mnt/sdcard/Download/log.txt"});
PPID = 1
이 내가 다음 명령
android.os.Process.killProcess(pidProcess);
if (process != null)
process.destroy();
을 실행하여 프로세스를 종료 할 수없는 일이 그것은 죽일 수 있나요 PPID = 1에서 android를 통한 프로세스?
왜 PID로 죽이지 않습니까? – heemayl