Code Monkey home page Code Monkey logo

Comments (4)

lamster2018 avatar lamster2018 commented on May 18, 2024
EmulatorCheckUtil.getSingleInstance().readSysProperty(this, new EmulatorCheckCallback() {
            @Override
            public void findEmulator(String emulatorInfo) {
                sout 这个emulatorInfo
            }
        });

能不能帮打印一下信息

from easyprotector.

dicallc avatar dicallc commented on May 18, 2024

打印信息如下:

ceshi start|null|cancro-eng|null|null|cancro|support CameraFlash|sensorNum6|userAppNum11|2:cpu:/
    1:cpuacct:/uid_10117/pid_3985
    |end

from easyprotector.

lamster2018 avatar lamster2018 commented on May 18, 2024

我知道了

你调用的是这个方法,我已经标记为deprecate了,这个方法是个简便方案,后续我会删除
    public static boolean checkIsRunningInEmulator() {
        return EmulatorCheckUtil.getSingleInstance().readSysProperty();
    }

你用这个方法吧,加上context,会多一些判断方案
    public static boolean checkIsRunningInEmulator(Context context) {
        return EmulatorCheckUtil.getSingleInstance().readSysProperty(context, null);
    }

而且刚才我试了一下,木木模拟器 2.0.25可以识别为模拟器。

from easyprotector.

dicallc avatar dicallc commented on May 18, 2024

ok了

from easyprotector.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.