It's common to find yourself in a situation where you urgently need to connect a new device or a guest to a wireless network, but the password has long been forgotten. Fortunately, the operating system Android Stores data about previously used connections, making it easy to retrieve the necessary information. Modern versions of mobile OS have significantly simplified this process, making it accessible to regular users without the need for superuser privileges.
Previously, to perform such an operation, it was necessary to install specialized software or receive root rights, which posed potential security risks to the device. Today, access to the system settings is sufficient to recover lost access data. We'll look at current methods that work on most modern smartphones, including devices from Samsung, Xiaomi, Google, and other manufacturers.
Before you begin, make sure your device is already connected to the desired access point or has been connected to it previously. If you've never connected to this network, you won't be able to recover the password out of thin air, as the system simply doesn't store such records. Below, we'll cover the operating system's built-in tools and alternative solutions in detail.
Using the standard QR code on Android 10 and later
Starting with the tenth version of the operating system, Google engineers have implemented a convenient QR code generation feature for quickly connecting other devices. This method is the simplest and most secure, as it doesn't require installing third-party software. To use it, go to Settings → Wi-Fi and click on the gear next to the active network.
A QR code will appear on the screen containing encrypted network data, including the password. Depending on your smartphone model (Samsung Galaxy, Xiaomi Mi, Pixel), the password may be written directly below the code. If there's no text display, simply take a screenshot and open it using Google Lens or any other QR code scanner installed on your phone.
Scanning your own QR code will recognize the data and display a notification with the password in plain text. This solution works on the vast majority of devices released after 2019. However, it's worth keeping in mind that some proprietary interfaces may differ slightly from the standard one.
It's important to note that for this feature to work, the device's screen must be unlocked, as the security system requires identity verification before revealing sensitive data. Also, the QR code is only valid for a short time or until you exit the Wi-Fi settings menu.
Viewing saved networks through system settings
Some versions of user interfaces, such as Xiaomi's MIUI or Samsung's One UI, allow you to view passwords for all saved networks, even those that are currently inactive. To do this, go to the Wi-Fi control menu and find the "Saved Networks" list or a similar option. This often displays all access points the smartphone has ever connected to.
Tapping a specific network may require confirmation via fingerprint, face scan, or screen unlock PIN. This is a standard measure. biometric protection, preventing unauthorized access to your data. After successful authentication, the system will display information about the network, often containing a password field or a "Share" button that generates a QR code.
⚠️ Attention: The settings interface may vary depending on the device manufacturer. If you don't see the "Saved Networks" option, your operating system may not support directly viewing passwords without root access.
Users of stock Android (Android One, Pixel) may need to perform additional steps, as the list of inactive networks is often hidden in the stock version of the system. In this case, using a backup or the command line is an effective solution, as discussed below.
☑️ Check access to settings
Using the ADB command line to retrieve data
For more advanced users who don't want to install third-party apps or don't have root access, a great solution is to use the debug bridge. ADB (Android Debug Bridge)This method allows you to interact with the system at a deep level through your computer. You'll need to install the device drivers and SDK Tools platform on your PC.
After connecting your smartphone to your computer in USB debugging mode, you can run a command to list all saved networks. Enter the following command in the terminal: adb shell dumpsys wifi or more specific adb shell cmd wifi list-networks (for Android 11+). The result will be a text log containing the network SSIDs and, in some cases, their passwords in cleartext.
adb shell dumpsys wifi | grep"mConfigKey"
This method is especially useful when the graphical interface doesn't respond. However, it requires a computer and basic command-line skills. A syntax error can result in the system simply not returning a result, but will not damage your data.
What to do if ADB doesn't see the device?
Make sure "USB Debugging" is enabled on your phone in the Developer Options menu. Also, check if the ADB Interface driver is installed in Windows Device Manager. Try replacing the USB cable or connection port, as some cables only support charging.
It's worth remembering that on newer Android versions, access to system logs via ADB may be restricted by security policies. In such cases, the command may return an empty result or hide password fields, leaving only the network names.
Password recovery apps without root
The Google Play Store offers a variety of utilities that promise to reveal saved passwords. Most of them, such as WiFi Password Viewer or WiFi Password Recovery, work by reading system configuration files. Without superuser rights, their functionality is often limited to displaying QR codes or viewing the networks the device is currently connected to.
These apps work by requesting access to the system's Wi-Fi settings. If the Android version allows it (usually up to version 10-11 without major limitations), the app will copy the configuration file. wpa_supplicant.conf and will attempt to parse it. In newer OS versions, this file is protected, and applications can only display network names.
- 📱 WiFi Password Viewer: Simple interface, shows passwords for available networks, if the OS version allows it.
- 🔑 Instabridge: A database of common passwords, but also has the function of viewing those stored on the device.
- 🛡️ WiFi Map: Allows you to share passwords and see neighboring networks; functionality for viewing your passwords is limited.
When using third-party software, always check the permissions the app requests. If a simple "password viewer" requires access to contacts, microphone, or geolocation, be wary and refuse to install it. The security of your personal data should be a priority.
Root method for full access
Availability of rights Root (superuser) access allows full access to the Android file system, including protected system directories. This is a "core" method that guarantees access to all saved passwords in plain text. However, gaining such access voids the device's warranty and may disrupt the operation of banking apps.
If you have root access, you will need a file manager that supports superuser rights, for example, Root Explorer or ES File Explorer (old versions). You need to follow the path /data/misc/wifi/ and open the file wpa_supplicant.conf. This text file stores all the passwords ever entered in the field. psk.
| Parameter | Description | Value in file |
|---|---|---|
| ssid | Network name | "Home_WiFi" |
| psk | Network password | "MySecretPass123" |
| KeyMgmt | Type of protection | WPA-PSK |
| Priority | Connection priority | 1 |
Editing this file is possible, but it is highly discouraged without understanding its structure, as a syntax error could cause the Wi-Fi module to stop working properly. For simple viewing, simply open the file as text. If you see a string of characters instead of a password, it means encryption is in use, which is difficult to decrypt without special keys.
⚠️ Attention: Rooting your device will void your manufacturer's warranty and may prevent you from using Google Pay or banking apps due to security breaches.
Resetting your router as a last resort
If none of the software methods work, or you've changed your phone and forgotten your password, and you can't access the router, a physical reset is the only option. Most routers have a physical reset button on the body. Reset or WPS/ResetBy holding it for 10-15 seconds, you will return the device to factory settings.
After resetting, the router will use the password found on the sticker on the bottom of the device (unless it was changed automatically by your provider). This will allow you to connect, but will require you to reconfigure all internet settings if they weren't saved in your provider profile.
Please note that after the reset, all connected devices will be disconnected from the network, and you will have to reconnect them using the new (factory) password. Therefore, make sure you have access to your ISP settings or contract to restore PPPoE or static IP settings, if necessary.
Frequently Asked Questions (FAQ)
Is it possible to find out the Wi-Fi password if I have never connected to this network?
No, this is technically impossible to do legally. The password is stored in the router's memory and in the memory of previously connected devices. If your device never knew this password, it has no way to get it. Hacking a WPA2/WPA3-protected network without prior access is prohibited by law.
Are password viewer apps safe to use?
Using trusted apps from the Google Play Store is relatively safe, but there's always a risk of data leakage. Apps with root access have full access to your system. It's recommended to uninstall such apps immediately after use and avoid leaving them running all the time.
Why can't I see a QR code on my Android 12?
In some skins (for example, older versions of MIUI or ColorOS), the QR code generation feature may be hidden or moved. Try tapping the "Share" or "Settings" icon next to the network name. If the option isn't there, the manufacturer may have restricted this feature.
Is the password saved in the Google account?
Yes, if you have sync enabled, Wi-Fi passwords may be saved to your Google account. You can check this by going to your Google account settings on your computer, going to "Security" → "Password Manager," where you may sometimes see saved networks.