Merge "Revert canSeeAllowedUids for ownerUid" into main
This commit is contained in:
@@ -2655,7 +2655,6 @@ public class ConnectivityService extends IConnectivityManager.Stub
|
||||
|
||||
private boolean canSeeAllowedUids(final int pid, final int uid, final int netOwnerUid) {
|
||||
return Process.SYSTEM_UID == uid
|
||||
|| netOwnerUid == uid
|
||||
|| checkAnyPermissionOf(mContext, pid, uid,
|
||||
android.Manifest.permission.NETWORK_FACTORY);
|
||||
}
|
||||
|
||||
@@ -801,8 +801,7 @@ public class ConnectivityManagerTest {
|
||||
assertNull(redactedNormal.getUids());
|
||||
assertNull(redactedNormal.getSsid());
|
||||
assertNull(redactedNormal.getUnderlyingNetworks());
|
||||
// Owner UID is allowed to see the subscription IDs.
|
||||
assertEquals(2, redactedNormal.getSubscriptionIds().size());
|
||||
assertEquals(0, redactedNormal.getSubscriptionIds().size());
|
||||
assertEquals(WifiInfo.DEFAULT_MAC_ADDRESS,
|
||||
((WifiInfo) redactedNormal.getTransportInfo()).getBSSID());
|
||||
assertEquals(rssi, ((WifiInfo) redactedNormal.getTransportInfo()).getRssi());
|
||||
|
||||
Reference in New Issue
Block a user