summaryrefslogtreecommitdiff
path: root/opengl/java
diff options
context:
space:
mode:
author Azhara Assanova <azharaa@google.com> 2024-01-15 16:45:02 +0000
committer Azhara Assanova <azharaa@google.com> 2024-02-08 14:14:53 +0000
commit6adf3761979cff99ebb38468bd2eada82dfd13c5 (patch)
tree4f277ebe14ae4dbf23da781529efe80f2e9bf752 /opengl/java
parentf12aa38bdb91f81c357854c67a0213c48e477f70 (diff)
Add ComponentCaller#checkContentUriPermission API for Activity
The new API checks if the app that launched the activity, i.e. activity caller, had access to the content URI at launch time. It doesn't perform a real time check to ensure no loss of grant information in the case of caller's termination, hence only works for content URIs passed at launch to mimic the lifetime of grant flags. Finally, for security reasons, the method requires the caller of the API to the same access to the content URI, otherwise it throws. The code for this check is located in a new class ActivityCallerState. Bug: 293467489 Test: atest CtsAndroidAppTestCases:android.app.cts.ComponentCallerTest Change-Id: Ide1ea3470e8cc48f4d59e431ef19681050273af2
Diffstat (limited to 'opengl/java')
0 files changed, 0 insertions, 0 deletions