Don't use framework permission strings for netd permissions.

These framework permission strings were being used as arbitrary labels
that mapped to netd permissions that have completely different meaning.
This leads to confusion, so use different strings.

Bug: 18194858
Change-Id: Ib3ec377ab26ce904d3d4678f04edec6cb1260517
This commit is contained in:
Sreeram Ramachandran
2014-11-04 10:15:03 -08:00
parent 1f4c3496f3
commit d84f7f863c

View File

@@ -191,8 +191,8 @@ public class PermissionMonitor {
}
try {
if (add) {
mNetd.setPermission(CHANGE_NETWORK_STATE, toIntArray(network));
mNetd.setPermission(CONNECTIVITY_INTERNAL, toIntArray(system));
mNetd.setPermission("NETWORK", toIntArray(network));
mNetd.setPermission("SYSTEM", toIntArray(system));
} else {
mNetd.clearPermission(toIntArray(network));
mNetd.clearPermission(toIntArray(system));