summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorMichael Groover <mpgroover@google.com>2020-07-22 19:26:53 -0700
committerMichael Groover <mpgroover@google.com>2020-07-22 19:26:53 -0700
commit1fc831d5780d831e2fc2766c7b6ff126eede4c55 (patch)
tree400e11fa719699e421f98098b19b175c695c1dd9 /tools/aapt2/java/JavaClassGenerator.cpp
parent8c8fa3588dba295a264a94f40e149b3e8fdb7eb1 (diff)
Keep USB disconnected receiver active when ADB activity in bg
When a new adb connection is attempted adbd will send the system's key to the framework to prompt the user for consent to authorize the connection. If another app is displayed over the adb prompt and the user is not able to switch foreground apps (for instance during setup wizard) the user will not be able to authorize the connection. This commit keeps the USB disconnected receiver active even when the ADB activity is in the background; if the user reseats the USB cable the existing activity will be able to notify adbd and terminate, and a new activity can be displayed in the foreground allowing the user to authorize the connection. Fixes: 152630548 Test: Manually verified the activity terminated and a new prompt was displayed after reseating the cable with the ADB activity in bg Change-Id: I3293536639a20557982113ff9f6ac2bf6f7c1975
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions