1
0
mirror of https://github.com/devhunter1/android_device_samsung_a15.git synced 2024-11-24 15:06:13 +00:00
Twrp/recovery/root/init.recovery.mt6789.rc
2024-08-08 14:47:14 +05:30

16 lines
454 B
Plaintext

import /init.recovery.project.rc
on init
setprop sys.usb.configfs 1
setprop sys.usb.controller "musb-hdrc"
setprop sys.usb.ffs.aio_compat 0
on fs && property:ro.debuggable=0
# distinguish USB shoulde connect or not, i.e. CDP vs SDP
write /sys/class/udc/musb-hdrc/device/cmode 2
# set charging free due to it wait for USB activation
start adbd
on boot
exec u:r:update_engine:s0 root root -- /system/bin/mtk_plpath_utils