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.


0e40462e11/core/java/android/app/ActivityThread.java (5119)

![截屏2023-10-07 16 16
30](https://github.com/LSPosed/LSPosed/assets/8243689/ee137210-ffa3-497a-aca1-5c215dd9eaed)

Co-authored-by: jiayg <jiayg@yuanfudao.com>
This commit is contained in:
rawer886 2023-10-07 17:37:34 +08:00 committed by GitHub
parent 50c343d152
commit 7674396eff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

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