artem
artem

Reputation: 16788

Where does Android store system settings such as WiFi networks?

Can't find the databases with the system settings on my device. Where are they located?

Upvotes: 6

Views: 22834

Answers (5)

user430836
user430836

Reputation: 21

On my Samsung (One UI 2.5), this is the location:

File: /data/misc/wifi/WifiConfigStore.xml

SSID: <string name="SSID">&quot;*&quot;</string>

Password: <string name="PreSharedKey">&quot;*&quot;</string>

Both are in plain text.

There's a wpa_supplicant folder (/data/misc/wifi/wpa_supplicant) but it's empty; there is a wpa_supplicant.conf file, under (/data/vendor/wifi/wpa/wpa_supplicant.conf and /vendor/etc/wifi/wpa_supplicant.conf), but it's just a 25 bytes file.

Upvotes: 2

Thibb1
Thibb1

Reputation: 83

You can modify /data/misc/apexdata/com.android.wifi/WifiConfigStore.xml

More information here: https://stackoverflow.com/a/20875807

Upvotes: 3

sdfearf3435
sdfearf3435

Reputation: 11

If you're trying to pull all your system configuration through root access, then I guess you should look up into

/data/system/users/0

As everything will be saved there as xml preferences.

Upvotes: 1

StupidKenneth
StupidKenneth

Reputation: 99

The SSIDs and passwords of the wifi networks are stored to /data/misc/wifi/wpa_supplicant.conf

Upvotes: 9

Raghav Sood
Raghav Sood

Reputation: 82563

The settings database is located at /data/data/com.android.providers.settings/databases/settings.db. You cannot access it unless you have root.

Upvotes: 6

Related Questions