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

Event:APP_SCOUT_WARNING Thread:main backtrace: #76

Open
mensaoselang opened this issue Dec 4, 2023 · 3 comments
Open

Event:APP_SCOUT_WARNING Thread:main backtrace: #76

mensaoselang opened this issue Dec 4, 2023 · 3 comments

Comments

@mensaoselang
Copy link

获取oaid 卡很慢。5-6秒,还报这个警告, 小米12
Event:APP_SCOUT_WARNING Thread:main backtrace:
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:442)
at android.app.ActivityThread.acquireProvider(ActivityThread.java:7223)
at android.app.ContextImpl$ApplicationContentResolver.acquireUnstableProvider(ContextImpl.java:3363)
at android.content.ContentResolver.acquireUnstableProvider(ContentResolver.java:2526)
at android.content.ContentResolver.query(ContentResolver.java:1203)
at android.content.ContentResolver.query(ContentResolver.java:1151)
at android.content.ContentResolver.query(ContentResolver.java:1107)
at com.android.id.impl.IdProviderImpl.getOAID(IdProviderImpl.java:51)
at java.lang.reflect.Method.invoke(Native Method)
at com.github.gzuliyujiang.oaid.impl.XiaomiImpl.getOAID(XiaomiImpl.java:78)
at com.github.gzuliyujiang.oaid.impl.XiaomiImpl.doGet(XiaomiImpl.java:64)
at com.github.gzuliyujiang.oaid.DeviceID.getOAID(DeviceID.java:221)
at com.mostone.gochat.lib.base.utils.OaidManager.asynGetOaid(OaidManager.kt:60)
at com.mostone.gochat.viewmodel.SplashViewModel.initQxReporter(SplashViewModel.kt:61)
at com.mostone.gochat.ui.SplashActivity.realInit(SplashActivity.kt:364)
at com.mostone.gochat.ui.SplashActivity$checkUpgrade$1$1.invoke(SplashActivity.kt:334)
at com.mostone.gochat.ui.SplashActivity$checkUpgrade$1$1.invoke(SplashActivity.kt:331)
at com.mostone.gochat.lib.common.upgrade.UpgradeManager.check(UpgradeManager.kt:90)
at com.mostone.gochat.lib.common.upgrade.UpgradeManager$check$1.invokeSuspend(Unknown Source:15)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:210)
at android.os.Looper.loop(Looper.java:299)
at android.app.ActivityThread.main(ActivityThread.java:8105)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:556)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1045)

@mensaoselang
Copy link
Author

说错了,是红米k40 MIUI 13.0.7

@mensaoselang
Copy link
Author

Failed to find provider info for com.miui.idprovider

@liyujiang-gzu
Copy link
Member

Failed to find provider info for com.miui.idprovider

你试下小米官方提供的jar看是否有问题:https://dev.mi.com/console/doc/detail?pId=1821

获取小米提供的SDK,仅适用于小米手机
获取地址:http://f4.market.xiaomi.com/download/MiPass/058fc4374ac89aea6dedd9dc03c60a5498241e0dd/DeviceId.jar
补充设备标识获取方法:
IdentifierManager#isSupported  判断是否支持获取设备标识
IdentifierManager#getUDID 获取设备唯一标识符
IdentifierManager#getOAID 获取匿名设备标识符
IdentifierManager#getVAID 获取开发者匿名设备标识符
IdentifierManager#getAAID 获取应用匿名设备标识符

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

2 participants