summaryrefslogtreecommitdiffstats
path: root/rootdir
diff options
context:
space:
mode:
authorPaul Kocialkowski <contact@paulk.fr>2014-05-03 00:30:08 +0200
committerPaul Kocialkowski <contact@paulk.fr>2014-05-03 00:30:08 +0200
commit51da7a3e3ba816e7dc575f88c62ecfec98f4a66f (patch)
tree4008a2ed8eb356e485560447350882ea0570657a /rootdir
parentf2a58e5f4d51aab657fd66138c0364fe4a7b41c9 (diff)
downloaddevice_goldelico_gta04-51da7a3e3ba816e7dc575f88c62ecfec98f4a66f.zip
device_goldelico_gta04-51da7a3e3ba816e7dc575f88c62ecfec98f4a66f.tar.gz
device_goldelico_gta04-51da7a3e3ba816e7dc575f88c62ecfec98f4a66f.tar.bz2
init.gta04.usb.rc: FunctionFS bindings for ADB
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
Diffstat (limited to 'rootdir')
-rwxr-xr-xrootdir/init.gta04.usb.rc7
1 files changed, 7 insertions, 0 deletions
diff --git a/rootdir/init.gta04.usb.rc b/rootdir/init.gta04.usb.rc
index b6bd413..373cbf6 100755
--- a/rootdir/init.gta04.usb.rc
+++ b/rootdir/init.gta04.usb.rc
@@ -7,6 +7,13 @@ on boot
write /sys/class/android_usb/android0/f_rndis/vendorID 18d1
write /sys/class/android_usb/android0/f_rndis/wceis 1
+on fs
+ mkdir /dev/usb-ffs 0770 shell shell
+ mkdir /dev/usb-ffs/adb 0770 shell shell
+
+ mount functionfs adb /dev/usb-ffs/adb uid=2000,gid=2000
+ write /sys/class/android_usb/android0/f_ffs/aliases adb
+
on property:sys.usb.config=adb
write /sys/class/android_usb/android0/enable 0
write /sys/class/android_usb/android0/idVendor 18d1