summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorHugo Benichi <hugobenichi@google.com>2017-04-06 16:01:44 +0900
committerAndriy Naborskyy <andriyn@google.com>2017-07-27 20:17:25 -0700
commite891aa6e46c4eb4b540085cc68d6c478814289a1 (patch)
tree7fd753bccd2c17953b088f33902f58f7791b0f1d /tools/aapt2/java/JavaClassGenerator_test.cpp
parent581a166ae161afb836115989071c97b63c41303a (diff)
DO NOT MERGE ANYWHERE ConnectivityService: safer locking
This path changes a dangerous lock path in reportNetworkConnectivity(). This methods is called outside of the main ConnectivityService handler and takes a lock on a specific NetworkAgentInfo whose connectivity status is being reported. While this lock is held, reportNetworkConnectivity() goes on and query the network policy state for that network, which may ends into NetworkPolicyManagerService. Instead, the lock on NetworkAgentInfo is only held long enough to make a copy of LinkProperties, which is then passed to NetworkPolicyManagerService without that lock. Bug: 36902662 Test: could not repro b/36902662, reportNetworkConnectivity() works. $ runtest frameworks-net Change-Id: Iac4b75bcecbdddb0ac695c8b1a87ae755f62f47f
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions