Call `systemMain` after prepare (#1692)
This commit is contained in:
parent
f8198488aa
commit
e17c39318d
|
|
@ -95,13 +95,13 @@ public class ServiceManager {
|
||||||
System.exit(1);
|
System.exit(1);
|
||||||
});
|
});
|
||||||
|
|
||||||
ActivityThread.systemMain();
|
|
||||||
|
|
||||||
logcatService = new LogcatService();
|
logcatService = new LogcatService();
|
||||||
logcatService.start();
|
logcatService.start();
|
||||||
|
|
||||||
Process.setThreadPriority(Process.THREAD_PRIORITY_FOREGROUND);
|
Process.setThreadPriority(Process.THREAD_PRIORITY_FOREGROUND);
|
||||||
Looper.prepareMainLooper();
|
Looper.prepareMainLooper();
|
||||||
|
|
||||||
|
|
||||||
mainService = new LSPosedService();
|
mainService = new LSPosedService();
|
||||||
applicationService = new LSPApplicationService();
|
applicationService = new LSPApplicationService();
|
||||||
managerService = new LSPManagerService();
|
managerService = new LSPManagerService();
|
||||||
|
|
@ -116,6 +116,8 @@ public class ServiceManager {
|
||||||
var configManager = ConfigManager.getInstance();
|
var configManager = ConfigManager.getInstance();
|
||||||
// --- DO NOT call ConfigManager.getInstance later!!! ---
|
// --- DO NOT call ConfigManager.getInstance later!!! ---
|
||||||
|
|
||||||
|
ActivityThread.systemMain();
|
||||||
|
|
||||||
waitSystemService("package");
|
waitSystemService("package");
|
||||||
waitSystemService("activity");
|
waitSystemService("activity");
|
||||||
waitSystemService(Context.USER_SERVICE);
|
waitSystemService(Context.USER_SERVICE);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue