am ac189bf6
: Merge "recovery: Fix adb with linux 3.10"
* commit 'ac189bf645123b4dc79cd2053f5eb07917774d66': recovery: Fix adb with linux 3.10
This commit is contained in:
commit
ed75be6de9
1 changed files with 6 additions and 0 deletions
|
@ -28,9 +28,15 @@ on init
|
||||||
chown root shell /tmp
|
chown root shell /tmp
|
||||||
chmod 0775 /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/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}
|
||||||
|
|
Loading…
Reference in a new issue