|
|
@ -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(); |
|
|
|
} |
|
|
|
} |
|
|
|