It's quite common to need to connect a new device to your home wireless network, but you've forgotten the password and can't access the router's web interface. Modern smartphones running the operating system Android Store data about previously used networks in secure memory, making it easy to restore access to the access key. This is especially important for users who haven't changed their security settings in a while or who use complex character combinations that are impossible to remember by heart.
Depending on the version of the operating system installed, the methods for obtaining this information may vary significantly. If you own a device with Android 10 or newer, the procedure is extremely simplified and does not require superuser rights. For older versions, such as Android 9 and below, more complex technical manipulations or the presence of root rights.
In this article, we'll cover all the current methods for recovering lost data, from standard interface functions to advanced debugging techniques. You'll learn how to quickly generate a QR code for guests or extract a text key through system files. The key is to proceed carefully to avoid disrupting network configurations.
Using the QR code feature on newer versions of Android
Starting with the tenth version of the operating system, engineers Google We've implemented a native feature for exchanging wireless network data via QR codes. This is the simplest and most secure method, requiring no third-party software or extended system access rights. This mechanism works on most modern smartphones from various manufacturers. Samsung, Xiaomi, Pixel and other brands that use a clear shell or slight modifications of it.
First, you need to go to the wireless settings menu. Find the section Settings → Network & Internet → Wi-FiA list of available networks will be displayed, and the currently active connection will be marked with the appropriate status. Click on your network's name or the gear icon next to it to open the detailed configuration menu.
⚠️ Note: On some smartphone models (for example, older MIUI or OneUI firmware), the "Share" or "QR code" button may be hidden in an additional menu or require identity verification via a fingerprint scanner or entering a screen unlock PIN.
In the window that opens, look for a button labeled "Share," "QR code," or a square code icon. Once clicked, the system will generate a graphic code containing the encrypted information. Network SSID and the password in plain text. Often, the password is displayed in plain text directly below the image of the code. If the text is hidden, you can take a screenshot and open it in any QR code reader app (such as Google Lens or Yandex) to see the text string.
View saved passwords using Google Passwords
Ecosystem Google offers a built-in password manager that syncs data across devices linked to the same account. If syncing is enabled on your smartphone, your WiFi network keys may be automatically saved in a secure vault. This method is convenient because it allows you to access data even from another device by logging into your account.
To use this method, open your phone's default settings and go to the "Google" section. Next, select the "Autofill" tab and tap "Autofill by Google." In the menu that opens, find the "Passwords" or "Password Manager" section. This is where all your saved credentials are stored, including website logins and WiFi networks.
Find the name of your wireless network in the list. The system will ask you to verify your identity using biometrics or a pattern. After successful authentication, click the eye icon to reveal the hidden symbol. You'll see a text string that you can copy or rewrite.
- 🔒 Data is securely encrypted and accessible only after confirmation from the device owner.
- 🔄 Synchronization occurs automatically when connected to the Internet, ensuring the database is up-to-date.
- 📱 Passwords can be accessed not only from a phone, but also through a browser Chrome on the computer.
ADB Method for Android Without Root
For devices with versions Android Below 10, where the QR code function is missing, and in the absence of superuser rights, the only legal way is to use the debug bridge ADB (Android Debug Bridge)This method requires a computer (Windows, macOS, or Linux) and a cable to connect the smartphone. It allows you to read system configuration files that are usually hidden from the user.
The first step is to enable developer mode on your phone. Go to Settings → About phone Tap "Build number" seven times quickly. A new section called "Developer options" will appear in the Settings menu. Inside, find and enable the "USB debugging" toggle.
Next, connect your smartphone to your computer. Your PC must have the drivers for your device and the platform installed. ADBOpen a command prompt or terminal in the ADB folder and enter the following command to test the connection: adb devicesA debugging permission request will appear on your phone's screen, which you must confirm.
adb pull /data/misc/wifi/wpa_supplicant.conf wpa.conf
After the command is successfully executed, a file will appear in the ADB folder on your computer. wpa.confOpen it with any text editor (Notepad, Notepad++). Inside the file, find the block network, corresponding to your network. Field psk will contain the desired password in clear text.
⚠️ Attention: On some modern smartphones (especially with custom shells like MIUI or EMUI), access to the file wpa_supplicant.conf It may be restricted even through ADB without root access. In this case, this method won't work, and alternative solutions will need to be found.
Gaining access via root rights and file managers
If your device is unlocked Bootloader and superuser rights are established (Root), the process of extracting the password becomes trivial. Root access gives complete control over the file system, allowing reading of any configuration files, including those storing network keys.
To implement this method, you will need a file manager with root access support, for example, Root Explorer, Solid Explorer or MT ManagerAfter installing the app, grant it superuser privileges when you first launch it. Go to this path: /data/misc/wifi/.
There is a file in this directory wpa_supplicant.conf (or WifiConfigStore.xml (on newer versions of Android). Open it with the built-in text editor. The file structure is a list of networks with their parameters. Find the line ssid="Your_Network_Name", and immediately below it there will be a line psk="YOUR_PASSWORD".
Risks of Rooting
Rooting voids the manufacturer's warranty, may brick your device, and makes banking apps unusable without additional security settings.
An alternative to manual search can be the use of specialized applications from the store. Google Play, such as WiFi Password ViewerThese programs automatically read the contents of the system file and display a convenient list of all saved networks. However, using such applications requires caution, as they access critical data.
- 📂 The configuration file may have different names depending on the OS version (for example, WifiConfigStore.xml).
- 🛡️ Rooted apps may request excessive permissions, so check their reputation.
- 💾 Before making any changes to system files, it is recommended to make a full backup of your data.
Analysis of router configuration files
If none of the software methods on the smartphone itself help, there's always the hardware option—adjusting the router's settings. The WiFi key is stored in the router's configuration, and if you have access to its web interface (usually through a browser), you can view or change the password.
To access your router's control panel, you need to know the default gateway IP address. On Android, you can find it by going to Settings → Wi-Fi → (Network name) → DetailsThe "Gateway" or "Router" parameter usually has an address of the form 192.168.0.1 or 192.168.1.1Enter this address into the address bar of your browser.
The system will ask for your login and password to access the admin panel. If you haven't changed them, they are often found on a sticker on the bottom of the device (standard pairs are: admin/admin, admin/passwordIf the data has been changed and forgotten, you will have to reset the router to factory settings (Hard Reset) using the button on the case, which will completely reset all internet settings.
| Router brand | Standard IP | Default login | Default password |
|---|---|---|---|
| TP-Link | 192.168.0.1 | admin | admin |
| ASUS | 192.168.1.1 | admin | admin |
| D-Link | 192.168.0.1 | admin | (empty) |
| Xiaomi | 192.168.31.1 | admin | specified during setup |
☑️ Check before resetting your router
Frequently Asked Questions (FAQ)
Is it possible to find out the WiFi password if the phone has never connected to this network?
No, this is impossible. Android only stores data about networks to which the device has successfully connected in the past. Obtaining the password for another network without the owner's permission requires brute-force attacks, which are illegal and beyond the scope of this guide.
Is it safe to use password viewer apps from the Play Market?
Using such apps is only safe if you have root privileges and trust the developer. However, keep in mind that any app that accesses system password files could potentially leak that data to third parties. It's best to use built-in system tools or the ADB method.
What should I do if the wpa_supplicant.conf file is empty or unreadable?
On modern versions of Android (11+), data can be stored in XML format (WifiConfigStore.xml) or be encrypted. If the file is empty, try searching for a file with the extension .xml in the same folder. If this doesn't help, then access to the file system for reading this data is denied without full root privileges.
Will resetting network settings on Android reset my WiFi password?
Yes, reset network settings (Settings → System → Reset settings → Reset Wi-Fi, mobile data, and Bluetooth settings) will delete all saved networks and their passwords from your device. You'll have to enter your access keys again.