笔 趣 阁 破 解 版2023 v4.18.00版本的 MD5 值为:35c48a89f5572ff5a659afd7c5a81cad
以下内容为反编译后的 a.java 源代码,内容仅作参考
package com.kwad.components.offline.tk.a;
import android.content.Context;
import android.os.SystemClock;
import android.text.TextUtils;
import androidx.annotation.NonNull;
import com.kwad.components.offline.api.core.api.ILoggerReporter;
import com.kwad.components.offline.api.core.soloader.SoLoadListener;
import com.kwad.components.offline.api.tk.ITkOfflineCompo;
import com.kwad.components.offline.api.tk.TkLoggerReporter;
import com.kwad.components.offline.api.tk.model.report.TKDownloadMsg;
import com.kwad.sdk.api.model.AdnName;
import com.kwad.sdk.core.config.d;
import com.kwad.sdk.utils.AbiUtil;
import com.kwad.sdk.utils.z;
import com.kwai.sodler.lib.a.f;
import com.kwai.sodler.lib.b.c;
import com.kwai.sodler.lib.c.b;
import com.kwai.sodler.lib.ext.PluginError;
import com.kwai.sodler.lib.ext.b;
import com.kwai.sodler.lib.i;
import java.util.HashMap;
import java.util.concurrent.atomic.AtomicBoolean;
public final class a {
public static long VN;
public static final AtomicBoolean Vl = new AtomicBoolean(false);
public static final String VH = z.format("lib%s.so", "tk_runtime_v0_0_8");
public static final String VI = z.format("lib%s.so", "tk_runtime_lite_v0_0_8");
public static final String VJ = z.format("lib%s.so", "kwai-v8");
public static final String VK = z.format("lib%s.so", "kwai-v8-lite");
public static final String VL = z.format("lib%s.so", "kwad-fb");
public static final String VM = z.format("lib%s.so", "kwad-yoga");
public static final String Vm = z.format("lib%s.so", "c++_shared");
public static Boolean VO = null;
public static void a(Context context, @NonNull final SoLoadListener soLoadListener) {
String tL;
String str;
String str2;
String str3;
String str4;
String str5;
String str6;
String str7;
String str8;
if (Vl.get()) {
return;
}
Vl.set(true);
HashMap<String, String> hashMap = new HashMap<>();
boolean useTkLite = useTkLite();
if (AbiUtil.isArm64(context)) {
tL = d.tM();
if (TextUtils.isEmpty(tL)) {
tL = useTkLite ? "https://static.yximgs.com/udata/pkg/KS-Android-KSAdSDk/tachikoma/3.3.24.2/ks_so-tachikomaLiteArm64v8aRelease-3.3.24.2.apk" : "https://static.yximgs.com/udata/pkg/KS-Android-KSAdSDk/tachikoma/3.3.24.2/ks_so-tachikomaArm64v8aRelease-3.3.24.2.apk";
}
str = useTkLite ? "sotk-v8a-lite" : "sotk-v8a";
str2 = useTkLite ? "db892c7b72a9636667bfc8ea7e9df0bc" : "40f3b3b81340519f51bfc19cb9ea2284";
if (useTkLite) {
hashMap.put(VI, "2711ba35c7345099edcc3f4526e0b59d");
str7 = VK;
str8 = "005c29f4f5c26b21923dce9b72a0fc8d";
} else {
hashMap.put(VH, "09a2c11101651aa5e866979ad43f3df0");
str7 = VJ;
str8 = "cbed106d3241121e1ccb6a8bc152d53e";
}
hashMap.put(str7, str8);
hashMap.put(VL, "31f065607e6da6b741330d1df0b35460");
hashMap.put(VM, "76308532f64b68fd5a930c42cceec22b");
str5 = Vm;
str6 = "6ca7958ee0b0192a7c52c16faffaa8ba";
} else {
tL = d.tL();
if (TextUtils.isEmpty(tL)) {
tL = useTkLite ? "https://static.yximgs.com/udata/pkg/KS-Android-KSAdSDk/tachikoma/3.3.24.2/ks_so-tachikomaLiteArmeabiv7aRelease-3.3.24.2.apk" : "https://static.yximgs.com/udata/pkg/KS-Android-KSAdSDk/tachikoma/3.3.24.2/ks_so-tachikomaArmeabiv7aRelease-3.3.24.2.apk";
}
str = useTkLite ? "sotk-v7a-lite" : "sotk-v7a";
str2 = useTkLite ? "55ecca97822a39bc4b276d645ad35c09" : "9f22c0987957bb7abb016726b088ad78";
if (useTkLite) {
hashMap.put(VI, "d278819f65940c10a8b7313bf606bfff");
str3 = VK;
str4 = "9798330679c11734503264cdfb118e76";
} else {
hashMap.put(VH, "b48f51dc240ddd4ffb5d8c75a5c5c820");
str3 = VJ;
str4 = "8674972563d49769d5d9a64744ac5749";
}
hashMap.put(str3, str4);
hashMap.put(VL, "eff11bebb8a3c872fa30b0484b460d12");
hashMap.put(VM, "2c6f402c6a565d2e6912b0013fa59380");
str5 = Vm;
str6 = "7cb16c2840085bbdf4be628e6604bac1";
}
hashMap.put(str5, str6);
b bVar = new b();
bVar.aFo = com.kwad.sdk.core.network.idc.a.vO().ch(tL);
bVar.Hm = true;
bVar.aFn = str;
bVar.version = useTkLite ? "3.3.24.2-lite" : "3.3.24.2";
bVar.aFr = false;
bVar.aFq = str2;
bVar.aFt = hashMap;
final com.kwai.sodler.lib.a.a fn = i.HI().HK().HM().fn(ITkOfflineCompo.PACKAGE_NAME);
com.kwad.sdk.core.e.b.d("TkSoLoadHelper", "tkOfflineCompoPlugin: " + fn);
if (fn instanceof com.kwai.sodler.lib.kwai.a) {
bVar.aFw = ((com.kwai.sodler.lib.kwai.a) fn).HT();
}
com.kwai.sodler.kwai.a.a(context, bVar, new b.c() {
@Override
public void a(c cVar) {
super.a((AnonymousClass1) cVar);
}
private void a(PluginError pluginError) {
soLoadListener.onFailed(pluginError.getCode(), pluginError);
}
@Override
public void c(c cVar) {
super.c((AnonymousClass1) cVar);
soLoadListener.onPreUpdate();
long unused = a.VN = SystemClock.elapsedRealtime();
TkLoggerReporter.get().reportTKSODownload(ILoggerReporter.Category.APM_LOG, new TKDownloadMsg().setDownloadState(0).setRetryCount(cVar.Id()).toJson());
}
@Override
public void b(c cVar) {
String str9;
super.b((AnonymousClass1) cVar);
if (cVar.getState() == 1) {
TkLoggerReporter.get().reportTKSODownload(ILoggerReporter.Category.APM_LOG, new TKDownloadMsg().setRetryCount(cVar.Id()).setDownloadTime(SystemClock.elapsedRealtime() - a.VN).setDownloadState(1).toJson());
return;
}
if (cVar.Ia() != null) {
Throwable Ia = cVar.Ia();
if (Ia instanceof PluginError) {
str9 = String.valueOf(((PluginError) Ia).getCode());
TkLoggerReporter.get().reportTKSODownload(ILoggerReporter.Category.ERROR_LOG, new TKDownloadMsg().setRetryCount(cVar.Id()).setErrorReason(str9).setDownloadState(2).toJson());
}
}
str9 = AdnName.OTHER;
TkLoggerReporter.get().reportTKSODownload(ILoggerReporter.Category.ERROR_LOG, new TKDownloadMsg().setRetryCount(cVar.Id()).setErrorReason(str9).setDownloadState(2).toJson());
}
private void rE() {
soLoadListener.onLoaded();
}
@Override
public final void a(f fVar, com.kwai.sodler.lib.a.a aVar) {
rE();
}
@Override
public final void a(f fVar, PluginError pluginError) {
a(pluginError);
}
});
}
public static boolean useTkLite() {
if (VO == null) {
VO = Boolean.valueOf(d.a(com.kwad.sdk.core.config.c.ZM));
}
return VO.booleanValue();
}
}