| There is a security package and it has the follow checks https://docs.aerogear.org/aerogear/latest/device-security.html#device-trust Root Access Detection (ROOT_ENABLED) Use it to help prevent your app running in a device that has been rooted/jailbroken. A device is considered rooted if any of the following are true: DeviceChecks.ROOT_ENABLED. This function uses the Rootbeer library to check if root access is present on the device. Developer Mode Detection (DEVELOPER_MODE_ENABLED) To detect if Developer Mode has been enabled on the device the DeviceCheckType#DEVELOPER_MODE_ENABLED function can be used. This function uses Android’s Settings class. Debugger Detection (DEBUGGER_ENABLED) To detect if an Android debugger is attached to the app the DeviceCheckType#DEBUGGER_ENABLED function can be used. This function uses Android’s Debug class. Emulator Detection (IS_EMULATOR) To detect if the app is being run on an emulator the DeviceCheckType#IS_EMULATOR function can be used. This function uses Android’s Build class. h1 .Device Lock Detection (SCREEN_LOCK_ENABLED) To detect if a device has a lock screen set (with pin, fingerprint, pattern) the DeviceCheckType#SCREEN_LOCK_ENABLED function can be used. This function uses Android’s KeyguardManager class. App Data Backup Detection (BACKUP_ENABLED) To detect whether the application’s data is configured to be synchronized across devices the DeviceCheckType#BACKUP_ENABLED function can be used. The allowBackup flag determines whether to allow the application to participate in the backup and restore infrastructure, which might be interesting to avoid depending on your app’s needs. Device Encryption Detection (ENCRYPTION_ENABLED) To detect whether the devices' filesystem is encrypted the DeviceCheckType#ENCRYPTION_ENABLED function can be used. This function uses Android’s DevicePolicyManager class. |