OSDN Git Service

When the device boots up, netd works more than required
authorSoi, Yoshinari <yoshinari.x.soi@sonymobile.com>
Tue, 22 Dec 2015 03:02:18 +0000 (12:02 +0900)
committerZoran Jovanovic <zoran.jovanovic@sonymobile.com>
Wed, 3 Feb 2016 13:58:51 +0000 (14:58 +0100)
commit22173bc1808905090672e5fb51ce5207b46fadf7
treefb0cda4a0a42fe099002cbca441f78012455ee32
parent60cbd0b02beb94b175e55d61bd64036a99029850
When the device boots up, netd works more than required

When the device boots up, netd adds rules for applications
which do not have the NETWORK permission to iptables.
Therefore, optimize NetworkPolicyManagerService to not touch
uids that do not have the NETWORK permission.
This modification is similar to Google commit 88e98dfa5.

Change-Id: Ic8bb837143b9e349859210654248195d62b73d17
services/core/java/com/android/server/net/NetworkPolicyManagerService.java