When trying to connect a new gadget to a known network, the user often encounters an authorization error due to a forgotten access key, which was previously saved in the memory of an Android smartphone. Modern versions of the system allow you to instantly view this data through Wi-Fi settings, while on older models the procedure for retrieving a forgotten password requires the use of additional tools or superuser rights.
The method of restoring access directly depends on the firmware version and availability root access. Starting with Android 10, Google introduced a feature to generate QR codes to quickly connect guests, while simultaneously allowing the owner to see a text version of the security key. On earlier versions of the system, such as Android 9 Pie and below, it is impossible to obtain this data using standard means without deep intervention in the file system.
In this article we will analyze in detail all the current methods: from standard interface settings to the use of third-party software and terminal emulators. You will learn where network configuration files are stored and how to safely extract the necessary information from them without compromising the integrity of the system.
Built-in Android 10 and later tools
Starting with the tenth version of the mobile operating system, the mechanism for working with wireless networks has been significantly redesigned for the sake of user safety and convenience. Now, in order to share access to the network, you do not need to dictate a complex combination of characters. It is enough to generate a special QR codewhich contains all the encrypted information about the access point.
The process of viewing a saved key is intuitive and does not require installing additional software. You need to go to the device settings and find the section responsible for connections. The interface may differ slightly depending on the manufacturer's shell, for example MIUI from Xiaomi or One UI from Samsung, but the logic of action remains the same.
After going to the Wi-Fi menu, you will see a list of available networks. The current connection is usually at the top of the list or highlighted with a shield icon. By clicking on the gear next to the network name or on the name itself, you will be taken to a detailed configuration menu. This is where the desired function is hidden.
⚠️ Attention: On some devices with custom skins, the “Share” button may be hidden in an additional menu, which is called by a long tap or swipe up on the network card.
When you click on the code generation button, the system will ask for identity confirmation. This could be input PIN code, fingerprint unlocking or face scanning. This security measure is necessary to prevent the theft of passwords by attackers who have gained physical access to an unlocked phone.
After successful authentication, a large QR code will appear on the screen. Below it, in most modern Android builds, a text line with a password is immediately displayed. If the text is hidden by asterisks or missing, you can take a screenshot of the screen and open it in any application for reading QR codes or in Google Lens.
If there is no text under the QR code, take a screenshot and scan it through the Google Lens application or any barcode scanner - they will instantly decipher the contents and show the password in text form.
Using router settings through a browser
If the built-in phone functions do not work for some reason or you have a device with an old OS version, the most reliable way is to log into the router control panel. This method is universal and works on any device that can connect to a local network, be it a smartphone, tablet or laptop.
First you need to find out Gateway IP address. It is usually listed on a sticker on the bottom of the router along with the factory login information. Standard addresses most often look like 192.168.0.1 or 192.168.1.1. Enter this address into the address bar of any browser on your phone.
The administrator authorization page will open. Here you will need a login and password. If you have never changed these details, they are also listed on the device sticker (often admin/admin). If the data is changed and lost, you will have to reset the router to factory settings, which will require reconfiguring the Internet.
After successfully logging into the control panel, navigation depends on the equipment model. You need to find the section responsible for the wireless network. It may be called Wireless, WLAN or Wi-Fi Settings. Inside this section, look for the subsection Wireless Security or Security.
In the field WPA Pre-Shared Key or Wireless network password the current access key will be displayed. It is often hidden with dots for security. There is usually a “Show Password” checkbox or an eye icon next to it. By activating it, you will see a text string that can be rewritten or copied.
| Manufacturer | Standard IP | Path to password | Login by default |
|---|---|---|---|
| TP-Link | 192.168.0.1 | Wireless -> Wireless Security | admin |
| ASUS | 192.168.1.1 | Wireless network -> General | admin |
| D-Link | 192.168.0.1 | Wi-Fi -> Security settings | admin |
| Zyxel | 192.168.1.1 | Wi-Fi network -> Access point | admin |
| Tenda | 192.168.0.1 | Wireless Settings -> Wireless Security | admin |
⚠️ Attention: Router firmware interfaces are regularly updated. If you cannot find the desired menu item, check the official instructions for your specific model on the manufacturer's website.
Viewing system files via root access
For users with superuser rights (root), the process of retrieving the password becomes a trivial task that does not require connecting to a router or code generation. All data about wireless networks in Android is stored in a special system configuration file.
This file is located along the path /data/misc/wifi/wpa_supplicant.conf. In newer versions of Android, the path may differ slightly, but the file name remains the same. To access this directory, you need a file manager that supports root access, for example Root Explorer or MT Manager.
After granting the application superuser rights, go to the specified path and open the file wpa_supplicant.conf in a text editor. Inside you will see a list of all the networks the device has ever connected to. Each entry contains an SSID (network name) and a parameter psk, which is your password.
network={
ssid="MyHomeWiFi"
psk="SuperSecretPassword123"
key_mgmt=WPA-PSK
}
The value specified in quotes after psk=is the security key you are looking for. This method works on all versions of Android that have root access, regardless of what shell is installed. However, obtaining superuser rights may void the warranty on the device.
Risks of obtaining root access
The rooting process varies for different models and can lead to “bricking” the device if errors occur. In addition, banking applications and some games with anti-cheat protection will stop working on a rooted phone without additional settings to hide rights.
Password recovery applications
In the store Google Play there are many utilities that position themselves as tools for recovering forgotten passwords. However, it is important to understand how they work so as not to become a victim of scammers or install malware.
Most of these applications do not “hack” Wi-Fi, as is often written in the description. They simply read the same file wpa_supplicant.confthat was discussed in the previous section. Therefore, without having root-rights on the device, these apps are useless and will not be able to show the saved keys.
- 📱 WiFi Password Viewer is a simple application that requires root. Shows a list of networks and passwords in a convenient form, allows you to copy data to the clipboard.
- 🔓 ES File Explorer (old versions) - a powerful file manager that, if you have superuser rights, allows you to manually enter system folders and open the config.
- 🛡️ WiFi Key Recovery - a utility specifically designed for retrieving WPA/WPA2 keys from the Android system storage.
If your device is not rooted, the only thing such apps can do is show passwords from networks that you previously shared through the QR code function, if this information was cached in an accessible memory area. Otherwise, they will require superuser privileges.
Without root access, third-party applications do not have access to the system password file due to security limitations of the Android kernel.
Synchronization with a Google account
Modern smartphones are tightly integrated with the Google ecosystem. The backup feature allows you to save many device settings to the cloud, including wireless network configurations. This opens up another potential path to regaining access.
If you had data syncing enabled on your device, your Wi-Fi password may have been saved in your Google Account. When setting up a new phone or after resetting the settings, the system will automatically offer to restore data from a backup, including passwords from known networks.
Unfortunately, Google does not provide a direct interface on the site or in the application where you can simply go and see a list of saved Wi-Fi passwords in clear text. The data is stored in encrypted form and is used only when setting up the device. However, if you have access to another device in the same ecosystem (for example, a tablet or an old phone), the password can be synchronized where it can be viewed through the settings.
This method is passive and is not suitable for situations where you urgently need to find out the password here and now on one specific device without the presence of other gadgets. However, this is an important aspect digital hygienethat is worth remembering when initially setting up your smartphone.
Methods for devices without Root and older versions
Owners of smartphones based on Android 9 Pie and below who do not have superuser rights, find themselves in the most difficult situation. The security system of these OS versions strictly limits application access to system files, and there is no QR code function.
The only legal and working way in this case is to use a computer with the utility installed ADB (Android Debug Bridge). This method requires enabling USB debugging in the “For Developers” menu and connecting the phone to the PC via a cable.
Using the command adb backup you can try to backup your Wi-Fi settings, however, on many modern devices this function is also blocked by firmware developers. If the backup works, you can unpack the backup file on your computer using special software and find a configuration file with passwords inside.
adb backup -f wifi.ab -noapk com.android.providers.settings
This method requires technical skills and does not guarantee 100% success, as it depends on the specific phone model and firmware version. If this method does not work, the only option left is to enter the router settings described above, since it does not depend on the version of Android on your phone.
⚠️ Attention: Enabling USB debugging allows expanded access to the device. Do not leave this mode turned on constantly and do not connect your phone to unfamiliar computers in public places.
☑️ Preparing to use ADB
Frequently asked questions (FAQ)
Is it possible to find out the password for someone else's Wi-Fi from using special apps?
No, this is impossible using legal methods. apps that promise to “hack” Wi-Fi are either fraudulent or exploit vulnerabilities in the WPS protocol, which are disabled by default on modern routers. Connecting to someone else's network without the owner's consent is a violation of the law.
Why is there no "Share" button in the Wi-Fi settings on my Android 11?
It depends on the manufacturer's shell. Some companies (for example, older versions of MIUI or custom ROMs) may have changed the location of this function. Try clicking on the network name itself rather than the gear, or look for the QR code icon at the top of the network settings screen.
Is it safe to store passwords in the wpa_supplicant.conf file?
Yes, this file is protected by system permissions. It can only be read by processes running as superuser (root) or system services. Regular applications do not have access to it, which ensures the security of your data.
What should I do if I forgot the password for the router’s admin panel?
If the standard pair (admin/admin) does not work, the only way out is to perform a hard reset (Hard Reset). To do this, you need to press the Reset button on the router case for 10-15 seconds. After this, the device will return to factory settings, and the password will be the same as indicated on the sticker, but the Internet settings will have to be entered again.
Can a virus steal the Wi-Fi password from my phone?
Theoretically, yes, if the device has root access and you have given the malicious application access to system files. On regular devices without superuser rights, the risk of Wi-Fi password theft through the app is minimal due to the Android sandbox.