add dump_logs helper

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

View File

@ -207,6 +207,18 @@ if [ "$1" == "sys.phh.restart_sysui" ]; then
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

@ -65,6 +65,9 @@ on property: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