Needing to connect a new device to a wireless network but losing or forgetting the password is one of the most common problems in the digital environment. Fortunately, the operating system Android Starting with certain versions, this information has been stored in memory, and it can be accessed in several ways. Smartphone owners no longer need to search for scraps of paper or delve into router settings if they've ever connected to this network before.
There are many nuances depending on the OS version and access rights. On modern devices with Android 10 and newer versions, the process is extremely simplified and does not require installing third-party software. However, for older models or specific cases, root rights or using special commands via a computer. Below, we'll discuss all possible options in detail.
It's important to understand that data security is a priority for Google, so access to the plaintext password is often hidden by standard system tools. However, the encryption system allows for extraction. security key Via a QR code or system files. We'll cover methods from the simplest to the most advanced, so you can choose the one that's right for your phone model.
Using the QR code sharing feature
The easiest and most reliable method, available on most modern smartphones, is generating a QR code for connection. Starting with Android 10, the system allows you to not only share access but also visually display the password under a graphic code. To do this, go to the settings menu and find the section responsible for Wi-Fi connections.
Click the name of the network you're currently connected to, or select the gear icon next to it. The menu that opens often includes a "Share" or "QR code" button. When you click it, the system may require you to verify your identity via fingerprint, pattern lock, or Face ID. After successful authentication, a code will appear on the screen.
⚠️ Note: On some operating systems (such as older versions of MIUI or EMUI), the password may be hidden behind asterisks even in this menu. In this case, take a screenshot and open the image in Google Lens or any QR code reader to reveal the text.
Below the graphic image, a line of the following type is often written in small font: WIFI:S:MyNetwork;T:WPA;P:MyPassword;;The code you are looking for is located after the symbol P: and until the next colon or semicolon. This is the default method, which doesn't require any additional software and works reliably.
View saved networks in Settings on Android 12 and later
In more recent versions of the operating system, the interface has become even more user-friendly. Google is gradually introducing a feature that allows passwords to be displayed directly in the network management menu. To find this option, open Settings → Network & Internet → Internet. This displays a list of all available and saved access points.
Unlike older versions, a view details button may be available for any saved network, even if you're not currently connected to it. By clicking the gear icon next to the desired name, you'll see a "Show Password" button or an eye icon. The system will again prompt you for biometric verification or input. PIN code screen unlock.
- 🔒 Access to data requires an active device screen lock.
- 📱 The feature works natively on Pixel, Samsung, Xiaomi, and other phones running stock Android.
- 👁️ The eye icon may be hidden in the "More" or "Details" additional menu.
If after all the manipulations the password is not displayed in text, but only prompts you to scan the code, it means that the manufacturer of your device has decided to hide this information for the purpose of securityIn this case, proceed to the next section or use the command line method if you have debugging access.
Using ADB commands to extract data
For advanced users who don't have root access but have USB debugging enabled, there's a way to retrieve the password via a computer. This method requires installing drivers. ADB (Android Debug Bridge) on a PC. First, you need to enable developer mode on your phone by quickly tapping the build number seven times in the "About phone" section.
Connect your smartphone to your computer via USB and open a command prompt or terminal in the ADB tools folder. You'll need to run a command to access the system file where Wi-Fi configurations are stored. Please note that on Android 10 and above, access to this file is (/data/misc/wifi/WifiConfigStore.xml) without root rights may be limited, but on some devices it is still readable.
adb shell cat /data/misc/wifi/WifiConfigStore.xml
In the output list of XML tags, you need to find the field PreSharedKeyThe value between these tags is your password. If the command returns a "Permission denied" error, it means that access to the storage is denied without superuser rights, and this method will not work without rooting.
What to do if ADB doesn't see the device?
Make sure "File Transfer (MTP)" mode is selected on your phone when connecting, and you've enabled debugging from this computer in the pop-up window that appears. Also, check the integrity of the USB cable.
Access via configuration files (requires Root)
If your device has rights root (superuser), the password extraction process becomes trivial. The Android file system is readable, and you can use any file manager with root access, such as Root Explorer or MT Manager.
You need to follow the path /data/misc/wifi/. This directory contains the file wpa_supplicant.conf (on older versions of Android) or WifiConfigStore.xml (on new ones). Opening any of these files with a text editor will show you a list of all networks ever saved.
| File | Location | Where to find the password | Availability |
|---|---|---|---|
| wpa_supplicant.conf | /data/misc/wifi/ | string psk="password" | Android 9 and below |
| WifiConfigStore.xml | /data/misc/wifi/ | PreSharedKey tag | Android 10+ |
| WifiConfigStore.dat | /data/misc/wifi/ | Binary format (difficult) | Some versions are 11+ |
Find the block in the file network with what you need SSID (network name). A line containing the key will be displayed next to it. On modern devices, passwords may be stored in encrypted form, and decrypting them will require special scripts or modules. Magisk, but most often they are displayed in clear text for local use.
⚠️ Warning: Making changes to system Wi-Fi configuration files may result in the loss of all saved networks. Edit files in Read-Only mode if you only want to view the data.
Third-party password recovery apps
In the store Google Play There are many utilities that promise to reveal saved passwords. However, it's important to understand how they work. Without root access, these apps can't read the system file directly. They either reveal passwords for networks shared by other users (cloud database), or use the QR code method described above, simply automating it.
Popular apps like WiFi Password Viewer or WiFi Key Recovery Require special permissions. If you don't have superuser rights, functionality will be limited. Some programs offer to create a backup of your Wi-Fi settings, which can then be analyzed on your computer.
- 📲 Unrooted apps often only show the network name, but not the key.
- ☁️ Cloud password databases may be unsafe for your privacy.
- 🛡️ Antivirus programs may mark such utilities as potentially unwanted.
Use only trusted apps with high ratings and numerous reviews. Remember that by installing software that requests access to system security settings, you're trusting it with your data. In most cases, Android 10+'s built-in security features are more efficient and secure than third-party "combinations."
☑️ App Security Check
Alternative methods and access to the router
If none of the software solutions work, the only remaining solution is to log into the router's control panel. This is a universal solution that works on any version of Android, iOS, or Windows. To do this, your device must be connected to a Wi-Fi network (even without internet access) or connected to the router via a LAN cable.
Open your browser and enter the gateway IP address in the address bar. This is usually 192.168.0.1 or 192.168.1.1You can find the exact address in your phone's Wi-Fi settings or by looking at the network information (under "Gateway" or "Router"). You'll need your username and password to access the admin panel.
If you've never changed your router's login information, it's listed on a sticker on the bottom of the device. Default combinations are often admin/admin or admin/passwordOnce in the interface, find the section Wireless or Wireless mode, then Wireless SecurityIn the field PSK Password or "Wireless Network Password" the required code will be indicated.
Frequently Asked Questions (FAQ)
Is it possible to find out a Wi-Fi password if the phone has never connected to this network?
No, this is impossible. Android doesn't store passwords for networks the device has never connected to. Access requires a physical connection or a saved profile in the system.
Are password viewer apps safe to use?
Using such apps carries risks. They require high privileges and can transmit your data to the cloud. Native Android methods (QR codes) are significantly more secure.
What should I do if I forgot my router admin password?
If the standard (factory) data is not suitable, you will have to reset the router to factory settings using the button Reset on the case. After this, the network will work with the factory password (indicated on the sticker) or without a password, and you can set a new one.
Why isn't the password shown under the QR code on Android 12?
Some manufacturers hide the text password for security purposes, leaving only a graphic code. In this case, you can scan the code with another device or take a screenshot and recognize the text using Google Lens.