summaryrefslogtreecommitdiff
path: root/libs/hwui/HardwareBitmapUploader.cpp
diff options
context:
space:
mode:
author Sarup Dalwani <sarup@google.com> 2024-02-09 10:51:36 +0000
committer Sarup Dalwani <sarup@google.com> 2024-02-09 10:51:36 +0000
commit3e5c69374d03791ad964538e64377a6126b66ecc (patch)
tree63a2f150894581c9c775cfd7c6f5a7707440d3b1 /libs/hwui/HardwareBitmapUploader.cpp
parent497253831d97507888df54119ca8f8737fc0db5a (diff)
Avoiding overlay activities when usb device is attached.
Adding property android.app.PROPERTY_RESTRICT_USB_OVERLAY_ACTIVITIES in manifest. This property will be honored only for applications which have MANAGE_USB permission(i.e only priviledged applications). If this property is set on application which is in foreground when usb device is attached then, usb flow would not resolveActivity. If there is no application in foreground with this field set, then usb attachment will start overlay activities. Bug: 307231174 Test: Manually tested the flow. Test: atest UsbManagerTests Change-Id: Ica4f557ec5eeb0887373f5bd1a44f05f1bdfeecd
Diffstat (limited to 'libs/hwui/HardwareBitmapUploader.cpp')
0 files changed, 0 insertions, 0 deletions