From c8cb38803af20e922419760663ed1627e865fad2 Mon Sep 17 00:00:00 2001 From: Josh Gao Date: Mon, 22 Aug 2016 13:12:32 -0700 Subject: [PATCH] adb: increase the authentication throttling limit. Previously, after 10 failed authentications, we'd sleep for a second, and we're up to 11 vendor keys in internal now... Bug: http://b/30927527 Change-Id: I094e830521f6a2768a880c6684f32ff1ce2a3c2e --- adb/adb.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adb/adb.cpp b/adb/adb.cpp index 45d26f87c..be390d9d5 100644 --- a/adb/adb.cpp +++ b/adb/adb.cpp @@ -360,7 +360,7 @@ void handle_packet(apacket *p, atransport *t) adb_auth_verified(t); t->failed_auth_attempts = 0; } else { - if (t->failed_auth_attempts++ > 10) adb_sleep_ms(1000); + if (t->failed_auth_attempts++ > 256) adb_sleep_ms(1000); send_auth_request(t); } } else if (p->msg.arg0 == ADB_AUTH_RSAPUBLICKEY) {