Hi all, my question is simple:
How to detect if the app is running on a real device or an emulator ?
The function that read the IMEI code, when running on emulator, returns a code that looks like an IMEI but of course it isn't.
I have a licensing method based on IMEI.
Need to be sure that code is unique and doesn't change.
On genymotion it seems stable but I can't be sure it's unique. On Andywin sometimes it changes.
Besides this, I need to change some app features when running on emulator.
I was looking to brand and model but of course there is not a unique rule in different emulator.
The app requires telephony, but that's not the point. If I can detect when it runs on emulator I can license it and let it to behave differently with limited functionality.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.