summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPawit Pornkitprasan <p.pawit@gmail.com>2011-11-18 21:17:24 -0800
committerPawit Pornkitprasan <p.pawit@gmail.com>2011-11-18 21:17:24 -0800
commitf22529276601d880c7c485a7598f544dcb34db25 (patch)
treea0afbd4196e487e064a5693b85b6009606d3006a
parentccf5a40e50b1b34a3d6f44a034dc467c7cd8ce29 (diff)
parent404d4bc9c50dabb0d90aab1bfbd9e408d1523435 (diff)
downloaddevice_samsung_aries-common-f22529276601d880c7c485a7598f544dcb34db25.zip
device_samsung_aries-common-f22529276601d880c7c485a7598f544dcb34db25.tar.gz
device_samsung_aries-common-f22529276601d880c7c485a7598f544dcb34db25.tar.bz2
Merge pull request #1 from Danesh/patch-1
Sync with global recovery init.rc
-rw-r--r--recovery.rc18
1 files changed, 16 insertions, 2 deletions
diff --git a/recovery.rc b/recovery.rc
index 4a34062..eaece03 100644
--- a/recovery.rc
+++ b/recovery.rc
@@ -270,10 +270,24 @@ service recovery /sbin/recovery
service adbd /sbin/adbd
disabled
-# adbd on at boot in emulator
-on property:ro.kernel.qemu=1
+# 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
+on property:service.adb.root=1
+ write /sys/class/android_usb/android0/enable 0
+ restart adbd
+ write /sys/class/android_usb/android0/enable 1
+
on property:persist.service.adb.enable=1
start adbd