h6. What Leverage some existing checks into We should expose a function that allows the Android Security SDK end developer to check if the device running the application is an emulator. How Using the recommendations coming out h6. Why If an app is running on an emulator, it can provide an attacker with great controller of the initial IdM SDK Module work operating system and make gaining root access easier. http h6. How Implement a function to check if the underlying device is an emulator.
{code : java} / ** * Helper function to detect if the host is an emulator * * @return boolean * / feedhenry private boolean isEmulator() { return Build . org/mobile-security/#mobile_app_self_defence FINGERPRINT.startsWith("generic") Check to be completed || Build.FINGERPRINT.startsWith("unknown") || Build.MODEL.contains("google_sdk") || Build.MODEL.contains("Emulator") || Build.MODEL.contains("Android SDK built for this JIRA: x86") isEmulator || Build.SERIAL == null || Build.MANUFACTURER.contains ( "Genymotion" ) || (Build.BRAND.startsWith("generic") && Build.DEVICE.startsWith("generic")) || "google_sdk".equals(Build.PRODUCT); } {code} |
|