From 51da7a3e3ba816e7dc575f88c62ecfec98f4a66f Mon Sep 17 00:00:00 2001 From: Paul Kocialkowski Date: Sat, 3 May 2014 00:30:08 +0200 Subject: init.gta04.usb.rc: FunctionFS bindings for ADB Signed-off-by: Paul Kocialkowski --- rootdir/init.gta04.usb.rc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'rootdir') 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 -- cgit v1.1