Skip to content

Commit

Permalink
hide notification
Browse files Browse the repository at this point in the history
  • Loading branch information
nnjun committed Jul 4, 2021
1 parent 05ccd24 commit 5d03625
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Bcore/src/main/java/top/niunaijun/blackbox/BlackBoxCore.java
Original file line number Diff line number Diff line change
Expand Up @@ -99,13 +99,13 @@ public void doAttachBaseContext(Context context, ClientConfiguration clientConfi
// android.os.Debug.waitForDebugger();
}
if (isServerProcess()) {
Intent intent = new Intent();
intent.setClass(getContext(), DaemonService.class);
if (BuildCompat.isOreo()) {
getContext().startForegroundService(intent);
} else {
getContext().startService(intent);
}
// Intent intent = new Intent();
// intent.setClass(getContext(), DaemonService.class);
// if (BuildCompat.isOreo()) {
// getContext().startForegroundService(intent);
// } else {
// getContext().startService(intent);
// }
}
HookManager.get().init();
}
Expand Down

0 comments on commit 5d03625

Please sign in to comment.