WuglyakBolgoink / cordova-plugin-iroot

Cordova Jailbreak/Root Detection Plugin for Apache Cordova
MIT License
34 stars 72 forks source link

Add emulator check #30

Open WuglyakBolgoink opened 4 years ago

WuglyakBolgoink commented 4 years ago

TODO: check this library https://github.com/framgia/android-emulator-detector

maxmoridev commented 4 years ago

I think you could use cordova-plugin-device to simple detect if run on emulator with device.isVirtual

WuglyakBolgoink commented 4 years ago

@maxdsgroup hm...

maxmoridev commented 4 years ago

@maxdsgroup hm... .. I tested it now and works fine, also on iOS emulator, when i run it on a real device it detects the difference, so i think it is a possible solution to fix this problem ..

WuglyakBolgoink commented 4 years ago

@maxdsgroup hm... .. I tested it now and works fine, also on iOS emulator, when i run it on a real device it detects the difference, so i think it is a possible solution to fix this problem ..

ok, I need to check this with genymotion and android emulator

maxmoridev commented 3 years ago

Hi, i tested it on Genymotion emulator and i know that device.isVirtual doesn't work .. but i saw your code on java side, when you check if running on emulator : if boolean checkGenymotion = Build.MANUFACTURER.contains("Genymotion");

I'm not a java expert but i think is possible to use the same logic to implement a method to disable root detection for Genymotion emulators.

mobiliseapplabllp commented 1 year ago

is this plugin on ios simulator?