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)

Co-authored-by: jiayg <jiayg@yuanfudao.com>
This commit is contained in:
parent
50c343d152
commit
7674396eff
|
|
@ -133,8 +133,6 @@ public class ServiceManager {
|
||||||
|
|
||||||
systemServerService.putBinderForSystemServer();
|
systemServerService.putBinderForSystemServer();
|
||||||
|
|
||||||
DdmHandleAppName.setAppName("lspd", 0);
|
|
||||||
|
|
||||||
// get config before package service is started
|
// get config before package service is started
|
||||||
// otherwise getInstance will trigger module/scope cache
|
// otherwise getInstance will trigger module/scope cache
|
||||||
var configManager = ConfigManager.getInstance();
|
var configManager = ConfigManager.getInstance();
|
||||||
|
|
@ -142,6 +140,8 @@ public class ServiceManager {
|
||||||
|
|
||||||
ActivityThread.systemMain();
|
ActivityThread.systemMain();
|
||||||
|
|
||||||
|
DdmHandleAppName.setAppName("lspd", 0);
|
||||||
|
|
||||||
waitSystemService("package");
|
waitSystemService("package");
|
||||||
waitSystemService("activity");
|
waitSystemService("activity");
|
||||||
waitSystemService(Context.USER_SERVICE);
|
waitSystemService(Context.USER_SERVICE);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue