Merge "adb: increase the authentication throttling limit." am: 393e5258f6 am: e4d79532de

am: a2408aaf2f

Change-Id: Ibc53b45c09cc4462175d52daa532ff305ce19145
This commit is contained in:
Josh Gao 2016-08-23 01:24:23 +00:00 committed by android-build-merger
commit 5bb5dd0eb6

View file

@ -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) {