/hmdm-plugin-wifimanager

WiFi Manager for Android - Headwind MDM Plugin. Manage WiFi connections, setup passwords, enable and disable networks from the web panel.

Primary LanguageJavaApache License 2.0Apache-2.0

WiFi Manager Plugin for Headwind MDM

This project is an open source WiFi manager for Android. The network configuration is remotely managed on the server. It is a plugin for the open source mobile device management system for Android:

https://h-mdm.com

Building

Run in command line:

gradlew build

or open the project in Android Studio and select Build - Make Project

Configuration

Once you install this WiFi manager through Headwind MDM system, the list of allowed WiFi networks can be configured in Headwind MDM web panel. Open the configuration details, select the Application settings tab, and add the following configuration attribute:

  • Application: com.hmdm.wifimanager
  • Attribute: config
  • Value: JSON configuration

The JSON configuration has the following format:

{
    "allAllowed": <boolean, determines if all networks are allowed, defaults to true>;
    "freeAllowed": <boolean, works only if allAllowed is false, determines if non-protected networks are allowed, defaults to false>;
    "allowed": [
        {
            "ssid": "<SSID of the allowed network, required>",
            "bssid": "<BSSID of the allowed network, optional>",
            "password":<password for this network, optional>"
        },
        ...
    ]
}

You can setup the policy of WiFi connection by specifying the allowed networks (by default all networks are allowed). If you specify the network password, the user doesn't need to enter the password manually to connect, the network connection will be automatically established.

Sample configuration setting up automatic configuration of a specified WiFi network:

{
    "allAllowed": false,
    "allowed": [
        "ssid": "My Corporate WiFi",
        "password": "Top$ecret"
    ]
}

After you add this configuration attribute, click "Save" to apply the configuration.