summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorLorenzo Colitti <lorenzo@google.com>2017-08-20 11:54:57 +0900
committerLorenzo Colitti <lorenzo@google.com>2017-08-20 12:16:29 +0900
commit26364f1dea5f244f87d39615438266ef7eb3f28f (patch)
treebe1f80b3b046bd7a8e8168eebe078ce312324f86 /tools/aapt2/java/JavaClassGenerator_test.cpp
parentf1912ca49ac0f5bcdad063a7c042153ba791145d (diff)
Fix transitioning between non-accept strict policies.
https://android-review.googlesource.com/438278/ attempted to fix changing between two non-accept StrictMode policies (which is not supported by netd) by ensuring that if neither the old nor the new policy were accept, we'd first set an accept policy. Unfortunately, while this is what the comment says, what the code actually does is send the new policy twice. Fix the code to match the comment and the intent of the CL. While I'm at it, also move applyUidCleartextNetworkPolicy into the synchronized block, so multiple concurrent calls to setUidCleartextNetworkPolicy don't result in NMS state going out of sync with netd state. Bug: 28362720 Test: builds Change-Id: I8d876ba0786c4d6325d26a84378fc6afcf47ab84
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions