enterpriseWifiSafeguard / EnterpriseWifiSafeguard

MIT License
6 stars 5 forks source link

Support for Config files #10

Closed 85pando closed 9 years ago

85pando commented 9 years ago

Entities like Companies or Universities could provide config files, so that most of the settings are automatically filled in.

petejoybaker commented 9 years ago

Yeah, there is a rudimentary import function to do this.

85pando commented 9 years ago

Yeah, right, did not sea this. Unfortunately it crashes for me, when I try to do this.

xamor commented 9 years ago

Oh this should not happen, can you tell me more about your system? Do you use cyanogenmod?

xamor commented 9 years ago

Ok i think the problem was, there was no config file on the internal SD card. I fixed this issue by checking if a config file exists or not in 7baed2971f58c6ad1f2ebea3e7ff46c10bc970d2. The config file has to be in /EnterpriseWifiSafeguard and has to be named as config.txt. I choosed this way because the android API has no own filechooser and if you want to use a filechooser you have to install a filemanager like "Dateimanager" on cyanogenmod. I expect that not all File Managers are supported by the android API so i choosed the hardcoded way. Maybe we could implement the option to set the config filename in a later version.

85pando commented 9 years ago

Right, when first exporting a file (probably also copying it into the correct folder with the correct name) it will import everything except username and password (which is as it should be).

xamor commented 9 years ago

In the bin folder is a new apk which avoids crashing if there is no config file

85pando commented 9 years ago

Import seems to not import the EAP-Method, Phase2-Method and Root Certificate.

xamor commented 9 years ago

Are you sure? On my system it works. I know its a bad hack how it works but it should work. If i import a configurations the spinners will be set on the position saved in the config.

85pando commented 9 years ago
xamor commented 9 years ago

This is a strange beheavior. But i think i got a solution.

xamor commented 9 years ago

Fixed in 3ffe9dccd557f5b9a4177f83a6132865c62f73b7

85pando commented 9 years ago

Verified, works