Loading services/core/java/com/android/server/adb/AdbDebuggingManager.java +6 −14 Original line number Diff line number Diff line Loading @@ -328,6 +328,9 @@ public class AdbDebuggingManager { mConnectedKey = key; mAdbKeyStore.setLastConnectionTime(key, System.currentTimeMillis()); scheduleJobToUpdateAdbKeyStore(); // write this key to adb_keys as well so that subsequent connections can // go through the expected SIGNATURE interaction. writeKey(key); } logAdbConnectionChanged(key, AdbProtoEnums.USER_ALLOWED, alwaysAllow); } Loading Loading @@ -360,20 +363,9 @@ public class AdbDebuggingManager { } break; } // Check if the key should be allowed without user interaction. if (mAdbKeyStore.isKeyAuthorized(key)) { if (mThread != null) { mThread.sendResponse("OK"); mAdbKeyStore.setLastConnectionTime(key, System.currentTimeMillis()); logAdbConnectionChanged(key, AdbProtoEnums.AUTOMATICALLY_ALLOWED, true); mConnectedKey = key; scheduleJobToUpdateAdbKeyStore(); } } else { logAdbConnectionChanged(key, AdbProtoEnums.AWAITING_USER_APPROVAL, false); mFingerprints = fingerprints; startConfirmation(key, mFingerprints); } break; } Loading Loading
services/core/java/com/android/server/adb/AdbDebuggingManager.java +6 −14 Original line number Diff line number Diff line Loading @@ -328,6 +328,9 @@ public class AdbDebuggingManager { mConnectedKey = key; mAdbKeyStore.setLastConnectionTime(key, System.currentTimeMillis()); scheduleJobToUpdateAdbKeyStore(); // write this key to adb_keys as well so that subsequent connections can // go through the expected SIGNATURE interaction. writeKey(key); } logAdbConnectionChanged(key, AdbProtoEnums.USER_ALLOWED, alwaysAllow); } Loading Loading @@ -360,20 +363,9 @@ public class AdbDebuggingManager { } break; } // Check if the key should be allowed without user interaction. if (mAdbKeyStore.isKeyAuthorized(key)) { if (mThread != null) { mThread.sendResponse("OK"); mAdbKeyStore.setLastConnectionTime(key, System.currentTimeMillis()); logAdbConnectionChanged(key, AdbProtoEnums.AUTOMATICALLY_ALLOWED, true); mConnectedKey = key; scheduleJobToUpdateAdbKeyStore(); } } else { logAdbConnectionChanged(key, AdbProtoEnums.AWAITING_USER_APPROVAL, false); mFingerprints = fingerprints; startConfirmation(key, mFingerprints); } break; } Loading