Merge "UsbDeviceManager: Don't start UsbDebuggingManager when data is encrypted"
This commit is contained in:
@@ -169,7 +169,9 @@ public class UsbDeviceManager {
|
||||
startAccessoryMode();
|
||||
}
|
||||
|
||||
if ("1".equals(SystemProperties.get("ro.adb.secure"))) {
|
||||
boolean secureAdbEnabled = SystemProperties.getBoolean("ro.adb.secure", false);
|
||||
boolean dataEncrypted = "1".equals(SystemProperties.get("vold.decrypt"));
|
||||
if (secureAdbEnabled && !dataEncrypted) {
|
||||
mDebuggingManager = new UsbDebuggingManager(context);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user