summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorTianjie Xu <xunchang@google.com>2019-11-05 23:13:30 +0100
committerandroid-build-merger <android-build-merger@google.com>2019-11-05 23:13:30 +0100
commit033225bc267f44eade5eba28099b2e52238f14d4 (patch)
treeeedb5fa55590815fd02676cd33e4cd131bfbc3fa /etc
parent[automerger skipped] DO NOT MERGE - qt-qpr1-dev-plus-aosp-without-vendor@5915889 into stage-aosp-master am: 547b9dc313 (diff)
parentMerge "Start adbd in user mode if bootloader is unlocked" am: b65dd9cb0c (diff)
downloadandroid_bootable_recovery-033225bc267f44eade5eba28099b2e52238f14d4.tar
android_bootable_recovery-033225bc267f44eade5eba28099b2e52238f14d4.tar.gz
android_bootable_recovery-033225bc267f44eade5eba28099b2e52238f14d4.tar.bz2
android_bootable_recovery-033225bc267f44eade5eba28099b2e52238f14d4.tar.lz
android_bootable_recovery-033225bc267f44eade5eba28099b2e52238f14d4.tar.xz
android_bootable_recovery-033225bc267f44eade5eba28099b2e52238f14d4.tar.zst
android_bootable_recovery-033225bc267f44eade5eba28099b2e52238f14d4.zip
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 0822aba03..9786f6104 100644
--- a/etc/init.rc
+++ b/etc/init.rc
@@ -99,6 +99,10 @@ on property:service.adb.root=1
on fs && property:ro.debuggable=1
setprop sys.usb.config adb
+# Also start adbd on user build with an unlocked bootloader
+on fs && property:ro.debuggable=0 && androidboot.verifiedbootstate=orange
+ setprop sys.usb.config adb
+
on fs && property:sys.usb.configfs=1
mount configfs none /config
mkdir /config/usb_gadget/g1 0770 shell shell