diff options
author | Amin Shaikh <ashaikh@google.com> | 2017-01-05 14:28:47 -0800 |
---|---|---|
committer | Amin Shaikh <ashaikh@google.com> | 2017-01-05 14:28:47 -0800 |
commit | 2cd918a63ec87dd4e13bd803626f2742a0f35fab (patch) | |
tree | d93c4930c54c97e84876443967467c229a4b38bd /tools/aapt2/diff/Diff.cpp | |
parent | a54d76a81f2d16c3e9d35fa87abc6f6d725d8bd2 (diff) |
Fix NetworkScorerAppManager#isCallerActiveScorer.
The current implementation checks whether the caller's uid has the
SCORE_NETWORKS permission instead of checking the passed in callingUid. I
removed this check entirely because the getActiveScorer method already checks
whether the scorer's package has the SCORE_NETWORKS permission. There is no way
callingUid can equal the active scoring package's uid without also having the
SCORE_NETWORKS permission.
Bug: 34107721
Test: runtest --path core/tests/coretests/src/android/net/NetworkScorerAppManagerTest.java
Change-Id: Ifd427792169837c84a10a76b208c76137db06ae9
Diffstat (limited to 'tools/aapt2/diff/Diff.cpp')
0 files changed, 0 insertions, 0 deletions