Allow ethernet on automotive to set allowed UIDs
Allow ethernet factories on automotive devices to set the allowed UIDs on NetworkCapabilities. Bug: 229419469 Test: atest FrameworksNetTests Change-Id: I03e7cda75f1c530e0d0e4a756330bc9847a96668
This commit is contained in:
@@ -7825,6 +7825,7 @@ public class ConnectivityService extends IConnectivityManager.Stub
|
||||
}
|
||||
nai.declaredCapabilities = new NetworkCapabilities(nc);
|
||||
NetworkAgentInfo.restrictCapabilitiesFromNetworkAgent(nc, nai.creatorUid,
|
||||
mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_AUTOMOTIVE),
|
||||
mCarrierPrivilegeAuthenticator);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user