Skip to content

Commit

Permalink
feat: 适配oaid1.0.27版本
Browse files Browse the repository at this point in the history
  • Loading branch information
styluo committed Sep 23, 2021
1 parent 6a58e3d commit b216efa
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
Binary file modified growingio-tools/oaid/libs/msa_helper.jar
Binary file not shown.
13 changes: 11 additions & 2 deletions growingio-tools/oaid/resources/OaidHelper1026.java
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ public void preloadOaid(Context context) {
Logger.w(TAG, "getDeviceIds: cert init failed");
}
}

int initCode = MdidSdkHelper.InitSdk(context, true, mListener);
switch (initCode) {
case InfoCode.INIT_INFO_RESULT_DELAY:
Expand Down Expand Up @@ -128,9 +129,17 @@ public String getOaid() {
}

private static void initSDKLibrary() {
// 不能通过MdidSdkHelper判断版本加载不同so,获取版本号为native方法
// 适配1.0.27的oaid_sdk
loadLibrary("nllvm1630571663641560568");
// 适配1.0.26的oaid_sdk
loadLibrary("nllvm1623827671");
}

private static void loadLibrary(String libName) {
try {
System.loadLibrary("nllvm1623827671");
} catch (Throwable var1) {
System.loadLibrary(libName);
} catch (Throwable ignored) {
}
}

Expand Down

0 comments on commit b216efa

Please sign in to comment.