Introduce a flag for using the carrier service changed callbacks.

Test: CarrierPrivilegeAuthenticatorTest
Change-Id: Ia28c6abca67866c1de953cb61953a0d2882cd7e2
This commit is contained in:
Chalard Jean 2023-01-30 11:23:20 +09:00
commit 84dfa9f104

View file

@ -1427,7 +1427,7 @@ public class ConnectivityService extends IConnectivityManager.Stub
public CarrierPrivilegeAuthenticator makeCarrierPrivilegeAuthenticator(
@NonNull final Context context, @NonNull final TelephonyManager tm) {
if (isAtLeastT()) {
return new CarrierPrivilegeAuthenticator(context, tm);
return new CarrierPrivilegeAuthenticator(context, this, tm);
} else {
return null;
}