Forgot your home Wi-Fi password and there is no sticker with the code on your router? Or do you need to share your network with a friend, but donโt want to get into the router settings? On an Android smartphone that is already connected to this network, the password is stored in the system - all that remains is to retrieve it. The methods vary in complexity: from standard functions in the phone menu to the use of engineering commands for experienced users.
It is important to understand that not all methods are universal. On some firmware (for example, MIUI from Xiaomi or One UI from Samsung) the password can be viewed in two clicks, but on โpureโ Android additional steps will be required. We will look at the options without root access (for most users) and with root access (for advanced ones), and also tell you how to bypass manufacturer restrictions.
We warn you right away: if the phone is not connected to the target Wi-Fi network, none of the methods will work. Also note that some methods may require ADB (Android Debugging Tool) or special applications. Are you ready? Then let's get started.
1. Standard method: viewing the password in the network settings (does not work on all phones)
The easiest method is to look at the connection settings. Unfortunately, it is not available on all devices. Manufacturers often hide this option โfor securityโ, but on some firmware it remains.
Here's where to look:
- ๐ฑ Xiaomi (MIUI 12 and newer):
Settings โ Wi-Fiโ tap on the name of your network โShow password(you will need to enter a PIN code or fingerprint). - ๐ค Google Pixel / "pure" Android:
Settings โ Network and Internet โ Wi-Fiโ select network โShare(a QR code will open with password). - ๐ Samsung (One UI):
Settings โ Connections โ Wi-Fiโ click on the gear next to the network โQR code(the password will be at the bottom of the screen).
If there is no โShow passwordโ or โShareโ item in your menu, then the manufacturer has removed it. In this case, proceed to the following methods.
โ ๏ธ Attention: On phones with Android 10 and newer, the password viewing function may be blocked by security policies. For example, on Huawei i Honor this method almost never works.
2. Using a network QR code (an alternative for phones without root)
If there is no direct access to the password in the settings, but there is an option Share or QR code, you can extract the password indirectly. Many phones generate a QR code to quickly connect other devices - it also contains a password.
How to do it:
- Open
Settings โ Wi-Fiand tap on your network. - Select
ShareorQR code(names may vary). - Take a photo of the QR code with another phone or scan it using an application like QR & Barcode Scanner.
- In the resulting line, find the parameter
p=orpassword=- after it a password will be specified.
Example line from a QR code:
WIFI:T:WPA;S:MyWiFi;P:mysecretpassword123;;
Here P:mysecretpassword123 is the password.
If you do not have a second phone to scan the QR code, you can take a photo of it with the main camera, and then upload the photo to the online QR decoder (for example, zxing.org).
3. Method with ADB: retrieving the password through a computer (without root)
If the previous methods did not work, and root access you donโt, you can use ADB (Android Debug Bridge). This is an official debugging tool from Google that allows you to execute commands on your phone with computer.
You will need:
- ๐ฅ๏ธ A computer with Windows, macOS or Linux.
- ๐ฑ USB cable for connecting your phone.
- ๐ง Enabled
USB debuggingin the developer settings (Settings โ About phone โ Build number(tap 7 times) โ return toSettings โ System โ For developers). - ๐ฆ Installed ADB drivers (you can download from Android Studio website).
Step-by-step guide:
- Connect your phone to the computer and enable USB debugging.
- Open a Command Prompt (Windows) or Terminal (macOS/Linux) and type:
adb shell
su -c "cat /data/misc/wifi/WifiConfigStore.xml | grep -oP '(?<=psk=\").*(?=\")'"
If the command did not work, try an alternative:
adb pull /data/misc/wifi/WifiConfigStore.xml
Then open the downloaded file in any text editor and find the line <string name="PreSharedKey"></string> โthere will be a password between the tags.
โ ๏ธ Attention: On Android 9 and newer, the path to the password file may differ. If the command returned an error Permission denied, then the method will not work without root access.
Install ADB drivers on the PC
Enable USB debugging on the phone
Connect the phone with the original cable
Allow access to data on the phone (if prompted)
-->
4. Applications for viewing passwords (require root or special conditions)
There are dozens of applications that promise to show saved Wi-Fi passwords. However, most of them either do not work without Google Play There are dozens of apps that promise to show you your saved Wi-Fi passwords. However, most of them either do not work without root accessor require connection to a computer. We tested several and selected those that at least somehow performed their function.
| Application | Root required? | Features | Link |
|---|---|---|---|
| WiFi Password Viewer | โ No | Works only on older versions of Android (up to 9). The new ones show a QR code. | Google Play |
| WiFi Password Recovery | โ Yes | Shows all saved passwords, but requires root. There is export to a file. | Google Play |
| Root Browser | โ Yes | File manager with access to system folders. Passwords are stored in /data/misc/wifi/. |
Google Play |
If you do not have root access, these applications are unlikely to help. However, on phones with MIUI or Flyme sometimes a workaround works: some applications can read passwords from the system cache if they were recently entered manually.
How to trick applications without root?
Some applications (for example, WiFi Password Viewer) may show the password if you have just connected to the network manually. The system temporarily stores it in RAM. Try:
1. Disconnect from Wi-Fi.
2. Connect again by entering your password manually.
3. Quickly open the application - sometimes the password is displayed in time.
5. Manual password extraction with root access (for advanced)
If your phone has root access, you can manually find the password file. This method works on 99% of devices, but requires caution - incorrect actions can disrupt the system.
Instructions:
- Install any root explorer (for example, Root Explorer or Solid Explorer with root access enabled).
- Go to the path:
/data/misc/wifi/or (on new versions of Android):
/data/misc/wifi/WifiConfigStore.xml - Open file
WifiConfigStore.xmlin a text editor. - Find blocks with the tag
<network>. Inside there will be a line:your_password
On some firmware (for example LineageOS), passwords can be stored in encrypted form. In this case, the command will help:
su
cat /data/misc/wifi/*.conf
โ ๏ธ Attention: Changing or deleting files in /data/misc/wifi/ can lead to losing all saved networks. Make backup copies!
Root access gives you full control over the system, but voids the warranty and increases the risk of virus infection. Use it only if you understand the consequences.
6. Alternative methods: if nothing helps
If none of the methods worked, radical measures remain. Here's what you can try:
- ๐ Resetting the router: Click the button
Reseton the back of the router (hold for 10 seconds). This will reset the password to the factory one (indicated on the sticker). - ๐ก Connecting via WPS: If the router supports
WPS, you can connect without a password (but this method is insecure and is often disabled). - ๐ป Login to the panel router: Open
192.168.1.1or192.168.0.1in the browser, enter your login/password (usuallyadmin/admin), and look at the password in the Wi-Fi settings.
Important: If you rent a home or use a corporate network, resetting the router may violate the rules of use. Check the access rights with the network administrator.
If the phone is not yours (for example, you are trying to โborrowโ Wi-Fi from a friend), remember: unauthorized access to other people's networks may be considered a violation of the law (in Russia - Article 272 of the Criminal Code of the Russian Federation โIllegal access to computer informationโ). All methods in this article are intended to work only with own devices and networks.
FAQ: Frequently asked questions about retrieving Wi-Fi passwords on Android
Is it possible to find out the Wi-Fi password without root access on any phone?
No, not on any phone. On most modern smartphones (especially with โpureโ Android or firmware from Samsung, Huawei), you cannot get a password without root or ADB. The exception is phones Xiaomi and some models Realmewhere there is a built-in viewing function.
Why does ADB not show the password, although debugging is enabled?
Most likely, you Android 10+where access to system files are limited. Also, the reason may be:
- Lack of superuser rights (
sudoes not work). - Changed path to the Wi-Fi configuration file (on some firmware it has been moved).
- Blocking the command by the manufacturer (for example, on Huawei).
Try an alternative command: adb shell settings get global wifi_watchlist.
Is it possible to find out the password for Wi-Fi to which the phone was connected a long time ago?
Yes, if the network is saved in the phone's memory. Passwords are stored in the system file until you forget the network manually or do not reset the settings. However, on some firmware old passwords may be encrypted, and without root they cannot be retrieved.
Is it safe to use applications for hacking Wi-Fi?
Absolutely not. Applications that promise to โhackโ other peopleโs networks:
- Often contain viruses or spyware.
- May violate the laws of your country.
- Do not work on modern routers with
WPA3.
The only legal way is to get the password from the owner of the network or reset the router (if it is yours).
How to protect your Wi-Fi from password extraction?
To make it harder for those who try to find out your password:
- Use
WPA3instead ofWPA2(in settings router). - Disable
WPS- this is a vulnerable protocol. - Change the password regularly (every 3-6 months).
- Configure
MAC filtering(allow connections only to known devices).
Also, do not store the password in notes or screenshots on the phone.