diff options
author | Tianjie Xu <xunchang@google.com> | 2019-10-30 05:44:39 +0100 |
---|---|---|
committer | Tianjie Xu <xunchang@google.com> | 2019-10-30 18:26:56 +0100 |
commit | 7d5c341962e9721bdeecdb36c37511e1d8c25e23 (patch) | |
tree | 88f2bc0022c74fa16dbeea69e60ed8703334d373 /etc | |
parent | Merge "[bootable][recovery] fix -Wreorder-init-list" (diff) | |
download | android_bootable_recovery-7d5c341962e9721bdeecdb36c37511e1d8c25e23.tar android_bootable_recovery-7d5c341962e9721bdeecdb36c37511e1d8c25e23.tar.gz android_bootable_recovery-7d5c341962e9721bdeecdb36c37511e1d8c25e23.tar.bz2 android_bootable_recovery-7d5c341962e9721bdeecdb36c37511e1d8c25e23.tar.lz android_bootable_recovery-7d5c341962e9721bdeecdb36c37511e1d8c25e23.tar.xz android_bootable_recovery-7d5c341962e9721bdeecdb36c37511e1d8c25e23.tar.zst android_bootable_recovery-7d5c341962e9721bdeecdb36c37511e1d8c25e23.zip |
Diffstat (limited to 'etc')
-rw-r--r-- | etc/init.rc | 4 |
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 |