Many users find themselves in a situation where they need to connect a new device to a network whose password they once successfully entered into their smartphone but have now forgotten. The standard Android operating system interface is not always forthcoming with this information, hiding it deep within system files or concealing it behind security restrictions. However, with the right approach, you can retrieve a list of all connections your device has ever connected to.
Depending on the operating system version and access rights, the methods may differ dramatically. While older versions of Android had apps that allowed you to view saved access keys with one click, modern releases Android 10, Android 11 and newer versions have significantly limited access to system data to protect user information. However, even under these conditions, there are legal and proven ways to obtain the necessary data without voiding the warranty.
In this article, we'll take a detailed look at all the available options: from simple menu settings to using the ADB command line. You'll also understand how the mechanism for saving connection profiles works. system storage and why some networks may be hidden from normal viewing. We'll also touch on security issues and explain whether third-party software from unofficial sources should be trusted.
Default Android settings for versions 10 and later
Starting with the tenth version of the operating system, Google has implemented a convenient QR code feature for quickly connecting guests. This mechanism allows you to legally view the password for the current or previously saved network without the need for root access. To do this, simply go to Settings → Wi-Fi and select the desired access point from the list of saved ones.
After selecting a network, a QR code will appear on the screen. Below it is often (but not always) a text password. If there is no text, you can still find the password by scanning the code with any QR code reader on another device or using Google Lens. The scan results will look like this: WIFI:S:NetworkName;T:WPA;P:Password;;, where after the symbol P: and the desired combination is hidden.
This method is the most secure and doesn't require installing any additional software. It works on most modern smartphones from Samsung, Xiaomi, Pixel, and other manufacturers running stock Android or lightweight skins. However, if the network has been deleted from the phone's memory, it won't be possible to recover its password this way.
⚠️ Attention: On some smartphone models (e.g. Xiaomi smartphones with MIUI/HyperOS), the password text may be hidden by asterisks even when viewing the QR code. In this case, try scanning the code with another device.
Using the hidden engineering test menu
Many manufacturers leave access to advanced settings, known as the engineering menu, in the firmware. You can access it by entering a special USSD code in the Phone app. The codes vary depending on the brand: for Samsung, this is often #0011# or #197328640#, for MediaTek devices - ##3646633##.
Within this menu, you can navigate by tapping the screen or using the volume buttons. You need to find the section related to Connectivity or Wi-FiIt can display detailed technical information about the current connection, including signal strength, channel frequency, and the router's MAC address. However, it's worth noting that passwords themselves are usually not displayed in this menu, as it's a diagnostic tool, not a user tool.
However, you can use the engineering menu to conduct a more in-depth connection diagnostic if the problem lies not with a forgotten password, but with unstable module operation. You can see which frequency (2.4 GHz or 5 GHz) your network operates on and switch the priority if one band performs better.
Is the engineering menu dangerous?
Changing settings in the engineering menu (especially in the BandMode or RF Settings sections) may cause your phone to lose network reception or drain its battery quickly. Be careful and don't change any settings unless you're sure what they mean.
Viewing via ADB without Root rights
For more advanced users who don't want to gain full root privileges but still need access to system configuration files, using USB debugging (ADB) is a great solution. This method allows you to extract the file wpa_supplicant.conf, which stores all the passwords ever entered. You will need a computer and the package installed Platform-tools.
First, you need to enable developer mode on your phone. To do this, go to Settings → About phone and quickly tap "Build number" seven times. Then, in the "Developer options" menu that appears, enable "USB debugging." Connect your smartphone to the PC using a cable and confirm debugging permission on the device's screen.
Once prepared, run the following commands in the computer console. The first command tests the connection, the second backs up the Wi-Fi settings, and the third extracts the file to the computer:
adb devices
adb backup -f wifi.ab -noapk com.android.providers.settings
adb pull wifi.ab
The resulting file wifi.ab you will need to unpack it with a special utility (for example, abe.jar) to access the XML file with the data. In this file, you will find tags ssid (network name) and psk (password). This is the most secure software method without hacking the system.
☑️ Getting Started with ADB
Methods for Rooted Devices
If your smartphone has an unlocked bootloader and superuser rights installed (Root), the task is simplified to a minimum. Applications like WiFi Password Viewer or WiFi Key Recovery gain direct access to the system partition /data/misc/wifi/, where the configuration file is located. You don't need computers or complex backup manipulations.
Simply launch the app, grant it root privileges (a SuperSU or Magisk prompt will appear), and you'll see a full list of all networks. Passwords will be displayed in plaintext. This is the only way to see passwords for networks your phone has connected to in the past but are currently out of range (i.e., inactive).
It's important to remember that root access reduces the overall security of the device. Malware that gains access to the system can also read this data. Therefore, after using such tools, it is recommended to either uninstall the app or use root obfuscation features for everyday tasks.
| Method | Root is required | Need a PC | Complexity |
|---|---|---|---|
| QR code in settings | No | No | Low |
| ADB Backup | No | Yes | Average |
| Root applications | Yes | No | Low |
| Engineering menu | No | No | High |
Analysis of saved profiles and security
The Android operating system stores connection profiles in text or binary format. Each profile contains SSID (network identifier), encryption type (WPA2, WPA3, OWE), and security key. Understanding the structure of this data is important not only for password recovery but also for security assessment.
If you see open access points (Open Network) in the list of networks that your phone has connected to, this may indicate that your device has automatically connected to public Wi-Fi in shopping malls or cafes. Such connections are potentially dangerous because their traffic is unencrypted. It's recommended to periodically clear the list of saved networks, deleting those you no longer use.
It's also worth noting the "Randomize MAC Address" feature, which has been introduced in modern versions of Android. It generates a unique device identifier for each new network, making it difficult to track user movements by MAC address. However, in corporate networks where access is restricted by a MAC filter, this feature will need to be disabled for each specific access point in its advanced settings.
Common problems and their solutions
Users often encounter a situation where the phone "sees" the network but fails to connect, displaying the error "Obtaining IP address" or "Incorrect password," even though the login was previously successful. In such cases, it's helpful to forget the network (Forget the network in the Wi-Fi menu) and re-enter the password. Sometimes resetting network settings helps, which clears the DNS cache and resets Bluetooth and mobile data settings.
Another problem may be incompatibility of security protocols. If the router is configured only for WPA3, and the old smartphone only supports WPA2, there will be no connection. In this case, you need to change your router settings to mixed mode (WPA2/WPA3 Mixed). You should also check if MAC address filtering is enabled on the router, which would block new devices.
In rare cases, a static IP configuration can help. Instead of obtaining the IP address automatically (DHCP), you can enter it manually, for example, 192.168.1.150, making sure it's not already in use by another device on the network. This often resolves issues with "freezing" during the address acquisition process.
⚠️ Attention: Settings interfaces may vary depending on the manufacturer (Samsung One UI, Xiaomi MIUI, stock Android). If you don't find the option described, search your phone's settings by entering the keyword "Wi-Fi" or "Network."
FAQ: Frequently Asked Questions
Is it possible to find out my neighbor's Wi-Fi password if I've connected to it before?
Technically, if you've connected previously and saved the network, the password is stored in your phone's memory. However, using this password to access someone else's network without the owner's permission is a violation of computer security laws and property rights. This article is for educational purposes only.
Why isn't the password text displayed under the QR code on Android 12?
Some versions of the app (for example, Samsung or Xiaomi) may hide the password text for security purposes, leaving only the QR code. To view the password, scan the code with another phone's camera or use the Google Lens app—the password will appear in the recognized string after the characters. P:.
Is it safe to use password recovery apps from the Play Market?
Apps that don't require root access usually simply open the standard Android settings menu and don't offer anything new. Apps that do require root access are effective, but they require full system access, which can be risky if the developer is untrustworthy.
What should I do if I forgot my router password and my phone won't connect?
If your phone won't connect, it means the password isn't saved or has been changed. Check the sticker on the bottom of your router—the factory password is often listed there. If you've changed it and forgotten it, you'll have to reset the router to factory settings (press the Reset button) and set it up again via a cable or wireless connection.
Where are Wi-Fi passwords physically stored on Android?
Passwords are stored in a system file /data/misc/wifi/wpa_supplicant.conf (on older versions) or in encrypted storage keystore (on newer devices). Access to this path without root privileges or using ADB backup is blocked by the Linux security system, which Android is based on.