diff options
author | Anthony Stange <stange@google.com> | 2021-05-07 17:59:10 +0000 |
---|---|---|
committer | Anthony Stange <stange@google.com> | 2021-05-07 20:33:04 +0000 |
commit | 8800ba65c8aae04061f533a3dc1df12e9bfe843f (patch) | |
tree | 088aa3b0f36139915f570fabca0307d4af2801a2 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | b8eac194037ed2891014816e05ee9d1fd38c73bb (diff) |
Move mForceDeniedNapps check into synchronized block
This fixes a race condition that existed when using the test command
that allows force denying access to a nanoapp. This race condition
occurred when updateNanoAppAuthState was called immediately following
the force denial command invocation which meant that it was waiting on
the lock to be released after the force denial went through and was
using stale mForceDeniedNapps which caused the authorization to be
granted again.
Fixes: 187437820
Test: atest PtsChreTestCases
Change-Id: I39fc05abc95f3d7fe0c929ddce9b212f729506c5
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions