How to read the wpa_supplicant.conf file?

0

Good morning, I'm producing an android app that will be able to generate a backup of txt from the saved network settings on an android device, until then I know I need to read the < in> wpa_supplicant that is in a system folder. The question is:

Is it possible to read this file without my app having to have root permission? If yes, how can I proceed?

    
asked by anonymous 05.12.2016 / 12:21

1 answer

0

Well ... apparently it is not possible to read the network profiles saved on the device unless it is rooted ( root ), otherwise it would be a security problem. The resolution of the problem is to create a "key chain" application where the user himself provides the profile information of the networks and this information is saved to a database and later when importing the backup add to supplicant profiles through the methods of the WifiManager class ( link )

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

    
11.12.2016 / 12:36