diff options
author | Arian <arian.kulmer@web.de> | 2019-10-10 14:06:20 +0200 |
---|---|---|
committer | Arian <arian.kulmer@web.de> | 2019-10-25 22:17:13 +0200 |
commit | 61c2dc216684d0beeb252cf29c914853fdb915f4 (patch) | |
tree | 65b8bdf002827097bff25f2c9009eeb778c1ae70 | |
parent | c4e86959b7fad7652bf5958d56e80ee63298d1cc (diff) |
shinano-common: rootdir: Set usb to mtp on charger
* Otherwise adb will try to start and crash the device
while offmode charging at a computer.
Change-Id: I4752de69b765c4528cedf0ce58092a882bc584a3
-rw-r--r-- | rootdir/etc/init.sony.usb.rc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/rootdir/etc/init.sony.usb.rc b/rootdir/etc/init.sony.usb.rc index 679a600..5e536ac 100644 --- a/rootdir/etc/init.sony.usb.rc +++ b/rootdir/etc/init.sony.usb.rc @@ -33,6 +33,9 @@ on fs setprop sys.usb.ffs.aio_compat 1 +on charger + setprop sys.usb.config mtp + on property:sys.usb.config=mtp write /sys/class/android_usb/android0/enable 0 write /sys/class/android_usb/android0/idVendor 0FCE |