android_packages_modules_Co.../core/java
Repository files (latest commit first)
Filename Latest commit message Latest commit date
junyulai f2b6d74356 [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
2020-02-24 20:22:48 +08:00
..
android [SP20] Check signature permission when accessing network stats provider 2020-02-24 20:22:48 +08:00
com/android/internal/net Move NetworkStatsFactory into service directory 2019-04-03 14:28:41 -07:00