mirror of
https://github.com/LSPosed/LSPosed.git
synced 2026-10-17 05:07:52 +08:00
Fix the 'lspd' process name (#2793)
ActivityThread#systemMain -> ActivityThread#attach will also change the process name to 'system_process', so that there are two 'system_process' processes in the system. https://android.googlesource.com/platform/frameworks/base/+/0e40462e11d27eb859b829b112cecb8c6f0d7afb/core/java/android/app/ActivityThread.java#5119  Co-authored-by: jiayg <jiayg@yuanfudao.com>
This commit is contained in:
@@ -133,8 +133,6 @@ public class ServiceManager {
|
||||
|
||||
systemServerService.putBinderForSystemServer();
|
||||
|
||||
DdmHandleAppName.setAppName("lspd", 0);
|
||||
|
||||
// get config before package service is started
|
||||
// otherwise getInstance will trigger module/scope cache
|
||||
var configManager = ConfigManager.getInstance();
|
||||
@@ -142,6 +140,8 @@ public class ServiceManager {
|
||||
|
||||
ActivityThread.systemMain();
|
||||
|
||||
DdmHandleAppName.setAppName("lspd", 0);
|
||||
|
||||
waitSystemService("package");
|
||||
waitSystemService("activity");
|
||||
waitSystemService(Context.USER_SERVICE);
|
||||
|
||||
Reference in New Issue
Block a user