简体   繁体   中英

Android: build android application to check app is running at emulator or real device

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

您可以检查Build.PRODUCT

"google_sdk".equals(Build.PRODUCT);

The IMEI on the emulator is "00000000000000". Just check in your app if the IMEI equals the systems IMEI.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM