summaryrefslogtreecommitdiffstats
path: root/etc/init.rc
diff options
context:
space:
mode:
authorBenoit Goby <benoit@android.com>2014-02-20 02:41:02 +0100
committerDees Troy <dees_troy@teamw.in>2014-10-07 20:44:06 +0200
commit689e06b6e6d8673657f5caa8908ab0f6e8b66748 (patch)
tree52763addf1bdd1b4074065d68d9128e4734516bf /etc/init.rc
parentADB sideload command not work (diff)
downloadandroid_bootable_recovery-689e06b6e6d8673657f5caa8908ab0f6e8b66748.tar
android_bootable_recovery-689e06b6e6d8673657f5caa8908ab0f6e8b66748.tar.gz
android_bootable_recovery-689e06b6e6d8673657f5caa8908ab0f6e8b66748.tar.bz2
android_bootable_recovery-689e06b6e6d8673657f5caa8908ab0f6e8b66748.tar.lz
android_bootable_recovery-689e06b6e6d8673657f5caa8908ab0f6e8b66748.tar.xz
android_bootable_recovery-689e06b6e6d8673657f5caa8908ab0f6e8b66748.tar.zst
android_bootable_recovery-689e06b6e6d8673657f5caa8908ab0f6e8b66748.zip
Diffstat (limited to 'etc/init.rc')
-rw-r--r--etc/init.rc8
1 files changed, 7 insertions, 1 deletions
diff --git a/etc/init.rc b/etc/init.rc
index dda009b84..8b797662c 100644
--- a/etc/init.rc
+++ b/etc/init.rc
@@ -21,9 +21,15 @@ on init
chown root shell /tmp
chmod 0775 /tmp
+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/enable 0
write /sys/class/android_usb/android0/idVendor 18D1
write /sys/class/android_usb/android0/idProduct D002
+ write /sys/class/android_usb/android0/f_ffs/aliases adb
write /sys/class/android_usb/android0/functions adb
write /sys/class/android_usb/android0/iManufacturer ${ro.product.manufacturer}
write /sys/class/android_usb/android0/iProduct ${ro.product.model}
@@ -92,4 +98,4 @@ on property:ro.debuggable=1
on property:service.adb.root=1
write /sys/class/android_usb/android0/enable 0
restart adbd
- write /sys/class/android_usb/android0/enable 1 \ No newline at end of file
+ write /sys/class/android_usb/android0/enable 1