SystemUI 10.0 Set up SIM card lock, restart the phone, click Back after de-SIM card lock, lock screen blank

Short step a thousand miles

A former pick

           This bug is produced in one part of the case to unlock the SIM card, it is one of the reasons PIN, Pattern, Password removed the back button in the navigation bar at the unlock screen and add a return key, in fact, found during POST If you do not remove the navigation bar will appear in this interface, it is even now appear navigation bar, click on the back button will appear this same problem. Click here to return to the button processing is a logical process of imitation back keys.

II. Analysis of the phenomenon and

Unlocking one of the interface shown in FIG:

In this interface has done a deal, removed the navigation bar and use the "Back" button instead of this role, and we "return" back button control logic and navigation buttons of the same. Code logic is invoked as follows:

Code path:

app/src/com/android/systemui/statusbar/phone/StatusBar.java

public boolean onBackPressed() {
        boolean isScrimmedBouncer = mScrimController.getState() == ScrimState.BOUNCER_SCRIMMED;
        //首先会进入这个逻辑中
        if (mStatusBarKeyguardViewManager.onBackPressed(isScrimmedBouncer /* hideImmediately */))

Guess you like

Origin blog.csdn.net/WDYShowTime/article/details/105353783