Since: API level 17
public class

CustomDeviceManager

extends Object
java.lang.Object
   ↳ com.samsung.android.knox.custom.CustomDeviceManager

Class Overview

This class provides the public interface for device customization.

NOTE: Since version 2.5, the architecture of the SDK changed.
Now, all APIs are members of different classes according to their permission type. (APIs with permission type KNOX_CUSTOM_PROKIOSK, KNOX_CUSTOM_SETTING & KNOX_CUSTOM_SYSTEM are placed in ProKioskManager, SettingsManager & SystemManager classes respectively).
Additionally, a main interface class has been created, CustomDeviceManager, which allows public access to the above classes and provides some utility APIs.

Since
API level 17
Version 2.5

Summary

Constants
int ACCESSIBILITY_ALL Bit mask for controlling all available accessibility settings.
int ACCESSIBILITY_ANSWER_CALL_ON_HOME Bit mask for answering calls by pressing the Home button.
int ACCESSIBILITY_ANSWER_CALL_ON_VOICE Deprecated in API level 27
int ACCESSIBILITY_END_CALL_ON_POWER Bit mask for ending calls by pressing the Power button.
int ACCESSIBILITY_NONE Bit mask to indicate no control over accessibility settings.
int ACCESSIBILITY_NOTIFICATION_REMINDER Bit mask for controlling notification reminders.
int ACCESSIBILITY_SINGLE_TAP_MODE Bit mask for controlling single tap mode.
String ACTION_HARD_KEY_PRESS The device will broadcast the intent When the state of hard key intent reporting is turned on.
String ACTION_HARD_KEY_REPORT Intent that will be broadcasted specifying the key that was pressed and the type of key press.
int ADD The control is add
int ALLOW The feature is allow.
int ALPHABETIC_GRID Flag to indicate that the alignment is alphabetical in DeX mode.
int ANIMATION_MODE_SHUTDOWN Shutdown animation mode.
int ANIMATION_MODE_STARTUP Startup animation mode.
int ANSWER_MODE_DEFAULT Default auto pickup answer mode.
int ANSWER_MODE_SPEAKER Speaker auto pickup answer mode.
int BACKUP Flag to indicate control of the Backup state.
int BOLD_ITALIC_TEXT_STYLE Bold and italic text style.
int BOLD_TEXT_STYLE Bold text style.
int BOTTOM_LEFT Bottom left lock screen shortcut.
int BOTTOM_RIGHT Bottom right lock screen shortcut.
int CALL_SCREEN_ALL Bit mask to indicate in-call controls should be disabled.
int CALL_SCREEN_ENDCALL_CALL_BUTTONS Bit mask to indicate end-of-call redial controls should be disabled.
int CALL_SCREEN_ENDCALL_CONTACTS Bit mask to indicate end-of-call contacts control should be disabled.
int CALL_SCREEN_INCALL_ADD_CALL Bit mask to indicate in-call add call control should be disabled.
int CALL_SCREEN_INCALL_BLUETOOTH Bit mask to indicate in-call Bluetooth control should be disabled.
int CALL_SCREEN_INCALL_EXTRA_VOLUME Bit mask to indicate in-call volume control should be disabled.
int CALL_SCREEN_INCALL_MENU Bit mask to indicate in-call menu should be disabled.
int CALL_SCREEN_INCALL_MUTE Bit mask to indicate in-call mute control should be disabled.
int CALL_SCREEN_INCALL_SPEAKER Bit mask to indicate in-call speaker control should be disabled.
int CALL_SCREEN_NONE Bit mask to indicate no in-call controls should be disabled.
int CLASS_STRING The class name for the Exit UI.
int CLEAR The control is clear
int CUSTOM_GRID Flag to indicate that the alignment is custom in DeX mode.
int DEFAULT The control visibility is default.
int DESTINATION_ADDRESS The destination IP address.
int DISABLE The feature is disabled.
int DISALLOW The feature is disallow.
int ENABLE The feature is enabled.
int ERROR_ALREADY_EXISTS Indicates that the item already exists.
int ERROR_BUSY Indicates that the service is busy with another request.
int ERROR_DEX_MODE Flag to indicate that the device is in DeX mode and prokiosk mode can not be started.
int ERROR_FAIL Indicates that the operation failed.
int ERROR_INVALID_ADDRESS Indicates that the address format is invalid.
int ERROR_INVALID_CALLBACK Indicates that the supplied callback is invalid.
int ERROR_INVALID_CURRENT Indicates that the supplied value is an invalid current.
int ERROR_INVALID_DEVICE Indicates that the supplied device is invalid.
int ERROR_INVALID_EMERGENCY_NUMBER Indicates that the supplied emergency number is invalid.
int ERROR_INVALID_INPUT_TYPE Indicates that the input method type is invalid.
int ERROR_INVALID_LENGTH Indicates that the supplied value has an invalid length.
int ERROR_INVALID_LOCALE Indicates that the locale or language is invalid.
int ERROR_INVALID_MEDIA Indicates that the media (eg.
int ERROR_INVALID_MODE_TYPE Indicates that the mode for the operation is invalid.
int ERROR_INVALID_PACKAGE Indicates that the package name is invalid.
int ERROR_INVALID_PASSCODE Indicates that the supplied passcode is incorrect.
int ERROR_INVALID_PERCENT_VALUE Indicates that the supplied percentage value is incorrect.
int ERROR_INVALID_PERMISSION Indicates that the permission type is incorrect.
int ERROR_INVALID_RING_TONE_TYPE Indicates that the ringtone type is invalid.
int ERROR_INVALID_ROTATION_TYPE Indicates that the rotation value is invalid.
int ERROR_INVALID_SOUND_TYPE Indicates that the sound stream is invalid.
int ERROR_INVALID_STRING Indicates that the supplied string is invalid.
int ERROR_INVALID_STRING_TYPE Indicates that the string type is invalid.
int ERROR_INVALID_TIMEOUT Indicates that the timeout is invalid or negative.
int ERROR_INVALID_UID Indicates that the supplied UID is invalid.
int ERROR_INVALID_VALUE Indicates that the supplied value is invalid.
int ERROR_NOT_FOUND Indicates that the item was not found.
int ERROR_NOT_SUPPORTED Indicates that this method is not supported on this device.
int ERROR_PERMISSION_DENIED Indicates that ProKiosk Mode is enabled by another admin.
int ERROR_POLICY_RESTRICTED Indicates that this method is restricted by EDM policy.
int ERROR_PRO_KIOSK_ACTIVE Indicates that ProKiosk Mode is already enabled.
int ERROR_PRO_KIOSK_NOT_ACTIVE Indicates that ProKiosk Mode is not enabled.
int ERROR_RING_TONE_NOT_FOUND Indicates that the ringtone is not found on the device.
int ERROR_SIM_NOT_READY Indicates that the required SIM is not ready.
int ERROR_UNKNOWN Indicates an unknown error.
int ETHERNET_DHCP DHCP based Ethernet configuration.
int ETHERNET_STATIC_IP Static IP based Ethernet configuration.
String EXTRA_KEY_CODE An int containing the keycode from a hard key press.
String EXTRA_REPORT_TYPE Extra for ACTION_HARD_KEY_REPORT that specifies type of key press.
String EXTRA_REPORT_TYPE_NEW Extra for setHardKeyIntentBroadcast(boolean, int, int, Intent, String, boolean) that specifies type of key press.
String EXTRA_REPORT_TYPE_NEW_LONG_UP An boolean for setHardKeyIntentBroadcast(boolean, int, int, Intent, String, boolean), containing whether it is release after long press.
int FLAG_LOCK_DEX Flag: set or retrieve the lock-screen-specific wallpaper on monitor when it is Dex mode.
int FLAG_LOCK_SUB_DISPLAY Flag: Set or get the lockscreen wallpaper on the front display.
int FLAG_SYSTEM_DEX Flag: set or retrieve the general system wallpaper on monitor when it is Dex mode.
int FLAG_SYSTEM_SUB_DISPLAY Flag: Set or get the wallpaper on the front display when the device is unlocked.
int FOLDER_COLOUR_1 Folder Color 1 NOTE: Actual color will be dependent on the device or theme.
int FOLDER_COLOUR_2 Folder Color 2 NOTE: Actual color will be dependent on the device or theme.
int FOLDER_COLOUR_3 Folder Color 3 NOTE: Actual color will be dependent on the device or theme.
int FOLDER_COLOUR_4 Folder Color 4 NOTE: Actual color will be dependent on the device or theme.
int FOLDER_COLOUR_5 Folder Color 5 NOTE: Actual color will be dependent on the device or theme.
int GESTURE_AIR_COMMAND Gesture for air command.
int GESTURE_AIR_VIEW Gesture for air view.
int HDMI_AUTO_ENTER_DEFAULT The feature is Dex HDMI Auto Enter DEFAULT.
int HDMI_AUTO_ENTER_ON The feature is Dex HDMI Auto Enter On.
int HDMI_AUTO_ENTER_RESET The feature is Dex HDMI Auto Enter Reset.
int HDMI_AUTO_ENTER_RESTORE The feature is Dex HDMI Auto Enter Restore.
int HIDE The control is hidden.
int HOME_SCREEN_AND_APPS Flag to indicate that the home screen mode should display only selected applications.
int HOME_SCREEN_ONLY Flag to indicate that the home screen mode should display all applications.
int IMMEDIATELY Flag to indicate that the device should shut down immediately.
int ITALIC_TEXT_STYLE Italic text style.
int KERNEL_LOG Copy kernel logs.
int KEYBOARD_MODE_NORMAL Normal keyboard mode.
int KEYBOARD_MODE_PREDICTION_OFF Prediction off keyboard mode.
int KEYBOARD_MODE_SETTINGS_OFF No settings keyboard mode.
int KEY_ACTION_DOUBLE Flag to indicate that a key action double shall be reported.
int KEY_ACTION_DOWN Flag to indicate that a key action down shall be reported.
int KEY_ACTION_DOWN_UP Flag to indicate that a key action down&up shall be reported.
int KEY_ACTION_LONG Flag to indicate that a key action long shall be reported.
int KEY_ACTION_UP Flag to indicate that a key action up shall be reported.
int LOCK_SCREEN_ALL Bit mask to indicate all lock screen elements should be disabled.
int LOCK_SCREEN_BATTERY_INFO Bit mask to indicate the lock screen battery element should be disabled.
int LOCK_SCREEN_CARRIER_INFO Bit mask to indicate the lock screen carrier information element should be disabled.
int LOCK_SCREEN_CLOCK Bit mask to indicate the lock screen clock element should be disabled.
int LOCK_SCREEN_DATE Bit mask to indicate the lock screen date element should be disabled.
int LOCK_SCREEN_HELP_TEXT Bit mask to indicate the lock screen help text element should be disabled.
int LOCK_SCREEN_NONE Bit mask to indicate no lock screen elements should be disabled.
int LOCK_SCREEN_NOTIFICATIONS Bit mask to indicate the lock screen notifications should be disabled.
int LOCK_SCREEN_OVERRIDE_NONE Deprecated in API level 27
int LOCK_SCREEN_OVERRIDE_NORMAL Deprecated in API level 27
int LOCK_SCREEN_OVERRIDE_SWIPE Deprecated in API level 27
int LOCK_SCREEN_OWNER_INFO Bit mask to indicate the lock screen owner information element should be disabled.
int LOCK_SCREEN_SHORTCUT Bit mask to indicate the lock screen shorcut elements should be disabled.
int LOGCAT_LOG Copy adb debug logs.
int MAX_HOME_SCREEN_NUM Maximum number of Home screens.
int MAX_QUICK_EDIT_ITEMS_PHONE Maximum number of quick edit items for a phone.
int MAX_QUICK_EDIT_ITEMS_TABLET Maximum number of quick edit items for a tablet.
int MEDIA_PLAYBACK The volume for audio and video playback.
int MOTION Flag to indicate control of the Motion options.
int MULTI_WINDOW_FIXED_STATE Deprecated in API level 27
int MULTI_WINDOW_PERCENTAGE Deprecated in API level 27
int NETWORK_TYPE_GSM_ONLY Deprecated in API level 33
int NETWORK_TYPE_LTE_GSM_WCDMA Deprecated in API level 33
int NETWORK_TYPE_LTE_ONLY Deprecated in API level 33
int NETWORK_TYPE_WCDMA_ONLY Deprecated in API level 33
int NETWORK_TYPE_WCDMA_PREF Deprecated in API level 33
int NORMAL Flag to indicate that the force auto shutdown feature is turned off.
int NOTIFICATIONS The volume for message notifications.
int NOTIFICATIONS_ALL Bit mask to show/hide all warning dialog.
int NOTIFICATIONS_BATTERY_FULL Bit mask to show/hide the battery full dialog.
int NOTIFICATIONS_BATTERY_LOW Bit mask to show/hide the battery low warning dialog.
int NOTIFICATIONS_NITZ_SET_TIME Bit mask to show/hide the NITZ set time dialog.
int NOTIFICATIONS_NONE Bit mask to indicate no notifications.
int NOTIFICATIONS_STATUS_BAR Bit mask to show/hide the status bar warnings.
int OFF The feature is off.
int ON The feature is on.
int PACKAGE_STRING The package name for the Exit UI.
int PALM_MOTION Flag to indicate control of the Palm Motion options.
int POWER_DIALOG_ALL Flag to show all Power dialog options.
int POWER_DIALOG_BUGREPORT Flag to show the bug report Power dialog option.
int POWER_DIALOG_EMERGENCY Flag to show the emergency mode Power dialog option.
int POWER_DIALOG_NONE Flag to hide all Power dialog options.
int POWER_DIALOG_POWEROFF Flag to show the power off Power dialog option.
int POWER_DIALOG_RESTART Flag to show the restart Power dialog option.
int POWER_SAVING_OFF Power saving will be switched off.
int POWER_SAVING_ON Power saving will be switched on.
int POWER_SAVING_ULTRA Deprecated in API level 35
int POWER_SAVING_ULTRA_OFF Deprecated in API level 35
int PRO_KIOSK_OFF_STRING The string for the power menu state if ProKiosk Mode is disabled.
int PRO_KIOSK_ON_STRING The string for the power menu state if ProKiosk Mode is enabled.
int PRO_KIOSK_OPTION_STRING The string for the ProKiosk Mode option on the power menu.
int PRO_KIOSK_SETTINGS_ALL Mask for all ProKiosk Mode UI elements in the Settings app.
int PRO_KIOSK_SETTINGS_BLUETOOTH Bluetooth mask for ProKiosk Mode UI elements in the Settings app.
int PRO_KIOSK_SETTINGS_LOCATION Location mask for ProKiosk Mode UI elements in the Settings app.
int PRO_KIOSK_SETTINGS_NONE Empty mask for ProKiosk Mode UI elements in the Settings app.
int PRO_KIOSK_SETTINGS_WIFI Wi-Fi mask for ProKiosk Mode UI elements in the Settings app.
int QUICK_PANEL_AIRPLANE_MODE Airplane mode quick panel item.
int QUICK_PANEL_ALL_SHARE_CAST Screen mirroring quick panel item.
int QUICK_PANEL_ALWAYS_ON_DISPLAY Always on display quick panel item.
int QUICK_PANEL_AUTO_ROTATE Auto rotate quick panel item.
int QUICK_PANEL_BATTERY_MODE Battery mode quick panel item.
int QUICK_PANEL_BLUETOOTH Bluetooth quick panel item.
int QUICK_PANEL_BLUE_LIGHT_FILTER Blue light filter quick panel item.
int QUICK_PANEL_BUTTON_ALL All quick panel buttons.
int QUICK_PANEL_BUTTON_BRIGHTNESS Brightness quick panel button.
int QUICK_PANEL_BUTTON_NONE No quick panel button.
int QUICK_PANEL_BUTTON_QUICK_CONNECT Quick Connect quick panel button.
int QUICK_PANEL_BUTTON_S_FINDER S-Finder quick panel button.
int QUICK_PANEL_BUTTON_USERS Users panel buttons.
int QUICK_PANEL_DAILY_BOARD DailyBoard quick panel item.
int QUICK_PANEL_DEVICE_VISIBILITY Device visibility quick panel item.
int QUICK_PANEL_DEX_MODE Dex mode quick panel item.
int QUICK_PANEL_DOLBY Dolby quick panel item.
int QUICK_PANEL_DORMANT_MODE Do not disturb quick panel item.
int QUICK_PANEL_LOCATION Location quick panel item.
int QUICK_PANEL_MOBILE_DATA Mobile data quick panel item.
int QUICK_PANEL_MULTI_WINDOW Multi window quick panel item.
int QUICK_PANEL_NFC NFC quick panel item.
int QUICK_PANEL_NONE No quick panel item.
int QUICK_PANEL_PERSONAL_MODE Private mode quick panel item.
int QUICK_PANEL_POWER_SAVING Deprecated in API level 27
int QUICK_PANEL_SECURE_FOLDER SecureFolder quick panel item.
int QUICK_PANEL_SILENT_MODE Sound quick panel item.
int QUICK_PANEL_SMART_STAY Smart Stay quick panel item.
int QUICK_PANEL_SYNC Background sync quick panel item.
int QUICK_PANEL_S_FINDER S-Finder quick panel item.
int QUICK_PANEL_TORCH_LIGHT Torch quick panel item.
int QUICK_PANEL_ULTRA_POWER_SAVING Deprecated in API level 27
int QUICK_PANEL_WIFI Wi-Fi quick panel item.
int QUICK_PANEL_WIFI_HOTSPOT Mobile hotspot quick panel item.
int RECENT_LONGPRESS_GLOBAL Flag to indicate the Recent Button long Press starts the specified application whenever the button is long pressed.
int RECENT_LONGPRESS_HOME Flag to indicate the Recent Button long Press starts the specified application when the home application is active.
int RECENT_LONGPRESS_OFF Flag to indicate the Recent Button long Press operates in default manner.
int REMOVE The control is remove
int RESTORE Flag to indicate control of the Restore state.
int RINGER The volume for incoming calls.
int ROTATION_0 Deprecated in API level 27
int ROTATION_180 Deprecated in API level 27
int ROTATION_270 Deprecated in API level 27
int ROTATION_90 Deprecated in API level 27
int ROTATION_CURRENT Deprecated in API level 27
String SCREEN_NUMBER_STRING String for selecting a home screen.
int SENSOR_ACCELEROMETER Bit mask to indicate the accelerometer sensor should be disabled.
int SENSOR_ALL Bit mask to indicate all sensors should be disabled.
int SENSOR_GYROSCOPE Bit mask to indicate the gyroscope sensor should be disabled.
int SENSOR_LIGHT Bit mask to indicate the light sensor should be disabled.
int SENSOR_MAGNETIC Bit mask to indicate the magnetic sensor should be disabled.
int SENSOR_NONE Bit mask to indicate no sensors should be disabled.
int SENSOR_PRESSURE Bit mask to indicate the pressure sensor should be disabled.
int SENSOR_PROXIMITY Bit mask to indicate the proximity sensor should be disabled.
int SETTINGS_ALL Mask for all UI elements in the Settings app.
int SETTINGS_ALL_PREVIOUS Mask for all UI elements in the Settings app.
int SETTINGS_APPLICATIONS Applications mask for UI elements in the Settings app.
int SETTINGS_BACKUP Backup mask for UI elements in the Settings app.
int SETTINGS_BACKUP_RESET Backup & reset mask for UI elements in the Settings app.
int SETTINGS_BLUETOOTH Bluetooth mask for UI elements in the Settings app.
int SETTINGS_DEVELOPER Developer mask for UI elements in the Settings app.
int SETTINGS_FLIGHT_MODE Flight mode mask for UI elements in the Settings app.
int SETTINGS_LANGUAGE Language mask for UI elements in the Settings app.
int SETTINGS_LOCATION Location mask for UI elements in the Settings app.
int SETTINGS_LOCK_SCREEN Lock screen mask for UI elements in the Settings app.
int SETTINGS_MULTI_WINDOW Deprecated in API level 27
int SETTINGS_RESET Reset mask for UI elements in the Settings app.
int SETTINGS_USERS Users mask for UI elements in the Settings app.
int SETTINGS_WIFI Wi-Fi mask for UI elements in the Settings app.
int SHORTCUT_APP_TYPE Application home screen shortcut.
int SHORTCUT_FILE_TYPE File or bookmark home screen shortcut.
int SHORTCUT_FOLDER_TYPE Folder home screen shortcut .
int SHOW The control is visible.
int SOURCE_ADDRESS The source IP address.
int SUCCESS Indicates that the operation was successful.
int SYSTEM_SOUNDS The volume for general system sounds.
int SYSTEM_SOUNDS_ALL Bit mask for specifying all system sounds.
int SYSTEM_SOUNDS_DTMF_DIALING Bit mask for specifying DTMF tones system sounds.
int SYSTEM_SOUNDS_HAPTIC_FEEDBACK Bit mask for specifying haptic feedback system sounds.
int SYSTEM_SOUNDS_LOCKSCREEN Bit mask for specifying lock screen system sounds.
int SYSTEM_SOUNDS_PEN_DETACH Bit mask for specifying pen detachment system sounds.
int SYSTEM_SOUNDS_SIP_KEY_FEEDBACK Bit mask for specifying SIP tones system sounds.
int SYSTEM_SOUNDS_SOUND_EFFECTS Bit mask for specifying sound effect system sounds.
int TYPE_GRID Flag to indicate that the alignment is grid type in DeX mode.
int TYPE_NOTIFICATION Flag to indicate that the notification type for SIM 1.
int TYPE_NOTIFICATION_SECOND Flag to indicate that the notification type for SIM 2.
int TYPE_RINGTONE Flag to indicate that the ringtone type for SIM 1.
int TYPE_RINGTONE_SECOND Flag to indicate that the ringtone type for SIM 2.
int USB_CONNECTION_TYPE_CHARGING Charging only USB connection.
int USB_CONNECTION_TYPE_DEFAULT Default USB connection.
int USB_CONNECTION_TYPE_MIDI MIDI USB connection.
int USB_CONNECTION_TYPE_MTP MTP USB connection.
int USB_CONNECTION_TYPE_PTP PTP USB connection.
int USB_CONNECTION_TYPE_TETHERING USB Tethering connection.
int USB_DETACHED Flag to indicate that the device should shut down when the USB cable is detached.
int USE_AUTO Standard value for auto (whatever the use).
int USE_DEFAULT Use default value for parameters such as text style, font size, etc.
int VIBRATION_CALL Receive call vibration.
int VIBRATION_MAX_INTENSITY Maximum vibration intensity.
int VIBRATION_NOTIFICATION Notification vibration.
int VIBRATION_SYSTEM System haptic feedback vibration.
int VOICE_CALL The volume for voice calls.
int VOLUME_CONTROL_STREAM_DEFAULT Default volume control stream.
int VOLUME_CONTROL_STREAM_MUSIC Media volume control stream.
int VOLUME_CONTROL_STREAM_NOTIFICATION
int VOLUME_CONTROL_STREAM_RING Ringtone volume control stream.
int VOLUME_CONTROL_STREAM_SYSTEM System volume control stream.
int WIDGET_APP_TYPE Application type widget.
int WIDGET_SURFACE_TYPE Surface type widget.
int WIFI_FREQUENCY_BAND_2GHZ Wi-Fi Frequency band - 2GHz.
int WIFI_FREQUENCY_BAND_5GHZ Wi-Fi Frequency band - 5GHz.
int WIFI_FREQUENCY_BAND_AUTO Wi-Fi Frequency band - automatically selected.
Public Methods
boolean checkEnterprisePermission(String permission)
This method checks if the specified permission is granted to the current application.
DexManager getDexManager()
This method gets access to the DeX Manager object.
synchronized static CustomDeviceManager getInstance()
This method gets access to the Custom Device Manager object.
ProKioskManager getProKioskManager()
This method gets access to the ProKiosk Manager object.
String getSerialNumber()
Deprecated in API level 27
NOTE: This API is not available since Android 11.
SettingsManager getSettingsManager()
This method gets access to the Settings Manager object.
SystemManager getSystemManager()
This method gets access to the System Manager object.
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final int ACCESSIBILITY_ALL

Since: API level 19

Bit mask for controlling all available accessibility settings.

Since
API level 19
Version 2.6
Constant Value: 31 (0x0000001f)

public static final int ACCESSIBILITY_ANSWER_CALL_ON_HOME

Since: API level 19

Bit mask for answering calls by pressing the Home button.

Since
API level 19
Version 2.6
Constant Value: 1 (0x00000001)

public static final int ACCESSIBILITY_ANSWER_CALL_ON_VOICE

Since: API level 19

Deprecated in API level 27

Bit mask for answering calls using voice commands.

Since
API level 19
Version 2.6
Constant Value: 2 (0x00000002)

public static final int ACCESSIBILITY_END_CALL_ON_POWER

Since: API level 19

Bit mask for ending calls by pressing the Power button.

Since
API level 19
Version 2.6
Constant Value: 4 (0x00000004)

public static final int ACCESSIBILITY_NONE

Since: API level 19

Bit mask to indicate no control over accessibility settings.

Since
API level 19
Version 2.6
Constant Value: 0 (0x00000000)

public static final int ACCESSIBILITY_NOTIFICATION_REMINDER

Since: API level 19

Bit mask for controlling notification reminders.

Since
API level 19
Version 2.6
Constant Value: 8 (0x00000008)

public static final int ACCESSIBILITY_SINGLE_TAP_MODE

Since: API level 19

Bit mask for controlling single tap mode.

Since
API level 19
Version 2.6
Constant Value: 16 (0x00000010)

public static final String ACTION_HARD_KEY_PRESS

Since: API level 24

The device will broadcast the intent When the state of hard key intent reporting is turned on.

Since
API level 24
Version 3.0
Constant Value: "com.samsung.android.knox.intent.action.HARD_KEY_PRESS"

public static final String ACTION_HARD_KEY_REPORT

Since: API level 29

Intent that will be broadcasted specifying the key that was pressed and the type of key press.

Since
API level 29
KNOX 3.4
Constant Value: "com.samsung.android.knox.intent.action.HARD_KEY_REPORT"

public static final int ADD

Since: API level 26

The control is add

Since
API level 26
Version 3.2
Constant Value: 5 (0x00000005)

public static final int ALLOW

Since: API level 28

The feature is allow.

Since
API level 28
Version 3.3
Constant Value: 9 (0x00000009)

public static final int ALPHABETIC_GRID

Since: API level 26

Flag to indicate that the alignment is alphabetical in DeX mode.

Since
API level 26
KNOX 3.2
Constant Value: 1 (0x00000001)

public static final int ANIMATION_MODE_SHUTDOWN

Since: API level 19

Shutdown animation mode.

Since
API level 19
Version 2.6
Constant Value: 1 (0x00000001)

public static final int ANIMATION_MODE_STARTUP

Since: API level 19

Startup animation mode.

Since
API level 19
Version 2.6
Constant Value: 0 (0x00000000)

public static final int ANSWER_MODE_DEFAULT

Since: API level 20

Default auto pickup answer mode.

Since
API level 20
Version 2.7
Constant Value: 0 (0x00000000)

public static final int ANSWER_MODE_SPEAKER

Since: API level 20

Speaker auto pickup answer mode.

Since
API level 20
Version 2.7
Constant Value: 1 (0x00000001)

public static final int BACKUP

Since: API level 17

Flag to indicate control of the Backup state.

Since
API level 17
Version 1.0
Constant Value: 1 (0x00000001)

public static final int BOLD_ITALIC_TEXT_STYLE

Since: API level 17

Bold and italic text style.

Since
API level 17
Version 2.4
Constant Value: 3 (0x00000003)

public static final int BOLD_TEXT_STYLE

Since: API level 17

Bold text style.

Since
API level 17
Version 2.4
Constant Value: 1 (0x00000001)

public static final int BOTTOM_LEFT

Since: API level 20

Bottom left lock screen shortcut.

Since
API level 20
Version 2.7
Constant Value: 0 (0x00000000)

public static final int BOTTOM_RIGHT

Since: API level 20

Bottom right lock screen shortcut.

Since
API level 20
Version 2.7
Constant Value: 1 (0x00000001)

public static final int CALL_SCREEN_ALL

Since: API level 17

Bit mask to indicate in-call controls should be disabled.

Since
API level 17
Version 2.4
Constant Value: 255 (0x000000ff)

public static final int CALL_SCREEN_ENDCALL_CALL_BUTTONS

Since: API level 17

Bit mask to indicate end-of-call redial controls should be disabled.

Since
API level 17
Version 2.4
Constant Value: 128 (0x00000080)

public static final int CALL_SCREEN_ENDCALL_CONTACTS

Since: API level 17

Bit mask to indicate end-of-call contacts control should be disabled.

Since
API level 17
Version 2.4
Constant Value: 64 (0x00000040)

public static final int CALL_SCREEN_INCALL_ADD_CALL

Since: API level 17

Bit mask to indicate in-call add call control should be disabled.

Since
API level 17
Version 2.4
Constant Value: 4 (0x00000004)

public static final int CALL_SCREEN_INCALL_BLUETOOTH

Since: API level 17

Bit mask to indicate in-call Bluetooth control should be disabled.

Since
API level 17
Version 2.4
Constant Value: 32 (0x00000020)

public static final int CALL_SCREEN_INCALL_EXTRA_VOLUME

Since: API level 17

Bit mask to indicate in-call volume control should be disabled.

Since
API level 17
Version 2.4
Constant Value: 2 (0x00000002)

public static final int CALL_SCREEN_INCALL_MENU

Since: API level 20

Bit mask to indicate in-call menu should be disabled.

Since
API level 17
Version 2.4
Constant Value: 1 (0x00000001)

public static final int CALL_SCREEN_INCALL_MUTE

Since: API level 17

Bit mask to indicate in-call mute control should be disabled.

Since
API level 17
Version 2.4
Constant Value: 16 (0x00000010)

public static final int CALL_SCREEN_INCALL_SPEAKER

Since: API level 17

Bit mask to indicate in-call speaker control should be disabled.

Since
API level 17
Version 2.4
Constant Value: 8 (0x00000008)

public static final int CALL_SCREEN_NONE

Since: API level 17

Bit mask to indicate no in-call controls should be disabled.

Since
API level 17
Version 2.4
Constant Value: 0 (0x00000000)

public static final int CLASS_STRING

Since: API level 17

The class name for the Exit UI.

Since
API level 17
Version 1.0
Constant Value: 222 (0x000000de)

public static final int CLEAR

Since: API level 26

The control is clear

Since
API level 26
Version 3.2
Constant Value: 7 (0x00000007)

public static final int CUSTOM_GRID

Since: API level 26

Flag to indicate that the alignment is custom in DeX mode.

Since
API level 26
KNOX 3.2
Constant Value: 0 (0x00000000)

public static final int DEFAULT

Since: API level 17

The control visibility is default.

Since
API level 17
Version 1.0
Constant Value: 4 (0x00000004)

public static final int DESTINATION_ADDRESS

Since: API level 17

The destination IP address.

Since
API level 17
Version 1.0
Constant Value: 332 (0x0000014c)

public static final int DISABLE

Since: API level 17

The feature is disabled.

Since
API level 17
Version 1.0
Constant Value: 0 (0x00000000)

public static final int DISALLOW

Since: API level 28

The feature is disallow.

Since
API level 28
Version 3.3
Constant Value: 8 (0x00000008)

public static final int ENABLE

Since: API level 17

The feature is enabled.

Since
API level 17
Version 1.0
Constant Value: 1 (0x00000001)

public static final int ERROR_ALREADY_EXISTS

Since: API level 20

Indicates that the item already exists.

Since
API level 20
Version 2.7
Constant Value: -55 (0xffffffc9)

public static final int ERROR_BUSY

Since: API level 17

Indicates that the service is busy with another request.

Since
API level 17
Version 1.0
Constant Value: -5 (0xfffffffb)

public static final int ERROR_DEX_MODE

Since: API level 26

Flag to indicate that the device is in DeX mode and prokiosk mode can not be started.

Since
API level 26
KNOX 3.2
Constant Value: -8 (0xfffffff8)

public static final int ERROR_FAIL

Since: API level 17

Indicates that the operation failed.

Since
API level 17
Version 1.0
Constant Value: -1 (0xffffffff)

public static final int ERROR_INVALID_ADDRESS

Since: API level 17

Indicates that the address format is invalid.

Since
API level 17
Version 1.0
Constant Value: -36 (0xffffffdc)

public static final int ERROR_INVALID_CALLBACK

Since: API level 17

Indicates that the supplied callback is invalid.

Since
API level 17
Version 2.4
Constant Value: -52 (0xffffffcc)

public static final int ERROR_INVALID_CURRENT

Since: API level 17

Indicates that the supplied value is an invalid current.

Since
API level 17
Version 2.4
Constant Value: -53 (0xffffffcb)

public static final int ERROR_INVALID_DEVICE

Since: API level 17

Indicates that the supplied device is invalid.

Since
API level 17
Version 1.0
Constant Value: -47 (0xffffffd1)

public static final int ERROR_INVALID_EMERGENCY_NUMBER

Since: API level 17

Indicates that the supplied emergency number is invalid.

Since
API level 17
Version 2.0
Constant Value: -49 (0xffffffcf)

public static final int ERROR_INVALID_INPUT_TYPE

Since: API level 17

Indicates that the input method type is invalid.

Since
API level 17
Version 1.0
Constant Value: -48 (0xffffffd0)

public static final int ERROR_INVALID_LENGTH

Since: API level 17

Indicates that the supplied value has an invalid length.

Since
API level 17
Version 2.4
Constant Value: -51 (0xffffffcd)

public static final int ERROR_INVALID_LOCALE

Since: API level 17

Indicates that the locale or language is invalid.

Since
API level 17
Version 1.0
Constant Value: -44 (0xffffffd4)

public static final int ERROR_INVALID_MEDIA

Since: API level 20

Indicates that the media (eg. Image/Audio/Video) is invalid.

Since
API level 20
Version 2.7
Constant Value: -57 (0xffffffc7)

public static final int ERROR_INVALID_MODE_TYPE

Since: API level 17

Indicates that the mode for the operation is invalid.

Since
API level 17
Version 1.0
Constant Value: -43 (0xffffffd5)

public static final int ERROR_INVALID_PACKAGE

Since: API level 17

Indicates that the package name is invalid.

Since
API level 17
Version 1.0
Constant Value: -33 (0xffffffdf)

public static final int ERROR_INVALID_PASSCODE

Since: API level 17

Indicates that the supplied passcode is incorrect.

Since
API level 17
Version 1.0
Constant Value: -32 (0xffffffe0)

public static final int ERROR_INVALID_PERCENT_VALUE

Since: API level 17

Indicates that the supplied percentage value is incorrect.

Since
API level 17
Version 1.0
Constant Value: -42 (0xffffffd6)

public static final int ERROR_INVALID_PERMISSION

Since: API level 17

Indicates that the permission type is incorrect.

Since
API level 17
Version 1.0
Constant Value: -37 (0xffffffdb)

public static final int ERROR_INVALID_RING_TONE_TYPE

Since: API level 17

Indicates that the ringtone type is invalid.

Since
API level 17
Version 1.0
Constant Value: -34 (0xffffffde)

public static final int ERROR_INVALID_ROTATION_TYPE

Since: API level 17

Indicates that the rotation value is invalid.

Since
API level 17
Version 1.0
Constant Value: -39 (0xffffffd9)

public static final int ERROR_INVALID_SOUND_TYPE

Since: API level 17

Indicates that the sound stream is invalid.

Since
API level 17
Version 1.0
Constant Value: -38 (0xffffffda)

public static final int ERROR_INVALID_STRING

Since: API level 17

Indicates that the supplied string is invalid.

Since
API level 17
Version 1.0
Constant Value: -40 (0xffffffd8)

public static final int ERROR_INVALID_STRING_TYPE

Since: API level 17

Indicates that the string type is invalid.

Since
API level 17
Version 1.0
Constant Value: -41 (0xffffffd7)

public static final int ERROR_INVALID_TIMEOUT

Since: API level 17

Indicates that the timeout is invalid or negative.

Since
API level 17
Version 1.0
Constant Value: -45 (0xffffffd3)

public static final int ERROR_INVALID_UID

Since: API level 17

Indicates that the supplied UID is invalid.

Since
API level 17
Version 1.0
Constant Value: -46 (0xffffffd2)

public static final int ERROR_INVALID_VALUE

Since: API level 17

Indicates that the supplied value is invalid.

Since
API level 17
Version 2.4
Constant Value: -50 (0xffffffce)

public static final int ERROR_NOT_FOUND

Since: API level 17

Indicates that the item was not found.

Since
API level 17
Version 2.4
Constant Value: -54 (0xffffffca)

public static final int ERROR_NOT_SUPPORTED

Since: API level 17

Indicates that this method is not supported on this device.

Since
API level 17
Version 1.0
Constant Value: -6 (0xfffffffa)

public static final int ERROR_PERMISSION_DENIED

Since: API level 17

Indicates that ProKiosk Mode is enabled by another admin.

Since
API level 17
Version 1.0
Constant Value: -4 (0xfffffffc)

public static final int ERROR_POLICY_RESTRICTED

Since: API level 17

Indicates that this method is restricted by EDM policy.

Since
API level 17
Version 1.0
Constant Value: -7 (0xfffffff9)

public static final int ERROR_PRO_KIOSK_ACTIVE

Since: API level 17

Indicates that ProKiosk Mode is already enabled.

Since
API level 17
Version 1.0
Constant Value: -3 (0xfffffffd)

public static final int ERROR_PRO_KIOSK_NOT_ACTIVE

Since: API level 17

Indicates that ProKiosk Mode is not enabled.

Since
API level 17
Version 1.0
Constant Value: -2 (0xfffffffe)

public static final int ERROR_RING_TONE_NOT_FOUND

Since: API level 17

Indicates that the ringtone is not found on the device.

Since
API level 17
Version 1.0
Constant Value: -35 (0xffffffdd)

public static final int ERROR_SIM_NOT_READY

Since: API level 20

Indicates that the required SIM is not ready.

Since
API level 20
Version 2.7
Constant Value: -56 (0xffffffc8)

public static final int ERROR_UNKNOWN

Since: API level 17

Indicates an unknown error.

Since
API level 17
Version 1.0
Constant Value: -2000 (0xfffff830)

public static final int ETHERNET_DHCP

Since: API level 17

DHCP based Ethernet configuration.

Since
API level 17
Version 2.4
Constant Value: 0 (0x00000000)

public static final int ETHERNET_STATIC_IP

Since: API level 17

Static IP based Ethernet configuration.

Since
API level 17
Version 2.4
Constant Value: 1 (0x00000001)

public static final String EXTRA_KEY_CODE

Since: API level 24

An int containing the keycode from a hard key press.

Since
API level 24
Version 3.0
Constant Value: "com.samsung.android.knox.intent.extra.KEY_CODE"

public static final String EXTRA_REPORT_TYPE

Since: API level 29

Extra for ACTION_HARD_KEY_REPORT that specifies type of key press.

Since
API level 29
KNOX 3.4
Constant Value: "com.samsung.android.knox.intent.extra.KEY_REPORT_TYPE"

public static final String EXTRA_REPORT_TYPE_NEW

Since: API level 34
Since
API level 34
KNOX 3.7.1
Constant Value: "com.samsung.android.knox.intent.extra.KEY_REPORT_TYPE_NEW"

public static final String EXTRA_REPORT_TYPE_NEW_LONG_UP

Since: API level 36

An boolean for setHardKeyIntentBroadcast(boolean, int, int, Intent, String, boolean), containing whether it is release after long press.

Since
API level 36
KNOX 3.9
Constant Value: "com.samsung.android.knox.intent.extra.EXTRA_REPORT_TYPE_NEW_LONG_UP"

public static final int FLAG_LOCK_DEX

Since: API level 28

Flag: set or retrieve the lock-screen-specific wallpaper on monitor when it is Dex mode.

Since
API level 28
Version 3.3
Constant Value: 10 (0x0000000a)

public static final int FLAG_LOCK_SUB_DISPLAY

Since: API level 29

Flag: Set or get the lockscreen wallpaper on the front display.

Since
API level 29
Version 3.4
Constant Value: 1042 (0x00000412)

public static final int FLAG_SYSTEM_DEX

Since: API level 28

Flag: set or retrieve the general system wallpaper on monitor when it is Dex mode.

Since
API level 28
Version 3.3
Constant Value: 9 (0x00000009)

public static final int FLAG_SYSTEM_SUB_DISPLAY

Since: API level 29

Flag: Set or get the wallpaper on the front display when the device is unlocked.

Since
API level 29
Version 3.4
Constant Value: 1041 (0x00000411)

public static final int FOLDER_COLOUR_1

Since: API level 20

Folder Color 1 NOTE: Actual color will be dependent on the device or theme.

Since
API level 20
Version 2.7
Constant Value: 1 (0x00000001)

public static final int FOLDER_COLOUR_2

Since: API level 20

Folder Color 2 NOTE: Actual color will be dependent on the device or theme.

Since
API level 20
Version 2.7
Constant Value: 2 (0x00000002)

public static final int FOLDER_COLOUR_3

Since: API level 20

Folder Color 3 NOTE: Actual color will be dependent on the device or theme.

Since
API level 20
Version 2.7
Constant Value: 3 (0x00000003)

public static final int FOLDER_COLOUR_4

Since: API level 20

Folder Color 4 NOTE: Actual color will be dependent on the device or theme.

Since
API level 20
Version 2.7
Constant Value: 4 (0x00000004)

public static final int FOLDER_COLOUR_5

Since: API level 20

Folder Color 5 NOTE: Actual color will be dependent on the device or theme.

Since
API level 20
Version 2.7
Constant Value: 5 (0x00000005)

public static final int GESTURE_AIR_COMMAND

Since: API level 17

Gesture for air command.

Since
API level 17
Version 2.5
Constant Value: 0 (0x00000000)

public static final int GESTURE_AIR_VIEW

Since: API level 17

Gesture for air view.

Since
API level 17
Version 2.5
Constant Value: 1 (0x00000001)

public static final int HDMI_AUTO_ENTER_DEFAULT

Since: API level 28

The feature is Dex HDMI Auto Enter DEFAULT.

Since
API level 28
Version 3.3
Constant Value: 9 (0x00000009)

public static final int HDMI_AUTO_ENTER_ON

Since: API level 28

The feature is Dex HDMI Auto Enter On.

Since
API level 28
Version 3.3
Constant Value: 1 (0x00000001)

public static final int HDMI_AUTO_ENTER_RESET

Since: API level 28

The feature is Dex HDMI Auto Enter Reset.

Since
API level 28
Version 3.3
Constant Value: 2 (0x00000002)

public static final int HDMI_AUTO_ENTER_RESTORE

Since: API level 28

The feature is Dex HDMI Auto Enter Restore.

Since
API level 28
Version 3.3
Constant Value: 0 (0x00000000)

public static final int HIDE

Since: API level 17

The control is hidden.

Since
API level 17
Version 1.0
Constant Value: 3 (0x00000003)

public static final int HOME_SCREEN_AND_APPS

Since: API level 24

Flag to indicate that the home screen mode should display only selected applications.

Since
API level 24
Version 3.0
Constant Value: 1 (0x00000001)

public static final int HOME_SCREEN_ONLY

Since: API level 24

Flag to indicate that the home screen mode should display all applications.

Since
API level 24
Version 3.0
Constant Value: 0 (0x00000000)

public static final int IMMEDIATELY

Since: API level 22

Flag to indicate that the device should shut down immediately.

Since
API level 22
Version 2.8
Constant Value: 2 (0x00000002)

public static final int ITALIC_TEXT_STYLE

Since: API level 17

Italic text style.

Since
API level 17
Version 2.4
Constant Value: 2 (0x00000002)

public static final int KERNEL_LOG

Since: API level 17

Copy kernel logs.

Since
API level 17
Version 2.4
Constant Value: 2 (0x00000002)

public static final int KEYBOARD_MODE_NORMAL

Since: API level 17

Normal keyboard mode.

Since
API level 17
Version 2.5
Constant Value: 0 (0x00000000)

public static final int KEYBOARD_MODE_PREDICTION_OFF

Since: API level 17

Prediction off keyboard mode.

Since
API level 17
Version 2.5
Constant Value: 1 (0x00000001)

public static final int KEYBOARD_MODE_SETTINGS_OFF

Since: API level 17

No settings keyboard mode.

Since
API level 17
Version 2.5
Constant Value: 2 (0x00000002)

public static final int KEY_ACTION_DOUBLE

Since: API level 36

Flag to indicate that a key action double shall be reported.

Since
API level 36
KNOX 3.9
Constant Value: 8 (0x00000008)

public static final int KEY_ACTION_DOWN

Since: API level 29

Flag to indicate that a key action down shall be reported.

Since
API level 29
KNOX 3.4
Constant Value: 1 (0x00000001)

public static final int KEY_ACTION_DOWN_UP

Since: API level 34

Flag to indicate that a key action down&up shall be reported.

Since
API level 34
KNOX 3.7.1
Constant Value: 3 (0x00000003)

public static final int KEY_ACTION_LONG

Since: API level 34

Flag to indicate that a key action long shall be reported.

Since
API level 34
KNOX 3.7.1
Constant Value: 4 (0x00000004)

public static final int KEY_ACTION_UP

Since: API level 29

Flag to indicate that a key action up shall be reported.

Since
API level 29
KNOX 3.4
Constant Value: 2 (0x00000002)

public static final int LOCK_SCREEN_ALL

Since: API level 17

Bit mask to indicate all lock screen elements should be disabled.

Since
API level 17
Version 2.4
Constant Value: 1023 (0x000003ff)

public static final int LOCK_SCREEN_BATTERY_INFO

Since: API level 17

Bit mask to indicate the lock screen battery element should be disabled.

Since
API level 17
Version 2.4
Constant Value: 2 (0x00000002)

public static final int LOCK_SCREEN_CARRIER_INFO

Since: API level 17

Bit mask to indicate the lock screen carrier information element should be disabled.

Since
API level 17
Version 2.4
Constant Value: 4 (0x00000004)

public static final int LOCK_SCREEN_CLOCK

Since: API level 17

Bit mask to indicate the lock screen clock element should be disabled.

Since
API level 17
Version 2.4
Constant Value: 1 (0x00000001)

public static final int LOCK_SCREEN_DATE

Since: API level 17

Bit mask to indicate the lock screen date element should be disabled.

Since
API level 17
Version 2.4
Constant Value: 16 (0x00000010)

public static final int LOCK_SCREEN_HELP_TEXT

Since: API level 17

Bit mask to indicate the lock screen help text element should be disabled.

Since
API level 17
Version 2.4
Constant Value: 256 (0x00000100)

public static final int LOCK_SCREEN_NONE

Since: API level 17

Bit mask to indicate no lock screen elements should be disabled.

Since
API level 17
Version 2.4
Constant Value: 0 (0x00000000)

public static final int LOCK_SCREEN_NOTIFICATIONS

Since: API level 17

Bit mask to indicate the lock screen notifications should be disabled.

Since
API level 17
Version 2.4
Constant Value: 512 (0x00000200)

public static final int LOCK_SCREEN_OVERRIDE_NONE

Since: API level 17

Deprecated in API level 27

Override the lock screen with no lock.

Since
API level 17
Version 2.5
Constant Value: 2 (0x00000002)

public static final int LOCK_SCREEN_OVERRIDE_NORMAL

Since: API level 17

Deprecated in API level 27

No lock screen override.

Since
API level 17
Version 2.5
Constant Value: 0 (0x00000000)

public static final int LOCK_SCREEN_OVERRIDE_SWIPE

Since: API level 17

Deprecated in API level 27

Override the lock screen with swipe.

Since
API level 17
Version 2.5
Constant Value: 1 (0x00000001)

public static final int LOCK_SCREEN_OWNER_INFO

Since: API level 17

Bit mask to indicate the lock screen owner information element should be disabled.

Since
API level 17
Version 2.4
Constant Value: 32 (0x00000020)

public static final int LOCK_SCREEN_SHORTCUT

Since: API level 17

Bit mask to indicate the lock screen shorcut elements should be disabled.

Since
API level 17
Version 2.4
Constant Value: 64 (0x00000040)

public static final int LOGCAT_LOG

Since: API level 17

Copy adb debug logs.

Since
API level 17
Version 2.4
Constant Value: 1 (0x00000001)

public static final int MAX_HOME_SCREEN_NUM

Since: API level 20

Maximum number of Home screens.

Since
API level 20
Version 2.7
Constant Value: 7 (0x00000007)

public static final int MAX_QUICK_EDIT_ITEMS_PHONE

Since: API level 19

Maximum number of quick edit items for a phone.

Since
API level 19
Version 2.6
Constant Value: 10 (0x0000000a)

public static final int MAX_QUICK_EDIT_ITEMS_TABLET

Since: API level 19

Maximum number of quick edit items for a tablet.

Since
API level 19
Version 2.6
Constant Value: 14 (0x0000000e)

public static final int MEDIA_PLAYBACK

Since: API level 17

The volume for audio and video playback.

Since
API level 17
Version 1.0
Constant Value: 3 (0x00000003)

public static final int MOTION

Since: API level 17

Flag to indicate control of the Motion options.

Since
API level 17
Version 1.0
Constant Value: 1 (0x00000001)

public static final int MULTI_WINDOW_FIXED_STATE

Since: API level 17

Deprecated in API level 27

The windows are not moveable by the user.

Since
API level 17
Version 1.0
Constant Value: 441 (0x000001b9)

public static final int MULTI_WINDOW_PERCENTAGE

Since: API level 17

Deprecated in API level 27

The size of the first multi window application.

Since
API level 17
Version 1.0
Constant Value: 442 (0x000001ba)

public static final int NETWORK_TYPE_GSM_ONLY

Since: API level 19

Deprecated in API level 33

GSM only network.

Since
API level 19
Version 2.6
Constant Value: 1 (0x00000001)

public static final int NETWORK_TYPE_LTE_GSM_WCDMA

Since: API level 19

Deprecated in API level 33

LTE, GSM/WCDMA network.

Since
API level 19
Version 2.6
Constant Value: 9 (0x00000009)

public static final int NETWORK_TYPE_LTE_ONLY

Since: API level 19

Deprecated in API level 33

LTE only network.

Since
API level 19
Version 2.6
Constant Value: 11 (0x0000000b)

public static final int NETWORK_TYPE_WCDMA_ONLY

Since: API level 19

Deprecated in API level 33

WCDMA only network.

Since
API level 19
Version 2.6
Constant Value: 2 (0x00000002)

public static final int NETWORK_TYPE_WCDMA_PREF

Since: API level 19

Deprecated in API level 33

GSM/WCDMA (WCDMA preferred) network.

Since
API level 19
Version 2.6
Constant Value: 0 (0x00000000)

public static final int NORMAL

Since: API level 22

Flag to indicate that the force auto shutdown feature is turned off.

Since
API level 22
Version 2.8
Constant Value: 0 (0x00000000)

public static final int NOTIFICATIONS

Since: API level 17

The volume for message notifications.

Since
API level 17
Version 1.0
Constant Value: 5 (0x00000005)

public static final int NOTIFICATIONS_ALL

Since: API level 17

Bit mask to show/hide all warning dialog.

Since
API level 17
Version 1.0
Constant Value: 31 (0x0000001f)

public static final int NOTIFICATIONS_BATTERY_FULL

Since: API level 17

Bit mask to show/hide the battery full dialog.

Since
API level 17
Version 1.0
Constant Value: 2 (0x00000002)

public static final int NOTIFICATIONS_BATTERY_LOW

Since: API level 17

Bit mask to show/hide the battery low warning dialog.

Since
API level 17
Version 1.0
Constant Value: 1 (0x00000001)

public static final int NOTIFICATIONS_NITZ_SET_TIME

Since: API level 17

Bit mask to show/hide the NITZ set time dialog.

Since
API level 17
Version 1.0
Constant Value: 16 (0x00000010)

public static final int NOTIFICATIONS_NONE

Since: API level 17

Bit mask to indicate no notifications.

Since
API level 17
Version 1.0
Constant Value: 0 (0x00000000)

public static final int NOTIFICATIONS_STATUS_BAR

Since: API level 17

Bit mask to show/hide the status bar warnings.

Since
API level 17
Version 1.0
Constant Value: 8 (0x00000008)

public static final int OFF

Since: API level 19

The feature is off.

Since
API level 19
Version 2.6
Constant Value: 0 (0x00000000)

public static final int ON

Since: API level 19

The feature is on.

Since
API level 19
Version 2.6
Constant Value: 1 (0x00000001)

public static final int PACKAGE_STRING

Since: API level 17

The package name for the Exit UI.

Since
API level 17
Version 1.0
Constant Value: 221 (0x000000dd)

public static final int PALM_MOTION

Since: API level 17

Flag to indicate control of the Palm Motion options.

Since
API level 17
Version 1.0
Constant Value: 2 (0x00000002)

public static final int POWER_DIALOG_ALL

Since: API level 28

Flag to show all Power dialog options.

Constant Value: 1023 (0x000003ff)

public static final int POWER_DIALOG_BUGREPORT

Since: API level 17

Flag to show the bug report Power dialog option.

Since
API level 17
Version 1.0
Constant Value: 256 (0x00000100)

public static final int POWER_DIALOG_EMERGENCY

Since: API level 17

Flag to show the emergency mode Power dialog option.

Since
API level 17
Version 1.0
Constant Value: 128 (0x00000080)

public static final int POWER_DIALOG_NONE

Since: API level 17

Flag to hide all Power dialog options.

Since
API level 17
Version 1.0
Constant Value: 0 (0x00000000)

public static final int POWER_DIALOG_POWEROFF

Since: API level 20

Flag to show the power off Power dialog option.

Since
API level 17
Version 1.0
Constant Value: 4 (0x00000004)

public static final int POWER_DIALOG_RESTART

Since: API level 20

Flag to show the restart Power dialog option.

Since
API level 17
Version 1.0
Constant Value: 64 (0x00000040)

public static final int POWER_SAVING_OFF

Since: API level 17

Power saving will be switched off.

Since
API level 17
Version 2.4
Constant Value: 0 (0x00000000)

public static final int POWER_SAVING_ON

Since: API level 17

Power saving will be switched on.

Since
API level 17
Version 2.4
Constant Value: 1 (0x00000001)

public static final int POWER_SAVING_ULTRA

Since: API level 17

Deprecated in API level 35

Ultra Power Saving will be enabled.

Since
API level 17
Version 2.4
Constant Value: 2 (0x00000002)

public static final int POWER_SAVING_ULTRA_OFF

Since: API level 17

Deprecated in API level 35

Ultra Power Saving will be disabled.

Since
API level 17
Version 2.4
Constant Value: 3 (0x00000003)

public static final int PRO_KIOSK_OFF_STRING

Since: API level 17

The string for the power menu state if ProKiosk Mode is disabled.

Since
API level 17
Version 2.5
Constant Value: 113 (0x00000071)

public static final int PRO_KIOSK_ON_STRING

Since: API level 17

The string for the power menu state if ProKiosk Mode is enabled.

Since
API level 17
Version 2.5
Constant Value: 112 (0x00000070)

public static final int PRO_KIOSK_OPTION_STRING

Since: API level 17

The string for the ProKiosk Mode option on the power menu.

Since
API level 17
Version 2.5
Constant Value: 111 (0x0000006f)

public static final int PRO_KIOSK_SETTINGS_ALL

Since: API level 17

Mask for all ProKiosk Mode UI elements in the Settings app.

Since
API level 17
Version 2.5
Constant Value: 7 (0x00000007)

public static final int PRO_KIOSK_SETTINGS_BLUETOOTH

Since: API level 17

Bluetooth mask for ProKiosk Mode UI elements in the Settings app.

Since
API level 17
Version 2.5
Constant Value: 2 (0x00000002)

public static final int PRO_KIOSK_SETTINGS_LOCATION

Since: API level 17

Location mask for ProKiosk Mode UI elements in the Settings app.

Since
API level 17
Version 2.5
Constant Value: 4 (0x00000004)

public static final int PRO_KIOSK_SETTINGS_NONE

Since: API level 17

Empty mask for ProKiosk Mode UI elements in the Settings app.

Since
API level 17
Version 2.5
Constant Value: 0 (0x00000000)

public static final int PRO_KIOSK_SETTINGS_WIFI

Since: API level 17

Wi-Fi mask for ProKiosk Mode UI elements in the Settings app.

Since
API level 17
Version 2.5
Constant Value: 1 (0x00000001)

public static final int QUICK_PANEL_AIRPLANE_MODE

Since: API level 19

Airplane mode quick panel item.

Since
API level 19
Version 2.6
Constant Value: 8 (0x00000008)

public static final int QUICK_PANEL_ALL_SHARE_CAST

Since: API level 19

Screen mirroring quick panel item.

Since
API level 19
Version 2.6
Constant Value: 15 (0x0000000f)

public static final int QUICK_PANEL_ALWAYS_ON_DISPLAY

Since: API level 20

Always on display quick panel item.

Since
API level 20
Version 2.7
Constant Value: 22 (0x00000016)

public static final int QUICK_PANEL_AUTO_ROTATE

Since: API level 19

Auto rotate quick panel item.

Since
API level 19
Version 2.6
Constant Value: 4 (0x00000004)

public static final int QUICK_PANEL_BATTERY_MODE

Since: API level 28

Battery mode quick panel item.

Since
API level 31
Version 3.5
Constant Value: 23 (0x00000017)

public static final int QUICK_PANEL_BLUETOOTH

Since: API level 19

Bluetooth quick panel item.

Since
API level 19
Version 2.6
Constant Value: 5 (0x00000005)

public static final int QUICK_PANEL_BLUE_LIGHT_FILTER

Since: API level 20

Blue light filter quick panel item.

Since
API level 20
Version 2.7
Constant Value: 21 (0x00000015)

public static final int QUICK_PANEL_BUTTON_ALL

Since: API level 19

All quick panel buttons.

Since
API level 19
Version 2.6
Constant Value: 7 (0x00000007)

public static final int QUICK_PANEL_BUTTON_BRIGHTNESS

Since: API level 19

Brightness quick panel button.

Since
API level 19
Version 2.6
Constant Value: 4 (0x00000004)

public static final int QUICK_PANEL_BUTTON_NONE

Since: API level 19

No quick panel button.

Since
API level 19
Version 2.6
Constant Value: 0 (0x00000000)

public static final int QUICK_PANEL_BUTTON_QUICK_CONNECT

Since: API level 19

Quick Connect quick panel button.

Since
API level 19
Version 2.6
Constant Value: 2 (0x00000002)

public static final int QUICK_PANEL_BUTTON_S_FINDER

Since: API level 19

S-Finder quick panel button.

Since
API level 19
Version 2.6
Constant Value: 1 (0x00000001)

public static final int QUICK_PANEL_BUTTON_USERS

Since: API level 19

Users panel buttons. This is only used for internal usage when the Users menu in Settings is hidden.

Since
API level 19
Version 2.6
Constant Value: 128 (0x00000080)

public static final int QUICK_PANEL_DAILY_BOARD

Since: API level 32

DailyBoard quick panel item.

Since
API level 32
Version 3.6
Constant Value: 33 (0x00000021)

public static final int QUICK_PANEL_DEVICE_VISIBILITY

Since: API level 20

Device visibility quick panel item.

Since
API level 20
Version 2.7
Constant Value: 20 (0x00000014)

public static final int QUICK_PANEL_DEX_MODE

Since: API level 30

Dex mode quick panel item.

Since
API level 31
Version 3.5
Constant Value: 24 (0x00000018)

public static final int QUICK_PANEL_DOLBY

Since: API level 30

Dolby quick panel item.

Since
API level 31
Version 3.5
Constant Value: 25 (0x00000019)

public static final int QUICK_PANEL_DORMANT_MODE

Since: API level 19

Do not disturb quick panel item.

Since
API level 19
Version 2.6
Constant Value: 9 (0x00000009)

public static final int QUICK_PANEL_LOCATION

Since: API level 19

Location quick panel item.

Since
API level 19
Version 2.6
Constant Value: 2 (0x00000002)

public static final int QUICK_PANEL_MOBILE_DATA

Since: API level 19

Mobile data quick panel item.

Since
API level 19
Version 2.6
Constant Value: 6 (0x00000006)

public static final int QUICK_PANEL_MULTI_WINDOW

Since: API level 19

Multi window quick panel item.

Since
API level 19
Version 2.6
Constant Value: 18 (0x00000012)

public static final int QUICK_PANEL_NFC

Since: API level 19

NFC quick panel item.

Since
API level 19
Version 2.6
Constant Value: 16 (0x00000010)

public static final int QUICK_PANEL_NONE

Since: API level 19

No quick panel item.

Since
API level 19
Version 2.6
Constant Value: 0 (0x00000000)

public static final int QUICK_PANEL_PERSONAL_MODE

Since: API level 19

Private mode quick panel item.

Since
API level 19
Version 2.6
Constant Value: 14 (0x0000000e)

public static final int QUICK_PANEL_POWER_SAVING

Since: API level 19

Deprecated in API level 27

Power saving quick panel item.

Since
API level 19
Version 2.6
Constant Value: 7 (0x00000007)

public static final int QUICK_PANEL_SECURE_FOLDER

Since: API level 30

SecureFolder quick panel item.

Since
API level 31
Version 3.5
Constant Value: 32 (0x00000020)

public static final int QUICK_PANEL_SILENT_MODE

Since: API level 19

Sound quick panel item.

Since
API level 19
Version 2.6
Constant Value: 3 (0x00000003)

public static final int QUICK_PANEL_SMART_STAY

Since: API level 19

Smart Stay quick panel item.

Since
API level 19
Version 2.6
Constant Value: 13 (0x0000000d)

public static final int QUICK_PANEL_SYNC

Since: API level 19

Background sync quick panel item.

Since
API level 19
Version 2.6
Constant Value: 17 (0x00000011)

public static final int QUICK_PANEL_S_FINDER

Since: API level 20

S-Finder quick panel item.

Since
API level 20
Version 2.7
Constant Value: 19 (0x00000013)

public static final int QUICK_PANEL_TORCH_LIGHT

Since: API level 19

Torch quick panel item.

Since
API level 19
Version 2.6
Constant Value: 10 (0x0000000a)

public static final int QUICK_PANEL_ULTRA_POWER_SAVING

Since: API level 19

Deprecated in API level 27

Ultra power saving quick panel item.

Since
API level 19
Version 2.6
Constant Value: 11 (0x0000000b)

public static final int QUICK_PANEL_WIFI

Since: API level 19

Wi-Fi quick panel item.

Since
API level 19
Version 2.6
Constant Value: 1 (0x00000001)

public static final int QUICK_PANEL_WIFI_HOTSPOT

Since: API level 19

Mobile hotspot quick panel item.

Since
API level 19
Version 2.6
Constant Value: 12 (0x0000000c)

public static final int RECENT_LONGPRESS_GLOBAL

Since: API level 17

Flag to indicate the Recent Button long Press starts the specified application whenever the button is long pressed.

Since
API level 17
Version 2.4
Constant Value: 2 (0x00000002)

public static final int RECENT_LONGPRESS_HOME

Since: API level 17

Flag to indicate the Recent Button long Press starts the specified application when the home application is active.

Since
API level 17
Version 2.4
Constant Value: 1 (0x00000001)

public static final int RECENT_LONGPRESS_OFF

Since: API level 17

Flag to indicate the Recent Button long Press operates in default manner.

Since
API level 17
Version 2.4
Constant Value: 0 (0x00000000)

public static final int REMOVE

Since: API level 26

The control is remove

Since
API level 26
Version 3.2
Constant Value: 6 (0x00000006)

public static final int RESTORE

Since: API level 17

Flag to indicate control of the Restore state.

Since
API level 17
Version 1.0
Constant Value: 2 (0x00000002)

public static final int RINGER

Since: API level 17

The volume for incoming calls.

Since
API level 17
Version 1.0
Constant Value: 2 (0x00000002)

public static final int ROTATION_0

Since: API level 17

Deprecated in API level 27

Rotation 0 degrees.

Since
API level 17
Version 1.0
Constant Value: 0 (0x00000000)

public static final int ROTATION_180

Since: API level 17

Deprecated in API level 27

Rotation 180 degrees.

Since
API level 17
Version 1.0
Constant Value: 2 (0x00000002)

public static final int ROTATION_270

Since: API level 17

Deprecated in API level 27

Rotation 270 degrees.

Since
API level 17
Version 1.0
Constant Value: 3 (0x00000003)

public static final int ROTATION_90

Since: API level 17

Deprecated in API level 27

Rotation 90 degrees.

Since
API level 17
Version 1.0
Constant Value: 1 (0x00000001)

public static final int ROTATION_CURRENT

Since: API level 17

Deprecated in API level 27

The rotation value is left as it is.

Since
API level 17
Version 1.0
Constant Value: -1 (0xffffffff)

public static final String SCREEN_NUMBER_STRING

Since: API level 20

String for selecting a home screen.

Since
API level 20
Version 2.7
Constant Value: "CDM_SCREEN_NUMBER"

public static final int SENSOR_ACCELEROMETER

Since: API level 17

Bit mask to indicate the accelerometer sensor should be disabled.

Since
API level 17
Version 2.4
Constant Value: 2 (0x00000002)

public static final int SENSOR_ALL

Since: API level 17

Bit mask to indicate all sensors should be disabled.

Since
API level 17
Version 2.4
Constant Value: 127 (0x0000007f)

public static final int SENSOR_GYROSCOPE

Since: API level 17

Bit mask to indicate the gyroscope sensor should be disabled.

Since
API level 17
Version 2.4
Constant Value: 1 (0x00000001)

public static final int SENSOR_LIGHT

Since: API level 17

Bit mask to indicate the light sensor should be disabled.

Since
API level 17
Version 2.4
Constant Value: 4 (0x00000004)

public static final int SENSOR_MAGNETIC

Since: API level 17

Bit mask to indicate the magnetic sensor should be disabled.

Since
API level 17
Version 2.4
Constant Value: 32 (0x00000020)

public static final int SENSOR_NONE

Since: API level 17

Bit mask to indicate no sensors should be disabled.

Since
API level 17
Version 2.4
Constant Value: 0 (0x00000000)

public static final int SENSOR_PRESSURE

Since: API level 19

Bit mask to indicate the pressure sensor should be disabled.

Since
API level 19
Version 2.6
Constant Value: 64 (0x00000040)

public static final int SENSOR_PROXIMITY

Since: API level 17

Bit mask to indicate the proximity sensor should be disabled.

Since
API level 17
Version 2.4
Constant Value: 16 (0x00000010)

public static final int SETTINGS_ALL

Since: API level 17

Mask for all UI elements in the Settings app.

Since
API level 17
Version 1.0
Constant Value: 8191 (0x00001fff)

public static final int SETTINGS_ALL_PREVIOUS

Since: API level 21

Mask for all UI elements in the Settings app.

Since
API level 21
Version 2.7.1
Constant Value: 2047 (0x000007ff)

public static final int SETTINGS_APPLICATIONS

Since: API level 17

Applications mask for UI elements in the Settings app.

Since
API level 17
Version 2.5
Constant Value: 512 (0x00000200)

public static final int SETTINGS_BACKUP

Since: API level 21

Backup mask for UI elements in the Settings app.

Since
API level 21
Version 2.7.1
Constant Value: 2048 (0x00000800)

public static final int SETTINGS_BACKUP_RESET

Since: API level 17

Backup & reset mask for UI elements in the Settings app.

Since
API level 17
Version 1.0
Constant Value: 64 (0x00000040)

public static final int SETTINGS_BLUETOOTH

Since: API level 17

Bluetooth mask for UI elements in the Settings app.

Since
API level 17
Version 1.0
Constant Value: 2 (0x00000002)

public static final int SETTINGS_DEVELOPER

Since: API level 17

Developer mask for UI elements in the Settings app.

Since
API level 17
Version 1.0
Constant Value: 256 (0x00000100)

public static final int SETTINGS_FLIGHT_MODE

Since: API level 17

Flight mode mask for UI elements in the Settings app.

Since
API level 17
Version 1.0
Constant Value: 4 (0x00000004)

public static final int SETTINGS_LANGUAGE

Since: API level 17

Language mask for UI elements in the Settings app.

Since
API level 17
Version 1.0
Constant Value: 32 (0x00000020)

public static final int SETTINGS_LOCATION

Since: API level 17

Location mask for UI elements in the Settings app.

Since
API level 17
Version 2.5
Constant Value: 1024 (0x00000400)

public static final int SETTINGS_LOCK_SCREEN

Since: API level 17

Lock screen mask for UI elements in the Settings app.

Since
API level 17
Version 1.0
Constant Value: 16 (0x00000010)

public static final int SETTINGS_MULTI_WINDOW

Since: API level 17

Deprecated in API level 27

Multi-window mask for UI elements in the Settings app.

Since
API level 17
Version 1.0
Constant Value: 8 (0x00000008)

public static final int SETTINGS_RESET

Since: API level 21

Reset mask for UI elements in the Settings app.

Since
API level 21
Version 2.7.1
Constant Value: 4096 (0x00001000)

public static final int SETTINGS_USERS

Since: API level 17

Users mask for UI elements in the Settings app.

Since
API level 17
Version 1.0
Constant Value: 128 (0x00000080)

public static final int SETTINGS_WIFI

Since: API level 17

Wi-Fi mask for UI elements in the Settings app.

Since
API level 17
Version 1.0
Constant Value: 1 (0x00000001)

public static final int SHORTCUT_APP_TYPE

Since: API level 20

Application home screen shortcut.

Since
API level 20
Version 2.7
Constant Value: 1 (0x00000001)

public static final int SHORTCUT_FILE_TYPE

Since: API level 20

File or bookmark home screen shortcut.

Since
API level 20
Version 2.7
Constant Value: 2 (0x00000002)

public static final int SHORTCUT_FOLDER_TYPE

Since: API level 20

Folder home screen shortcut .

Since
API level 20
Version 2.7
Constant Value: 3 (0x00000003)

public static final int SHOW

Since: API level 17

The control is visible.

Since
API level 17
Version 1.0
Constant Value: 2 (0x00000002)

public static final int SOURCE_ADDRESS

Since: API level 17

The source IP address.

Since
API level 17
Version 1.0
Constant Value: 331 (0x0000014b)

public static final int SUCCESS

Since: API level 17

Indicates that the operation was successful.

Since
API level 17
Version 1.0
Constant Value: 0 (0x00000000)

public static final int SYSTEM_SOUNDS

Since: API level 17

The volume for general system sounds.

Since
API level 17
Version 1.0
Constant Value: 1 (0x00000001)

public static final int SYSTEM_SOUNDS_ALL

Since: API level 19

Bit mask for specifying all system sounds.

Since
API level 19
Version 2.6
Constant Value: 63 (0x0000003f)

public static final int SYSTEM_SOUNDS_DTMF_DIALING

Since: API level 19

Bit mask for specifying DTMF tones system sounds.

Since
API level 19
Version 2.6
Constant Value: 1 (0x00000001)

public static final int SYSTEM_SOUNDS_HAPTIC_FEEDBACK

Since: API level 19

Bit mask for specifying haptic feedback system sounds.

Since
API level 19
Version 2.6
Constant Value: 8 (0x00000008)

public static final int SYSTEM_SOUNDS_LOCKSCREEN

Since: API level 19

Bit mask for specifying lock screen system sounds.

Since
API level 19
Version 2.6
Constant Value: 4 (0x00000004)

public static final int SYSTEM_SOUNDS_PEN_DETACH

Since: API level 19

Bit mask for specifying pen detachment system sounds.

Since
API level 19
Version 2.6
Constant Value: 32 (0x00000020)

public static final int SYSTEM_SOUNDS_SIP_KEY_FEEDBACK

Since: API level 19

Bit mask for specifying SIP tones system sounds.

Since
API level 19
Version 2.6
Constant Value: 16 (0x00000010)

public static final int SYSTEM_SOUNDS_SOUND_EFFECTS

Since: API level 19

Bit mask for specifying sound effect system sounds.

Since
API level 19
Version 2.6
Constant Value: 2 (0x00000002)

public static final int TYPE_GRID

Since: API level 26

Flag to indicate that the alignment is grid type in DeX mode.

Since
API level 26
KNOX 3.2
Constant Value: 2 (0x00000002)

public static final int TYPE_NOTIFICATION

Since: API level 26

Flag to indicate that the notification type for SIM 1.

Since
API level 26
KNOX 3.2
Constant Value: 3 (0x00000003)

public static final int TYPE_NOTIFICATION_SECOND

Since: API level 26

Flag to indicate that the notification type for SIM 2.

Since
API level 26
KNOX 3.2
Constant Value: 4 (0x00000004)

public static final int TYPE_RINGTONE

Since: API level 26

Flag to indicate that the ringtone type for SIM 1.

Since
API level 26
KNOX 3.2
Constant Value: 1 (0x00000001)

public static final int TYPE_RINGTONE_SECOND

Since: API level 26

Flag to indicate that the ringtone type for SIM 2.

Since
API level 26
KNOX 3.2
Constant Value: 2 (0x00000002)

public static final int USB_CONNECTION_TYPE_CHARGING

Since: API level 20

Charging only USB connection.

Since
API level 20
Version 2.7
Constant Value: 4 (0x00000004)

public static final int USB_CONNECTION_TYPE_DEFAULT

Since: API level 20

Default USB connection.

Since
API level 20
Version 2.7
Constant Value: 0 (0x00000000)

public static final int USB_CONNECTION_TYPE_MIDI

Since: API level 20

MIDI USB connection.

Since
API level 20
Version 2.7
Constant Value: 3 (0x00000003)

public static final int USB_CONNECTION_TYPE_MTP

Since: API level 20

MTP USB connection.

Since
API level 20
Version 2.7
Constant Value: 1 (0x00000001)

public static final int USB_CONNECTION_TYPE_PTP

Since: API level 20

PTP USB connection.

Since
API level 20
Version 2.7
Constant Value: 2 (0x00000002)

public static final int USB_CONNECTION_TYPE_TETHERING

Since: API level 30

USB Tethering connection.

Since
API level 31
Version 3.5
Constant Value: 5 (0x00000005)

public static final int USB_DETACHED

Since: API level 22

Flag to indicate that the device should shut down when the USB cable is detached.

Since
API level 22
Version 2.8
Constant Value: 1 (0x00000001)

public static final int USE_AUTO

Since: API level 22

Standard value for auto (whatever the use).

Since
API level 22
Version 2.8
Constant Value: -1 (0xffffffff)

public static final int USE_DEFAULT

Since: API level 17

Use default value for parameters such as text style, font size, etc.

Since
API level 17
Version 2.4
Constant Value: 0 (0x00000000)

public static final int VIBRATION_CALL

Since: API level 19

Receive call vibration.

Since
API level 19
Version 2.6
Constant Value: 0 (0x00000000)

public static final int VIBRATION_MAX_INTENSITY

Since: API level 19

Maximum vibration intensity. To sync with VibrationSeekBarPreference.MAXIMUM_VIBRATION_INTENSITY

Since
API level 19
Version 2.6
Constant Value: 5 (0x00000005)

public static final int VIBRATION_NOTIFICATION

Since: API level 19

Notification vibration.

Since
API level 19
Version 2.6
Constant Value: 1 (0x00000001)

public static final int VIBRATION_SYSTEM

Since: API level 19

System haptic feedback vibration.

Since
API level 19
Version 2.6
Constant Value: 2 (0x00000002)

public static final int VOICE_CALL

Since: API level 17

The volume for voice calls.

Since
API level 17
Version 1.0
Constant Value: 0 (0x00000000)

public static final int VOLUME_CONTROL_STREAM_DEFAULT

Since: API level 17

Default volume control stream.

Since
API level 17
Version 2.4
Constant Value: 0 (0x00000000)

public static final int VOLUME_CONTROL_STREAM_MUSIC

Since: API level 17

Media volume control stream.

Since
API level 17
Version 2.4
Constant Value: 3 (0x00000003)

public static final int VOLUME_CONTROL_STREAM_NOTIFICATION

Since: API level 17

Since
API level 17
Version 2.4 Notification volume control stream.
Constant Value: 4 (0x00000004)

public static final int VOLUME_CONTROL_STREAM_RING

Since: API level 17

Ringtone volume control stream.

Since
API level 17
Version 2.4
Constant Value: 2 (0x00000002)

public static final int VOLUME_CONTROL_STREAM_SYSTEM

Since: API level 17

System volume control stream.

Since
API level 17
Version 2.4
Constant Value: 1 (0x00000001)

public static final int WIDGET_APP_TYPE

Since: API level 20

Application type widget.

Since
API level 20
Version 2.7
Constant Value: 5 (0x00000005)

public static final int WIDGET_SURFACE_TYPE

Since: API level 20

Surface type widget.

Since
API level 20
Version 2.7
Constant Value: 7 (0x00000007)

public static final int WIFI_FREQUENCY_BAND_2GHZ

Since: API level 17

Wi-Fi Frequency band - 2GHz.

Since
API level 17
Version 2.5
Constant Value: 2 (0x00000002)

public static final int WIFI_FREQUENCY_BAND_5GHZ

Since: API level 17

Wi-Fi Frequency band - 5GHz.

Since
API level 17
Version 2.5
Constant Value: 1 (0x00000001)

public static final int WIFI_FREQUENCY_BAND_AUTO

Since: API level 17

Wi-Fi Frequency band - automatically selected.

Since
API level 17
Version 2.5
Constant Value: 0 (0x00000000)

Public Methods

public boolean checkEnterprisePermission (String permission)

Since: API level 17

This method checks if the specified permission is granted to the current application.

Parameters
permission The permission string as specified in manifest file.
Returns
  • true if permission has been granted to the application, false if not.
Usage
 String permission = "com.samsung.android.knox.permission.CUSTOM_SETTING";
 CustomDeviceManager cdm = CustomDeviceManager.getInstance();
 if(cdm.checkEnterprisePermission(permission)) {
     Log.d(TAG, "Knox Custom Setting Permission is available");
 } else {
     Log.d(TAG, "Knox Custom Setting Permission is not available");
 }
 
Since
API level 17
Version 2.5
Multiuser Environment
Global Scope

public DexManager getDexManager ()

Since: API level 25

This method gets access to the DeX Manager object.

Returns
  • The instance of the DexManager.
Usage
 CustomDeviceManager cdm = CustomDeviceManager.getInstance();
 DexManager kcdm = cdm.getDexManager();
 
Since
API level 25
KNOX 3.1
Multiuser Environment
Global Scope

public static synchronized CustomDeviceManager getInstance ()

Since: API level 17

This method gets access to the Custom Device Manager object.

Returns
  • The instance of the CustomDeviceManager.
Usage
 CustomDeviceManager cdm = CustomDeviceManager.getInstance();
 
Since
API level 17
Version 2.5
Multiuser Environment
Global Scope

public ProKioskManager getProKioskManager ()

Since: API level 17

This method gets access to the ProKiosk Manager object.

Returns
  • The instance of the ProKioskManager.
Usage
 CustomDeviceManager cdm = CustomDeviceManager.getInstance();
 ProKioskManager kcpkm = cdm.getProKioskManager();
 
Since
API level 17
Version 2.5
Multiuser Environment
Global Scope
See Also

public String getSerialNumber ()

Since: API level 17

Deprecated in API level 27
NOTE: This API is not available since Android 11.

This method gets the serial number of the device as displayed in the Settings application.

Returns
  • The serial number of the device.
Usage
 CustomDeviceManager cdm = CustomDeviceManager.getInstance();
 String serialNumber = cdm.getSerialNumber();
 
Since
API level 17
Version 2.5
Multiuser Environment
Global Scope

public SettingsManager getSettingsManager ()

Since: API level 17

This method gets access to the Settings Manager object.

Returns
  • The instance of the SettingsManager.
Usage
 CustomDeviceManager cdm = CustomDeviceManager.getInstance();
 SettingsManager kcsm = cdm.getSettingsManager();
 
Since
API level 17
Version 2.5
Multiuser Environment
Global Scope
See Also

public SystemManager getSystemManager ()

Since: API level 17

This method gets access to the System Manager object.

Returns
  • The instance of the SystemManager.
Usage
 CustomDeviceManager cdm = CustomDeviceManager.getInstance();
 SystemManager kcsm = cdm.getSystemManager();
 
Since
API level 17
Version 2.5
Multiuser Environment
Global Scope