OSDN Git Service

Get the permission information for native services
authorChenbo Feng <fengc@google.com>
Tue, 26 Mar 2019 21:36:34 +0000 (14:36 -0700)
committerChenbo Feng <fengc@google.com>
Wed, 27 Mar 2019 02:45:37 +0000 (02:45 +0000)
commitdd77fcee7c109a8ffa8a6eee2e18cec8de9dc4a6
tree6d546f2d79d858f525bc3773442e6af3d8cd2cae
parent88fb51277bf540f84408df6392db7ea8393c204d
Get the permission information for native services

For native services such as mediaserver and audioserver, the permission
information cannot be retrieved from getInstalledPackages. Instead, the
high level permission information is avalaible in systemConfigs. With
those permission information, netd can store the complete list of uids
that have UPDATE_DEVICE_STATS permission.

Bug: 128944261
Test: dumpsys netd trafficcontroller
Change-Id: I0331d5a3a5b927a351fcfe6689ef1ba2b993db0c
services/core/java/com/android/server/connectivity/PermissionMonitor.java