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

线上收集的一些错误反馈 #65

Open
developerzjy opened this issue Jun 1, 2023 · 1 comment
Open

线上收集的一些错误反馈 #65

developerzjy opened this issue Jun 1, 2023 · 1 comment

Comments

@developerzjy
Copy link

你好,我们项目集成了这个sdk,线上收集到的一些错误,想问下作者这些错误的原因以及有没有处理这些错误建议来提高oaid的获取率。

错误1:
onOAIDGetError回调方法返回的错误:com.github.gzuliyujiang.oaid.OAIDException: java.lang.SecurityException: Package (此处是我们app的包名) does not belong to 10382

错误2:
onOAIDGetError回调方法返回的错误:com.github.gzuliyujiang.oaid.OAIDException: Service binding failed

错误3:
onOAIDGetError回调方法返回的错误:com.github.gzuliyujiang.oaid.OAIDException: OAID query failed: null

@liyujiang-gzu
Copy link
Member

liyujiang-gzu commented Dec 5, 2023

错误1不太清楚,错误2是因为厂商的远程接口(AIDL)的Service绑定失败,错误3是因为调用厂商的OAID获取方式失败,小概率出现的话也许是正常现象,大概率出现的话就看下是什么厂商的手机、记录下错误的详细堆栈辅助分析。

错误2相关源码:

// OAIDService.java
 boolean ret = context.bindService(intent, this, Context.BIND_AUTO_CREATE);
            if (!ret) {
                throw new OAIDException("Service binding failed");
            }

错误3相关源码:

// NubiaImpl.java
 if (oaid == null || oaid.length() == 0) {
                throw new OAIDException("OAID query failed: " + bundle.getString("message"));
            }

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