public class System extends AccountManager
getEloAccessToken.captureScreenShot.setOrientation.getOrientation.factoryReset.silentReboot.setNavigationBarEnabled.setStatusBarEnabled.setGrantAllAppPermissionEnabled.getNavigationBarEnabled.getStatusBarEnabled.getGrantAllAppPermissionEnabled.setBacklightTimeOut.getBacklightTimeOut.setLockScreenPassword.changeLockScreenPassword.autoallowUSBPermissionsetFirmwareStatusLockEnabledsetLockScreenPin and changeLockScreenPinsetWifiEnabled and get the current WiFi state using getWifiEnabledclearAllAppCacheUserData and clearAppCacheUserDatasetAdbEnabled, and to set custom ports for ADB using customePortAdbsetHomeButtonEnabledsetPowerButtonEnabledsetTextEditorAssistMenuEnabledsetVolumePanelShowMoreEnabledsetBarcodeReaderEnabledsetScanBarcodeReaderEnabledsetEloLoggingEnabledsetRandomWifiMacAddressEnabledsetStarPeripheralConnectEnabledgetAutoAllowUSBPermissionsetDeviceOwner, remove the device owner using removeDeviceOwner(java.lang.String) removeDeviceOwner}, and get the device owner status using getDeviceOwnerStatus() getDeviceOwnerStatus}setDpi and getDpisetLanguage and getLanguagesetLockType and getLockTypesetMultiClientImeEnabled and getMultiClientImeEnabledsetNtpServerUrl and getNtpServerUrlsetNtpPollInterval and getNtpPollIntervalsetInstallPermissionToSpecificApp or to all apps using setInstallAllAppPermissionEnabledgetInstallPermissionToSpecificAppsetScreenSize and getScreenSizesetSmallestPixelWidth and getSmallestPixelWidthsetTimeZone and getTimeZonesetAccessibilityServicesetAutoDateTimeEnabledsetBluetoothDevicePairingConfirmationEnabledsetDateTimesetDisplaySizesetEloNetworkConfsetFontSizesetIdleModeEnabledsetLocationEnabledsetMicrophoneMuteEnabled setPasswordEnabledsetPlayProtectsetReservedLogSpace and getReservedLogSpacesetTimeFormatEnabledsetTouchSoundEnabledsetVolumeLevelsetShowTextEditorShareMenuEnabledsilentShutDownsetSilentDefaultLaunchersetFirmwareStatusLockEnabled, get the status using getFirmwareStatusLockEnabled and upgrade the firmware using spFirmwareUpgradestartActivityFromForegroundServicesetDarkModeEnabledwakeupScreensetChargingSoundAndVibrationEnabledsetScreenLockSoundEnabledsetIdleModeTileEnabledgetHostNamesetHostNamesetHotspotAccessibilityEnabledgetHotspotAccessibilityEnabledgetMD5ChecksumbindService unbindService| Modifier and Type | Field and Description |
|---|---|
static int |
ERROR_OTHER |
static int |
ERROR_SINGLE_APP_MODE |
static int |
RECEIVE_KEY_EVENT |
static int |
SUCCESS_CODE |
ACCESS_TOKEN_INVALID, ACCESS_TOKEN_VALID, API_ACCESS_TOKEN_INVALID, API_ACCESS_TOKEN_VALID, instance, IS_USER_LOGIN_OAUTH, isPolaris, OAUTH_TOKEN_INVALID, OAUTH_TOKEN_VALID, REQUEST_AUTH_LOGIN, REQUEST_AUTH_LOGOUT, SETUP_OAUTH_ERROR, SETUP_OAUTH_SUCCESS, TOKEN_VERIFY_FAIL, TOKEN_VERIFY_SUCCESSGENERIC_ERROR, OAUTH_PATH_TOKEN, OAUTH_PATH_VERIFY| Constructor and Description |
|---|
System() |
| Modifier and Type | Method and Description |
|---|---|
void |
bindService(android.content.Context context,
ServiceConnectionCallback callback,
java.lang.String accessToken)
This method is used to bind the service to access the System APIs.
|
boolean |
captureScreenShot(java.lang.String fileName)
This method is used to capture a screenshot.
|
int |
changeLockScreenPassword(android.content.Context context,
java.lang.String oldPassword,
java.lang.String newPassword,
boolean autoUnlock)
API used to apply the screen lock Password.
|
int |
changeLockScreenPin(android.content.Context context,
java.lang.String oldPin,
java.lang.String newPin,
boolean autoUnlock)
API used to change the screen lock Pin when screen lock pin is already set.
|
boolean |
clearAllAppCacheUserData(java.lang.String packageNames)
This method is used to clear cache and userdata of all apps except the ones in the exception list
|
boolean |
clearAppCacheUserData(java.lang.String packageNames)
This method is used to clear cache and userdata of the given applications
|
boolean |
copyFile(java.lang.String source,
java.lang.String destination)
Function used to copy file from source path to destination path.
|
java.lang.String |
enableSecureWhiteListMode()
This API will enable BIN whitelisting mode on the payment device.
|
void |
factoryReset(boolean eraseSdcard)
This method is used to perform a factory reset on the device.
|
boolean |
getAutoAllowUsbPermissionEnabled()
This method is used to get current status of runtime usb permissions in AndroidHomeMode.
To reboot device use silentReboot. |
boolean |
getAutoIdleModeEnabled()
This method is used to get the Auto Idle Mode Status.
|
int |
getBacklightTimeOut()
This method is used to get the currently set back-light timeout.
|
int |
getBrightness()
This method is used to set the Brightness of the device
|
int |
getCFDDpi()
This method is used to get the External Display resolution DPI
|
boolean |
getChargingSoundAndVibrationEnabled()
This method is used to get the Charging Sound and Vibration Status(Android Settings -> Sound -> Advanced -> Charging sounds and vibration)
|
java.lang.String |
getDeviceOwnerStatus()
Function will return current device owner package name when the device owner is set through the SDK.
|
int |
getDpi()
This method is used to get the Display resolution DPI
|
java.lang.String |
getExternalScreenOrientation()
This method is used to get external Screen Orientation details.
|
int |
getFirmwareStatusLockEnabled()
This method is used to get status of secure processor firmware
|
boolean |
getGrantAllAppPermissionEnabled()
This method provides property status of setGrantAllAppPermissionEnabled.
|
java.lang.String |
getHostName()
This method is used to get the device HostName.
|
boolean |
getHotspotAccessibilityEnabled()
This method is used to get the status of Hotspot accessibility
|
boolean |
getInstallPermissionToSpecificApp(java.lang.String sourcePkg)
This method provides property status of installSpecificAppPermission.
|
java.lang.String |
getLanguage()
This method is used to get the language set on the device.
|
java.lang.String |
getLockType()
This method is used to get the lock type
Description On clicking Getlock type button the Current Device lock setting will come in output message (Ex.
|
java.lang.String |
getMD5Checksum(java.lang.String absoluteFilePath)
This method is used to verify signature of the file.
|
java.lang.String |
getMediaProjectionPermission()
This method is used to return the packages allowed for MediaProjectionPermission
|
boolean |
getMediaProjectionPermissionAllApps()
This method is used to check if MediaProjectionPermission is automatically allowed for all the apps or not
|
boolean |
getMultiClientImeEnabled()
This method is used to get Multi Client IME enable value
|
boolean |
getNavigationBarEnabled()
This method provides property status of NavigationBar.
|
long |
getNtpPollInterval()
This method is used to get the NTP Poll Interval set on the device.
|
java.lang.String |
getNtpServerUrl()
This method is used to get NTP server address
|
java.lang.String |
getOrientation()
This method is used to get orientation details for all devices
|
boolean |
getPlayProtect()
This method provides property status of PLAYPROTECT.
|
int |
getReservedLogSpace()
This method is used to get reserved log space on the device.
|
boolean |
getScreenLockSoundEnabled()
This method is used to get the Screen Locking Sound Status
|
java.lang.String |
getScreenSize()
This method is used to get the Display resolution
|
boolean |
getSecureWhitelistModeStatus()
This API will result "TRUE" if BIN whitelisting is already enabled or will result "FALSE"
|
boolean |
getShowInsetsOnSwipe()
Function used to retrieve true/false value for whether status and navigation bars (insets)
will be shown when swiping from top or bottom of screen after insets are hidden using
native Android API's.
|
int |
getSmallestPixelWidth()
This method is used to get the smallest pixel width (as shown in developer options.)
|
boolean |
getStatusBarEnabled()
This method provides property status of StatusBar.
|
boolean |
getStickyEloViewModeEnabled()
This method is used to get status of sticky EloView boot mode
|
java.lang.String |
getTimeZone()
This method is used to get the timezone set on the device.
|
boolean |
getTouchSoundEnabled()
This method is used to get the Touch Sound State.
|
boolean |
getWifiEnabled()
This method is used to get the current status of Wifi.
|
static boolean |
is7PayDevice()
This method is used to get the device orientation.
|
static boolean |
isM100Device()
This method is used to get the device orientation.
|
static boolean |
isM50Device()
This method is used to get the device orientation.
|
boolean |
isM51Device()
This method is used to get the device orientation.
|
static boolean |
isM60Device()
This method is used to get the device orientation.
|
java.lang.String |
readSystemProperty(java.lang.String key) |
boolean |
removeDeviceOwner(java.lang.String packageName)
Function will remove the ownership of device owner package
Note : This function can only be called by the device owner in order to remove package as device owner.
|
void |
setAccessibilityService(java.lang.String packageName,
boolean enableAccessibilityService)
This method is used to enable/disable accessibility services
|
void |
setAdbEnabled(boolean enable)
This method is used to Enable ADB
|
boolean |
setAdbPort(java.lang.String portNumber)
This method is used to Set Custom ADB TCP port
|
void |
setAutoAllowUsbPermissionEnabled(boolean grantPermission)
This method is used to grant runtime usb permissions in AndroidHomeMode.
After applying changes device requires reboot to reflect the changes. ON 3.0 DEVICES THIS METHOD WILL TOGGLE THE USB PERMISSIONS AND THE VARIABLE 'grantPermission' IS NOT USED. SO FOR EXAMPLE IF AUTOMATICALLY ALLOWING USB PERMISSIONS IS CURRENTLY NOT ENABLED FOR AN APP, CALLING THIS FUNCTION WILL ENABLE IT. |
void |
setAutoDateTimeEnabled(boolean AutoDateTime)
This method is used to enable/disable Setting Automatic Date and Time from the network on the device.
|
boolean |
setBacklightEnabled(boolean enable)
This method is used to set the device backlight Turn ON or OFF
|
boolean |
setBacklightTimeOut(int timeout)
This method is used to set the backlight timeout.
|
void |
setBarcodeReaderEnabled(boolean enableBCR)
This method is used to enable/disable BCR
|
boolean |
setBluetoothDevicePairingConfirmationEnabled(android.bluetooth.BluetoothDevice device,
java.lang.Boolean enable)
This method is used to enable/disable Pairing notification request for specific bluetooth device.
|
void |
setBluetoothEnabled(boolean bluetoothState)
This method is used to Enable/Disable bluetooth
|
void |
setBluetoothScanning(boolean enable)
This method is used to enable/disable BluetoothScanning
|
void |
setBrightness(int value)
This method is used to set the Brightness of the device
|
boolean |
setCFDDpi(int DPI)
This method is used to set the External Display resolution DPI.
|
void |
setChargingSoundAndVibrationEnabled(boolean btnState)
This method is used to Enable/Disable Charging sounds and vibration
|
void |
setCopyPasteModeEnabled(boolean copyPasteMode)
This method is used to enable/disable Copy Paste functionality of a device
|
void |
setDarkModeEnabled(boolean enable)
This method is used to toggle the status of dark theme on the device.
|
void |
setDateTime(long epoch)
This method is used to set the date and time on the device.
|
boolean |
setDeviceOwner(java.lang.String packageName,
java.lang.String className)
Function will set a component as device owner
This function is asynchronous. |
boolean |
setDisplaySize(java.lang.String size)
This method is used to set the Display size
|
boolean |
setDpi(int DPI)
This method is used to set the Display resolution DPI.
|
void |
setEloLoggingEnabled(boolean enable)
This method is used to enable/disable Elo logging functionality.
|
int |
setEloNetworkConf(android.content.Context ctx,
android.net.Uri CsvURL)
This method is used to set the Network configurations for wifi.
|
void |
setExternalAudioDeviceEnabled(boolean externalSpeakerState)
This method is used to select Internal/External Speaker.
|
boolean |
setExternalScreenOrientation(java.lang.String orientation)
This method is used to set External Screen Orientation
|
boolean |
setFirmwareStatusLockEnabled(boolean status)
This method is used to lock or unlock the secure processor firmware update
|
boolean |
setFontSize(java.lang.String size)
This method is used to set the Font size
|
void |
setGrantAllAppPermissionEnabled(boolean grantPermission)
This method is used to grant all runtime permissions in AndroidHomeMode to all apps.
After applying changes device requires reboot to reflect the changes. |
void |
setHomeButtonEnabled(boolean enable)
This method is used to Enable the Home button.
|
void |
setHostName(java.lang.String hostname)
This method is used to Set the Host Name
|
void |
setHotspotAccessibilityEnabled(boolean status)
This method is used to Enable Disable Hotspot accessibility
|
void |
setIdleModeEnabled(boolean IdleMode)
This method is used to Enable/Disable Auto-Idle mode
|
int |
setIdleModeTileEnabled(boolean enable)
This method is used to Enable/Disable idle mode tile.
|
boolean |
setInstallAllAppPermissionEnabled(boolean grantPermission)
This method is used to grant install permission to all app source package.
|
boolean |
setInstallPermissionToSpecificApp(java.lang.String sourcePackage,
boolean state)
This method is used to grant install permission to specific app source package.
|
boolean |
setKeyListener(java.lang.String packageName,
java.lang.String receiverName,
java.util.ArrayList<java.lang.Integer> keys,
java.util.ArrayList<java.lang.Boolean> intercept)
This method is used to register a key event listener that will be able to work in a background thread.
|
boolean |
setLanguage(java.lang.String locale)
This method is used to set the language on the device.
|
boolean |
setLocationEnabled(boolean enable)
This method is used to set the Volume Control
|
int |
setLockScreenPassword(android.content.Context context,
java.lang.String newPassword,
boolean autoUnlock)
API used to apply the screen lock Password for the First Time only.
|
int |
setLockScreenPin(android.content.Context context,
java.lang.String newPin,
boolean autoUnlock)
API used to apply the screen lock Pin for the First Time only.
|
void |
setLockStatusBarEnabled(boolean status)
This method is used to Enable / Disable Status Bar Swipe Lock
|
int |
setLockType(java.lang.String pass,
java.lang.String type)
This method is used to set the lock type
On Clicking Set locktype Button if current device lock setting is password or pin the dialog box will
come to enter older password/pin to override with swipe or none.
|
void |
setMediaProjectionPermission(java.lang.String pkgName)
This method is used to allow a specific package to have MediaProjectionPermission
|
void |
setMediaProjectionPermissionAllApps(boolean allowAutoPermit)
This method is used to enable/disable to auto allow the MediaProjectionPermission for all the apps
|
void |
setMicrophoneMuteEnabled(boolean state)
This method is used to mute/unmute microphone
|
boolean |
setMultiAppModeEnabled(android.content.Context context,
boolean status)
This method is used to change app mode (Enable - multi app mode, Disable - single app mode)
|
boolean |
setMultiClientImeEnabled(boolean enable,
boolean reboot)
This method is used to enable/disable Multi-Client IME
After applying, device will reboot to reflect the changes.
|
void |
setNavigationBarEnabled(boolean enableNavigationBar)
This method is used to enable/disable NavigationBar in AndroidHomeMode (not supported in EloView modes).
By default the navigation bar is enabled After applying changes device requires reboot to reflect the changes. |
void |
setNotificationStatusEnabled(boolean status)
This method is used to enable/disable Notification with statusbar
|
boolean |
setNtpPollInterval(long interval,
java.lang.Boolean rebootRequired)
This method is used to set NTP Client Polling Interval for the device.
|
void |
setNtpServerUrl(java.lang.String ntpUrl,
boolean rebootRequired)
This method is used to set NTP server address.
|
void |
setOrientation(java.lang.String orientation)
This method is used to set orientation of any device
|
boolean |
setOrientation(java.lang.String orientation,
boolean noRebootReq)
This method is used to set display orientation for LIDS 2.0/BACKPACK devices only
|
void |
setOrientation(java.lang.String orientation,
boolean noRebootReq,
boolean rotateISeriesorHandheld)
This method is used to set orientation of any device
|
void |
setPasswordEnabled(boolean state)
This method is used to enable/disable show password
|
void |
setPeripheralConnectEnabled(boolean value)
This method is used to enable/disable Hardware/System access from WebView via JavaScript Interface.
|
void |
setPlayProtect(boolean enablePlayProtect)
This method is used to enable/disable PLAYPROTECT.
Google Play Protect checks your apps and devices for harmful behavior and is only available on GMS enabled devices. |
void |
setPowerButtonEnabled(boolean enable)
This method is used to Enable/Disable the Power button.
|
void |
setRandomWifiMacAddressEnabled(boolean mac)
This method is enable/disable Random WiFi MAC address
|
void |
setRecentButtonEnabled(boolean enable)
This method is used to Enable Recent Button
|
void |
setReservedLogSpace(int logSpace)
This method is used to set the size of the reserved log space.
|
void |
setScanBarcodeReaderEnabled(boolean scanBCR)
This method is used to start/stop scan Barcode
|
void |
setScreenLockSoundEnabled(boolean btnState)
This method is used to Enable/Disable Screen Lock Sound
|
boolean |
setScreenSize(int width,
int height)
This method is used to set the Display resolution
|
void |
setScreenWakeUp(long delay)
This method is used to wake up the screen if it's asleep.
|
void |
setShowInsetsOnSwipe(boolean show)
Function used to hide/show status and navigation bars (insets) when swiping from top or bottom of screen
after insets are hidden using native Android API's.
|
void |
setShowTapsEnabled(boolean showTapsState)
This method is used to Enable/Disable Show Taps
|
void |
setShowTextEditorShareMenuEnabled(boolean value)
This method is used to enable/disable showing menu option on text selection in AndroidHomeMode.
|
boolean |
setSilentDefaultLauncher(java.lang.String packageName)
This method is used to silently set the default launcher application
|
boolean |
setSmallestPixelWidth(int smallestWidth)
This method is used to set the smallest pixel width (as shown in developer options.
|
void |
setStarPeripheralConnectEnabled(boolean value)
This method is used to enable/disable Star hardware access from WebView via JavaScript Interface.
|
boolean |
setStatusBarEnabled(boolean enableStatusBar)
This method is used to enable/disable StatusBar in AndroidHomeMode or EloView Connect mode..
After applying changes device requires reboot to reflect the changes. |
boolean |
setStatusBarVisibilityEnabled(boolean visible)
This method is for Android 10.
|
void |
setStickyEloViewModeEnabled(boolean stickyMode)
This method is used to set sticky EloView boot mode
|
void |
setTextEditorAssistMenuEnabled(boolean enable)
This method is used to enable/disable the Assist Menu in Text Editor
|
void |
setTimeFormatEnabled(boolean TimeFormat_24)
This method is used to set time format
|
boolean |
setTimeZone(java.lang.String timezone)
This method is used to set the timezone on the device.
|
boolean |
setTouchSoundEnabled(boolean touchSound)
This method is used to set the Touch Sound
|
void |
setUSBPorts(java.lang.String json) |
void |
setVirtualKeyBoard(java.lang.String virtualKeyboard)
This method is used to set the virtual keyboard on the device.
|
boolean |
setVolumeLevel(java.lang.String volumeType,
int value)
This method is used to set the volume for "Alarm", "Call", "Media", "Notification" or "All"
|
void |
setVolumePanelShowMoreEnabled(boolean enable)
This method is used to enable show more option in volume panel.
|
void |
setWifiEnabled(boolean wifiState)
This method is used to change Wifi state.
|
void |
setWifiScanning(boolean enable)
This method is used to enable/disable wifiscanning
|
void |
silentReboot()
This method is used to reboot the device.
|
void |
silentShutDown(int delay)
This method is used to shutdown the device
|
boolean |
spFirmwareUpgrade()
This method is used to upgrade the firmware of the secure processor on M60 payment devices
First add QE1000_new.uld (firmware file) needs to be stored at /sdcard/Download/ folder
|
void |
startActivityFromForegroundService(android.content.Context context,
android.content.Intent activityIntent,
android.app.Service foregroundService)
API used to create, show a notification and start an activity from a foreground service.
|
void |
testPeripheralMode()
Function used to launch test peripheral mode.
|
void |
unbindService(android.content.Context context)
This method is used to unbind the service.
|
java.lang.String |
verifyFileSignature(byte[] zipFileByteArray)
This method is used to Verify File Integrity from zip file bytes.
|
java.lang.String |
verifyFileSignature(java.lang.String absoluteFilePath,
java.lang.String absoluteSha256Path)
This method is used to verify signature of the file.
|
boolean |
wakeupScreen()
This method is used to wake up the screen if it's asleep.
|
boolean |
writeFile(java.lang.String destination,
java.lang.String data,
boolean readable,
boolean append,
boolean overwrite)
Function used to create file at a destination path with given data.
|
java.lang.String |
writeSignedFileToStorage(byte[] zipFileByteArray)
This API will verify the zip file bytes and copy the file to the /data/CastlesFile/protected folder.
|
void |
writeSystemProperty(java.lang.String key,
java.lang.String value) |
configureOAuthHostedUI, destroyOAuth, getBaseUri, getClientId, getEloAccessToken, getEloOAuthToken, getEnvironment, getProperty, isPolaris, isPolarisLocked, logoutOAuth, onOAuthActivityResult, selectEnvironment, setDefaultEnvironment, setProperty, stopOAuth, unregisterAccountManagerListener, verifyEloTokenclone, getEloIntentWithFlag, getMigrate, isDevice7Inch, isDeviceM100public static final int RECEIVE_KEY_EVENT
public static final int SUCCESS_CODE
public static final int ERROR_SINGLE_APP_MODE
public static final int ERROR_OTHER
public static boolean isM60Device()
public static boolean isM50Device()
public static boolean isM100Device()
public static boolean is7PayDevice()
public boolean isM51Device()
public void bindService(android.content.Context context,
ServiceConnectionCallback callback,
java.lang.String accessToken)
context - Context of the applicationcallback - Callback to get the status of the service connectionaccessToken - Access token to verify the service connectionpublic void unbindService(android.content.Context context)
context - Context of the applicationpublic boolean captureScreenShot(java.lang.String fileName)
fileName - A filename in png format. Eg. "screenshot.png"public void setAccessibilityService(java.lang.String packageName,
boolean enableAccessibilityService)
public boolean setMultiClientImeEnabled(boolean enable,
boolean reboot)
enable - whether to enable or disablereboot - Set this to 'true' to immediately reboot the device after enabling/disabling multi-client IME. Set this to 'false'
to prevent the device from rebooting. If set to 'false' the user needs to take care of rebooting the device at a later time for
this setting to take effect.public void setWifiScanning(boolean enable)
enable - whether to enable or disablepublic void setBluetoothScanning(boolean enable)
enable - whether to enable or disablepublic boolean setKeyListener(java.lang.String packageName,
java.lang.String receiverName,
java.util.ArrayList<java.lang.Integer> keys,
java.util.ArrayList<java.lang.Boolean> intercept)
packageName - Name of package the key listener component belongs toreceiverName - Class Name of the key listener component (use class.getName())keys - Array list of keycode integers. Use KeyEvent.KEYCODE_*intercept - true iff the system should only send the KeyEvent to the listener, and not to the userpublic boolean getMultiClientImeEnabled()
public boolean setDpi(int DPI)
DPI - Integer value to set the screen density in DPI (160, 240, 320, 480 or 640).public boolean setCFDDpi(int DPI)
DPI - Integer value to set the screen density in DPI (160, 240, 320, 480 or 640).public boolean setScreenSize(int width,
int height)
width - Integer value to set the screen resolution widthheight - Integer value to set the screen resolution heightpublic boolean setDisplaySize(java.lang.String size)
size - string value to set the screen display size
=public boolean setFontSize(java.lang.String size)
size - string value to set the Font sizepublic boolean setSmallestPixelWidth(int smallestWidth)
smallestWidth - int value to set the screen smallest pixel widthpublic int getSmallestPixelWidth()
public boolean setSilentDefaultLauncher(java.lang.String packageName)
packageName - String containing package names of the app to set as launcher. public boolean clearAppCacheUserData(java.lang.String packageNames)
packageNames - String containing package names of the apps to clear cache and userdatapublic boolean clearAllAppCacheUserData(java.lang.String packageNames)
packageNames - String containing package names of the apps to be excepted from clearing cache and userdatapublic void setRandomWifiMacAddressEnabled(boolean mac)
mac - boolean. true for randomized MAC and false for a fixed MAC address.public void setIdleModeEnabled(boolean IdleMode)
IdleMode - Boolean value to set the idle mode enable/disable. By default auto-idle mode is enabled.public int setIdleModeTileEnabled(boolean enable)
enable - boolean value to set the idle mode tile. By default idle mode tile is enabled.IdleModeTileStatus int value {0, 1 & -1}
0 indicates a successful operation, 1 a failure and -1 when it's not supportedpublic void setNtpServerUrl(java.lang.String ntpUrl,
boolean rebootRequired)
ntpUrl - NTP server addressrebootRequired - If this is set to true device will reboot immediately. If set to false device will not reboot immediately
but device needs to be rebooted for the change to take effect using the silentReboot API. public java.lang.String getNtpServerUrl()
public void setPasswordEnabled(boolean state)
state - true to enable show password, false to disable show passwordpublic void setMicrophoneMuteEnabled(boolean state)
state - true to enable microphone, false to disable microphonepublic int setLockType(java.lang.String pass,
java.lang.String type)
type - string value to set lock typepublic java.lang.String getLockType()
public java.lang.String getHostName()
public void setHostName(java.lang.String hostname)
hostname - The chosen port numberpublic boolean getChargingSoundAndVibrationEnabled()
public void setChargingSoundAndVibrationEnabled(boolean btnState)
btnState - "Enable" to Enable Charging Sound and Vibration and "Disable" to Disable Charging Sound and Vibrationpublic boolean getScreenLockSoundEnabled()
public void setScreenLockSoundEnabled(boolean btnState)
btnState - "Enable" to Enable Screen Lock Sound and "Disable" to Disable Screen Lock Soundpublic boolean getAutoIdleModeEnabled()
public boolean getTouchSoundEnabled()
public boolean setTouchSoundEnabled(boolean touchSound)
touchSound - Boolean value to enable/disable touch soundpublic boolean setLocationEnabled(boolean enable)
enable - Boolean value to enable/disable location servicespublic int getDpi()
public int getCFDDpi()
public java.lang.String getScreenSize()
public void silentShutDown(int delay)
delay - A delay in seconds before shutting down the devicepublic int getReservedLogSpace()
public void setReservedLogSpace(int logSpace)
logSpace - log space to be reserved can be the following values: "144","256","512","756","1024","2048"public void setOrientation(java.lang.String orientation,
boolean noRebootReq,
boolean rotateISeriesorHandheld)
orientation - value should be "-1", "0", "90", "180" or "270"noRebootReq - If device should reboot after orientation is setrotateISeriesorHandheld - Indicates whether should rotate I-series or handheld devicepublic java.lang.String getOrientation()
public void setOrientation(java.lang.String orientation)
orientation - value should be "-1", "0", "90", "180" or "270"public void factoryReset(boolean eraseSdcard)
eraseSdcard - boolean true to erase SDCard data too.
false for not erasing SDCard data.public void silentReboot()
public boolean setOrientation(java.lang.String orientation,
boolean noRebootReq)
orientation - value should be "0", "90", "180", or "270"noRebootReq - If device should reboot after orientation is setpublic void setBarcodeReaderEnabled(boolean enableBCR)
enableBCR - boolean (true/false)public void setScanBarcodeReaderEnabled(boolean scanBCR)
scanBCR - boolean (true/false)public boolean getWifiEnabled()
public void setWifiEnabled(boolean wifiState)
wifiState - String (true/false). True to enable wifi and false to disable wifi.public boolean setStatusBarEnabled(boolean enableStatusBar)
silentReboot.enableStatusBar - boolean (true/false).public boolean setBluetoothDevicePairingConfirmationEnabled(android.bluetooth.BluetoothDevice device,
java.lang.Boolean enable)
device - BluetoothDeviceenable - boolean (true/false) true to enable pairing notification request and false to disable pairing notification request.public boolean setStatusBarVisibilityEnabled(boolean visible)
silentReboot.visible - boolean (true/false)public boolean getAutoAllowUsbPermissionEnabled()
silentReboot.public void setAutoAllowUsbPermissionEnabled(boolean grantPermission)
To reboot device use silentReboot.
grantPermission - boolean (true/false)public boolean getNavigationBarEnabled()
public void setNavigationBarEnabled(boolean enableNavigationBar)
silentReboot.enableNavigationBar - boolean (true/false). Default value is true.public boolean getPlayProtect()
public void setPlayProtect(boolean enablePlayProtect)
silentReboot.enablePlayProtect - boolean (true/false)public boolean getStatusBarEnabled()
public boolean getGrantAllAppPermissionEnabled()
public void setGrantAllAppPermissionEnabled(boolean grantPermission)
silentReboot.grantPermission - boolean (true/false)public boolean setInstallAllAppPermissionEnabled(boolean grantPermission)
grantPermission - boolean (true/false)public boolean setInstallPermissionToSpecificApp(java.lang.String sourcePackage,
boolean state)
sourcePackage - String package name of the app to grant install permissionstate - boolean (true/false) true to enable install permission and false to disable install permission.public boolean getInstallPermissionToSpecificApp(java.lang.String sourcePkg)
sourcePkg - String package name of the app to check install permissionpublic void setShowTextEditorShareMenuEnabled(boolean value)
value - boolean true/false. This by default set to true in Android home mode and false in EloView mode.public void setPeripheralConnectEnabled(boolean value)
value - String true/falsepublic void setStarPeripheralConnectEnabled(boolean value)
value - boolean true/falsepublic boolean setDeviceOwner(java.lang.String packageName,
java.lang.String className)
throws java.lang.NullPointerException
packageName - device owner package nameclassName - canonical class name of class which extending device admin receiverjava.lang.NullPointerException - if NonNull parameters are empty or nullpublic java.lang.String getDeviceOwnerStatus()
public boolean removeDeviceOwner(java.lang.String packageName)
throws java.lang.SecurityException
packageName - device owner package namejava.lang.SecurityException - if the caller does not own the current device owner component.public void setScreenWakeUp(long delay)
setBackLightTimeoutdelay - This parameter is a long integer value describing the number of milliseconds after which to wake up the screen.
For e.g. 15 seconds = 15*1000. and 30 minute = 30*60*1000 and 8 hours = 8*60*60*1000.public boolean wakeupScreen()
public boolean setBacklightEnabled(boolean enable)
enable - boolean (true/false) true to enable backlight and false to disable backlight.public boolean setBacklightTimeOut(int timeout)
timeout - This parameter is an integer value describing the number of milliseconds till timeout. Use
a value of 0 is for "never" setting the backlight off.
For e.g. 15 seconds = 15*1000. and 30 minute = 30*60*1000.public int getBacklightTimeOut()
public boolean setTimeZone(java.lang.String timezone)
timezone - A Standard TimeZone ID. You can get available TimeZone IDs using android.icu.util.TimeZone.getAvailableIDs()public java.lang.String getTimeZone()
public java.lang.String getLanguage()
public boolean setLanguage(java.lang.String locale)
locale - A Standard language code.public void setDateTime(long epoch)
epoch - Input date and time in epoch time. An epoch is the number of milliseconds since January 1, 1970.
Refer to the test application code to see how to get the epoch time.public boolean setNtpPollInterval(long interval,
java.lang.Boolean rebootRequired)
interval - Interval to poll in milliseconds. The minimum interval is 15 minutes (900000 ms)rebootRequired - true if reboot is required, false otherwisepublic long getNtpPollInterval()
public void setAutoDateTimeEnabled(boolean AutoDateTime)
AutoDateTime - true for enabling automatic date/time and false for disabling automatic date/time.public void setTimeFormatEnabled(boolean TimeFormat_24)
TimeFormat_24 - Input true/false to enable/disable to set 24/12 hour formatpublic int setEloNetworkConf(android.content.Context ctx,
android.net.Uri CsvURL)
ctx - A context object of the calling Class (Activity/Service).CsvURL - Csv file input where user has set the required network configurations for connectionpublic void setPowerButtonEnabled(boolean enable)
public void setHomeButtonEnabled(boolean enable)
public void setVolumePanelShowMoreEnabled(boolean enable)
public void setTextEditorAssistMenuEnabled(boolean enable)
public int setLockScreenPassword(android.content.Context context,
java.lang.String newPassword,
boolean autoUnlock)
context - ContextnewPassword - new password/PIN to be setautoUnlock - true: On reboot device will auto unlock passcode screenpublic int setLockScreenPin(android.content.Context context,
java.lang.String newPin,
boolean autoUnlock)
context - ContextnewPin - new PIN to be setautoUnlock - true: On reboot device will auto unlock Pin screenpublic int changeLockScreenPassword(android.content.Context context,
java.lang.String oldPassword,
java.lang.String newPassword,
boolean autoUnlock)
context - ContextoldPassword - old password/PIN already setnewPassword - new password/PIN to be setautoUnlock - true: On reboot device will auto unlock passcode screenpublic int changeLockScreenPin(android.content.Context context,
java.lang.String oldPin,
java.lang.String newPin,
boolean autoUnlock)
context - ContextoldPin - The pin currently set on the devicenewPin - new PIN to be setautoUnlock - true: On reboot device will auto unlock Pin screenpublic void startActivityFromForegroundService(android.content.Context context,
android.content.Intent activityIntent,
android.app.Service foregroundService)
context - ContextactivityIntent - an intent created with the name of the activity to launch foregroundService - An instance of the foreground service class from which this method is called public boolean setVolumeLevel(java.lang.String volumeType,
int value)
volumeType - volume type ("Alarm", "Call", "Media", "Notification" or "All")value - int value (0-100)public void setCopyPasteModeEnabled(boolean copyPasteMode)
copyPasteMode - : boolean (true/false) to enable or disable copy paste functionalitypublic void setMediaProjectionPermissionAllApps(boolean allowAutoPermit)
allowAutoPermit - : boolean (true/false) to enable or disable MediaProjectionPermissionpublic boolean getMediaProjectionPermissionAllApps()
public void setMediaProjectionPermission(java.lang.String pkgName)
pkgName - : the name of the package that needs permissionpublic java.lang.String getMediaProjectionPermission()
public void setVirtualKeyBoard(java.lang.String virtualKeyboard)
virtualKeyboard - A virtual keyboard component name.public void setEloLoggingEnabled(boolean enable)
enable - Set to true to enable logging and to false to disable logging.public boolean setAdbPort(java.lang.String portNumber)
portNumber - The chosen port number. Port numbers should be odd numbers in the range of 5555 to 5585.public void setAdbEnabled(boolean enable)
public void setDarkModeEnabled(boolean enable)
enable - Set to true to enable dark mode and to false to disable dark mode.public void setNotificationStatusEnabled(boolean status)
status - Set to true to disable notifications and to false to enable notifications.public void setLockStatusBarEnabled(boolean status)
status - The statuspublic boolean spFirmwareUpgrade()
public boolean getStickyEloViewModeEnabled()
public void setStickyEloViewModeEnabled(boolean stickyMode)
stickyMode - true to enable sticky EloView boot mode and false to disable itpublic void setRecentButtonEnabled(boolean enable)
public boolean setFirmwareStatusLockEnabled(boolean status)
status - true to lock firmware upgrade and false to unlockpublic int getFirmwareStatusLockEnabled()
public boolean setMultiAppModeEnabled(android.content.Context context,
boolean status)
context - A context object of the calling class (Activity/Service)status - boolean (true/false) to enable or disable multi app modepublic java.lang.String readSystemProperty(java.lang.String key)
public void writeSystemProperty(java.lang.String key,
java.lang.String value)
public void setBluetoothEnabled(boolean bluetoothState)
bluetoothState - "Enable" to Enable Bluetooth and "Disable" to Disable Bluetoothpublic void setUSBPorts(java.lang.String json)
public void setShowTapsEnabled(boolean showTapsState)
showTapsState - "Enable" to Enable Show Taps and "Disable" to Disable Show Tapspublic void setExternalAudioDeviceEnabled(boolean externalSpeakerState)
externalSpeakerState - true for External Speaker and false for Internal speaker.public boolean getHotspotAccessibilityEnabled()
public void setHotspotAccessibilityEnabled(boolean status)
status - The statuspublic java.lang.String verifyFileSignature(java.lang.String absoluteFilePath,
java.lang.String absoluteSha256Path)
absoluteFilePath - absolute file path of original file to verify integrityabsoluteSha256Path - absolute sha-256 path for checksum of filepublic java.lang.String getMD5Checksum(java.lang.String absoluteFilePath)
absoluteFilePath - accessTokenpublic boolean getShowInsetsOnSwipe()
public void setShowInsetsOnSwipe(boolean show)
show - - whether to show insets when swiping from top or bottom of screenpublic void testPeripheralMode()
public boolean copyFile(java.lang.String source,
java.lang.String destination)
source - - Source path FROM where file is to be copieddestination - - Destination path TO where file is to be copiedpublic boolean writeFile(java.lang.String destination,
java.lang.String data,
boolean readable,
boolean append,
boolean overwrite)
destination - - Destination path where file is to be createddata - - Data that is to be written to the filereadable - - To specify whether file is readableappend - - To specify whether we should append to fileoverwrite - - To specify whether we should overwrite the filepublic java.lang.String verifyFileSignature(byte[] zipFileByteArray)
zipFileByteArray - byte array of the zip filepublic java.lang.String writeSignedFileToStorage(byte[] zipFileByteArray)
zipFileByteArray - byte array of the zip filepublic java.lang.String enableSecureWhiteListMode()
public boolean getSecureWhitelistModeStatus()
public boolean setExternalScreenOrientation(java.lang.String orientation)
orientation - value should be "0", "90", "180", or "270"public java.lang.String getExternalScreenOrientation()
public void setBrightness(int value)
value - - 0-100public int getBrightness()