Android app install verification

拥有回忆 提交于 2019-12-13 15:14:00

问题


I have an app which list some campaigns(list of apps) that user can install and earn the points. Now here my main concern is security. some of the user installing the apps either from emulator or vpn or something else so that my client is not getting app installs in google play store.

i have seen some apps like cash pirate,app money etc which does not give points if campaign is installed through emulator.

how can i verify that campaign is installed through phone or emulator or vpn.

NOTE : I have already checked Build Model,manufacturer etc for emulator!!

Any advance help would be appreciated !!!


回答1:


i found below link to detect some kernel things in emulator. I don't know it will help me or not...but just for the sake of info, I shared here

https://www.airpair.com/android/posts/adding-tampering-detection-to-your-android-app

Code

public static boolean checkEmulator() {
    try {
        boolean goldfish = getSystemProperty("ro.hardware").contains("goldfish");
        boolean emu = getSystemProperty("ro.kernel.qemu").length() > 0;
        boolean sdk = getSystemProperty("ro.product.model").equals("sdk");

        if (emu || goldfish || sdk) {
            return true;
        }
    } catch (Exception e) {}

    return false;
}


来源:https://stackoverflow.com/questions/30800289/android-app-install-verification

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!