Scripting on Android - Adding wifi on reboot
Before you go down the path of a non-standard workaround like that please first make sure that your device is on the latest BSP and LG versions. The problems that you're describing are indicative of earlier firmware bugs that have since been addressed. If you already are on the latest BSP and LG then I would investigate what is causing the wireless radio to disconnect. Is it being disabled or is it losing the wireless configuration? I have seen scenarios where the radio gets disabled automatically if the country code is incorrect, or if you buy a ROW SKU and try to run it in a US facility.
Also, if you weren't already aware you can export StageNow configurations to an XML that can be packaged and applied via SOTI in conjunction with the mxconfig script.
I am not aware on how to take xml file package and apply it with mxonfig script. If you can point me in the right direction or have some examples that would be great.
You are correct we aren't on the most upgraded version of MobiControl or LG version.
Looks like its removing the wifi profile. Just rebooting doesn't bring back the wifi and we have to manually put in the SSID and passphrase to make it work again. I will check out the country code. Would time being off a 2-3 minutes cause any of these issues?
Update to the latest LG before building workarounds to account for bugs in the LG version.
Again, the LG update could help fix this so I would start with that. Otherwise, how are you applying the WiFi configuration settings in the first place? Timing could be a factor in some networks but if the time is off I would expect the device to not be allowed to authenticate on the network but that is not the problem that you're describing. You're describing the WiFi Config completely disappearing off the device which should not happen if the time is off a few minutes.
That website worked. Thanks.
Do you know if I can create a script that if the wifi goes out or loses itself it will run the wifi script that i sync to it?
Possibly an out of contact policy could work for that purpose. With that said, I really am not supportive of all these scripting workarounds you're trying to put in place to potentially fix a bug that could be addressed with a firmware update.