17

I have a rooted Samsung s3 mini, android version 4.1.2

How to show the saved wifi password of the router I am connected to?

18

From any file manager that allows root access to system files you can go into /data/misc/wifi/wpa_supplicant.conf file or directly search for wpa_supplicant.conf file.

You can open it with any text editor.

If you have Terminal Emulator you can also do this:

cat /data/misc/wifi/wpa_supplicant.conf

You will find all your saved passwords inside that file. Password will be stored as:

network={
    ssid="WiFiName"
    psk="password"
    key_mgmt=WPA-PSK
    priority=1
}
|improve this answer|||||
  • One more thing do I need to root my device in order to do that or it do works with unrooted device too ? as I can't find anything inside /data folder. – Peter Carlos Nov 10 '14 at 6:36
  • You would get permission denied of you would need root access and not have it. I can't answer your question direcy, but it might be that you are using different version of android which keeps the file in a different place. If you provide more details on your device and OS I might help you. – user55027 Nov 11 '14 at 13:18
  • I am currently running Samsung Stock 4.1.2 Jellybean ROM over tab2. I have tried looking over the /data folder but the specified misc/wifi/wpa_supplicant.conf file isn't there ! – Peter Carlos Nov 12 '14 at 3:29
  • 1
    are the directories there? You can try to run this command to find it: find /data -name "wpa_supplicant.conf" or even find / -name "wpa_supplicant.conf" Anyway, I am pretty sure now that you need a rooted device. – user55027 Nov 12 '14 at 22:01
  • Well, @edvinas.me I have tried searching for -name"wpa_supplicant.conf" under data file but can't find it in the data folder instead of it has something else like log.txt and com.onelou....oneweather . I guess device needs to be rooted any way thanks though ! – Peter Carlos Nov 13 '14 at 4:01
3

You can also download the app "Wifi Key Recovery" which is a lot easier.

|improve this answer|||||
  • The thing is I don't like giving root access to apps unless I really need them, but thank you for trying to help :) – Lynob Mar 27 '14 at 18:56
  • Worked perfectly! For some reason the text file wasn't in the path the other user suggested – Pitto Dec 22 '14 at 14:28

Not the answer you're looking for? Browse other questions tagged or ask your own question.