summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--recovery.rc2
1 files changed, 2 insertions, 0 deletions
diff --git a/recovery.rc b/recovery.rc
index 547437e..881eeb7 100644
--- a/recovery.rc
+++ b/recovery.rc
@@ -273,8 +273,10 @@ service adbd /sbin/adbd
disabled
# Always start adbd on userdebug and eng builds
+# In recovery, always run adbd as root.
on property:ro.debuggable=1
setprop sys.usb.config mass_storage,adb
+ setprop service.adb.root 1
# Restart adbd so it can run as root
on property:service.adb.root=1