Android应用程序中的块模拟器

Android应用程序中的块模拟器

本文介绍了Android应用程序中的块模拟器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

出于安全目的,我想阻止模拟器使用我的应用程序.我不希望将我的应用安装在genymotion,bluestack,droidx等任何模拟器上.

For the security purpose, I want to block emulator to use my app.I do not want my app to be installed on any emulator like genymotion,bluestack,droidx etc...

我有一个应用程序,其中提供了不包含android应用程序的墙,该应用程序可以安装并赚取积分.一旦获得积分,便可以使用Paypal帐户提款.

I have an app where we have offer wall which contains no of android app, that use can install and earn points. Once they earn some points then they can withdraw using paypal account.

现在的问题是一些用户通过代理或仿真器安装它.他们通过使用代理或仿真器赚钱,就像其他任何东西一样.

Now the problem is some of the users are installing it via proxy or emulator.they are earning money like anything by using proxy or emulator..

请帮助..我遇到了大麻烦.

Please help..I am in big trouble..

推荐答案

我认为这可行.当您的应用启动时,请检查此方法.如果返回true,请退出您的应用.否则继续.它不会阻止安装,但是可以阻止运行.

I think this would work. When your app starts check this method. If it returns true, exit your app. Otherwise continue. It won't prevent from installing but sure would prevent from running.

 public static boolean isRunningOnEmulator()
 {
    boolean result=
        Build.FINGERPRINT.startsWith("generic")
            ||Build.FINGERPRINT.startsWith("unknown")
            ||Build.MODEL.contains("google_sdk")
            ||Build.MODEL.contains("Emulator")
            ||Build.MODEL.contains("Android SDK built for x86")
            ||Build.MANUFACTURER.contains("Genymotion");
    if(result)
        return true;

    result|=Build.BRAND.startsWith("generic") && Build.DEVICE.startsWith("generic");

    if(result)
        return true;

    result|="google_sdk".equals(Build.PRODUCT);

    return result;
}

更多信息是这里

这篇关于Android应用程序中的块模拟器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-20 14:48