From 61c2dc216684d0beeb252cf29c914853fdb915f4 Mon Sep 17 00:00:00 2001 From: Arian Date: Thu, 10 Oct 2019 14:06:20 +0200 Subject: 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 --- rootdir/etc/init.sony.usb.rc | 3 +++ 1 file changed, 3 insertions(+) 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 -- cgit v1.2.3