From d77b91b4ba1426470b084e89fc655e2209ebd6c3 Mon Sep 17 00:00:00 2001 From: Peter Collingbourne Date: Thu, 29 Sep 2022 17:17:28 -0700 Subject: [PATCH] Resync zygote64 and zygote64_32 rc files. I noticed that the zygote64 and zygote64_32 files had gotten slightly out of sync as a result of change I3aad4b4b1d2f54db9e7ba86db8a655d8552bad0a. Merge the zygote64_32 changes into zygote64, and to prevent this from happening again, replace the 64-bit zygote declaration in zygote64_32 with an import from zygote64. Change-Id: I7fcceeb22b722c2164b9acf0b517a32ce34731fd --- rootdir/init.zygote64.rc | 4 ++-- rootdir/init.zygote64_32.rc | 18 +----------------- 2 files changed, 3 insertions(+), 19 deletions(-) diff --git a/rootdir/init.zygote64.rc b/rootdir/init.zygote64.rc index 5bde5f469..b6ca5c001 100644 --- a/rootdir/init.zygote64.rc +++ b/rootdir/init.zygote64.rc @@ -1,4 +1,4 @@ -service zygote /system/bin/app_process64 -Xzygote /system/bin --zygote --start-system-server +service zygote /system/bin/app_process64 -Xzygote /system/bin --zygote --start-system-server --socket-name=zygote class main priority -20 user root @@ -13,5 +13,5 @@ service zygote /system/bin/app_process64 -Xzygote /system/bin --zygote --start-s onrestart restart media.tuner onrestart restart netd onrestart restart wificond - task_profiles ProcessCapacityHigh + task_profiles ProcessCapacityHigh MaxPerformance critical window=${zygote.critical_window.minute:-off} target=zygote-fatal diff --git a/rootdir/init.zygote64_32.rc b/rootdir/init.zygote64_32.rc index efb30d664..109bf6c65 100644 --- a/rootdir/init.zygote64_32.rc +++ b/rootdir/init.zygote64_32.rc @@ -1,20 +1,4 @@ -service zygote /system/bin/app_process64 -Xzygote /system/bin --zygote --start-system-server --socket-name=zygote - class main - priority -20 - user root - group root readproc reserved_disk - socket zygote stream 660 root system - socket usap_pool_primary stream 660 root system - onrestart exec_background - system system -- /system/bin/vdc volume abort_fuse - onrestart write /sys/power/state on - onrestart restart audioserver - onrestart restart cameraserver - onrestart restart media - onrestart restart media.tuner - onrestart restart netd - onrestart restart wificond - task_profiles ProcessCapacityHigh MaxPerformance - critical window=${zygote.critical_window.minute:-off} target=zygote-fatal +import /system/etc/init/hw/init.zygote64.rc service zygote_secondary /system/bin/app_process32 -Xzygote /system/bin --zygote --socket-name=zygote_secondary --enable-lazy-preload class main