hide notification

pull/27/head
Milk 3 years ago
parent 05ccd24c72
commit 5d03625ae4
  1. 14
      Bcore/src/main/java/top/niunaijun/blackbox/BlackBoxCore.java

@ -99,13 +99,13 @@ public class BlackBoxCore extends ClientConfiguration {
// android.os.Debug.waitForDebugger(); // android.os.Debug.waitForDebugger();
} }
if (isServerProcess()) { if (isServerProcess()) {
Intent intent = new Intent(); // Intent intent = new Intent();
intent.setClass(getContext(), DaemonService.class); // intent.setClass(getContext(), DaemonService.class);
if (BuildCompat.isOreo()) { // if (BuildCompat.isOreo()) {
getContext().startForegroundService(intent); // getContext().startForegroundService(intent);
} else { // } else {
getContext().startService(intent); // getContext().startService(intent);
} // }
} }
HookManager.get().init(); HookManager.get().init();
} }

Loading…
Cancel
Save