summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorJerry Zhang <zhangjerry@google.com>2017-01-04 19:30:32 +0100
committerJerry Zhang <zhangjerry@google.com>2017-01-04 20:16:02 +0100
commite66f861a7c71f0d59fabd8ec1d096485faf0901e (patch)
tree7b2bb495c1a9adc3b6c9a2ee27ec4d9fb34701bf /etc
parentMerge "Remove outdated reference to icon_installing.png" am: 71633ebfb0 am: 05e7db3000 am: 83317083c8 (diff)
downloadandroid_bootable_recovery-e66f861a7c71f0d59fabd8ec1d096485faf0901e.tar
android_bootable_recovery-e66f861a7c71f0d59fabd8ec1d096485faf0901e.tar.gz
android_bootable_recovery-e66f861a7c71f0d59fabd8ec1d096485faf0901e.tar.bz2
android_bootable_recovery-e66f861a7c71f0d59fabd8ec1d096485faf0901e.tar.lz
android_bootable_recovery-e66f861a7c71f0d59fabd8ec1d096485faf0901e.tar.xz
android_bootable_recovery-e66f861a7c71f0d59fabd8ec1d096485faf0901e.tar.zst
android_bootable_recovery-e66f861a7c71f0d59fabd8ec1d096485faf0901e.zip
Diffstat (limited to 'etc')
-rw-r--r--etc/init.rc2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/init.rc b/etc/init.rc
index faa7b2a1c..fa3689df9 100644
--- a/etc/init.rc
+++ b/etc/init.rc
@@ -30,6 +30,7 @@ on init
write /proc/sys/vm/max_map_count 1000000
on fs
+ write /sys/class/android_usb/android0/f_ffs/aliases adb
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
@@ -37,7 +38,6 @@ on fs
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}