How to extract a Wi-Fi password from Android: all methods

It's quite common to need to connect a new device to your home network but have forgotten the password. Fortunately, modern smartphones Android Often store data about previously used networks, allowing you to quickly restore access to the information. Instead of resetting your router or searching for your ISP contract, you can use the operating system's built-in features.

Methods for extracting the security key vary depending on the version. Androidinstalled on your device. In newer versions (starting with Android 10), the process has become significantly easier thanks to the introduction of QR code sharing. However, older versions of the system or devices without root access may require more complex workarounds or the use of a Google account.

In this article, we'll cover all the current methods in detail, from simple code scanning to advanced techniques for experienced users. It is critically important to understand that accessing files with passwords without root rights in modern versions of Android (12+) is technically impossible through file managers. Please be careful when choosing the method that matches your software version.

Using a QR code to view a password

The simplest and most accessible method, which works on most modern smartphones with Android 10 and later, is generating a QR code for connection. The system not only allows you to share access but also displays the password in text format beneath the generated image. You don't need any third-party apps or special permissions to do this.

To use this method, go to the section Settings → Wi-Fi (or Network & Internet)Find the network you're already connected to in the list and tap the gear icon or the network name. This will open the network properties menu, which will feature a "Share" button or a QR code icon. After verifying your identity (using a fingerprint scanner or PIN), a code will appear on the screen.

Often, the password is written in small print directly below the QR code. If there is no text, take a screenshot of the screen with the code. Then, open Google Lens or any other QR code reader in your gallery and point the camera at the image. The system will display the connection string in the scan results, with the prefix P: The password you are looking for will be indicated.

📊 What version of Android are you using?
Android 10 and below
Android 11
Android 12
Android 13 and above

Verification via Google account (Android 10+)

Starting with Android 10, Google introduced Wi-Fi password syncing via your account. This means that if you've ever connected to a network on a device with syncing enabled, the password may have been saved in the cloud. This is especially useful if you've changed phones and want to know the passkey on the new device.

To check, open Settings → Google → Autofill → Google PasswordsIn the list of saved passwords, find the Wi-Fi section or enter your network name in the search bar. If the password has been saved, you will see it after biometric authentication. This method does not require root access and works even on carrier-locked devices.

It's worth noting that syncing isn't instantaneous. If you just connected to the network on one device, it may take some time for the data to appear on the other. Make sure data sync is enabled on both devices and you're using the same app. Google account.

Method for rooted devices

For users who have received superuser rights (root), the process of extracting the password becomes trivial. The operating system stores all known Wi-Fi networks in a system file. wpa_supplicant.confAccess to this file is closed by default, but root privileges allow you to open it with any text editor.

You will need a file manager with root support, such as Root Explorer or MT Manager. Follow the path /data/misc/wifi/Find the file wpa_supplicant.conf (Sometimes WifiConfigStore.xml (on newer versions of Android) and open it. Inside, you'll find a list of all networks in the following format:

network={

ssid="Network_Name"

psk="WiFi_Password"

key_mgmt=WPA-PSK

}

There is a field here psk contains the desired password in cleartext. This method is the most secure for older versions of Android that don't have the QR code feature, but it requires preliminary device preparation. Keep in mind that rooting may void your device's warranty.

What to do if the wpa_supplicant.conf file is empty?

If the file is empty or doesn't contain the required network, the data may be stored in XML format. Look for the WifiConfigStore.xml file in the same directory or in /data/misc/wifi/apexdata.

Using ADB without root access

If you don't have root rights and standard methods don't work, you can try using USB debugging (ADB). This method requires a computer and basic command-line skills. It allows you to query the system for saved network configurations, although on Android 10+, Google has disabled direct access to the full password text through this interface, allowing you to view only the SSID.

However, on some firmwares (especially custom ones or older versions before Android 10), the command may return full data. First, enable Settings → About phone → Tap Build number 7 times, then activate it in the developer menu USB debuggingConnect your phone to your PC and run the command:

adb shell dumpsys wifi | grep ConfigKey

In the command output, look for lines containing ConfigKeyIf you're lucky, you'll see a hash or even a clear password. However, on modern stock Samsung, Xiaomi, or Pixel firmware, you'll likely only see the network name. This method is more suitable for diagnostics and checking whether the phone even remembers the network.

☑️ Getting Started with ADB

Completed: 0 / 4

Comparison of access recovery methods

The optimal method depends on your technical expertise and operating system version. Below is a table to help you quickly navigate the available options and their effectiveness.

Method Root is required Android version Complexity
QR code No 10+ Low
Google Account No 10+ Low
wpa_supplicant file Yes Any Average
ADB Commands No 4.0 - 9.0 High

As the table shows, the first two methods are most effective for most users. They don't require system intervention and are safe. Using root privileges or ADB is only advisable in specific cases where standard tools fail.

It's important to understand that Android data security is improving every year. What worked on Android 6 or 7 may be completely blocked on Android 13 or 14. Therefore, always start with the simplest and most legal methods.

Third-party applications and their effectiveness

In the store Google Play You can find hundreds of apps promising to reveal saved passwords. However, most of them are either useless on newer versions of Android or contain aggressive advertising. Apps like WiFi Password Viewer They only work on rooted devices, as system restrictions prevent them from reading configuration files otherwise.

Some applications use brute-force attacks or attempt to exploit vulnerabilities, which may be detected by antivirus software as malicious activity. Be careful when installing software from untrusted sources. It's best to use trusted file managers if you already have root access.

⚠️ Attention: Menu interfaces and item layouts may vary depending on the manufacturer's operating system (MIUI, OneUI, ColorOS). If you don't see the options described, search for them in your phone's settings.

There are also apps that don't reveal the password but allow you to back up all Wi-Fi settings. This can be useful when switching to a new phone, although viewing the backup contents will still require specialized knowledge or root access on the receiving device.

Safety measures and prevention

Once you've learned or changed your password, it's recommended to secure your network. Using complex passwords containing mixed-case letters, numbers, and special characters significantly complicates the lives of attackers. Avoid using the default passwords that come with your router from the factory.

Regularly check the list of connected clients in the router interface. If you notice an unknown device, change your Wi-Fi password immediately. It's also worth disabling the WPS feature, as it's often a vulnerability that allows network security to be bypassed.

Remember that storing passwords in plaintext on a phone without a screen lock can be risky. If your device falls into the wrong hands, an attacker can easily access not only the internet but also your local network, which may contain shared files or printers.

Is it possible to find out the Wi-Fi password on Android without root access?

Yes, on Android 10 and above, this can be done using the QR code feature or a Google account. On older versions, finding the password without root access is virtually impossible due to system security limitations.

Where is the Wi-Fi password file stored?

Passwords are stored in a system file /data/misc/wifi/wpa_supplicant.conf or WifiConfigStore.xmlAccess to this folder is protected and requires superuser (root) rights.

Why isn't the password displayed under the QR code?

In some skins (for example, older versions of MIUI or EMUI), the password may not be displayed in text below the code. In this case, you'll need to take a screenshot and scan the code using Google Lens or another QR scanner, which will display the text connection string.

Are password viewer apps safe to use?

Apps from the official Google Play store are generally safe, but their functionality is limited without root access. Apps from third-party sources may pose a risk of data theft, so use them with caution.