We need to develop android basic app which will detect the device is real or emulator and behave accordingly. But did not found sample code or process to detect this thing actually. Please suggest me somebody to resolve this issue. Thanks
Asked
Active
Viewed 365 times
2 Answers
2
you can check Build.PRODUCT
"google_sdk".equals(Build.PRODUCT);

Michele
- 6,126
- 2
- 41
- 45
-
I would recommend this: Build.PRODUCT.startsWith("google_sdk") there are other strings for x86 and mips, so this seems to me more safe. – drindt Jun 26 '14 at 07:31
0
The IMEI on the emulator is "00000000000000". Just check in your app if the IMEI equals the systems IMEI.

Saqib Razaq
- 864
- 1
- 7
- 13