summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorDoug Zongker <dougz@android.com>2012-01-10 00:16:13 +0100
committerDoug Zongker <dougz@android.com>2012-01-18 19:35:28 +0100
commite83b7cf8f1bad5b334b6352d3b850d8555530a9a (patch)
tree3a139cf549726cf66f41ef4899a21cde379a3648 /etc
parentfix verifier test (diff)
downloadandroid_bootable_recovery-e83b7cf8f1bad5b334b6352d3b850d8555530a9a.tar
android_bootable_recovery-e83b7cf8f1bad5b334b6352d3b850d8555530a9a.tar.gz
android_bootable_recovery-e83b7cf8f1bad5b334b6352d3b850d8555530a9a.tar.bz2
android_bootable_recovery-e83b7cf8f1bad5b334b6352d3b850d8555530a9a.tar.lz
android_bootable_recovery-e83b7cf8f1bad5b334b6352d3b850d8555530a9a.tar.xz
android_bootable_recovery-e83b7cf8f1bad5b334b6352d3b850d8555530a9a.tar.zst
android_bootable_recovery-e83b7cf8f1bad5b334b6352d3b850d8555530a9a.zip
Diffstat (limited to '')
-rw-r--r--etc/init.rc16
1 files changed, 9 insertions, 7 deletions
diff --git a/etc/init.rc b/etc/init.rc
index 554d4e634..a301779aa 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