-
-
Notifications
You must be signed in to change notification settings - Fork 354
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
急!线上大面积华为,荣耀用户突遇崩溃!!! No imolementation found for boolean com,huawei.hms.ads,identifier,AdvertisingIdclient,isAdvertisingIdAvailable(android,content.Context) #85
Comments
|
我们直接在安全联盟官网上下载的oaid的aar,这个我们怎么验证是否依赖了荣耀sdk |
对比了下混淆配置,应该是漏掉了-keep class com.hihonor.ads.** {; } 和 -keep interface com.huawei.hms.** {;} |
问题解决了吗? |
发版待验证 |
本库模块专用的混淆规则(注:“repeackage”拼写是历史遗留问题)-keep class repeackage.com.uodis.opendevice.aidl.** { ; } |
|
这种情况,要么是没把荣耀的SDK作为运行时依赖进去,要么就是混淆后找不到类。看一下荣耀的SDK依赖项是否下载到了 |
咋验证呢 |
反编译APK,看里面有没有荣耀SDK相关类 |
参阅 #86 |
大兄弟,移动安全联盟SDK内置用的荣耀isAdvertisingIdAvailable和Android_CN_OAID库用的荣耀SDK方法签名不一致导致的,逆向移动安全联盟SDK,改改里面com.bun.miitmdid.provider.huawei.HWProvider类,把有关华为和荣耀相关代码全删了,重新打包AAR,就可以和Android_CN_OAID共存使用了。 |
瑞思拜~bro |
1.cnoaid配置如下
implementation('com.github.gzu-liyujiang:Android_CN_OAID:4.2.8') {
// 排除掉本项目依赖的华为官方广告标识服务SDK,也即是使用移动安全联盟SDK依赖的华为官方广告标识服务SDK
exclude group: 'com.huawei.hms', module: 'ads-identifier'
// 荣耀官方广告标识服务SDK同理:
exclude group: 'com.hihonor.mcs', module: 'ads-identifier'
}
2.同时也使用了安全联盟的oaid,版本为2.3.0
3.线上崩溃堆栈如下:
java.lang.UnsatisfiedLinkError: No implementation found for boolean com.hihonor.ads.identifier.AdvertisingIdClient.isAdvertisingIdAvailable(android.content.Context) (tried Java_com_hihonor_ads_identifier_AdvertisingIdClient_isAdvertisingIdAvailable and Java_com_hihonor_ads_identifier_AdvertisingIdClient_isAdvertisingIdAvailable__Landroid_content_Context_2)
at com.hihonor.ads.identifier.AdvertisingIdClient.isAdvertisingIdAvailable(Native Method)
at com.github.gzuliyujiang.oaid.impl.HonorImpl.supported(SourceFile:2)
at com.github.gzuliyujiang.oaid.impl.OAIDFactory.createManufacturerImpl(SourceFile:15)
at com.github.gzuliyujiang.oaid.impl.OAIDFactory.create(SourceFile:4)
at com.github.gzuliyujiang.oaid.DeviceID.getOAID(SourceFile:2)
at com.github.gzuliyujiang.oaid.DeviceID.getOAIDOrOtherId(SourceFile:1)
at com.github.gzuliyujiang.oaid.DeviceID.register(SourceFile:12)
at com.github.gzuliyujiang.oaid.DeviceIdentifier.register(SourceFile:7)
at com.github.gzuliyujiang.oaid.DeviceIdentifier.register(SourceFile:3)
at com.github.gzuliyujiang.oaid.DeviceIdentifier.register(SourceFile:1
The text was updated successfully, but these errors were encountered: