规避方案:
/frameworks/base/packages/SystemUI/src/com/android/keyguard/KeyguardUpdateMonitor.java
public void reportSimUnlocked(int subId) {
if (DEBUG_SIM_STATES) Log.v(TAG, "reportSimUnlocked(subId=" + subId + ")");
int slotId = SubscriptionManager.getSlotIndex(subId);
handleSimStateChange(subId, slotId, /*State.READY*/getSimState(subId));
}
frameworks/base/packages/SystemUI/src/com/android/keyguard/KeyguardSimPinView.java
KeyguardUpdateMonitorCallback mUpdateMonitorCallback = new KeyguardUpdateMonitorCallback() {
@Override
public void onSimStateChanged(int subId, int slotId, State simState) {
if (DEBUG) Log.v(TAG, "onSimStateChanged(subId=" + subId + ",state=" + simState + ")");
switch(simState) {
......
case READY: {
//+ExtB DPL-11108 PAN-20811,chenhaibing.wt, modify sim state,20190524
if(mSimUnlockProgressDialog!=null && mSimUnlockProgressDialog.isShowing()){
Log.v(TAG, "chentest mSimUnlockProgressDialog.isShowing"+mSimUnlockProgressDialog.isShowing());
mSimUnlockProgressDialog.hide();
}
//-ExtB DPL-11108 PAN-20811,chenhaibing.wt, modify sim state, 20190524
mRemainingAttempts = -1;
resetState();
break;
}
输入正确PIN码后,观察解锁dialog是否与SIM PIN界面一块消失