This commit is contained in:
Victor Bo 2022-05-28 02:44:52 +08:00 committed by GitHub
commit f73c6e7157
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 30 additions and 0 deletions

View File

@ -195,6 +195,30 @@ 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
#dump_logs
if [ "$1" == "sys.phh.dump_logs" ]; then
if [[ "$prop_value" = "false" && "$prop_value" != "true" ]]; then
exit
fi
if [[ "$prop_value" == "true" ]]; then
logcat -b all -d > /sdcard/logs.txt
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,12 @@ 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:sys.phh.dump_logs=*
exec u:r:phhsu_daemon:s0 root -- /system/bin/phh-prop-handler.sh "sys.phh.dump_logs"
on property:init.svc.ril-proxy=stopped && property:persist.sys.phh.restart_ril=true
start ril-proxy