H-mdm/hmdm-plugin-wifimanager: WiFi Manager For Android - GitHub

Skip to content Dismiss alert {{ message }} / hmdm-plugin-wifimanager Public
  • Notifications You must be signed in to change notification settings
  • Fork 18
  • Star 18
  • Code
  • Issues
  • Pull requests 1
  • Actions
  • Projects
  • Security
  • Insights
Additional navigation options  masterBranchesTagsGo to fileCode

Folders and files

NameNameLast commit messageLast commit date

Latest commit

 

History

34 Commits
.idea.idea  
appapp  
gradle/wrappergradle/wrapper  
.gitignore.gitignore  
LICENSELICENSE  
README.mdREADME.md  
build.gradlebuild.gradle  
gradle.propertiesgradle.properties  
gradlewgradlew  
gradlew.batgradlew.bat  
settings.gradlesettings.gradle  
View all files

Repository files navigation

  • README
  • Apache-2.0 license
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.

Compatibility

On Android 10 and above, the app works in managed (Device Owner) mode only. It should be signed with the same keys as the MDM agent, and use the same shared user. See the deprecation exemption comment here: https://developer.android.com/reference/android/net/wifi/WifiManager#disableNetwork(int)

On Android 11 and 12, apparently due to permission-related bugs in Android OS, the app doesn't work even when running with Device Owner permissions. To make the app available on these OS versions, we added an optional flag WIFI_SUGGESTION, which switches to an alternative (WiFi suggestion) SDK, which is however less powerful and requires user interaction to manage WiFi networks.

Starting with Android 13, the device owner permission issue is apparently fixed, and WiFi manager works well in the device owner mode.

About

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

h-mdm.com

Topics

android wifi-manager headwind-mdm manage-wifi

Resources

Readme

License

Apache-2.0 license

Uh oh!

There was an error while loading. Please reload this page.

Activity

Stars

18 stars

Watchers

1 watching

Forks

18 forks Report repository

Releases 3

v1.23 Latest May 25, 2025 + 2 releases

Packages

Uh oh!

There was an error while loading. Please reload this page.

Contributors

Uh oh!

There was an error while loading. Please reload this page.

Languages

  • Java 100.0%
You can’t perform that action at this time.

Từ khóa » H-mdm Github