Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

Change-Id: I6dc973f750b0bd1b4d56e9cd1d3465b5337eda20
  • Loading branch information...
commit e6ba33732a7162f52d6fcec063dee85c46f84804 1 parent fab8df5
jt1134 authored April 01, 2012

Showing 1 changed file with 18 additions and 7 deletions. Show diff stats Hide diff stats

  1. 25  recovery.rc
25  recovery.rc
@@ -50,20 +50,31 @@ service ueventd /sbin/ueventd
50 50
 
51 51
 service console /sbin/sh
52 52
     console
  53
+    disabled
  54
+    user shell
  55
+    group log
  56
+
  57
+on property:ro.secure=0
  58
+    start console
53 59
 
54 60
 service recovery /sbin/recovery
55  
-    console
56  
-    oneshot
57 61
 
58  
-service adbd /sbin/adbd recovery
  62
+# adbd is controlled by the persist.service.adb.enable system property
  63
+service adbd /sbin/adbd
59 64
     disabled
60 65
 
  66
+# Always start adbd on userdebug and eng builds
  67
+# In recovery, always run adbd as root.
  68
+on property:ro.debuggable=1
  69
+    setprop sys.usb.config mass_storage,adb
  70
+    setprop service.adb.root 1
  71
+
  72
+# Restart adbd so it can run as root
  73
+on property:service.adb.root=1
  74
+    restart adbd
  75
+
61 76
 on property:persist.service.adb.enable=1
62 77
     start adbd
63 78
 
64 79
 on property:persist.service.adb.enable=0
65 80
     stop adbd
66  
-
67  
-on property:ro.debuggable=1
68  
-    start adbd
69  
-

0 notes on commit e6ba337

Please sign in to comment.
Something went wrong with that request. Please try again.