Giter Club home page Giter Club logo

Comments (6)

liyujiang-gzu avatar liyujiang-gzu commented on July 24, 2024 1

这个应该要改下这个库的代码,新增配置策略,针对荣耀手机是优先用哪哈oaid

如何配置呢?

要改源代码,具体实现在 OAIDFactory.java 的 75-84行:

        if (OAIDRom.isHonor()) {
            HonorImpl honor = new HonorImpl(context);
            if (honor.supported()) {
                // 支持的话(Magic UI 4.0,5.0,6.0及MagicOS 7.0或以上)直接使用荣耀的实现,否则尝试华为的实现
                return honor;
            }
        }
        if (OAIDRom.isHuawei() || OAIDRom.isEmui()) {
            return new HuaweiImpl(context);
        }

from android_cn_oaid.

liyujiang-gzu avatar liyujiang-gzu commented on July 24, 2024

这个是策略控制问题,升级前荣耀手机用的是华为oaid,升级后荣耀手机优先用荣耀自己的oaid,没有的话才用华为的oaid

from android_cn_oaid.

liyujiang-gzu avatar liyujiang-gzu commented on July 24, 2024

因为前段时间介入了荣耀的SDK,荣耀手机能获取到两个oaid

from android_cn_oaid.

liyujiang-gzu avatar liyujiang-gzu commented on July 24, 2024

这个应该要改下这个库的代码,新增配置策略,针对荣耀手机是优先用哪哈oaid

from android_cn_oaid.

jin123d avatar jin123d commented on July 24, 2024

这个应该要改下这个库的代码,新增配置策略,针对荣耀手机是优先用哪哈oaid

如何配置呢?

from android_cn_oaid.

GuoLiangjun123 avatar GuoLiangjun123 commented on July 24, 2024

这个应该要改下这个库的代码,新增配置策略,针对荣耀手机是优先用哪哈oaid

如何配置呢?

要改源代码,具体实现在 OAIDFactory.java 的 75-84行:

        if (OAIDRom.isHonor()) {
            HonorImpl honor = new HonorImpl(context);
            if (honor.supported()) {
                // 支持的话(Magic UI 4.0,5.0,6.0及MagicOS 7.0或以上)直接使用荣耀的实现,否则尝试华为的实现
                return honor;
            }
        }
        if (OAIDRom.isHuawei() || OAIDRom.isEmui()) {
            return new HuaweiImpl(context);
        }

这个问题需要我们自己来改吗,可否大佬对外提供一个方法出来,我们直接调该方法来决定使用哪个策略

from android_cn_oaid.

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.