diff options
author | Chiachang Wang <chiachangwang@google.com> | 2019-04-09 23:24:41 -0700 |
---|---|---|
committer | Chiachang Wang <chiachangwang@google.com> | 2019-04-10 06:36:55 +0000 |
commit | bd92d1539f29c0e7082756dcc0481e67a4079e62 (patch) | |
tree | 4ba318964150fd58ecdb614c39547cd5c48a76d6 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | c8d2c7172369638a10f0538db29e64371ae19034 (diff) |
Enforce NETWORK_STACK permission for calling NSS#forceUpdateIfaces
ConnectivityManager and its usages are removed from
NetworkStatsService. After that, forceUpdateIfaces requires
information that only ConnectivityService has, hence
restricting the calling permission to NETWORK_STACK or
MAINLINE_NETWORK_STACK permission. The required permission
will be changed from READ_NETWORK_USAGE_HISTORY to
NETWORK_STACK or MAINLINE_NETWORK_STACK. This change would make
it impossible to call outside the system.
Bug: 126830974
Test: atest FrameworksNetTests
Merged-In: I1b26dc64eaab2151e6885fd01cc5e8d4e18c4e60
Change-Id: I4ea421e4126a45f65d25fe0bec74243a3b20aeab
(cherry picked from commit 6b895dea25b4fca87d275bb78367411623ded1d4)
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions