-
public class DeviceInformation extends DeviceFingerprintThis class is responsible for fetching the device information
-
-
Constructor Summary
Constructors Constructor Description DeviceInformation(Context context)
-
Method Summary
Modifier and Type Method Description booleanisMockLocationEnabled()StringgetAppsWithMockPermission(Context context)StringgetNightModeStatus()intgetScreenBrightness()booleanisPowerSavingModeEnabled(Context context)StringgetAllVolumeLevelsInfo()booleanisDNDModeEnabled(Context context)booleanisDualSim(Context context)StringcheckBluetoothStatus()StringgetAMPMFormat(Context context)StringgetLockTypeString(Context context)booleanisSimCardLocked(Context context)StringgetManifestPermissions(String packageName)booleanisEmulatorOrRealDevice()booleanisDeveloperModeEnabled()booleanisVpnConnected(Context context)floatgetDefaultTimeZoneOffsetInHours()final StringgetDeviceName()It will return the Combination ofDevice Manufacturer and Model final StringgetBuildBrand()Get Brand name final StringgetModel()Get Device Model final StringgetFingerprint()Get Build Fingerprint$(BRAND)/$(PRODUCT)/$(DEVICE)/$(BOARD):$(VERSION.RELEASE)/$(ID)/$(VERSION. final StringgetDeviceRingerMode()Get the device ringer modeEg. final StringgetSerial()Get Device Serial StringgetDeviceManufacturer()Get Device Manufacturer information final StringgetProcessor()StringgetDeviceOrientation(Context context)Get the Device orientationPORTRAIT or LANDSCAPE final StringgetOSVersion()Get Device Os Version final intgetSdkVersion()Get Device sdk version final StringgetLanguage()Get Device default Language final StringgetDeviceLocale()Get Device Localeeg. final StringgetDevice()DeviceEg. final StringgetBoard()Device BoardEg. final StringgetDisplayVersion()Get Display Version final StringisUsbHostSupported(Context context)Get USB Host Technology supported or not booleangetUsbHost(Context context)Get Device USB Host supported or not final StringgetPhoneType(Context context)Get Phone typeEx. final StringgetOperator()Get operator final intgetScreenHeight()Get Device Screen or Display Height final intgetScreenWidth()Get Device Screen or Display Width StringgetDPI()Returns dpi of the current screen the app is shown. StringgetResolution()Calculates the screen size in inches; final StringgetRefreshRate()Returns the refresh rate of the device; -
-
Constructor Detail
-
DeviceInformation
DeviceInformation(Context context)
-
-
Method Detail
-
isMockLocationEnabled
boolean isMockLocationEnabled()
-
getAppsWithMockPermission
String getAppsWithMockPermission(Context context)
-
getNightModeStatus
String getNightModeStatus()
-
getScreenBrightness
int getScreenBrightness()
-
isPowerSavingModeEnabled
boolean isPowerSavingModeEnabled(Context context)
-
getAllVolumeLevelsInfo
String getAllVolumeLevelsInfo()
-
isDNDModeEnabled
boolean isDNDModeEnabled(Context context)
-
checkBluetoothStatus
String checkBluetoothStatus()
-
getAMPMFormat
String getAMPMFormat(Context context)
-
getLockTypeString
String getLockTypeString(Context context)
-
isSimCardLocked
boolean isSimCardLocked(Context context)
-
getManifestPermissions
String getManifestPermissions(String packageName)
-
isEmulatorOrRealDevice
boolean isEmulatorOrRealDevice()
-
isDeveloperModeEnabled
boolean isDeveloperModeEnabled()
-
isVpnConnected
boolean isVpnConnected(Context context)
-
getDefaultTimeZoneOffsetInHours
float getDefaultTimeZoneOffsetInHours()
-
getDeviceName
final String getDeviceName()
It will return the Combination ofDevice Manufacturer and Model
-
getBuildBrand
final String getBuildBrand()
Get Brand name
-
getFingerprint
final String getFingerprint()
Get Build Fingerprint$(BRAND)/$(PRODUCT)/$(DEVICE)/$(BOARD):$(VERSION.RELEASE)/$(ID)/$(VERSION.INCREMENTAL):$(TYPE)/$(TAGS)
-
getDeviceRingerMode
final String getDeviceRingerMode()
Get the device ringer modeEg. Normal, Silent, Vibration
-
getDeviceManufacturer
String getDeviceManufacturer()
Get Device Manufacturer information
-
getProcessor
final String getProcessor()
-
getDeviceOrientation
String getDeviceOrientation(Context context)
Get the Device orientationPORTRAIT or LANDSCAPE
- Parameters:
context- as request
-
getOSVersion
final String getOSVersion()
Get Device Os Version
-
getSdkVersion
final int getSdkVersion()
Get Device sdk version
-
getLanguage
final String getLanguage()
Get Device default Language
-
getDeviceLocale
final String getDeviceLocale()
Get Device Localeeg. In, En
-
getDisplayVersion
final String getDisplayVersion()
Get Display Version
-
isUsbHostSupported
final String isUsbHostSupported(Context context)
Get USB Host Technology supported or not
- Parameters:
context- as para
-
getUsbHost
boolean getUsbHost(Context context)
Get Device USB Host supported or not
-
getPhoneType
final String getPhoneType(Context context)
Get Phone typeEx. Gsm, CDMA
- Parameters:
context- as para
-
getOperator
final String getOperator()
Get operator
-
getScreenHeight
final int getScreenHeight()
Get Device Screen or Display Height
-
getScreenWidth
final int getScreenWidth()
Get Device Screen or Display Width
-
getResolution
String getResolution()
Calculates the screen size in inches;
-
getRefreshRate
final String getRefreshRate()
Returns the refresh rate of the device;
-
-
-
-