Comments (12)
android 9
from android_cn_oaid.
SecurityException
没有权限,你在清单文件里加入com.asus.msa.SupplementaryDID.ACCESS
试试,可行的话告诉我,我没有话华硕手机:
<uses-permission android:name="com.asus.msa.SupplementaryDID.ACCESS" />
from android_cn_oaid.
清单里面已经有这个权限了
from android_cn_oaid.
其他华硕机型 是正常的。这个华硕ROG 2机型闪退
from android_cn_oaid.
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="com.asus.msa.SupplementaryDID.ACCESS" />
from android_cn_oaid.
库自带这个权限
from android_cn_oaid.
那可能是不支持获取OAID了,你看下该手机的系统设置里的“安全与隐私”里有类似于“匿名标识符”之类的选项吗
from android_cn_oaid.
如果是不支持的话,我改下对bindSevice
进行try...catch...
from android_cn_oaid.
这个是云测测出来的。目前手上也没有这个手机
from android_cn_oaid.
我用过WeTest云真机运行华硕ROG游戏手机2精英版,调用IDidAidlInterface#getID()
获取的是NULL或者空串,打印日志是这样的:
Line 19258: 08-20 13:14:31.489 24398 24398 W liyujiang: ┌────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Line 19259: 08-20 13:14:31.490 24398 24398 W liyujiang: │ View.performClick (View.java:6615)
Line 19260: 08-20 13:14:31.490 24398 24398 W liyujiang: │ MainActivity.onClick (MainActivity.java:59)
Line 19261: 08-20 13:14:31.490 24398 24398 W liyujiang: ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
Line 19262: 08-20 13:14:31.490 24398 24398 W liyujiang: │ DeviceID doGet
Line 19263: 08-20 13:14:31.490 24398 24398 W liyujiang: └────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Line 19264: 08-20 13:14:31.492 24398 24398 W liyujiang: ┌────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Line 19265: 08-20 13:14:31.493 24398 24398 W liyujiang: │ MainActivity.onClick (MainActivity.java:60)
Line 19266: 08-20 13:14:31.493 24398 24398 W liyujiang: │ DeviceID.with (DeviceID.java:68)
Line 19267: 08-20 13:14:31.493 24398 24398 W liyujiang: ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
Line 19268: 08-20 13:14:31.493 24398 24398 W liyujiang: │ BrandModel:asus ASUS_I001DA
Line 19269: 08-20 13:14:31.493 24398 24398 W liyujiang: │ Manufacturer:asus
Line 19270: 08-20 13:14:31.493 24398 24398 W liyujiang: │ SystemVersion:9 (API 28)
Line 19271: 08-20 13:14:31.493 24398 24398 W liyujiang: │ supportOAID: true
Line 19272: 08-20 13:14:31.493 24398 24398 W liyujiang: └────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Line 19276: 08-20 13:14:31.508 24398 24398 W liyujiang: ┌────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Line 19277: 08-20 13:14:31.508 24398 24398 W liyujiang: │ LoadedApk$ServiceDispatcher.doConnected (LoadedApk.java:1745)
Line 19278: 08-20 13:14:31.508 24398 24398 W liyujiang: │ AsusDeviceIdImpl$1.onServiceConnected (AsusDeviceIdImpl.java:67)
Line 19279: 08-20 13:14:31.508 24398 24398 W liyujiang: ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
Line 19280: 08-20 13:14:31.508 24398 24398 W liyujiang: │ ASUS SupplementaryDIDService connected
Line 19281: 08-20 13:14:31.508 24398 24398 W liyujiang: └────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Line 19282: 08-20 13:14:31.509 24398 24398 W liyujiang: ┌────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Line 19283: 08-20 13:14:31.510 24398 24398 W liyujiang: │ LoadedApk$ServiceDispatcher.doConnected (LoadedApk.java:1745)
Line 19284: 08-20 13:14:31.510 24398 24398 W liyujiang: │ AsusDeviceIdImpl$1.onServiceConnected (AsusDeviceIdImpl.java:81)
Line 19285: 08-20 13:14:31.510 24398 24398 W liyujiang: ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
Line 19286: 08-20 13:14:31.510 24398 24398 W liyujiang: │ java.lang.RuntimeException: ASUS ID get failed
Line 19287: 08-20 13:14:31.510 24398 24398 W liyujiang: │ at com.github.gzuliyujiang.oaid.impl.AsusDeviceIdImpl$1.onServiceConnected(AsusDeviceIdImpl.java:77)
Line 19287: 08-20 13:14:31.510 24398 24398 W liyujiang: │ at com.github.gzuliyujiang.oaid.impl.AsusDeviceIdImpl$1.onServiceConnected(AsusDeviceIdImpl.java:77)
Line 19288: 08-20 13:14:31.510 24398 24398 W liyujiang: │ at android.app.LoadedApk$ServiceDispatcher.doConnected(LoadedApk.java:1745)
Line 19289: 08-20 13:14:31.510 24398 24398 W liyujiang: │ at android.app.LoadedApk$ServiceDispatcher$RunConnection.run(LoadedApk.java:1777)
Line 19290: 08-20 13:14:31.510 24398 24398 W liyujiang: │ at android.os.Handler.handleCallback(Handler.java:873)
Line 19291: 08-20 13:14:31.510 24398 24398 W liyujiang: │ at android.os.Handler.dispatchMessage(Handler.java:99)
Line 19292: 08-20 13:14:31.510 24398 24398 W liyujiang: │ at android.os.Looper.loop(Looper.java:198)
Line 19293: 08-20 13:14:31.510 24398 24398 W liyujiang: │ at android.app.ActivityThread.main(ActivityThread.java:6872)
Line 19294: 08-20 13:14:31.510 24398 24398 W liyujiang: │ at java.lang.reflect.Method.invoke(Native Method)
Line 19295: 08-20 13:14:31.510 24398 24398 W liyujiang: │ at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
Line 19296: 08-20 13:14:31.510 24398 24398 W liyujiang: │ at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
Line 19297: 08-20 13:14:31.510 24398 24398 W liyujiang: └────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Line 19298: 08-20 13:14:31.510 24398 24398 W liyujiang: ┌────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Line 19299: 08-20 13:14:31.510 24398 24398 W liyujiang: │ AsusDeviceIdImpl$1.onServiceConnected (AsusDeviceIdImpl.java:82)
Line 19300: 08-20 13:14:31.510 24398 24398 W liyujiang: │ MainActivity$1.onOAIDGetError (MainActivity.java:77)
Line 19301: 08-20 13:14:31.510 24398 24398 W liyujiang: │ onOAIDGetError====>java.lang.RuntimeException: ASUS ID get failed
from android_cn_oaid.
好的。谢谢,这个问题解决。
from android_cn_oaid.
额,看了一下数盟的介绍,华硕要Android10及以上才支持OAID
from android_cn_oaid.
Related Issues (20)
- 按照文档接入,无法依赖这个库。 HOT 7
- 安裝Demo.apk後,啟動遇到Google Play提示不明來源 HOT 7
- DeviceIdentifier.getOAID第一次无法获取值 HOT 1
- getWidevineID 使用MediaDrm 部分手机异常 HOT 2
- Redmi 7A 无法获取oaid oaid字段为“” HOT 5
- msa官网sdk已更新到1.2.1,适配android13 HOT 4
- 更新到targetSDK = 33之後,抓到的OAID全是0 HOT 4
- 大佬,不初始化好像也没什么问题呀 HOT 1
- WidevineID唯一性 HOT 2
- 请教大佬后端唯一标识真假判断问题。 HOT 3
- 鸿蒙系统3.0 初始化导致应用无响应 HOT 2
- 卸载之后重装OAID会变吗? HOT 1
- 线上收集的一些错误反馈 HOT 1
- 大佬 华为需要适配了 HOT 13
- 华为获取报错 Lcom/huawei/hms/ads/identifier/AdvertisingIdClient HOT 6
- 编译报错 HOT 3
- 华为设备崩溃 HOT 2
- 荣耀手机 HONOR Model: JSN-L22 Release: 9 API: 28 进入黑屏卡死 HOT 3
- 荣耀11.23日发布新机型,并用自己提供oaid的获取方法,不再允许其他方式获取 HOT 23
- 小米隐私合规问题 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from android_cn_oaid.