Permalink
Browse files

recovery.rc: fix adbd and make sure it is run as root

Change-Id: I6dc973f750b0bd1b4d56e9cd1d3465b5337eda20
  • Loading branch information...
1 parent fab8df5 commit e6ba33732a7162f52d6fcec063dee85c46f84804 @jt1134 jt1134 committed Apr 2, 2012
Showing with 18 additions and 7 deletions.
  1. +18 −7 recovery.rc
View
@@ -50,20 +50,31 @@ service ueventd /sbin/ueventd
service console /sbin/sh
console
+ disabled
+ user shell
+ group log
+
+on property:ro.secure=0
+ start console
service recovery /sbin/recovery
- console
- oneshot
-service adbd /sbin/adbd recovery
+# adbd is controlled by the persist.service.adb.enable system property
+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
+ restart adbd
+
on property:persist.service.adb.enable=1
start adbd
on property:persist.service.adb.enable=0
stop adbd
-
-on property:ro.debuggable=1
- start adbd
-

0 comments on commit e6ba337

Please sign in to comment.