Merge "Write aliases before ffs mount in recovery"

This commit is contained in:
Jerry Zhang 2017-01-04 19:24:01 +00:00 committed by Gerrit Code Review
commit 1302ea8725

View file

@ -30,6 +30,7 @@ on init
write /proc/sys/vm/max_map_count 1000000 write /proc/sys/vm/max_map_count 1000000
on fs on fs
write /sys/class/android_usb/android0/f_ffs/aliases adb
mkdir /dev/usb-ffs 0770 shell shell mkdir /dev/usb-ffs 0770 shell shell
mkdir /dev/usb-ffs/adb 0770 shell shell mkdir /dev/usb-ffs/adb 0770 shell shell
mount functionfs adb /dev/usb-ffs/adb uid=2000,gid=2000 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/enable 0
write /sys/class/android_usb/android0/idVendor 18D1 write /sys/class/android_usb/android0/idVendor 18D1
write /sys/class/android_usb/android0/idProduct D001 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/functions adb
write /sys/class/android_usb/android0/iManufacturer ${ro.product.manufacturer} write /sys/class/android_usb/android0/iManufacturer ${ro.product.manufacturer}
write /sys/class/android_usb/android0/iProduct ${ro.product.model} write /sys/class/android_usb/android0/iProduct ${ro.product.model}