commit | 7b66783514ff6eecbb7033d4d318f2255983cea1 | [log] [tgz] |
---|---|---|
author | Josh Gao <jmgao@google.com> | Wed Jun 24 16:55:35 2020 -0700 |
committer | Josh Gao <jmgao@google.com> | Wed Jun 24 18:27:52 2020 -0700 |
tree | dc55235cb367d3079300a8906c632478d1b655ae | |
parent | 7b498ab8c2e26f18b8633707823087082898b19b [diff] |
UsbDebuggingActivity: notify failure in onDestroy, not onStop. On initial boot, the prompt can be shown and then get hidden, which would previously cause the initial public key authorization request to be spuriously rejected, if the adb client was running during boot. Move the rejection to onDestroy instead, so we only reject prompts that have no chance of being actually accepted. Bug: http://b/159061108 Test: manual Change-Id: I9acb1145b1f8a6c8d6f82d1c4459bcd86eb306df