OSDN Git Service

Fix the INTERNET related permissions
authorChenbo Feng <fengc@google.com>
Fri, 8 Mar 2019 19:55:12 +0000 (11:55 -0800)
committerChenbo Feng <fengc@google.com>
Tue, 26 Mar 2019 22:16:26 +0000 (15:16 -0700)
commitdc17982648627f42df2706cc1334912aa22a67f5
treea9bbc52a2b4e2c4f494c56894eb3b9a143c1aef0
parentc365007e5f7149690d7a1c63320bd419f466b191
Fix the INTERNET related permissions

Change the INTERNET permission implementation so it only block socket
creation when non of the packages under the same uid have internet
permission. Fix the UPDATE_DEVICE_STATS permission so only the uid that
own the permission can change it.

Bug: 111560570
Test: CtsNetTestCasesUpdateStatsPermission
      CtsNetTestCasesInternetPermission
Change-Id: I42385526c191d4429f486cde01293b27fcc1374b
services/core/java/com/android/server/connectivity/PermissionMonitor.java