summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorshafik <shafik@google.com>2020-03-05 12:59:15 +0000
committerZimuzo Ezeozue <zezeozue@google.com>2020-03-10 11:47:56 +0000
commit8187065889d3c91c9e75f56cdd145ae82b820478 (patch)
treee6f4662ca4df46c2590a63beca472bfe5ceaf6ea /tools/aapt2/java/JavaClassGenerator_test.cpp
parentbed09965dd5cf3d3da2c6cf0e6378d090e802d64 (diff)
Add API for apps to query whether they have All Files Access
This is a fix in response to developers' feedback on DP1. Add Environment API that enables apps to check whether they have All Files Access special app access. The API encapsulates the actual mechanics of the check, which are as follows: * First check MANAGE_EXTERNAL_STORAGE app-op, if it's allowed, return true. If it's denied (ignored or errored), return false. * If the mode is default, then check for MANAGE_EXTERNAL_STORAGE permission, if it's GRANTED (not just declared), then return true, else return false. Also add test. Test: atest EnvironmentTest # not CTS Fix: 150115615 Merged-In: I0574827c22960bf8f074313d983f289be7142149 Change-Id: I0574827c22960bf8f074313d983f289be7142149
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions