Background:
Honor devices will replace the existing OAID SDK starting from 2024 to support third-party platforms to collect OAID, and collection through other methods will no longer be allowed. In order to prevent OAID from being unable to be collected on the new Honor machine later, developers need to independently update the CAICT SDK to the OAID SDK of the new Honor machine (version 2.3.0, for details, see: https://www.msa-alliance.cn/col.jsp?id=120).
Integration steps:
1. Import CAICT SDKoaid_sdk_2.3.0.aar into your project libs
2. Import the cert.pem and supplierconfig.json certificate files into your project assets
3. Call OAID SDK initialization operation:
public class OAIDApplication extends Application {
public static final String TAG = "OAIDApplication";
@Override
public void onCreate() {
super.onCreate();
System.loadLibrary("msaoaidsec"); // TODO SDK初始化操作
}
}
4. Try to call the API of the SDK to ensure that the OAID can be obtained normally. How to obtain the OAID from the Academy of Information and Communications Technology SDK:
MdidSdkHelper.InitSdk(context.getApplicationContext(), true, new IIdentifierListener() {
@Override
public void onSupport(IdSupplier idSupplier) {
String oaid = idSupplier.getOAID();
}
});
5. Synchronize the contents of the OAID obfuscation rule proguard-rules.pro file to the project