diff options
author | Pawit Pornkitprasan <p.pawit@gmail.com> | 2011-11-18 21:17:24 -0800 |
---|---|---|
committer | Pawit Pornkitprasan <p.pawit@gmail.com> | 2011-11-18 21:17:24 -0800 |
commit | f22529276601d880c7c485a7598f544dcb34db25 (patch) | |
tree | a0afbd4196e487e064a5693b85b6009606d3006a | |
parent | ccf5a40e50b1b34a3d6f44a034dc467c7cd8ce29 (diff) | |
parent | 404d4bc9c50dabb0d90aab1bfbd9e408d1523435 (diff) | |
download | device_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.rc | 18 |
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 |