Store the SubscriptionId together with the Carrier UID
Always store the corresponding SubscriptionId together with the Carrier uid so that when the carrier loses the Privilege, both the uid and SubscriptionID will be used in the onCarrierPrivilegesLost callback Bug: 324357121 Test: atest ConnectivityCoverageTests:android.net.connectivity.com.android.server.connectivity.CarrierPrivilegeAuthenticatorTest atest ConnectivityCoverageTests:android.net.connectivity.com.android.server.ConnectivityServiceTest Change-Id: I28e51c583261a67d4441c6f825ade6781b862ee4
Showing
- service/src/com/android/server/ConnectivityService.java 22 additions, 21 deletionsservice/src/com/android/server/ConnectivityService.java
- service/src/com/android/server/connectivity/CarrierPrivilegeAuthenticator.java 107 additions, 46 deletions...id/server/connectivity/CarrierPrivilegeAuthenticator.java
- tests/integration/src/com/android/server/net/integrationtests/ConnectivityServiceIntegrationTest.kt 2 additions, 2 deletions...et/integrationtests/ConnectivityServiceIntegrationTest.kt
- tests/unit/java/com/android/server/ConnectivityServiceTest.java 92 additions, 84 deletions...unit/java/com/android/server/ConnectivityServiceTest.java
- tests/unit/java/com/android/server/connectivity/CarrierPrivilegeAuthenticatorTest.java 18 additions, 14 deletions...erver/connectivity/CarrierPrivilegeAuthenticatorTest.java
- tests/unit/java/com/android/server/connectivityservice/base/CSTest.kt 2 additions, 2 deletions...ava/com/android/server/connectivityservice/base/CSTest.kt
Loading
Please register or sign in to comment