How to read the wpa_supplicant.conf file?

Asked

Viewed 749 times

0

Good morning guys, I’m producing an android app that is able to generate a backup on txt of the saved network settings on an android device, until then I know it is necessary to read the file parameters wpa_supplicant which is in a system folder. The question is:

It is possible to read this file without my app having to have permission to root? If so, how can I proceed?

1 answer

0


Well... apparently you can’t read network profiles saved on your device unless it’s rooted (root), otherwise would be a security issue. The resolution of the problem is to create an application of "key chain" where the user himself provides the network profile information and this information is saved in a database and later when importing the backup add to the Supplicant profiles using class methods Wifimanager (https://developer.android.com/reference/android/net/wifi/WifiManager)

In this case I will close the topic, who knows any alternative can comment.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.