diff options
| author | 2024-12-17 17:34:40 -0800 | |
|---|---|---|
| committer | 2025-01-02 10:34:44 -0800 | |
| commit | 48c2c43fcbc1e4885eeff4340605fd7a7d5560d3 (patch) | |
| tree | 3f5a2edce8d6ebe5df17ed7b5b642bef0291b956 /libs/androidfw/ZipUtils.cpp | |
| parent | e60ff67bcdf4319b8e9c24b7433311778acb1184 (diff) | |
Handle READ_MEDIA_IMAGES/VIDEO permission in getPermissionRequestState API
READ_MEDIA_IMAGES permission becomes USER_FIXED, if user allows
only selected photos twice in permission dialog.
USER_FIXED flag is generally treated as permanent denial from user,
and subsequent permission request will be ignored by the system.
But due to photo picker, we treat READ_MEDIA_IMAGES a bit
differently. The system doesn't ignore permission request
even after USER_FIXED flag in this case, rather the
system shows photo picker directly.
Adding this special case to handle READ_MEDIA_IMAGES in new
getPermissionRequestState API, when determining whether a
permission can be requested or not.
Fix: 383956875
Test: atest android.permissionui.cts.PhotoPickerPermissionTest
FLAG: EXEMPT bug fix
Change-Id: I88d86d655fae93edbc5c3011e03a35a73f77a459
Diffstat (limited to 'libs/androidfw/ZipUtils.cpp')
0 files changed, 0 insertions, 0 deletions