Needing to connect a new device to a familiar wireless network but having forgotten or lost the password is one of the most common problems in the digital environment. Owners of smartphones running the operating system Android 9 Pie Users often encounter limitations in the interface, which hides security key symbols by default to protect user data. However, despite the apparent inaccessibility of this information, there are several proven ways to extract the necessary data directly from the phone's settings.
Restoring network access may be necessary at the most inopportune moment, for example, when you need to share internet with a laptop or provide access to guests. It's important to understand that the methods for solving this problem directly depend on the availability of root rights on the device and the firmware version installed by the manufacturer. In some cases, the system allows you to view the access code using standard tools, while in others, you will need to use special utilities or access system configuration files.
This guide covers in detail all current methods for viewing saved passwords on devices running OS version 9. We'll cover the built-in interface features, ADB command line capabilities, and working with system files. Remember that accessing a Wi-Fi network without the owner's permission is illegal, so use this information only to restore access to your own networks.
Using the standard QR code in Android 9 settings
Since version Android 10, the QR code generation function for quickly connecting guests has become a standard, but Android 9 Pie The implementation of this feature depends on the specific device manufacturer. Companies Samsung, Xiaomi And Huawei They often implement their own interface add-ons that allow password sharing via visual code even on older versions of the system. If your device has this feature, it's the easiest and most secure way to access your data.
First, you need to go to the settings menu and select the section Connections or Wi-FiFind the network you're already connected to or saved in the list and tap it. The details window that opens may contain a "Share" button or a QR code icon. Tapping this icon often displays a square cipher, which, depending on the smartphone model, may also contain a text password.
If the text under the QR code doesn't appear, don't despair. You can take a screenshot and open it in any QR code reader app or use the built-in one. Google Lens (lens) image analyzer. The smartphone camera reads the code and outputs a connection string, where after the prefix P: the password you are looking for will be indicated. This works thanks to the standard WPA/WPA2, which encodes data in a specific format.
⚠️ Attention: On stock Android versions (such as Pixel or Motorola smartphones) running Android 9, this feature may be missing or may not display the password in plain text. In this case, proceed to the following methods.
Viewing through the manufacturer's interface settings menu
Many users are unaware that Android smartphone manufacturers often hide useful features deeper in the menu than is required by standards. GoogleIn shells MIUI from Xiaomi or One UI from Samsung The password viewing process could be implemented more user-friendly. After logging into the details of the connected network, try looking for a "Show password" option or similar switch.
The system will require you to verify your identity to complete this action. This is typically accomplished by entering a screen unlock PIN, pattern, or fingerprint. This is a security measure to prevent unauthorized access to your data if your phone ends up in their hands. After successful authentication, the hidden characters will become visible, allowing you to rewrite them.
In some cases, especially on devices with custom firmware, you may need to access advanced Wi-Fi settings. The path may look like this: Settings → Additional settings → Wi-FiA list of all networks ever used is sometimes stored here, and clicking on a network name may reveal a field with a security key. If the password field is empty when connecting, try clicking it—sometimes the system inserts a saved key.
- 📱 Xiaomi/Redmi: Tap the network name in the Wi-Fi menu, select "Share," scan the QR code with your second phone, or use Google Lens on the screenshot.
- 🌌 Samsung: In the network details, look for the "QR code" or "Share" button; the password is often hidden but can be read by the camera.
- 🤖 Pure Android: The chances of seeing the password directly are minimal; using third-party methods or ADB is required.
Using the ADB command line without root access
A more complex but universal method that works on almost any device running Android 9, involves the use of a debug bridge ADB (Android Debug Bridge)This method doesn't require root access, preserving the device's warranty and the integrity of system partitions. However, to use it, you'll need a computer (Windows, macOS, or Linux) and a USB cable.
The first step is to enable developer mode on your smartphone. To do this, go to Settings → About phone and quickly tap "Build number" seven times. This will open a new section in the Settings menu called "Developer options." Inside, find and enable the "USB debugging" toggle. Without this step, your computer won't be able to send commands to your phone.
After connecting your smartphone to the PC and installing the drivers, open a command prompt on your computer in the ADB tools folder. Enter the command to test the connection. If everything is correct, a debugging permission prompt will appear on your phone's screen. Confirm this permission. Next, use the command to display the contents of the system file storing the Wi-Fi configuration.
adb shell dumpsys wifi | findstr mConfiguredNetworks
The command will return a long list of technical data. You need to look for lines containing SSID (network name) and pre_shared_key (security key). In Android 9, the output format may differ, and the password may be hidden behind asterisks or a hash, but on many devices it is displayed in plain text next to the network name. This method requires careful attention, as the amount of information output is large.
What to do if ADB doesn't see the device?
Make sure the correct ADB Interface driver is installed. Try a different USB cable (preferably the original one). In Developer Mode, also enable "USB Debugging (security settings)" if available.
Access to the wpa_supplicant.conf system file with root rights
If your smartphone is unlocked Bootloader and established rights Root (for example, through Magisk or SuperSU), then the task of extracting the password becomes trivial. All saved networks in Android are stored in a text configuration file called wpa_supplicant.confThis file is located in a protected system directory, which is not accessible to regular applications.
To work, you will need a file manager with root access support, for example, Root Explorer, Solid Explorer or MT ManagerAfter launching the application, grant it superuser privileges when prompted. Then go to the path /data/misc/wifi/This is where the file you're looking for is located. Please note that the path may differ slightly on some devices, but the folder misc is standard.
Open the file wpa_supplicant.conf built-in text editor. Inside, you'll see code blocks for each saved network. Look for the parameter ssid for the name of your network and the parameter psk for the password. The value after the equal sign in the psk line is your security key in cleartext. You can copy it and use it to connect other devices.
⚠️ Attention: Don't edit or delete any other lines in this file unless you're sure of what you're doing. A syntax error could cause the Wi-Fi module to stop working properly, and your phone to stop detecting networks.
- 🔑 psk="password": This is the standard password format for WPA/WPA2 Personal networks.
- 🛡️ key_mgmt=WPA-PSK: Indicates the type of encryption used on this network.
- 📂 File path: Strictly
/data/misc/wifi/wpa_supplicant.conf, access only with root.
Analysis of the methods compatibility table
Choosing the optimal password recovery method depends on many factors: device model, firmware version, whether you have superuser rights, and computer accessibility. To make it easier to navigate, we've organized the main solution options into a single table. This will help you quickly assess your options and choose the appropriate course of action.
It's worth noting that methods that don't require root privileges are preferred by regular users, as they don't pose any risk of damaging the system. However, they may be less informative. Methods using ADB require initial preparation but provide access to deeper layers of information. Root methods provide full control but require prior modification of the device.
| Method | Root is required | Need a PC | Complexity | Efficiency |
|---|---|---|---|---|
| QR code / Sharing | No | No | Low | Average (depending on model) |
| Interface settings | No | No | Low | High (on custom firmware) |
| ADB commands | No | Yes | Average | High |
| wpa_supplicant file | Yes | No | High | Maximum |
Restoring access via a router
If all the smartphone-based methods seem too complicated or don't work, there's always the option of viewing the password on the device distributing the password—the router. To do this, you must have physical access to the router and be connected to its network (even if the internet isn't working, the local network must be functioning). This is an often overlooked, but extremely effective method.
You'll need to find the default gateway IP address. On Android, you can do this by going to your Wi-Fi connection details and looking in the "Gateway" or "Router" field. This address typically looks like this: 192.168.0.1 or 192.168.1.1Entering this address in your browser will take you to the router's administration page. The login and password are often found on a sticker on the bottom of the device, unless they have been changed by the user.
After authorization in the control panel (interfaces TP-Link, Asus, Keenetic (These look different for others.) Find the "Wireless," "Wi-Fi," or "Wireless Network" section. The current security key will be listed in the "Password," "Key," or "Password" field. You can not only view it, but also change it to something more complex or memorable.
☑️ Check before logging into the router
⚠️ Attention: Router interfaces are constantly being updated. The menu location may vary depending on your router's firmware version. If you can't find the settings, consult the official manual for your model.
Frequently Asked Questions (FAQ)
Is it possible to find out the Wi-Fi password on Android 9 without special apps?
Yes, it's possible. The most reliable method without installing additional software is to use the ADB command line on your computer or view the configuration file if you already have root access and a file manager. It's also worth checking the built-in QR code generation feature in the network settings, which sometimes duplicates the password in plain text.
Are password recovery apps from the Play Store safe to use?
Most of these apps work ineffectively on Android 9 without root access, as Google's security system prohibits access to system password files. Apps that require root access can be useful, but downloading questionable software carries the risk of personal data theft. It's better to use proven methods like ADB.
What should I do if the wpa_supplicant.conf file contains asterisks instead of passwords?
This means the system stores the password hash or hides it at the file interface level. In this case, directly viewing the text won't help. You'll need to either use ADB commands to dump the configuration in a different format, or reset the router and set a new password that you know for sure.
Will my phone reset its Wi-Fi settings when I update my system?
Typically, saved networks and passwords are preserved during a scheduled Android update via OTA (over-the-air). However, when upgrading to a major Android version or flashing your device via a computer, data may be lost. It is recommended to always back up important data.