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