How to find your Wi-Fi password using a QR code on an Android phone

Modern smartphones running the operating system Android have long ceased to be mere devices for making calls, becoming powerful tools for managing digital infrastructure. One of the most sought-after features introduced in system versions 10 and later was the ability to share wireless network access. Wi-Fi Using a QR code. This is convenient when you have friends over or need to connect a new gadget, but don't want to manually enter a long combination of characters. However, the opposite situation often arises: you want to remember a forgotten password to enter it on your computer or TV, but you can't remember it because your phone connected automatically.

Fortunately, Android's QR code generation mechanism is designed in such a way that it encodes all the necessary information, including the network SSID and the security key itself. Essentially, a QR code is simply an encrypted string of text that can be read not only by another phone's camera, but also by dedicated scanner apps or even built-in system functions. In this article, we'll take a detailed look at how to extract it. password from QR code, created by your phone, and we'll look at the nuances of working with access rights in different versions of Android.

It is worth noting that the process may differ depending on the shell of the manufacturer of your smartphone, whether it is Samsung One UI, Xiaomi MIUI or pure Android from Google. Some manufacturers hide the "Share" button or password visibility behind additional menu levels, requiring biometric confirmation. However, the basic principle remains the same: the system must generate a graphic code, which we will analyze.

How QR codes work on Android

To understand how to access hidden data, you need to understand the structure of the QR code your smartphone generates. When you tap the "Share" button in Wi-Fi settings, the system creates a string in a specific format, usually starting with a prefix. WIFI:This line contains metadata: the encryption type (e.g., WPA or WEP), the network name (SSID), and the password (P). This text string is encoded in the black-and-white square.

Most users perceive a QR code as a "black box," but in reality, it's simply an alternative way to enter text. The smartphone camera scans the image, decodes it back into a text string, and, if it detects the appropriate protocol, prompts the user to connect to the network. However, if you use the right scanning tool, you can see the original text before the system attempts to process it. This allows you to "extract" the password.

It's important to understand that in Android versions prior to 10, this functionality was absent at the system level, and generating codes required third-party apps that often required root access. In modern versions (Android 10, 11, 12, 13, 14, and later), this feature is built-in, but Google and app developers deliberately hide the text display of the password for security reasons, leaving only the graphical interface.

📊 What version of Android are you using?
Android 10-11
Android 12-13
Android 14 and later
I don't know which version

The standard method is through system settings.

The simplest and safest method, which doesn't require installing any additional software, is to use the built-in settings interface. This method works on the vast majority of modern devices. Go to the settings menu, find the wireless networks section, and select the active connection. This is where the button you're looking for is hidden.

After you tap the gear icon next to your Wi-Fi network name, a detailed menu will open. At the bottom of the screen or in the corner (often in the upper right corner), you should see a "Share" button or a QR code icon. When you tap it, the system will ask you to verify your identity: enter your screen unlock PIN, scan your fingerprint, or use facial recognition. This is a security measure to prevent unauthorized access if someone else has access to your phone.

After successful authentication, a QR code will appear on the screen. On many smartphones, such as Xiaomi or Samsung, the password may be written in small print directly below the code. If the code only says "Scan code to connect," you'll need a second phone or tablet with a camera. Point the second device's camera at the code, but don't press the connect button. Instead, look for a pop-up notification or preview—it often displays the password in plain text.

☑️ Algorithm of actions through settings

Completed: 0 / 5

Using Google Lens and third-party scanners

If the standard interface doesn't display the password in plain text, computer vision tools come to the rescue. Google Lens (Lens) is a powerful tool built into many Android smartphones or available as a standalone app. It can not only recognize objects but also analyze the text within QR codes, returning raw data to the user.

The process is as follows: take a screenshot of the QR code you generated in your Wi-Fi settings. Then, open the Google app (or Google Photos), select the screenshot you took, and tap the "Lens" or "Search by image" button. The system will analyze the image and return the result. Unlike a standard camera scanner, which immediately attempts to connect, Google Lens often displays the text content of the code, followed by a tag. P: Your password will be indicated.

An alternative could be third-party applications from the store. Google Play, such as "QR & Barcode Scanner" or similar apps. When choosing such an app, it's important to pay attention to permissions and reviews to avoid installing malware. A good scanner should have a "Text" or "Raw Data" mode, which displays the actual code content rather than simply executes a command. This allows for secure password scanning without the risk of automatically connecting to unknown networks.

