add restart_systemui helper

This commit is contained in:
Victor Bo 2022-02-19 23:42:31 +00:00
parent 155fad8a06
commit 67eb40e8a1
2 changed files with 15 additions and 0 deletions

View File

@ -195,6 +195,18 @@ if [ "$1" == "persist.sys.phh.backlight.scale" ];then
exit
fi
#restart_sysui
if [ "$1" == "sys.phh.restart_sysui" ]; then
if [[ "$prop_value" = "false" && "$prop_value" != "true" ]]; then
exit
fi
if [[ "$prop_value" == "true" ]]; then
pkill systemui
fi
exit
fi
if [ "$1" == "persist.sys.phh.disable_soundvolume_effect" ];then
if [[ "$prop_value" != "0" && "$prop_value" != "1" ]]; then
exit 1

View File

@ -62,6 +62,9 @@ on property:persist.sys.phh.disable_a2dp_offload=1
on property:persist.sys.phh.disable_a2dp_offload=*
setprop persist.bluetooth.bluetooth_audio_hal.disabled ${persist.sys.phh.disable_a2dp_offload}
on property:sys.phh.restart_sysui=*
exec u:r:phhsu_daemon:s0 root -- /system/bin/phh-prop-handler.sh "sys.phh.restart_sysui"
on property:init.svc.ril-proxy=stopped && property:persist.sys.phh.restart_ril=true
start ril-proxy