Android手机sim重启

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”));

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注