⚠️ Caution: Be careful when installing free QR code scanners. Many are filled with ads or may request excessive permissions (access to contacts, microphone). Use only trusted, highly rated apps or built-in system tools.
Why might the password not be displayed?

In some cases, especially on corporate networks or networks with 802.1x encryption, the password may not be displayed in plain text because authentication occurs through certificates or username/password rather than a static WPA2 key.

Method using ADB commands (for advanced users)

For users who are not afraid of the command line and want to access the data directly, there is a method using Android Debug Bridge (ADB)This method allows you to extract saved network configurations, including passwords, directly from system files, bypassing the graphical interface. However, it requires a connection to a computer and enabling USB debugging.

First, you need to enable developer mode on your phone. To do this, go to "About phone" and quickly tap the build number seven times. Then, in the "Developer options" menu that appears, enable "USB debugging." Connect your phone to your PC, install the drivers, and install the platform. ADBIn the computer's command line, enter the command to check the connection: adb devicesIf the device is detected, you can proceed to receiving data.

The command to extract saved networks is as follows:

adb shell dumpsys wifi | grep -A 5 "mConfigKey"

Or, on newer versions of Android where direct download may be limited, you can try accessing the configuration file (requires root or specific permissions):

adb pull /data/misc/wifi/WifiConfigStore.xml

In the resulting file, you can find the tag in a text editor. PreSharedKey, which will store the password in cleartext. This method is the most technically complex, but it provides a 100% guarantee of data recovery if you have physical access to the unlocked device.

Comparison of password retrieval methods

To help you choose the right method, we've organized the main options in a table. Each has its own advantages and disadvantages depending on your situation, the availability of a second device, and your level of technical expertise.

Method Complexity Need a PC Security Availability
Android settings Low No High Android 10+
Google Lens / Screenshot Low No High All versions
Third-party scanner Average No Average All versions
ADB Commands High Yes High All versions

As the table shows, for most users, a combination of the default settings and Google Lens remains the optimal option. This doesn't require installing questionable software or complex computer manipulation. The ADB method should only be considered if the graphical interface is malfunctioning or damaged for some reason.

It's also worth keeping in mind that on some devices with heavily modified skins (for example, older versions of MIUI or ColorOS), the layout of elements may differ. If you can't find the "Share" button, try searching through the settings by entering "QR" or "Wi-Fi." The system will automatically suggest the correct section.

Problems and limitations in new versions of Android

With each operating system update, Google strengthens security measures, sometimes making simple tasks more difficult. Android 12 and later introduced additional restrictions on app access to the list of saved networks. Apps can no longer simply "read" all passwords from the system without explicit user permission or special privileges.

Furthermore, on devices without Google services (for example, some Huawei or Honor models), the built-in QR code scanner may be missing or may function differently. In such cases, users are forced to rely on third-party solutions or visually searching for the password in the router settings if they have access to its web interface. It's also worth remembering that if the phone is reset to factory settings, all saved passwords will be permanently deleted.

⚠️ Note: Settings interfaces may change with firmware updates. If the menu items described here don't match your needs, look for similar sections or consult your smartphone manufacturer's documentation.

Frequently Asked Questions (FAQ)

Is it possible to find out the Wi-Fi password without root rights?

Yes, in modern versions of Android (10 and above), this can be done using the built-in QR code generation feature in the Wi-Fi settings. Root access is only required to directly read system configuration files via the file manager, not to view them via QR code.

What should I do if there is no password written under the QR code?

If the password text is hidden, take a screenshot of the code and open it using the Google Lens app or any third-party QR code scanner with a text viewer. They will decode the image and show the string after the symbol P: will be your password.

Is it safe to use third-party scanning apps?

You should only use trusted apps with numerous positive reviews. However, the safest method remains using built-in system tools or the Google Lens service, as they do not share your data with third parties.

Why does the phone require biometrics to display the QR code?

This is a security measure implemented by Google and smartphone manufacturers. Since the QR code grants full access to your network, the system must verify that the action is performed by the device's owner and not by a stranger who has picked up an unlocked phone.

Is it possible to recover the password if the phone is reset?

Unfortunately, no. After a factory reset (hard reset), all data stored in the phone's memory, including Wi-Fi network lists and passwords, is deleted. You can only restore them if you made a Google backup of your settings before the reset and restored your phone from that backup.