Universal Hotspot API Demo

by Fran T

Version 2 (May 16, 2018)

Download (177 downloads)

Demonstrates the use of the Wi-Fi Hotspot blocks, as well as a non-rooted UI workaround for Android Oreo, where the blocks may no longer work due to security changes.

Thanks to Kevin for identifying the necessary lock screen UI element!
https://groups.google.com/forum/m/#!msg/automate-user/ymNjrewtODg/akJgitYtCAAJ

The flow detects whether the Oreo UI workaround is needed by checking for an exception from a Wi-Fi Hotspot block during setup. In order for the UI method to be able to turn the hotspot on and off in Android Oreo, the Hotspot tile must be present in Quick Settings. To see if it is, expand the status bar by swiping down twice. If the Hotspot tile isn't present, tap the EDIT or “pen” button, then drag the tile to add it.

To be able to unlock the phone to access Quick Settings, you must also set your Bluetooth device as a Trusted Device. See: Settings/Security & location/Smart Lock/Trusted devices.

Updates:
o Added handling for when the device is already unlocked

5.0 average rating from 2 reviews

5 stars
2
4 stars
0
3 stars
0
2 stars
0
1 star
0
Warnings
0

Reviews and ratings can be submitted in the app.