Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
up vote 16 down vote accepted

It is saved in /data/misc/wifi/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
share|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
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, 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

You can also download the app "wifi key recovery" which is a lot easier.

share|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

protected by Community Apr 6 '15 at 16:42

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

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