diff --git a/service/src/main/java/com/topjohnwu/superuser/internal/RootServiceManager.java b/service/src/main/java/com/topjohnwu/superuser/internal/RootServiceManager.java index c57be39..0d93f83 100644 --- a/service/src/main/java/com/topjohnwu/superuser/internal/RootServiceManager.java +++ b/service/src/main/java/com/topjohnwu/superuser/internal/RootServiceManager.java @@ -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");