summaryrefslogtreecommitdiff
path: root/libs/androidfw/ApkParsing.cpp
diff options
context:
space:
mode:
author Jing Ji <jji@google.com> 2023-02-03 21:32:28 -0800
committer Jing Ji <jji@google.com> 2023-03-07 21:09:38 -0800
commit5ce5acd11733168872fb7fb32171780a4e214965 (patch)
tree6ef6b3f1f97723477c977a0d2e9e6b6219470d36 /libs/androidfw/ApkParsing.cpp
parent18216d979b8b6f559315c71eec75acaf853bc01e (diff)
Allow apps to create FGS with type mediaProjection if the user granted
...the media projection permission from the system dialog (i.e. MediaProjectionPermissionActivity). The updated flow of starting a media projection will be: 1. Declares a FGS with type mediaProjection 2. startActivityForResult(MediaProjectionManager#createScreenCaptureIntent()) 3. [NEW] Start the FGS on getting the result from step #2 4. MediaProjectionManager#getMediaProjection() 5. MediaProjection#createVirtualDisplay() Also, bring back the permission enforcement for mediaProjection FGS which was removed in I1efa698207182043cfab3d5503829da8eec075ab. Additional, this CL added the feature flags for the permission enforcement for each FGS type. Bug: 267740338 Bug: 246792057 Test: atest CtsMediaProjectionTestCases Test: atest CtsWindowManagerDeviceTestCases Test: atest CtsAppFgsTestCases Change-Id: I1e5b58ddea232fecaaa5ed513276a62c72429a0b Merged-In: I1e5b58ddea232fecaaa5ed513276a62c72429a0b
Diffstat (limited to 'libs/androidfw/ApkParsing.cpp')
0 files changed, 0 insertions, 0 deletions