The situation when you need to connect a new device to a wireless network, but you have forgotten the password, occurs quite often. Fortunately, modern smartphones based Android store data about saved networks, and in most cases they can be retrieved without the use of complex software. If your phone is already connected to the router or has been connected before, the secret combination of characters is securely encrypted in the system, but is available for viewing by the owner.
In this article we will analyze in detail all the legal and technical ways to gain access to the security key. We will look at standard operating system functions available on Android 10 and newer, as well as specific methods for older firmware versions. You will learn how to generate a QR code for fast data transfer and which system files are responsible for storing the network configuration.
It is worth noting right away that the procedures may differ slightly depending on the manufacturer's shell, be it MIUI, One UI or pure Stock Android. However, the general algorithm of actions remains the same for the entire ecosystem. The main requirement for most simple methods is the presence of an active connection to the network or saving its profile in the device memory.
View through settings and QR code on modern versions
Starting with the tenth version of the mobile operating system, Google has introduced a native function for exchanging network data via QR code. This is the easiest and safest method that does not require installing third-party applications or obtaining advanced access rights. Just go to the settings menu for the system to generate a graphic key.
First, open the section Settings and go to item Wi-Fi or Connections. Find the active network you are currently connected to in the list and click on it. The connection information window that opens often displays a โShareโ button or a gear icon next to the network name.
After clicking, the system will ask you to confirm your identity using a fingerprint, Face ID, or screen unlock pattern. This is a necessary measure Securityto ensure that only the owner of the device sees the password. After successful authentication, a QR code will appear on the screen.
โ ๏ธ Attention: On some smartphone models, for example, from Xiaomi or Samsung, a text line with a password may immediately be displayed under the QR code. If there is no text, the code still contains all the necessary information.
If the password is not written in text under the image, you will need a second smartphone with a camera and QR code scanning capability. Point the camera at the screen of the first phone. In the notification or in the built-in scanner you will see a line like WIFI:S:MyNetwork;T:WPA;P:12345678;;. The characters after P: and before ;; are your desired password.
If you do not have a second phone, take a screenshot of the QR code and open it through the Google Lens application or any built-in scanner in the gallery.
Using third-party applications without root access
For devices where the QR code generation function is missing or implemented inconveniently, there are specialized utilities in the store Google Play. They allow you to view saved networks using standard system APIs, if the Android version allows this. Such applications often have a convenient interface for managing the list of connections.
One โโof the popular solutions is an application WiFi Password Viewer or highly rated analogues. After installation, the app scans the system list of saved access points. It is important to understand that without root access such applications can only show those networks that support the sharing function through the system interface.
- ๐ฑ Download a verified application from the official Google Play store, avoiding dubious sources.
- ๐ Grant the application the necessary permissions to access the location and status of the network.
- ๐๏ธ Find the desired network in the list and click the โShow passwordโ button or the eye icon.
- ๐ Copy the combination of characters to the clipboard for later entry on another device.
The effectiveness of such apps directly depends on the security policy of your firmware. On some devices, manufacturers block access to Wi-Fi data even for trusted applications. In this case, the screen may remain blank or show only the names of networks without access keys.
Access system files via root access
If standard methods do not work, and your device has root access (superuser rights), you can get direct access to system configuration files. This is the most reliable method, working on absolutely any version of Android, regardless of the manufacturer's shell.
You will need a file manager that supports superuser rights, for example Root Explorer or Solid Explorer. When starting such a manager, you need to give it access to the root directory of the system by clicking the corresponding button in the interface (often this is the root icon or switch RO/RW).
Navigate to the following path in the file system: /data/misc/wifi/. In this folder there is a file named WifiConfigStore.xml (on new versions) or wpa_supplicant.conf (on old). This is where all data about connected networks is stored in open or encrypted form.
โ ๏ธ Attention: Editing or deleting files in the folder
/data/can lead to resetting all network settings or unstable operation of the Wi-Fi module. Proceed with caution and do not change file access rights unnecessarily.
Open. file WifiConfigStore.xml as a text document. Inside you will find blocks <Network>containing fields <SSID> (network name) and <PreSharedKey>. The value of the tag PreSharedKey is your password in unencrypted form. file .conf look for the line psk="your_password".
What to do if the file does not open?
If the file opens in the form of strange characters, it may be encrypted at the system level (on Android 10+ with data encryption enabled. This will help in this case). only creating a backup and restoring on a device with an unlocked bootloader, or using specialized Magisk modules.
Login to the router control panel
An alternative way to find out the password is not to extract it from the phone, but look in the settings of the router itself. Since your phone is already connected to the network, it has full access to the local control panel of the router. This method is universal and not. depends on the version of Android.
First you need to find out Gateway IP address. Go to the Wi-Fi settings on your phone, click on the name of the active network and find the โGatewayโ or โRouterโ field. Most often this is an address like 192.168.0.1 or 192.168.1.1. Enter this address into the address bar of any browser on your phone.
The router authorization page will open. If you have never changed your login and password, they are indicated on a sticker on the bottom of the device (usually this admin/admin). If the data has been changed and forgotten, this method will not work without resetting the router to factory settings.
| Manufacturer | 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 | (set during setup) |
| Zyxel | 192.168.1.1 | admin | 1234 |
After entering the control panel, find the section Wireless, Wi-Fi or Wireless mode. The security subsection (Security) will display the current network key. Here you can change it to a more complex and reliable one if you suspect that it has been compromised.
Access to the router settings is only possible from within the network. If you disconnect from Wi-Fi, logging into the control panel wirelessly will become impossible.
Restoring access through a linked Google account
In the Google ecosystem, there is a password synchronization function that can save the situation if you have another device running Android or a computer with a browser. Chrome, authorized under the same account. Wi-Fi passwords can be saved in the cloud if synchronization is turned on.
Log into the site passwords.google.com from any device where you remember your Google account password. In the list of saved data, find the name of your wireless network. The system will require re-authentication to view confidential data.
This method does not work for all routers and not on all devices, since the function of saving Wi-Fi passwords to the cloud was introduced relatively recently. However, if it was active, you will be able to see the password in its clear form by clicking on the eye icon next to the network entry.
- ๐ Make sure that Google data synchronization is turned on on your phone.
- ๐ Check if the password is saved in the Chrome password manager.
- โ๏ธ Use the Google web interface to view encrypted data.
It is worth considering that that synchronization may have a delay. If you have just connected to the network, the password may not yet have time to get into the cloud storage. In this case, it is better to use the local methods described above.
โ ๏ธ Attention: The interface and capabilities of the Google Account menu may change depending on service updates. If you do not find the section you need, check the synchronization settings in the phone menu.
Resetting network settings and extreme measures
If none of the methods helped, and Internet access is critical for another device, you can consider resetting the network settings on the phone itself. This will not delete your personal files or applications, but it will forget all saved Wi-Fi networks, Bluetooth pairings and mobile settings.
After the reset, the phone will try to connect to known networks again. If you have a device that's already connected and has "guest access" functionality or the ability to create a hotspot with the same name and password, you'll be able to sync them. However, the reset itself will not show the old password.
The only guaranteed way in case of complete data loss is physical access to the router. Press the button Reset on the router body (usually you need to hold it for 10-15 seconds with a paper clip). The router will return to factory settings, and the password will be as indicated on the sticker on the bottom of the device.
โ๏ธ Actions before resetting the router
Remember that resetting the router will disconnect all devices from the network. You will have to configure the network name and password again. Use this method only when other options have been exhausted and you are willing to spend time reconfiguring the equipment.
Is it possible to find out the password if the phone is not connected to the network, but has saved it before?
Yes, this is possible. Android stores profiles of all networks to which the device has previously connected. You can use methods with root access (file access WifiConfigStore.xml) or try to restore data via Google Account if synchronization was enabled at the time of the last connection.
Is it safe to use applications to view passwords?
Applications from the official Google Play store that do not require root access use legal ones system APIs and secure. However, apps that require root privileges can pose a risk if they contain malicious code. Always check reviews and the developer before installing.
What to do if the QR code is not scanned by the camera?
Try changing the distance to the screen, ensuring good lighting, or wiping the camera. You can also take a screenshot of the QR code and open the image through the Google Lens application or gallery with a built-in scanning function.
Why does the password look like a string of characters in the configuration file?
On some versions of Android and encryption types (for example, WPA3 or manufacturer-specific implementations), the password may be stored in hashed form. In this case, it is impossible to decrypt it back into readable text without special tools, and it will be easier to reset the router settings.