Skip to content
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
16 changes: 16 additions & 0 deletions phh-prop-handler.sh
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,22 @@ if [ "$1" == "persist.sys.phh.oppo.gaming_mode" ]; then
exit
fi

if [ "$1" == "sys.phh.oplus.fppress" ]; then
prop_value=$(getprop sys.phh.oplus.fppress)

nodes=(
"/sys/kernel/oplus_display/oplus_notify_fppress"
"/sys/kernel/oppo_display/oppo_notify_fppress"
)

for node in "${nodes[@]}"; do
if [ -e "$node" ]; then
echo "$prop_value" > "$node"
fi
done
exit
fi

if [ "$1" == "persist.sys.phh.oppo.usbotg" ]; then
if [[ "$prop_value" != "0" && "$prop_value" != "1" ]]; then
exit 1
Expand Down
3 changes: 3 additions & 0 deletions vndk.rc
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ on property:persist.sys.phh.oppo.dt2w=*
on property:persist.sys.phh.oppo.gaming_mode=*
exec u:r:phhsu_daemon:s0 root -- /system/bin/phh-prop-handler.sh "persist.sys.phh.oppo.gaming_mode"

on property:sys.phh.oplus.fppress=*
exec u:r:phhsu_daemon:s0 root -- /system/bin/phh-prop-handler.sh "sys.phh.oplus.fppress"

on property:persist.sys.phh.oppo.usbotg=*
exec u:r:phhsu_daemon:s0 root -- /system/bin/phh-prop-handler.sh "persist.sys.phh.oppo.usbotg"

Expand Down