mirror of
https://github.com/topjohnwu/libsu.git
synced 2024-11-26 21:40:42 +00:00
parent
d3df1a1b5a
commit
9bd331aa1e
@ -150,10 +150,6 @@ public class RootServiceManager implements Handler.Callback {
|
||||
private Shell.Task startRootProcess(ComponentName name, String action) {
|
||||
Context context = Utils.getContext();
|
||||
|
||||
if (Utils.hasStartupAgents(context)) {
|
||||
Log.e(TAG, JVMTI_ERROR);
|
||||
}
|
||||
|
||||
if ((flags & RECEIVER_REGISTERED) == 0) {
|
||||
// Register receiver to receive binder from root process
|
||||
IntentFilter filter = new IntentFilter(RECEIVER_BROADCAST);
|
||||
@ -172,6 +168,10 @@ public class RootServiceManager implements Handler.Callback {
|
||||
}
|
||||
|
||||
return (stdin, stdout, stderr) -> {
|
||||
if (Utils.hasStartupAgents(context)) {
|
||||
Log.e(TAG, JVMTI_ERROR);
|
||||
}
|
||||
|
||||
Context ctx = Utils.getDeContext();
|
||||
File mainJar = new File(ctx.getCacheDir(), "main.jar");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user