花瓣 v4.6.12版本的 MD5 值为:6a3515d4d16d98931f1b3d25a91b257e
以下内容为反编译后的 a.java 源代码,内容仅作参考
package com.kwad.components.offline.adLive.kwai;
import android.content.Context;
import android.util.Log;
import androidx.annotation.NonNull;
import com.kwad.components.offline.api.adLive.IAdLiveOfflineCompo;
import com.kwad.components.offline.api.core.soloader.SoLoadListener;
import com.kwad.sdk.api.model.AdnName;
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 {
private static final AtomicBoolean Vl = new AtomicBoolean(false);
private static final String Vm = z.format("lib%s.so", "c++_shared");
private static final String Vn = z.format("lib%s.so", "kwaiplayer");
private static final String Vo = z.format("lib%s.so", "kste");
private static final String Vp = z.format("lib%s.so", "hodor");
private static final String Vq = z.format("lib%s.so", "aegon");
private static final AtomicBoolean Vr = new AtomicBoolean(false);
public static void a(Context context, @NonNull final SoLoadListener soLoadListener) {
String str;
String str2;
String str3;
if (Vl.get()) {
return;
}
Vl.set(true);
HashMap<String, String> hashMap = new HashMap<>();
if (AbiUtil.isArm64(context)) {
hashMap.put(Vm, "dcd68cd059cb06a9596ba6839c2e8858");
hashMap.put(Vn, "f5d9ed20ecd348d291dc742508036c00");
hashMap.put(Vo, "ebb56fa9c5701350497e281c2446660f");
hashMap.put(Vp, "d2c9607f3ddbbefe6914f1e94e8c53ff");
hashMap.put(Vq, "e43929c76e20f091def8fe0579d16adc");
str = "https://static.yximgs.com/udata/pkg/KS-Android-KSAdSDk/adLive/3.3.26.1/ks_so-adLiveArm64v8aRelease-3.3.26.1.apk";
str2 = "adLive-v8a";
str3 = "310fad205107df839a5026968c232766";
} else {
hashMap.put(Vm, "e3fdbf82716c2cb9b666a3880ab94003");
hashMap.put(Vn, "ec3e4937f3c114dd36ed0cbd10585d22");
hashMap.put(Vo, "71a9baa45905a6f0e527e5a2e06e8808");
hashMap.put(Vp, "644a9dacce49b4c3226f5129267c0dad");
hashMap.put(Vq, "69828b232bd1c06552a81870a5d5e465");
str = "https://static.yximgs.com/udata/pkg/KS-Android-KSAdSDk/adLive/3.3.26.1/ks_so-adLiveArmeabiv7aRelease-3.3.26.1.apk";
str2 = "adLive-v7a";
str3 = "e0f9628529f23e1928c8d3f61634c8f2";
}
b bVar = new b();
com.kwai.sodler.lib.a.a fn = i.HI().HK().HM().fn(IAdLiveOfflineCompo.PACKAGE_NAME);
com.kwad.sdk.core.e.b.d("AdLiveSoLoadHelper", "adLiveOfflineCompoPlugin: " + fn);
if (fn instanceof com.kwai.sodler.lib.kwai.a) {
bVar.aFw = ((com.kwai.sodler.lib.kwai.a) fn).HT();
}
bVar.aFo = com.kwad.sdk.core.network.idc.a.vO().ch(str);
bVar.Hm = true;
bVar.aFn = str2;
bVar.version = "3.6";
bVar.aFt = hashMap;
bVar.aFq = str3;
bVar.aFr = true;
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.this.onFailed(pluginError.getCode(), pluginError);
}
@Override
public void c(c cVar) {
super.c((AnonymousClass1) cVar);
}
@Override
public void b(c cVar) {
String str4;
super.b((AnonymousClass1) cVar);
if (cVar.getState() == 1) {
com.kwad.sdk.core.e.b.d("AdLiveSoLoadHelper", "onPostUpdate UPD_SUCCESS");
return;
}
if (cVar.Ia() != null) {
Throwable Ia = cVar.Ia();
if (Ia instanceof PluginError) {
str4 = String.valueOf(((PluginError) Ia).getCode());
Log.e("AdLiveSoLoadHelper", "onPostUpdate error: " + str4, cVar.Ia());
}
}
str4 = AdnName.OTHER;
Log.e("AdLiveSoLoadHelper", "onPostUpdate error: " + str4, cVar.Ia());
}
private void rE() {
SoLoadListener.this.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);
}
});
}
}