Rename service-claner to phh-on-boot and move bootctl mark-boot-successful to phh-on-boot and add a conditional start

This commit is contained in:
Pierre-Hugues Husson 2018-07-18 23:46:34 +02:00
parent bb82498d1c
commit aea19262a0
3 changed files with 8 additions and 4 deletions

View File

@ -1,5 +1,10 @@
#!/system/bin/sh #!/system/bin/sh
if grep -qF android.hardware.boot /vendor/manifest.xml;then
bootctl mark-boot-successful
fi
#Clear looping services
sleep 30 sleep 30
getprop | \ getprop | \
grep restarting | \ grep restarting | \

View File

@ -2,4 +2,4 @@
/system/bin/vndk-detect u:object_r:vndk_detect_exec:s0 /system/bin/vndk-detect u:object_r:vndk_detect_exec:s0
/system/etc/usb_audio_policy_configuration.xml u:object_r:vendor_configs_file:s0 /system/etc/usb_audio_policy_configuration.xml u:object_r:vendor_configs_file:s0
/system/bin/rw-system.sh u:object_r:phhsu_exec:s0 /system/bin/rw-system.sh u:object_r:phhsu_exec:s0
/system/bin/service-cleaner.sh u:object_r:phhsu_exec:s0 /system/bin/phh-on-boot.sh u:object_r:phhsu_exec:s0

View File

@ -4,13 +4,12 @@ on post-fs
mount none /system/etc/usb_audio_policy_configuration.xml /vendor/etc/usb_audio_policy_configuration.xml bind mount none /system/etc/usb_audio_policy_configuration.xml /vendor/etc/usb_audio_policy_configuration.xml bind
export LD_CONFIG_FILE /system/etc/ld.config.${persist.sys.vndk}.txt export LD_CONFIG_FILE /system/etc/ld.config.${persist.sys.vndk}.txt
service phh_service_cleaner /system/bin/service-cleaner.sh service phh_on_boot /system/bin/phh-on-boot.sh
oneshot oneshot
disabled disabled
on property:sys.boot_completed=1 on property:sys.boot_completed=1
start phh_service_cleaner start phh_on_boot
exec u:r:phhsu_daemon:s0 root -- /system/bin/bootctl mark-boot-successful
on property:QC.HI6250=1 on property:QC.HI6250=1
write /sys/class/hw_power/charger/direct_charger/iin_thermal 2750 write /sys/class/hw_power/charger/direct_charger/iin_thermal 2750