summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenoit Goby <benoit@android.com>2014-03-08 00:19:17 +0100
committerAndroid Git Automerger <android-git-automerger@android.com>2014-03-08 00:19:17 +0100
commit7f1f286f45c7dd01f1056389690dbd8ab527855d (patch)
treeb6143f5582f9fccb5add071ef8dc3f59105fede3
parentam a5d105e2: Merge "recovery: fix building with pointer-to-int errors turned on" (diff)
parentMerge "recovery: Fix adb with linux 3.10" (diff)
downloadandroid_bootable_recovery-7f1f286f45c7dd01f1056389690dbd8ab527855d.tar
android_bootable_recovery-7f1f286f45c7dd01f1056389690dbd8ab527855d.tar.gz
android_bootable_recovery-7f1f286f45c7dd01f1056389690dbd8ab527855d.tar.bz2
android_bootable_recovery-7f1f286f45c7dd01f1056389690dbd8ab527855d.tar.lz
android_bootable_recovery-7f1f286f45c7dd01f1056389690dbd8ab527855d.tar.xz
android_bootable_recovery-7f1f286f45c7dd01f1056389690dbd8ab527855d.tar.zst
android_bootable_recovery-7f1f286f45c7dd01f1056389690dbd8ab527855d.zip
Diffstat (limited to '')
-rw-r--r--etc/init.rc6
1 files changed, 6 insertions, 0 deletions
diff --git a/etc/init.rc b/etc/init.rc
index 159747e2c..6e0595b44 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}