da94c7f650
This is part of the changes that will allow creating a single system image but a different set of properties will either start or not start the secondary zygote. Bug: 227482437 Test: Verified that secondary doesn't start with same system image Test: with ro.zygote set to zygote64 and abilists set appropriately. Test: Verified that secondary does not start when restarting netd. Test: Verified that secondary does start with same system image Test: with ro.zygote set to zygote64_32 and abilists set appropriately. Test: Verified that secondary does start when restarting netd. Test: Verified that a 64 bit device only starts the primary. Test: Verified that a 32 bit device only starts the primary. Change-Id: Id37a223c73f9a61868b2e26450ef4b6964f7b496
28 lines
1.1 KiB
Text
28 lines
1.1 KiB
Text
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
|
|
|
|
service zygote_secondary /system/bin/app_process32 -Xzygote /system/bin --zygote --socket-name=zygote_secondary --enable-lazy-preload
|
|
class main
|
|
priority -20
|
|
user root
|
|
group root readproc reserved_disk
|
|
socket zygote_secondary stream 660 root system
|
|
socket usap_pool_secondary stream 660 root system
|
|
onrestart restart zygote
|
|
task_profiles ProcessCapacityHigh MaxPerformance
|
|
disabled
|