diff --git a/app/src/main/java/df/root/BootReceiver.java b/app/src/main/java/df/root/BootReceiver.java index 8dd7daeb..7cd13bb4 100644 --- a/app/src/main/java/df/root/BootReceiver.java +++ b/app/src/main/java/df/root/BootReceiver.java @@ -31,6 +31,9 @@ public void report(String msg) { @Override public void onReceive(Context context, Intent intent) { + if (!Intent.ACTION_BOOT_COMPLETED.equals(intent.getAction())) { + return; + } // Nothing can take the shellcode's /dev/df mutex a second time (see RootState), so a run // started here would only hold a wakelock while it polls nodes that cannot move. Saying // "already hooked, skipping" hides the one case a user needs in logcat: a boot that was