aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorDoug Zongker <dougz@android.com>2011-06-23 15:30:34 -0700
committerDoug Zongker <dougz@android.com>2011-06-23 15:30:34 -0700
commitfb04b87002f54935c6b2edf59123525377d4cce6 (patch)
tree4c85158307af5a5eb1d88b75a5fb3ec85895a593 /etc
parent9d1bcdf7b8c2992e9671f7fb9dcf78f2a0ae3d66 (diff)
downloadbootable_recovery-fb04b87002f54935c6b2edf59123525377d4cce6.zip
bootable_recovery-fb04b87002f54935c6b2edf59123525377d4cce6.tar.gz
bootable_recovery-fb04b87002f54935c6b2edf59123525377d4cce6.tar.bz2
fix adb root in recovery
recovery's init.rc was missing lines that made adb root work. Change-Id: I300e6997e3b5cb9c7b542b2012eed61deb2550f1
Diffstat (limited to 'etc')
-rw-r--r--etc/init.rc4
1 files changed, 4 insertions, 0 deletions
diff --git a/etc/init.rc b/etc/init.rc
index e2b4236..fad32df 100644
--- a/etc/init.rc
+++ b/etc/init.rc
@@ -60,3 +60,7 @@ on property:sys.usb.config=ptp,adb
write /sys/class/android_usb/android0/enable 1
start adbd
+on property:service.adb.root=1
+ write /sys/class/android_usb/android0/enable 0
+ restart adbd
+ write /sys/class/android_usb/android0/enable 1