path: root/rootdir/init.usb.rc
diff options
authorBenoit Goby <>2013-01-15 15:01:12 -0800
committerBenoit Goby <>2013-01-15 17:37:32 -0800
commit31c8095cac4cd652c360feb85c47854363233a1c (patch)
treeb1b7d7ea078dec4a3b967f71d53c551e902c185c /rootdir/init.usb.rc
parent77e8e5851d3b951b5382663bd50f1f83cb531eb2 (diff)
Revert "init.usb.rc: set sys.usb.config to none before changing it"
This can cause init to be stucked in a loop in very rare cases where persist.sys.usb.config is set to "none" (because the "setprop sys.usb.config none" action is added twice to the action list). The original issue on encrypted devices has been fixed differently by change # I350c5aab986f8ca86b95f316398d03012553e581 This reverts commit 80828af3def1f37eff1d483520df79ebe4238d55. Change-Id: Id0a7af8dd861c8d10b80a13b540c8a339b432007
Diffstat (limited to 'rootdir/init.usb.rc')
1 files changed, 0 insertions, 1 deletions
diff --git a/rootdir/init.usb.rc b/rootdir/init.usb.rc
index f37b630bc..15467cc21 100644
--- a/rootdir/init.usb.rc
+++ b/rootdir/init.usb.rc
@@ -88,5 +88,4 @@ on property:sys.usb.config=accessory,audio_source,adb
# Used to set USB configuration at boot and to switch the configuration
# when changing the default configuration
on property:persist.sys.usb.config=*
- setprop sys.usb.config none
setprop sys.usb.config ${persist.sys.usb.config}