Add persist.sys.phh.oppo.usbotg to toggle usb otg on Oppo/Realme devices

This commit is contained in:
Pierre-Hugues Husson 2020-03-01 18:16:53 +01:00
parent 96a1827f2c
commit 552f710be1
1 changed files with 4 additions and 0 deletions

View File

@ -22,3 +22,7 @@ on property:persist.sys.phh.oppo.dt2w=*
on property:persist.sys.phh.oppo.gaming_mode=*
exec_background u:r:phhsu_daemon:s0 root -- /system/bin/sh -c "echo ${persist.sys.phh.oppo.gaming_mode} > /proc/touchpanel/game_switch_enable"
on property:persist.sys.phh.oppo.usbotg=*
exec_background u:r:phhsu_daemon:s0 root -- /system/bin/sh -c "echo ${persist.sys.phh.oppo.usbotg} > /sys/class/power_supply/usb/otg_switch"