"ADB command Third" teaches you to remove forgotten passwords!

Source: Internet
Author: User

reprinted from: Http://www.miui.com/thread-364236-1-1.htmloften encountered in the forum to help, said the password to forget the access restrictions, or the lock screen password forgotten, resulting in some programs (such as text messages, contacts and other important programs) can not open, affecting the normal use. Too much trouble, do not want to brush machine. Is there no way to solve it? The answer, too, is negative. Don't forget, the ADB has a shell command. (This tutorial for the MIUI system, take defy as an example, the machine requirements have been root, other models similar to the method, but there are minor changes in individual places, do not elaborate)

Let's start by describing what the shell is. The shell of the Linux system is the shell of the operating system, providing the user with an interface to use the operating system. It is the general designation of command Language, command interpreter and programming language.
The shell is the interface between the user and the Linux kernel, and if you think of the Linux kernel as the center of a sphere, the shell is around the outer layer of the kernel. When a command is passed to Linux from a shell or other program, the kernel responds accordingly.
The shell is a command language interpreter with its own built-in shell command set, and the shell can be called by other applications in the system. Commands entered by the user at the prompt are interpreted by the shell before being passed to the Linux kernel. Some commands, such as changing the Working Directory command CD, are included inside the shell. There are also commands, such as the Copy command CP and the move command RM, which are separate programs that exist in a directory on the file system. For users, there is no need to care whether a command is built inside the shell or a separate program. What this lesson is about to say is about the adb shell command.


The first thing we need to know is that the password for the MIUI access limit is the graphical password, which is stored in the root directory under the/data/system path, with the name Access_control.key such as <ignore_js_op> <ignore_js_op >
When you forget your password, the first thing you think about is to go to the RE manager to delete the file, but what if re management is restricted by Access? At this point the ADB command is again a great show of divinity. Link your phone to your computer and familiarize yourself with the ADB command line interface by entering
    1. ADB Shell Rm/data/system/access_control.key
Copy Code

<ignore_js_op> password What was immediately done, re-try to limit the program, you can open it? Then go to the Access Restrictions menu, found that has been automatically disabled ~! <ignore_js_op>

Similarly, the lock screen password is also located in this directory <ignore_js_op> <ignore_js_op> <ignore_js_op> If the screen is not locked in the case of forgetting the lock screen password, Immediately before the screen is locked to the RE manager/data/system/find Gesture.key (graphics password) or password.key (number and password), delete it. If you accidentally forget the password in the state of the lock screen, you can connect your phone to your computer and go to ADB to execute
    1. ADB Shell Rm/data/system/gesture.key
Copy Code

<ignore_js_op> can delete lock screen graphic password;
    1. ADB Shell Rm/data/system/password.key
Copy Code

<ignore_js_op> can delete the lock screen digital password two encryption mode open screen, is not required to enter a password? Then look at the Settings menu, the password has been reset to none. <ignore_js_op> I think this is the most useful place in the ADB command.

Of course, these are built in the context of USB debug mode open. If you do not open the tragedy, as shown in <ignore_js_op> then you can remove the password by other means. Restart your phone, when the blue light is on, press the volume to enter the "BootMenu" menu and select "Tools"< Span class= "pstatus" >< Span class= "pstatus" >< Span class= "pstatus" >< Span class= "pstatus" >< Span class= "pstatus" > connect your phone to your computer and select "ADB Daemon" Open adb
<ignore_js_op> 
You can find that your phone is already linked, and you can remove the password by using the adb shell command
Follow the instructions given in the course, enter the ADB environment,
Enter
    1. ADB shell
    2. mount/data/
    3. Rm/data/system/access_control.key
    4. Reboot
Copy Code< Span class= "pstatus" >< Span class= "pstatus" >< Span class= "pstatus" >< Span class= "pstatus" >< Span class= "pstatus" >< Span class= "pstatus" >

Results
<ignore_js_op> 

Of course, the above is done in the shell, or can be executed on a per-article, the effect is the same
    1. ADB Shell mount/data/
    2. ADB Shell Rm/data/system/access_control.key
    3. ADB reboot
Copy Code< Span class= "pstatus" >< Span class= "pstatus" >< Span class= "pstatus" >< Span class= "pstatus" >
The same lock screen password (graphics, digital letter password) can also be removed by this method, but it is to replace the Access_control.key Gesture.key or Password.key. Xiaomi model note that before using the shell command, enter the ADB root, get root permissions

Of course, the way to remove passwords is not only this one, If you have a terminal emulator installed on your phone, it will be more convenient, whether you turn on debug mode or not, just give the terminal emulator root permission and enter

    1. Su
    2. Rm/data/system/access_control.key
Copy Code< Span class= "pstatus" >< Span class= "pstatus" >< Span class= "pstatus" >< Span class= "pstatus" >< Span class= "pstatus" >< Span class= "pstatus" > You can quickly remove the access limit password, the same as lock screen password.

The third chapter of the ADB command teaches you to remove a forgotten password!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.