use of android.telephony.euicc.EuiccManager in project android_frameworks_opt_telephony by LineageOS.
the class MultiSimSettingController method deactivateSubscription.
private void deactivateSubscription(SubscriptionInfo info) {
// TODO: b/133379187 have a way to deactivate pSIM.
if (info.isEmbedded()) {
log("[deactivateSubscription] eSIM profile " + info.getSubscriptionId());
EuiccManager euiccManager = (EuiccManager) mContext.getSystemService(Context.EUICC_SERVICE);
euiccManager.switchToSubscription(SubscriptionManager.INVALID_SUBSCRIPTION_ID, PendingIntent.getService(mContext, 0, new Intent(), PendingIntent.FLAG_IMMUTABLE));
}
}
Aggregations