We’ve all been there — standing at a friend’s door, phone in hand, trying to connect to their WiFi but drawing a blank on the password. Or maybe you changed your router’s password months ago and now your laptop can’t connect. If you have an Android phone that’s already connected to the network, you’re in luck: you can recover that password without rooting your device or installing sketchy apps. This guide is for anyone who needs to dig up a saved WiFi password on a non‑rooted Android phone — whether it’s yours or a friend’s (with permission, of course).
By the end of this tutorial, you’ll know two solid methods to recover any WiFi password your phone has ever connected to. The first method uses a built‑in QR code feature (works on Android 10 and up), and the second uses a simple ADB command if your phone’s version doesn’t support QR sharing. No root, no extra apps, just pure Android. If you’re new to this whole process, check out our wifi password recovery for beginners guide for background info.
What You’ll Need
- An Android phone that is currently connected (or was previously connected) to the WiFi network you want to recover.
- A computer (Windows, Mac, or Linux) — only needed for the ADB method.
- A USB cable to connect your phone to the computer (for ADB method).
- USB debugging enabled on your phone (for ADB method). We’ll walk through that.
- About 10 minutes of patience.
If you’d rather avoid using a computer, the QR code method is your best bet. But if your phone runs Android 9 or older, you’ll need the ADB route. Don’t worry — both are straightforward.
Step 1: Try the Built‑in QR Code Method (Android 10+)
Starting with Android 10, Google added a simple way to share WiFi credentials via a QR code. The password is hidden inside that code, and you can either scan it with another phone or extract the password text directly. Here’s how:

- Open the Settings app on your Android phone.
- Tap Network & Internet (or Connections on Samsung phones).
- Select Wi‑Fi. You’ll see the list of saved networks.
- Tap the gear icon ⚙ next to the WiFi network you’re currently connected to (or tap the network name and then hold on it).
- Look for a Share or QR code button. On stock Android, it’s usually at the bottom of the network details screen. Tap it.
- Your phone will ask you to verify your identity (fingerprint, PIN, or pattern). Do that.
- Now you’ll see a QR code on the screen. Below the code, you’ll often see the password as plain text — something like “Wi‑Fi password: MySecret123”. If you see it, write it down or take a screenshot.
If you don’t see the password as text, you can still get it by scanning the QR code with another phone’s camera or using a QR scanner app. But the text is usually right there. This is the easiest method — no computer needed. For a similar trick on other devices, you might want to check out our guide to view saved wifi password using cmd on Windows.
Step 2: If QR Code Isn’t Available — ADB Method
If your phone is running Android 9 or earlier, or if the QR code option doesn’t show the password text, you’ll need to use ADB (Android Debug Bridge). This is a command‑line tool that lets your computer talk to your phone. Don’t worry — it’s easier than it sounds.

Enable Developer Options and USB Debugging
- On your Android phone, go to Settings > About phone.
- Tap Build number seven times rapidly. You’ll see a toast message saying “You are now a developer!”
- Go back to Settings, and you’ll see a new entry: Developer options (sometimes under System).
- Open Developer options and turn on USB debugging.
- Connect your phone to your computer via USB. On your phone, you’ll get a prompt asking to allow USB debugging. Check “Always allow from this computer” and tap OK.
Install ADB on Your Computer
- On your computer, download the platform tools for ADB from the official Android developer site (or install via package managers like Homebrew on Mac or apt on Linux).
- Extract the zip file to a folder, e.g., C:adb on Windows or ~/adb on Mac/Linux.
- Open a terminal (Command Prompt on Windows, Terminal on Mac/Linux) and navigate to that folder.
- Type adb devices and press Enter. You should see your device listed as “unauthorized” or “device”. If it’s unauthorized, check your phone and allow the connection.
Once your device is recognized, you’re ready to pull the WiFi configuration file.
Step 3: Pull the wpa_supplicant.conf File
Android stores WiFi passwords in a file called wpa_supplicant.conf. On non‑rooted phones, this file is in a protected area, but ADB with proper permissions can still access it (on most devices). Here’s how:

- In your terminal, type the following command and press Enter:
- adb shell
- This opens a shell on your phone. Now type:
- cat /data/misc/wifi/wpa_supplicant.conf
- If you get a permission denied error, try:
- su (Note: this requires root, so skip if it doesn’t work)
- If su fails, try pulling the file directly:
- Exit the shell by typing exit, then on your computer type:
- adb pull /data/misc/wifi/wpa_supplicant.conf
- This copies the file to your current folder. If you still get permission denied, your phone’s security may block it — that’s rare but possible.
If the pull succeeds, open the wpa_supplicant.conf file in any text editor. You’ll see entries like:
The psk field is your WiFi password. Write it down. This method works for all saved networks, not just the current one. If you ever need to recover passwords on a Samsung phone, the same ADB method applies — just check our dedicated recover wifi password on samsung guide.
Step 4: Alternative — Use a Non‑Root File Manager
On some older Android versions (Android 4.x to 6.x), you could browse to /data/misc/wifi/ with a file manager app even without root. This security hole has been patched in newer versions, but if you’re running an antique phone, it’s worth a shot. Download a file manager like Solid Explorer or Google Files, allow storage permissions, then navigate to /data/misc/wifi/. If you can open the folder, copy wpa_supplicant.conf to a readable location and open it.

Most modern phones (Android 7+) lock that folder down, so don’t be surprised if you get an “Access denied” message. Stick with the ADB method if this fails.
Common Pitfalls
- QR code not showing password text. On some manufacturer skins (like Xiaomi or older One UI), the QR code may appear but the password isn’t displayed as text. If that happens, scan the QR code with another phone or use a QR scanner app that reveals the content. The code itself contains the SSID and password in a standard format.
- ADB says “device unauthorized” or no device found. Make sure USB debugging is enabled and you’ve approved the connection on your phone. Also check that you have the correct USB drivers installed for your phone (especially on Windows). For Samsung phones, you might need Samsung USB drivers. If you’re stuck, see our wifi password recovery with windows keychain guide for a different approach.
- Permission denied when pulling wpa_supplicant.conf. This is the biggest hurdle on non‑rooted phones. Some manufacturers (e.g., Huawei, Xiaomi) restrict ADB access to that file. In that case, you might need to use a different method — like reading the password from the QR code on a friend’s phone that’s already connected, or resetting your router (see wifi password recovery maintenance guide for tips on avoiding future lockouts).
Where to Next?
Now that you’ve recovered your WiFi password, consider backing it up safely. For Windows users, we have a guide on wifi password recovery with windows keychain that shows how to store passwords securely. If you’re on a Mac, check out our wifi password recovery for macbook pro tutorial. And if you want to keep all your credentials organized, our wifi password recovery maintenance guide explains best practices for not losing them again. Happy surfing!