From 0a19ef8cb67bd9ced4ba6b1e83d560056a807bac Mon Sep 17 00:00:00 2001 From: Tom Cherry Date: Wed, 6 Nov 2019 16:59:39 -0800 Subject: Stop setting usb config from recovery init script We used to set sys.usb.config to adb in the init script. And the purpose is to start adbd. This is a duplicate of code because we always check and reset the usb config in recovery_main. Test: check adbd starts Change-Id: I6e2842ff8aebf6ccf3bd3f2ae85323899a2b9de4 --- etc/init.rc | 8 -------- 1 file changed, 8 deletions(-) diff --git a/etc/init.rc b/etc/init.rc index 9786f6104..d5b056ae8 100644 --- a/etc/init.rc +++ b/etc/init.rc @@ -95,14 +95,6 @@ service fastbootd /system/bin/fastbootd on property:service.adb.root=1 restart adbd -# Always start adbd on userdebug and eng builds -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 -- cgit v1.2.3