public interface

TetheringManagerPrivileged

masonamerica.platform.TetheringManagerPrivileged

Class Overview

A privileged extension of the existing TetheringManager.

Summary

Constants
int BAND_2GHZ 2GHz band.
int BAND_5GHZ 5GHz band.
int BAND_6GHZ 6GHz band.
Public Methods
abstract boolean startTetheringWiFi(String ssid, String passphrase, int securityType, int channel, int band)
Starts WiFi tethering.
abstract boolean stopTetheringWiFi()
Stops WiFi tethering.

Constants

public static final int BAND_2GHZ

2GHz band.

Constant Value: 1 (0x00000001)

public static final int BAND_5GHZ

5GHz band.

Constant Value: 2 (0x00000002)

public static final int BAND_6GHZ

6GHz band.

Constant Value: 4 (0x00000004)

Public Methods

public abstract boolean startTetheringWiFi (String ssid, String passphrase, int securityType, int channel, int 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

public abstract boolean stopTetheringWiFi ()

Stops WiFi tethering. Also cancels any provisioning rechecks for that type if applicable.

Returns
boolean true if the operation succeeded, false otherwise