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:
parent
bb82498d1c
commit
aea19262a0
@ -1,5 +1,10 @@
|
||||
#!/system/bin/sh
|
||||
|
||||
if grep -qF android.hardware.boot /vendor/manifest.xml;then
|
||||
bootctl mark-boot-successful
|
||||
fi
|
||||
|
||||
#Clear looping services
|
||||
sleep 30
|
||||
getprop | \
|
||||
grep restarting | \
|
@ -2,4 +2,4 @@
|
||||
/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/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
|
||||
|
5
vndk.rc
5
vndk.rc
@ -4,13 +4,12 @@ on post-fs
|
||||
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
|
||||
|
||||
service phh_service_cleaner /system/bin/service-cleaner.sh
|
||||
service phh_on_boot /system/bin/phh-on-boot.sh
|
||||
oneshot
|
||||
disabled
|
||||
|
||||
on property:sys.boot_completed=1
|
||||
start phh_service_cleaner
|
||||
exec u:r:phhsu_daemon:s0 root -- /system/bin/bootctl mark-boot-successful
|
||||
start phh_on_boot
|
||||
|
||||
on property:QC.HI6250=1
|
||||
write /sys/class/hw_power/charger/direct_charger/iin_thermal 2750
|
||||
|
Loading…
Reference in New Issue
Block a user