summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorJerry Zhang <zhangjerry@google.com>2017-01-04 20:29:16 +0100
committerandroid-build-merger <android-build-merger@google.com>2017-01-04 20:29:16 +0100
commit9f9d50d4ed1acf20a844b2729d26488db849ff57 (patch)
treeb4192744e406bcaba9387ee89be2979a56345140 /etc
parentMerge "recovery: Fix the broken UI text." (diff)
parentMerge "Write aliases before ffs mount in recovery" (diff)
downloadandroid_bootable_recovery-9f9d50d4ed1acf20a844b2729d26488db849ff57.tar
android_bootable_recovery-9f9d50d4ed1acf20a844b2729d26488db849ff57.tar.gz
android_bootable_recovery-9f9d50d4ed1acf20a844b2729d26488db849ff57.tar.bz2
android_bootable_recovery-9f9d50d4ed1acf20a844b2729d26488db849ff57.tar.lz
android_bootable_recovery-9f9d50d4ed1acf20a844b2729d26488db849ff57.tar.xz
android_bootable_recovery-9f9d50d4ed1acf20a844b2729d26488db849ff57.tar.zst
android_bootable_recovery-9f9d50d4ed1acf20a844b2729d26488db849ff57.zip
Diffstat (limited to '')
-rw-r--r--etc/init.rc2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/init.rc b/etc/init.rc
index b1473ba4b..477e13d5e 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}