L
L
linuxnb2017-06-03 14:42:33
Android
linuxnb, 2017-06-03 14:42:33

How to bypass android emulation check?

Good time of the day. I'm studying holes in androyd, because I wanted to ask.
I know that you can check if the application is running on android
public static boolean isEmulator() {
return Build.FINGERPRINT.startsWith("generic")
|| Build.FINGERPRINT.startsWith("unknown")
|| Build.MODEL.contains("google_sdk")
|| Build.MODEL.contains("Emulator")
|| Build.MODEL.contains("Android SDK built for x86")
|| Build.MANUFACTURER.contains("Genymotion")
|| (Build.BRAND.startsWith("generic") && Build.DEVICE.startsWith("generic"))
|| "google_sdk".equals(Build.PRODUCT);

Answer the question

In order to leave comments, you need to log in

1 answer(s)
H
Hakito, 2017-06-04
@hakito

As a dirty option, use reflection to change the values ​​of the constants of the Build class so that all checks are false

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question