strazzere / anti-emulator

Android Anti-Emulator
Apache License 2.0
788 stars 207 forks source link

detect emulator using the specific files #7

Open agile6v opened 8 years ago

agile6v commented 8 years ago

Hi, @strazzere

I found the following files and directories can detect emulator,they can be added to the code?

"/data/youwave_id" "/dev/vboxguest" "/dev/vboxuser" "/fstab.vbox86" "/init.vbox86.rc" "/system/lib/vboxguest.ko" "/system/lib/vboxsf.ko" "/system/lib/vboxvideo.ko" "/system/usr/idc/androVM_Virtual_Input.idc" "/system/usr/keylayout/androVM_Virtual_Input.kl" "/system/xbin/mount.vboxsf" "/ueventd.vbox86.rc" "/system/lib/hw/audio.primary.vbox86.so" "/system/lib/hw/camera.vbox86.so" "/system/lib/hw/gps.vbox86.so" "/system/lib/hw/gralloc.vbox86.so" "/system/lib/hw/sensors.vbox86.so" "/data/app/com.bluestacks.appmart-1.apk" "/data/app/com.bluestacks.BstCommandProcessor-1.apk" "/data/app/com.bluestacks.help-1.apk" "/data/app/com.bluestacks.home-1.apk" "/data/app/com.bluestacks.s2p-1.apk" "/data/app/com.bluestacks.searchapp-1.apk" "/data/bluestacks.prop" "/data/data/com.androVM.vmconfig" "/data/data/com.bluestacks.accelerometerui" "/data/data/com.bluestacks.appfinder" "/data/data/com.bluestacks.appmart" "/data/data/com.bluestacks.appsettings" "/data/data/com.bluestacks.BstCommandProcessor" "/data/data/com.bluestacks.bstfolder" "/data/data/com.bluestacks.help" "/data/data/com.bluestacks.home" "/data/data/com.bluestacks.s2p" "/data/data/com.bluestacks.searchapp" "/data/data/com.bluestacks.settings" "/data/data/com.bluestacks.setup" "/data/data/com.bluestacks.spotlight" "/mnt/prebundledapps/bluestacks.prop.orig" "/mnt/prebundledapps/propfiles/ics.bluestacks.prop.note" "/mnt/prebundledapps/propfiles/ics.bluestacks.prop.s2" "/mnt/prebundledapps/propfiles/ics.bluestacks.prop.s3" "/mnt/sdcard/bstfolder/InputMapper/com.bluestacks.appmart.cfg" "/mnt/sdcard/buildroid-gapps-ics-20120317-signed.tgz" "/mnt/sdcard/windows/InputMapper/com.bluestacks.appmart.cfg" "/proc/irq/9/vboxguest" "/sys/bus/pci/drivers/vboxguest" "/sys/bus/pci/drivers/vboxguest/0000:00:04.0" "/sys/bus/pci/drivers/vboxguest/bind" "/sys/bus/pci/drivers/vboxguest/module" "/sys/bus/pci/drivers/vboxguest/new_id" "/sys/bus/pci/drivers/vboxguest/remove_id" "/sys/bus/pci/drivers/vboxguest/uevent" "/sys/bus/pci/drivers/vboxguest/unbind" "/sys/bus/platform/drivers/qemu_pipe" "/sys/bus/platform/drivers/qemu_trace" "/sys/class/bdi/vboxsf-c" "/sys/class/misc/vboxguest" "/sys/class/misc/vboxuser" "/sys/devices/virtual/bdi/vboxsf-c" "/sys/devices/virtual/misc/vboxguest" "/sys/devices/virtual/misc/vboxguest/dev" "/sys/devices/virtual/misc/vboxguest/power" "/sys/devices/virtual/misc/vboxguest/subsystem" "/sys/devices/virtual/misc/vboxguest/uevent" "/sys/devices/virtual/misc/vboxuser" "/sys/devices/virtual/misc/vboxuser/dev" "/sys/devices/virtual/misc/vboxuser/power" "/sys/devices/virtual/misc/vboxuser/subsystem" "/sys/devices/virtual/misc/vboxuser/uevent" "/sys/module/vboxguest/" "/sys/module/vboxsf/" "/sys/module/vboxvideo/" "/system/app/bluestacksHome.apk" "/system/bin/androVM-prop" "/system/bin/androVM-vbox-sf" "/system/bin/androVM_setprop" "/system/bin/get_androVM_host" "/system/bin/mount.vboxsf" "/system/etc/init.androVM.sh" "/system/etc/init.buildroid.sh" "/system/lib/modules/3.0.8-android-x86+/extra/vboxguest" "/system/lib/modules/3.0.8-android-x86+/extra/vboxguest/vboxguest.ko" "/system/lib/modules/3.0.8-android-x86+/extra/vboxsf" "/system/lib/modules/3.0.8-android-x86+/extra/vboxsf/vboxsf.ko" "/ueventd.android_x86.rc"

strazzere commented 8 years ago

I might have some time in the future to add some of these - however you can feel free to modify the code and submit a pull request :)

It'd also be nice if they had which systems these specifically detect -- some of them like like they may be FP prone.