I've developed a widget to toggle Wi-Fi hotspot on Android 5.0/5.1 (Lollipop) and Android 6.0 (Marshmallow). It requires root.
This is an xda-exclusive free version! If you want to support me, please consider getting the paid version on Google Play or check out my other apps.
Please note: Redistribution of this app is not allowed!
Paid version on Google Play (same functionality): https://play.google.com/store/apps/d...glewifihotspot
New: Now available via XDA Labs!
Device compatibility: second post
Please note: The widget is passive. Thus, it has to request root every time it is refreshed. Although the battery impact is negligible, this usually results in frequent (Toast) messages indicating that the app was granted root rights. Please refer to your superuser management app if you'd like to disable those messages specifically for this app.
- Locale/Tasker plugin
- Custom icon images
- Save and restore Wi-Fi state when toggling on/off
Requirements: On Android 5.0 and later, when SELinux is set to enforcing: a superuser app with support for a SELinux context parameter (-cn). Currently, only SuperSU supports this parameter.
Android 7.0: Please check this post by @jakejm79 regarding issues with re-enabling WiFi.
Other issues: When reporting any issues please include the following info in your post: Device, ROM and ROM version, exact version number of this app you use (don't just write "latest"), superuser management app (e.g., SuperSU) and version, content of any shown error messages. Describe in detail what you tried to do, what you expected to happen, and what happened instead. Include screenshots/screencasts where possible and useful to show the issue.
added support for Android 6.0
added option to control automatic refresh of toggle state
small fixes and improvements