Have you ever been in a situation where you need to connect a new device to your WiFi, but you can’t remember the password? If you have an Android phone that’s already connected to that network, you’re in luck. With a little help from Android Debug Bridge (ADB), you can pull the saved WiFi configuration directly from your phone. This guide is for anyone who has a basic understanding of command lines and has USB debugging enabled on their Android device. By the end, you’ll have your WiFi password in plain text.
This method works on any Android device running Android 4.0 or higher, and it doesn’t require root access (though root makes it easier). We’ll cover the setup, the commands, and what to do if things go wrong. If you’ve ever tried a wifi password recovery android approach that failed, this ADB method is reliable and free.
What You’ll Need
- An Android phone with USB debugging enabled (Settings > Developer Options > USB Debugging).
- A computer (Windows, macOS, or Linux).
- ADB (Android Debug Bridge) installed on your computer. You can get it from the Android SDK Platform Tools.
- A USB cable to connect your phone to the computer.
- Basic comfort with typing commands in a terminal or command prompt.

Step 1: Install ADB on Your Computer
First, download the ADB platform tools for your operating system from the official Android developer website. Extract the zip file to a folder you can easily access, like C:adb on Windows or ~/adb on Mac and Linux. To verify the installation, open a terminal (Command Prompt on Windows) in that folder and type ‘adb version’. You should see version information. If not, make sure the folder is in your system PATH or run commands from that folder.

Step 2: Enable USB Debugging on Your Android Phone
On your Android device, go to Settings > About Phone and tap ‘Build Number’ seven times to unlock Developer Options. Then go back to Settings > System > Developer Options (or just Settings > Developer Options on older versions) and toggle on ‘USB Debugging’. When you connect the phone to your computer via USB, accept the RSA key fingerprint prompt that appears on your phone.

Step 3: Connect Your Phone and Verify ADB Connection
Connect your Android phone to the computer using a USB cable. Open your terminal or command prompt in the ADB folder and run ‘adb devices’. You should see a list of devices with ‘device’ status. If it says ‘unauthorized’, unlock your phone and check the RSA prompt. If nothing appears, try reconnecting or changing USB modes to ‘File Transfer’.

Step 4: Pull the WiFi Configuration File
On stock Android (and many custom ROMs), saved WiFi passwords are stored in a file called wpa_supplicant.conf located in /data/misc/wifi/. Use the following command to copy it to your computer: ‘adb pull /data/misc/wifi/wpa_supplicant.conf’. If your phone is not rooted, you might get a permission denied error. In that case, you can use a backup method: ‘adb backup -f backup.ab -noapk com.android.providers.settings’ (this is trickier, but possible). For rooted devices, simply run the pull command. Alternatively, try the forgotten wifi password recovery android method that uses an app, but ADB is more direct.

Step 5: Extract the Password from the Configuration File
Open the pulled wpa_supplicant.conf file with any text editor. Look for the network block that matches your SSID (the name of your WiFi). Inside, you’ll see a line like ‘psk=”YourPassword”‘ or ‘psk=hash:…’. If it’s a plaintext password, you’re done. If it’s a hash, you’ll need to decipher it — but on most devices, the password is in plain text. Copy the password and use it to connect your other devices. For business or school wifi password recovery, this method works only if you have a device already connected to that network.
Common Pitfalls
- Permission Denied: If you see ‘adb: insufficient permissions’, your phone may not be rooted. Consider rooting your device or using a backup method. Alternatively, try wifi password recovery tutorial terminal techniques that work without root.
- USB Debugging Not Enabled: Many users forget to enable USB debugging. Double-check Developer Options. If you can’t see Developer Options, tap ‘Build Number’ seven times in About Phone.
- Wrong File Location: On some custom ROMs or newer Android versions, the WiFi config file might be in a different location (e.g., /data/misc/apexdata/com.android.wifi/ or /data/misc/wifi/wpa_supplicant.conf). Use ‘adb shell find / -name “*.conf”‘ to locate it.
If you’ve run into a wall with this method, don’t worry. There are other free and open-source tools that achieve the same goal — check out wifi password recovery open source options. And if your system has suffered a crash, you might need wifi password recovery after system crash guidance.
Where to Next
Now that you’ve recovered your WiFi password, consider backing it up for future use. You can also explore other methods like copying the password from your computer’s keychain if you’ve connected before. If you found this helpful, share it with a friend who always forgets their WiFi password. Happy surfing!