Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android 12.0 #296

Open
wants to merge 2 commits into
base: android-12.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions phh-prop-handler.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions vndk.rc
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down