Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

部分手机测试 获取 OAID 为 空 #80

Open
houkhan opened this issue Jan 8, 2024 · 2 comments
Open

部分手机测试 获取 OAID 为 空 #80

houkhan opened this issue Jan 8, 2024 · 2 comments

Comments

@houkhan
Copy link

houkhan commented Jan 8, 2024

代码

    var deviceOAID = ""
    fun setDeviceOAID() {
        deviceOAID = DeviceIdentifier.getOAID(Abase.context)
        LogUtils.d("deviceOAID==$deviceOAID")
    }

目前发现的机型 设备
harmonyos 4.0

本地编译环境

    const val compileSdkVersion = 33
    const val minSdkVersion = 24
    const val targetSdkVersion = 32
@wincLei
Copy link

wincLei commented Jan 8, 2024 via email

@GuoLiangjun123
Copy link

这个我这边测遇到过荣耀100获取不到的情况,最后测试下来必须使用最新的官方库才可以,你这边可以试试最新的官方库;做了一些兼容 houkhan @.> 于2024年1月8日周一 15:15写道:

代码 var deviceOAID = "" fun setDeviceOAID() { deviceOAID = DeviceIdentifier.getOAID(Abase.context) LogUtils.d("deviceOAID==$deviceOAID") } 目前发现的机型 设备 harmonyos 4.0 本地编译环境 const val compileSdkVersion = 33 const val minSdkVersion = 24 const val targetSdkVersion = 32 — Reply to this email directly, view it on GitHub <#80>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABYLFEXNRC2VPZJW3Y6ERIDYNOMIVAVCNFSM6AAAAABBQ7ZVVGVHI2DSMVQWIX3LMV43ASLTON2WKOZSGA3DSOBWGI4DONA . You are receiving this because you are subscribed to this thread.Message ID: @.
>

官方库指的是安全联盟那个吗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants