marcick Well-Known Member Licensed User Longtime User Nov 25, 2015 #1 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.
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.
Informatix Expert Licensed User Longtime User Nov 25, 2015 #2 It's a bit complicated since some emulators, e.g. Genymotion, try to behave and look like real devices. Here's a summary of what can be checked (in Java): http://stackoverflow.com/a/32664737 What's the purpose of such a distinction? Upvote 0
It's a bit complicated since some emulators, e.g. Genymotion, try to behave and look like real devices. Here's a summary of what can be checked (in Java): http://stackoverflow.com/a/32664737 What's the purpose of such a distinction?
marcick Well-Known Member Licensed User Longtime User Nov 25, 2015 #3 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. Upvote 0
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.
eurojam Well-Known Member Licensed User Longtime User Nov 25, 2015 #4 you can also use hardware and Fingerprint - may be you have to combine modell, hardware and fingerprint, to get it all -> http://stackoverflow.com/questions/...ndroid-application-is-running-in-the-emulator Upvote 0
you can also use hardware and Fingerprint - may be you have to combine modell, hardware and fingerprint, to get it all -> http://stackoverflow.com/questions/...ndroid-application-is-running-in-the-emulator
Informatix Expert Licensed User Longtime User Nov 25, 2015 #5 marcick said: I have a licensing method based on IMEI. Click to expand... You're going to exclude all devices that have no IMEI (e.g. most tablets). Is it voluntary? Upvote 0
marcick said: I have a licensing method based on IMEI. Click to expand... You're going to exclude all devices that have no IMEI (e.g. most tablets). Is it voluntary?
marcick Well-Known Member Licensed User Longtime User Nov 25, 2015 #6 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. Upvote 0
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.