When you connect your Android phone to a Wi-Fi network, it saves the password. So, next time when you connect to same network, you won’t have to enter the password again. But it’s not easy to find and view saved Wi-Fi passwords in your android phone as they are protected by root permissions.
Android smartphones, by default, don’t support viewing of saved or stored Wi-Fi passwords on them. So, you can use this terminal trick to find wifi passwords saved on your Android phone. For following this tutorial, you would need to install any terminal emulator app (preferably Termux) on your Android phone. And your phone must have root access.
Check this video tutorial before we move to detailed steps on how to find stored Wifi passwords.
View Saved Wi-Fi Passwords on Android Phone using Terminal (or Termux)
In this tutorial we will be installing a ‘Terminal Emulator‘ app on Android smartphone. We will use that Terminal app to run Linux commands on Android smartphone. You can install any terminal app, but we recommend Termux app.
Step 1: Install Terminal Emulator on Android Phone
First of all, we have to install a Terminal Emulator app on Android smartphone. Open Play Store on your phone and search for
Select and install any terminal app. In this tutorial we have used “Terminal Emulator for Android” app. You may use another app if you wish.
Terminal Emulator for Android will be downloaded and installed on your phone.
Step 2: Launch Terminal App and get Root Access
Tap on OPEN to launch the Terminal or Termux app after installation. Now, you will see a command line window opened on your Android smartphone. Using this terminal we will find and view saved Wi-Fi passwords on your Android phone.
We are going to need Root Level Access to view system files. So first, we will switch to super user via terminal. Remember, you must have Super User (SU) installed in your phone. Type following command to get root access and press ENTER.
You will see a popup asking to grant terminal emulator superuser permissions. Tap on GRANT to continue.
You will see a toast message saying, “Terminal Emulator has been granted superuser permissions for an interactive shell“. Now we have Root Level Access. Now, we can view saved wi-fi passwords in your Android phone.
Step 3: Find Network Configuration file in Android
Now, after getting superuser permissions, it’s time to find Network Configuration file in Android. So, go to “/data/misc/wifi” path in terminal and list directory content using following commands.
cd /data/misc/wifi ls
The “wpa_supplicant.conf” file contains all Wi-Fi network saved passwords and other information. WPA in the name means encryption used is WPA. It may be WEP in some cases. So, the filename will be “wep_supplicant.conf” in those cases.
Step 4: View Saved Wi-Fi Passwords in Android using Terminal App
We need to open “wpa_supplicant.conf” file to find and view saved Wi-Fi passwords in your android smartphone using terminal or Termux.
So, to view the content of
wpa_supplicant.conf file, type following command and press ENTER.
Terminal emulator (or Termux) will display the content of “wpa_supplicant.conf” file. You can view all your saved Wi-Fi network passwords here. Just look for specific SSID (Wi-Fi Network name) and you will see the password next to PSK.
Note down your password and close terminal app.
Find Wi-Fi Passwords Stored in Android Phone using Terminal
Using above tutorial, you can easily find Wi-Fi passwords stored on your Android smartphone. But you need to Root your phone before trying this. Please note that rooting your phone may void your device’s warranty. Check following linked tutorial on rooting android phone using KingRoot app.
Hope you liked the tutorial. Feel free to share your thoughts and suggestions in the comment section down below. You can also visit our Facebook Page for more updates.