summaryrefslogtreecommitdiff
path: root/opengl/tests/gl_basic/gl_basic.cpp
diff options
context:
space:
mode:
authorPhilip P. Moltmann <moltmann@google.com>2018-07-31 14:05:51 -0700
committerPhilip P. Moltmann <moltmann@google.com>2018-07-31 14:33:40 -0700
commitb38fa94f30ff3aae8f11b0a51ab55d07ba548500 (patch)
treec98a8e97ff60ee590d8ff420ca78926990bf73d0 /opengl/tests/gl_basic/gl_basic.cpp
parentbd49376225b0db80f6a49aa18e9c147695742784 (diff)
Do not add permission while cleaning permissions state
A app might reuqest a permission it might never get such as e.g. a platform signature permission. In this case the permission is in ps.pkg.requestedPermissions but not in ps.getPermissionsState. Before this change the code decided that the flags changed hence it called permissionsState.updatePermissionFlags for this never grantable permission which then added the permission via ensurePermissionData. If this was a pre-M app this lead to the permission appearing granted as all permissions a pre-M app has are granted. If the permission does not have a appOp, the permission becomes actually granted. Fixes: 112044785 Test: Repreated repro case as in the bug atest PermissionsHostTest Change-Id: I0c0ea1bb06893f9b3edc37238ea57175da7dd86f
Diffstat (limited to 'opengl/tests/gl_basic/gl_basic.cpp')
0 files changed, 0 insertions, 0 deletions