summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorSahana Rao <sahanas@google.com>2021-04-27 17:13:42 +0100
committerSahana Rao <sahanas@google.com>2021-05-03 22:16:56 +0100
commitd559e782533e1b9071c9945c1b7c056872c4ff29 (patch)
treee7c9435b27fd33d5119835392091b8406afa356e /tools/aapt2/java/JavaClassGenerator_test.cpp
parenta7c3e1134b426a973b3e58bb2688f0e51ee3dcf6 (diff)
Change hasRequestRawExternalStorageAccess() to return integer
Previously, hasRequestRawExternalStorageAccess would return null if the app doesn't have requestRawExternalStorageAccess attribute in the manifest. And, return true/false based on the value specified in manifest. Based on API review comments, changed the method to getRequestRawExternalStorageAccess which returns * RAW_EXTERNAL_STORAGE_ACCESS_DEFAULT if app didn't specify requestRawExternalStorageAccess attribute in the manifest. * RAW_EXTERNAL_STORAGE_ACCESS_REQUESTED if the app requested raw external storage access. * RAW_EXTERNAL_STORAGE_ACCESS_NOT_REQUESTED if the app requests to disable raw external storage access The API is not guarded with any system level API permissions, hence changing the API to public API instead of system API. Also added documentation to ensure apps don't misunderstand this API Bug: 185484514 Test: atest packages/providers/MediaProvider Change-Id: Ib7e41ab8ee38389bf44a360e4288d03e58ef44cf
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions