summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorHai Zhang <zhanghai@google.com>2018-11-06 14:20:38 -0800
committerHai Zhang <zhanghai@google.com>2018-11-06 14:49:54 -0800
commitc595f112dbbd9cd462fdfa2099408cf35a48c0dd (patch)
tree5ccb238cc43bd41fc5d3cc45f07b11cd8cf62b4a /tools/aapt2/java/JavaClassGenerator_test.cpp
parentd6a4c6768e574ef7d277507d9cfb035c79cb5f4b (diff)
Add AppOpsManager.opToDefaultMode() as system API.
PermissionController needs to know the default mode of an app op and adjust it in case a background permission is fixed to revoked while a foreground permission is not for a pre-M app, because simply resetting the app op to its default mode might break the fixed state of the background permission. This change also removes AppOpsManager.resetUidMode() since it was introduced for the same use case in PermissionController but cannot handle the above case cleanly. Bug: 110557011 Test: build Change-Id: I53b1b375381a46b7dbece3cddaac460352d0336d
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions