设置pin码,解锁pin后,还会出现一次pin码界面,然后进入桌面

规避方案:

/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界面一块消失 

发布了31 篇原创文章 · 获赞 6 · 访问量 1万+

猜你喜欢

转载自blog.csdn.net/u012824529/article/details/91880917
今日推荐