| masonamerica.platform.TetheringManagerPrivileged |
A privileged extension of the existing TetheringManager.
| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| int | BAND_2GHZ | 2GHz band. | |||||||||
| int | BAND_5GHZ | 5GHz band. | |||||||||
| int | BAND_6GHZ | 6GHz band. | |||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Starts WiFi tethering.
| |||||||||||
Stops WiFi tethering.
| |||||||||||
2GHz band.
5GHz band.
6GHz band.
Starts WiFi tethering. If provisioning fails, stopTetheringWiFi will be called automatically.
| Parameters | |
|---|---|
ssid |
String: SSID of valid Unicode characters, or null to have the SSID automatically chosen by the framework. |
passphrase |
String: The passphrase to use for specific securityType configuration or null with SECURITY_TYPE_OPEN. |
securityType |
int: One of the following security types:
SECURITY_TYPE_OPEN,
SECURITY_TYPE_WPA2_PSK,
SECURITY_TYPE_WPA3_SAE_TRANSITION,
SECURITY_TYPE_WPA3_SAE. |
channel |
int: Operating channel of the AP. A the special value 0 to auto-select |
band |
int: Specifies the band for the AP. One of the following security types:
BAND_2GHZ, BAND_5GHZ, BAND_6GHZ. |
| Returns | |
|---|---|
boolean |
true if the operation succeeded, false otherwise
|
Stops WiFi tethering. Also cancels any provisioning rechecks for that type if applicable.
| Returns | |
|---|---|
boolean |
true if the operation succeeded, false otherwise
|