IExtTelephony extPhone = IExtTelephony$Stub.asInterface(ServiceManager.getService(“extphone”));
extPhone.deactivateUiccCard(1)
extPhone.activateUiccCard(1);
com.qti.internal.telephony.ExtTelephonyServiceImpl
public int activateUiccCard(int slotId) {
return this.mCardProvisioner.activateUiccCard(slotId);
}
public int deactivateUiccCard(int slotId) {
return this.mCardProvisioner.deactivateUiccCard(slotId);
}
bindIExtTelephony.Stub(ExtTelephonyServiceImpl.activateUiccCard)
https://android.googlesource.com/device/google/marlin/+/master/telephony/internal/src/org/codeaurora/internal/IExtTelephony.aidl
TelephonyExtUtils extTelephony = TelephonyExtUtils.getInstance(mContext);
TelephonyExtUtils extTelephony = TelephonyExtUtils.getInstance(mContext);
int result = mIsChecked ?
extTelephony.activateUiccCard(mSlotId) :
extTelephony.deactivateUiccCard(mSlotId);
newProvisionedState =
extTelephony.getCurrentUiccCardProvisioningStatus(mSlotId);
return result;
https://gitlab.e.foundation/e/os/android_packages_apps_Settings/blob/v1-pie/src/com/android/settings/sim/SimSettings.java
mExtTelephony = IExtTelephony.Stub.asInterface(ServiceManager.getService(“extphone”));