summaryrefslogtreecommitdiff
path: root/rootdir/init.usb.rc
diff options
context:
space:
mode:
authorTom Cherry <tomcherry@google.com>2015-09-04 18:02:32 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2015-09-04 18:02:32 +0000
commitc74403b4c9c8acae326b39f06905a3a291a5471f (patch)
tree7edbf69a01f7eb205c8fd734b327e84ebe5bf2f5 /rootdir/init.usb.rc
parent52f59f6ead4ace254abcbecc35ab2521b75c126c (diff)
parentb00a8a066f5b6ae5b8d0c03ee7f680389b38a260 (diff)
am b00a8a06: am e8b0fcec: Merge "combine adbd.rc with init.usb.rc"
* commit 'b00a8a066f5b6ae5b8d0c03ee7f680389b38a260': combine adbd.rc with init.usb.rc
Diffstat (limited to 'rootdir/init.usb.rc')
-rw-r--r--rootdir/init.usb.rc13
1 files changed, 13 insertions, 0 deletions
diff --git a/rootdir/init.usb.rc b/rootdir/init.usb.rc
index cb1cd57e4..3ee58e1a3 100644
--- a/rootdir/init.usb.rc
+++ b/rootdir/init.usb.rc
@@ -8,6 +8,19 @@ on post-fs-data
chmod 0660 /sys/class/android_usb/android0/f_mass_storage/lun/file
chown system system /sys/class/android_usb/android0/f_rndis/ethaddr
chmod 0660 /sys/class/android_usb/android0/f_rndis/ethaddr
+ mkdir /data/misc/adb 02750 system shell
+ mkdir /data/adb 0700 root root
+
+# adbd is controlled via property triggers in init.<platform>.usb.rc
+service adbd /sbin/adbd --root_seclabel=u:r:su:s0
+ class core
+ socket adbd stream 660 system system
+ disabled
+ seclabel u:r:adbd:s0
+
+# adbd on at boot in emulator
+on property:ro.kernel.qemu=1
+ start adbd
on boot
setprop sys.usb.configfs 0