diff --git a/phh-prop-handler.sh b/phh-prop-handler.sh index 4371632..bb681b3 100644 --- a/phh-prop-handler.sh +++ b/phh-prop-handler.sh @@ -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 diff --git a/vndk.rc b/vndk.rc index 70b31e5..6ab620d 100644 --- a/vndk.rc +++ b/vndk.rc @@ -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