summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorjunyulai <junyulai@google.com>2020-02-24 18:16:54 +0800
committerjunyulai <junyulai@google.com>2020-02-24 20:22:48 +0800
commitddbbe58863b656b8e71d6529fd186cfa526d169c (patch)
treec0f93def2f0ae3caf69097e0d9c242802e235b4c /tools/aapt2/java/JavaClassGenerator.cpp
parente24ee604332ad46b982d77bb1afb6d3ab34428d4 (diff)
[SP20] Check signature permission when accessing network stats provider
Currently, registerNetworkStatsProvider requires the UPDATE_DEVICE_STATS permission. This is a privileged permission so it can be granted to preinstalled apps. Thus, apps like GmsCore, or preinstalled apps will be able to update network stats. This change checks for a new permission that would only allow signature apps to declare that. Also check MAINLINE_NETWORK_STACK permission to allow NetworkStack process to use it. Test: adb shell dumpsys netstats Test: atest FrameworksNetTests Bug: 149652079 Change-Id: Idfebd0a1988c3dcfd812d87e30f6a2034d6fbf6b
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions