diff options
author | Doug Zongker <dougz@android.com> | 2012-01-10 12:16:04 -0800 |
---|---|---|
committer | Doug Zongker <dougz@android.com> | 2012-01-10 12:16:04 -0800 |
commit | 6639248d02ce544538eea83488c1ed4a3b46a7fc (patch) | |
tree | 8965d5b8f0d5f5f9e637f38cae35b0f076b71e8b /etc | |
parent | 3e8ba436854ecbd15f494ff7ebb9927fa47cb11b (diff) | |
download | bootable_recovery-6639248d02ce544538eea83488c1ed4a3b46a7fc.zip bootable_recovery-6639248d02ce544538eea83488c1ed4a3b46a7fc.tar.gz bootable_recovery-6639248d02ce544538eea83488c1ed4a3b46a7fc.tar.bz2 |
always initialize usb product, vendor, etc. for adb in recovery
Set these values even on non-debuggable builds, so that the mini-adb
now in recovery can work.
Change-Id: If4c915403e6f43bfe922aa347e350a8982443106
Diffstat (limited to 'etc')
-rw-r--r-- | etc/init.rc | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/etc/init.rc b/etc/init.rc index 9f0ef57..c001a96 100644 --- a/etc/init.rc +++ b/etc/init.rc @@ -15,6 +15,15 @@ on init mkdir /cache mount /tmp /tmp tmpfs + 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/functions adb + 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/iSerial ${ro.serialno} + + on boot ifup lo @@ -33,14 +42,7 @@ service adbd /sbin/adbd recovery # Always start adbd on userdebug and eng builds on property:ro.debuggable=1 - 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/functions adb write /sys/class/android_usb/android0/enable 1 - 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/iSerial ${ro.serialno} start adbd # Restart adbd so it can run as root |