java.lang.Object | |
↳ | com.samsung.android.knox.ex.KnoxContract.Config.Wifi |
Deprecated
in API level 36
NOTE: This Class is not available since Android 13.
This class provides to set wifi configuration
KEY_WIFI_SSIDS_BLOCK_LIST
add Wi-Fi network service set identifiers (SSIDs) to the Wi-Fi network block list Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | CONTENT_URI_STRING | ||||||||||
String | ID | ||||||||||
String | KEY_WIFI_SSIDS_BLOCK_LIST | ||||||||||
String | PARAM_WIFI_SSIDS_BLOCK_LIST |
Deprecated
in API level 36 NOTE: This API is not available since Android 13. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Deprecated
in API level 36
NOTE: This API is not available since Android 13.
PARAM_WIFI_SSIDS_BLOCK_LIST
Wi-Fi network SSID list to be added to block list Uri uri = Uri.parse("content://com.samsung.android.knox.sdk/config/wifi"); ContentValues contentValues = new ContentValues(); contentValues.put("wifi-ssid-block-list", "your_ssid"); String selection = "key=?"; String[] selectionArgs = new String[] {"wifi-ssid-block-list"}; mContext.getContentResolver().update(uri, contentValues, selection, selectionArgs); Uri uri = Uri.parse("content://com.samsung.android.knox.sdk/config/wifi"); String selection = "key=?"; String[] selectionArgs = new String[] {"wifi-ssid-block-list"}; Cursor cursor = mContext.getContentResolver().query(uri, null, selection, selectionArgs, null); ArrayList<String> blockList = new ArrayList<>(); if (cursor != null) { cursor.moveToFirst(); do { blockList.add(cursor.getString(0)); } while (cursor.moveToNext()); } Uri uri = Uri.parse("content://com.samsung.android.knox.sdk/config/wifi"); String selection = "key=?"; String[] selectionArgs = new String[] {"wifi-ssid-block-list"}; mContext.getContentResolver().delete(uri, selection, selectionArgs); |
API level 34 |
Knox 3.7.1 |
The use of this feature requires the caller to have the "com.samsung.android.knox.permission.KNOX_NDA_DEVICE_SETTINGS_RT" permission. |