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)
committerAmith Yamasani <yamasani@google.com>
Fri, 12 Feb 2016 18:41:09 +0000 (10:41 -0800)
commita065da1703406c7e45acf7b3f16feed3b6a558a6
tree70d6b27ed4122bc4a5fd90e2fa3c55a36785b808
parent8e87364a67ada7ce92730182719f7820886c13bd
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.

Cherry picked from AOSP commit to master.

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