Use SIGKILL to kill old processes

Fix #1455.

Note that in later Android versions, only processes under same uid will be listed and this will be quite efficient.
This commit is contained in:
Mygod
2017-11-18 02:10:34 -08:00
parent ae171a7084
commit dc2a5ca19c
3 changed files with 32 additions and 68 deletions
@@ -64,6 +64,7 @@ public class JniHelper {
}
}
public static native int sigkill(int pid);
private static native int sigterm(Process process);
private static native Integer getExitValue(Process process);
private static native Object getExitValueMutex(Process process);