aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorBenoit Goby <benoit@android.com>2014-02-21 04:21:03 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-02-21 04:21:03 +0000
commit0d372a553ee7d8ce8cbb7cfc41af0895d89661d1 (patch)
tree28150c18072cb87e71d03db6091fb6eee2672cf9 /etc
parent0ac1cbaa76f1ab88ed575b197b06d042e015c10e (diff)
parented75be6de9d883a2524065940d732593fa26ac19 (diff)
downloadbootable_recovery-0d372a553ee7d8ce8cbb7cfc41af0895d89661d1.zip
bootable_recovery-0d372a553ee7d8ce8cbb7cfc41af0895d89661d1.tar.gz
bootable_recovery-0d372a553ee7d8ce8cbb7cfc41af0895d89661d1.tar.bz2
am ed75be6d: am ac189bf6: Merge "recovery: Fix adb with linux 3.10"
* commit 'ed75be6de9d883a2524065940d732593fa26ac19': recovery: Fix adb with linux 3.10
Diffstat (limited to 'etc')
-rw-r--r--etc/init.rc6
1 files changed, 6 insertions, 0 deletions
diff --git a/etc/init.rc b/etc/init.rc
index f16bef8..8ed0038 100644
--- a/etc/init.rc
+++ b/etc/init.rc
@@ -28,9 +28,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 D001
+ 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}