It's a common situation to need to connect a new gadget to your home network, but you've forgotten the password, and the router is in another room or unreachable. Fortunately, modern operating systems, including Android, store data about previously connected networks for automatic authentication. This allows smartphone owners to regain access to the secret combination of characters without having to reset the router to factory settings.
In this article, we'll take a detailed look at all the current methods for retrieving a forgotten security key. We'll cover standard operating system functions, QR code capabilities, and more complex technical methods using console commands. It's important to understand that the success of a particular method directly depends on the version. Androidinstalled on your device and the access rights you have.
It's worth noting right away that simply hacking someone else's network from a phone is impossible without specialized tools and vulnerabilities, but recovering data about your own network is a solvable task. Below are proven steps to help you quickly recover from a forgotten password.
View saved networks on Android 10 and later
Starting with version 10 of Google's mobile operating system, the interface has added a highly useful feature that allows not only automatic connection but also sharing access with other devices. This feature allows access to viewing passwords in text format, although it was originally intended for generating a QR code.
First, you need to go to the wireless settings. Find the section Settings → Network & Internet → Wi-FiA list of all networks you've previously connected to will appear here. If the desired network is active and your phone is within range, it will be marked as "Connected."
Click the gear icon next to your network name or tap the name itself to open the detailed menu. At the bottom of the screen or at the top (depending on the manufacturer's shell, for example, MIUI or OneUI) you'll see a "Share" button or a QR code icon. Tapping this button will require you to verify your identity using a fingerprint scanner, PIN, or pattern.
⚠️ Note: On some smartphones (such as older Xiaomi or Samsung models), the password may not be displayed in text directly below the QR code, but rather hidden by dots. In this case, use the Google Lens feature built into your camera and point it at the screen with the code.
After successful authentication, the system will generate a QR code. The code itself is usually written in small print underneath this image. If there's no text, simply take a screenshot and open it using Google Photos or any QR code scanner. The system will recognize the data and display the password in a notification.
Mobile operating system interfaces and manufacturer shells are constantly updated. Button locations and menu item names may differ from those described. If you can't find the item you need, check the "Help" section in your smartphone's settings or the manufacturer's official website.
Using a QR code to restore access
The QR code method is the most universal and secure, as it doesn't require installing third-party software or gaining root access. It's based on the WPA/WPA2 encryption standard, which encodes the SSID and password into a pattern.
If your device doesn't display the password as text under the QR code, you'll need a second smartphone or tablet. Launch the camera or code-scanning app on the second device. Point the camera at the first phone's screen, where the connection code is displayed.
- 📱 Point the camera of the second phone at the QR code on the screen of the first.
- 🔓 Wait for a pop-up notification asking you to connect to the network.
- 👁️ Don't click "Connect," but look at the notification details or click the eye/information icon to see the text password.
This method is especially useful for devices where the manufacturer has hidden the text field for security purposes. It's important to note that the generated code is valid for a limited time (usually a few minutes), after which it must be regenerated to ensure security.
Why might the password not be displayed?
Some manufacturers (for example, Huawei on older EMUI firmware versions or Samsung in enhanced security mode) may completely hide the password even in the Share menu. In this case, the only solution is to use Google Lens or root access.
Getting a password through Google Account and synchronization
Modern smartphones based on Android Tightly integrated with the Google ecosystem. If password syncing is enabled on your device, all saved Wi-Fi network keys are automatically stored in your account. This allows you to access your data even from another device, such as a computer or tablet.
To do this, open a browser on any device signed in to your Google account and go to passwords.google.com. Here, in the "Passwords" or "Password Manager" section, you'll find a list of all your saved data. Enter your network name (SSID) in the search bar.
Once the desired entry is found, the system will ask you to confirm your identity (enter your account's master password or complete biometric verification). You'll then see your login and password in plain text. This method works regardless of the Android version on your phone, as long as you have internet access and have previously enabled syncing.
Make sure the "Autofill" feature is enabled in your device's security settings. Without this setting, your data may not be saved to the cloud, making this method useless.
Using the ADB console without root rights
For advanced users who don't want to gain root privileges but have access to the computer, there is a method using the debug bridge. Android Debug Bridge (ADB)This tool allows you to send commands to the system that are not normally available through the standard interface.
First, you need to activate developer mode on your smartphone. Go to Settings → About phone Tap the build number seven times quickly. After the "You are now a developer" message appears, return to the main Settings menu and find the "Developer options" section. Enable "USB debugging" there.
Connect your phone to your computer via a USB cable. On the computer with ADB installed, open the command prompt and enter the following command to test the connection: adb devicesA debugging permission request will appear on your phone's screen—confirm it.
adb shell dumpsys wifi | grep "mConfigKey"
However, on modern Android versions (starting with 9-10), access to Wi-Fi configuration files via ADB without root access is often restricted by security policies. If a direct command doesn't work, you can try copying the configuration file if permissions allow:
adb pull /data/misc/wifi/WifiConfigStore.xml
If the file has been successfully copied, open it on your computer with any text editor. Find the tag <SSID> with the name of your network, and a little lower in the tag <PreSharedKey> will contain the password you are looking for in plain text.
⚠️ Note: On devices with Android 11, 12, 13, and newer, access to files in the /data/misc/wifi folder via ADB without root access is blocked by the system. In this case, this method will only work on older devices or those with root access.
Gaining Root Access
If your device has superuser rights (Root), the password recovery process becomes trivial. Root privileges provide full access to the file system, including system directories where all OS configuration files are stored.
To implement this method, you will need a file manager with root support, such as Root Explorer, ES File Explorer (old versions) or Solid ExplorerAfter launching the application, grant it superuser rights when prompted.
Go to the following path: /data/misc/wifi/. In this directory, you are interested in the file WifiConfigStore.xml (on older versions of Android before 4.x this could be a file wpa_supplicant.conf). Open this file as text.
- 📂 Find the block in the code that corresponds to your network (search by SSID).
- 🔑 Search for the line
PreSharedKeyorpassphrase. - 📝 The value after the equal sign is your password.
This method is the most reliable and works on 100% of rooted devices, regardless of firmware version or smartphone model. However, rooting may void the device's warranty and carries risks if used improperly.
Wi-Fi Recovery and Analysis Software
In the store Google Play There are many apps that promise to reveal passwords. Most of them are either scams or require root access to work. However, there are utilities that can help analyze networks or manage connections.
Apps like WiFi Password Viewer or InstaWifi Often require root access to display saved keys. Without root access, they may only show the networks you're currently connected to, and even then, not always. Be careful when installing such programs: check the permissions they request.
Some antivirus packages and security managers (for example, from Kaspersky or ESET) have modules for checking Wi-Fi security, but they analyze network vulnerabilities rather than “extract” forgotten passwords from the system.
Table: Comparison of recovery methods
To help you choose the best method for your situation, we've prepared a comparison table. It will help you quickly assess the requirements and limitations of each method.
| Method | Root is required | Need a PC | Android version | Efficiency |
|---|---|---|---|---|
| QR code in settings | No | No | 10+ | High |
| Google Account | No | Optional | Any (with synchronization) | Average |
| ADB console | No (preferred) | Yes | Before Android 10 | Low (on new ones) |
| WifiConfigStore file | Yes | No | Any | 100% |
As the table shows, for most modern smartphone users, the built-in QR code function remains the optimal solution. It requires no additional software or complex setup.
Frequently Asked Questions (FAQ)
Is it possible to find out the Wi-Fi password if I have never connected to this network from my phone?
No, this is impossible. Android doesn't store passwords for networks the device has never connected to. To connect to a new network, you need to know the password in advance or use the WPS function (if supported by the router and phone). However, WPS often requires physical access to the router's pushbutton.
Are password viewer apps safe to use?
Using apps from unknown sources can be dangerous. They may request excessive permissions. It's better to use built-in system tools or trusted file managers if you have root access. Apps that promise "jailbreaking" are often malicious.
What to do if the QR code is not generated?
Try refreshing the Wi-Fi settings page or restarting your phone. If the issue persists, your Android OS version may be limited. In this case, try the Google Account method or connect your phone to a PC to use ADB.
Does this method work for corporate networks (WPA2-Enterprise)?
For corporate networks, a simple string password is often not used. Instead, a combination of a login, password, and certificate is used. Viewing the "password" in its usual form may not be possible because EAP-TLS or PEAP encryption is used. In this case, it's best to contact your system administrator.
Will the router password be reset if I look at it on my phone?
No, viewing the password through phone settings, a QR code, or system files is a passive operation. You're simply reading data already stored in the smartphone's memory. The router settings and the password itself remain unchanged.