OSDN Git Service

Send special permission information to netd
authorChenbo Feng <fengc@google.com>
Tue, 8 Jan 2019 00:14:26 +0000 (16:14 -0800)
committerChenbo Feng <fengc@google.com>
Wed, 20 Feb 2019 22:07:18 +0000 (14:07 -0800)
commite16cd66ace1aa9baaef17ec37cbd9d6e3277f576
treec09c8e13615ca0672ecc6e33734c89c532a41576
parent669393319a478af97f65887545aff098d107054d
Send special permission information to netd

Netd need the list of apps that have permission INTERNET or permission
UPDATE_DEVICE_STATS at run time to make decisions about application
request. To avoid protential deadlock and reduce the traffic between
netd and system server, Use packageManagerServcie to send the list of
apps that have those permissions to netd when device boot and when new
apps get installed.

Bug: 111560570
Bug: 111560739
Test: install and uninstall packages and dumpsys netd trafficcontroller
Change-Id: Idb9905f424557a5c59e35d41f5eafe345aca87e0
services/core/java/com/android/server/connectivity/PermissionMonitor.java