Comments (3)
中兴用的是MSA的实现MsaImpl
,失败了才用了谷歌的GmsImpl
,你调用OAIDLog.enable();
开启日志看下是打印的啥:
public static IOAID create(Context context) {
if (context != null && !(context instanceof Application)) {
// See https://github.com/gzu-liyujiang/Android_CN_OAID/pull/23
context = context.getApplicationContext();
}
if (ioaid != null) {
return ioaid;
}
// 优先尝试各厂商自家提供的接口
ioaid = createManufacturerImpl(context);
if (ioaid != null && ioaid.supported()) {
OAIDLog.print("Manufacturer interface has been found: " + ioaid.getClass().getName());
return ioaid;
}
// 再尝试移动安全联盟及谷歌服务框架提供的接口
ioaid = createUniversalImpl(context);
return ioaid;
}
private static IOAID createManufacturerImpl(Context context) {
if (OAIDRom.isLenovo() || OAIDRom.isMotolora()) {
return new LenovoImpl(context);
}
if (OAIDRom.isMeizu()) {
return new MeizuImpl(context);
}
if (OAIDRom.isNubia()) {
return new NubiaImpl(context);
}
if (OAIDRom.isXiaomi() || OAIDRom.isMiui() || OAIDRom.isBlackShark()) {
return new XiaomiImpl(context);
}
if (OAIDRom.isSamsung()) {
return new SamsungImpl(context);
}
if (OAIDRom.isVivo()) {
return new VivoImpl(context);
}
if (OAIDRom.isASUS()) {
return new AsusImpl(context);
}
if (OAIDRom.isHuawei() || OAIDRom.isEmui()) {
return new HuaweiImpl(context);
}
if (OAIDRom.isOppo() || OAIDRom.isOnePlus()) {
return new OppoImpl(context);
}
if (OAIDRom.isCoolpad(context)) {
return new CoolpadImpl(context);
}
if (OAIDRom.isCoosea()) {
return new CooseaImpl(context);
}
if (OAIDRom.isFreeme()) {
return new FreemeImpl(context);
}
return null;
}
private static IOAID createUniversalImpl(Context context) {
// 若各厂商自家没有提供接口,则优先尝试移动安全联盟的接口
IOAID ioaid = new MsaImpl(context);
if (ioaid.supported()) {
OAIDLog.print("Mobile Security Alliance has been found: " + ioaid.getClass().getName());
return ioaid;
}
// 若不支持移动安全联盟的接口,则尝试谷歌服务框架的接口
ioaid = new GmsImpl(context);
if (ioaid.supported()) {
OAIDLog.print("Google Play Service has been found: " + ioaid.getClass().getName());
return ioaid;
}
// 默认不支持
ioaid = new DefaultImpl();
OAIDLog.print("OAID/AAID was not supported: " + ioaid.getClass().getName());
return ioaid;
}
from android_cn_oaid.
好的,感谢
from android_cn_oaid.
MSA 的 SDK 可以采集到 OAID
MSA 的 SDK 可以采集到 OAID
,看了一下MSA SDK已经更新到1.1.0版本,这个库是基于MSA SDK 1.0.25分析得来的,最新版本的MSA SDK把很多Java层关键的代码都包装到C层,貌似逆向有点困难了。
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 22
- 小米隐私合规问题 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.