Let confirmation dialog can appear
When eng/userdebug load is with user build adbd, we need to always new AdbDebuggingManager to let confirmation dialog can appear. Bug: 158156979 Test: "adb shell" can trigger confirmation dialog Change-Id: Ia0830c78c8cc913985f41b93eeecf8bf57ec1b03
This commit is contained in:
@@ -241,12 +241,7 @@ public class AdbService extends IAdbManager.Stub {
|
||||
private AdbService(Context context) {
|
||||
mContext = context;
|
||||
mContentResolver = context.getContentResolver();
|
||||
|
||||
boolean secureAdbEnabled = AdbProperties.secure().orElse(false);
|
||||
boolean dataEncrypted = "1".equals(SystemProperties.get("vold.decrypt"));
|
||||
if (secureAdbEnabled && !dataEncrypted) {
|
||||
mDebuggingManager = new AdbDebuggingManager(context);
|
||||
}
|
||||
mDebuggingManager = new AdbDebuggingManager(context);
|
||||
|
||||
initAdbState();
|
||||
LocalServices.addService(AdbManagerInternal.class, new AdbManagerInternalImpl());
|
||||
|
||||
Reference in New Issue
Block a user