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:
chihhao.chen
2020-06-05 16:44:46 +08:00
committed by Josh Gao
parent 9273b6d980
commit 9e3cb5ab6c

View File

@@ -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());