Due to app security concern I need to restrict a certain app from being able to run on emulator.
How can CN1 android build app be restricted from running on emulators like Android studio and Genymotion emulators?
Question posted in Android Studio
The official documentation can be found here.
The official documentation can be found here.
2
Answers
Since emulators are rooted by default, adding rooted device check at the start() or runApp() functions of the app is also a great solution.
This is working perfectly in online emulators like Appetize.io and Genymotion Cloud
This seemed like something easy to make so I added it in a PR here. It should be available in next weeks update and would work using code like this in your start method:
I based this change on this and this update.