- Added realracing3-community.apk (71.57 MB) - Removed 32-bit support (armeabi-v7a) - Only includes arm64-v8a libraries - Decompiled source code included - Added README-community.md with analysis
92 lines
2.9 KiB
Java
92 lines
2.9 KiB
Java
package com.mbridge.msdk.videocommon.download;
|
|
|
|
import android.net.Uri;
|
|
import android.text.TextUtils;
|
|
import com.mbridge.msdk.MBridgeConstans;
|
|
import com.mbridge.msdk.foundation.download.download.ResourceManager;
|
|
import com.mbridge.msdk.foundation.tools.SameMD5;
|
|
import com.mbridge.msdk.foundation.tools.ad;
|
|
import com.mbridge.msdk.foundation.tools.aq;
|
|
import com.vungle.ads.internal.model.AdPayload;
|
|
import java.io.File;
|
|
import java.util.List;
|
|
|
|
/* loaded from: classes4.dex */
|
|
public final class g {
|
|
private static String a = "ResourceManager";
|
|
private String b;
|
|
|
|
public static class a {
|
|
public static g a = new g(null);
|
|
}
|
|
|
|
public /* synthetic */ g(AnonymousClass1 anonymousClass1) {
|
|
this();
|
|
}
|
|
|
|
private g() {
|
|
this.b = com.mbridge.msdk.foundation.same.b.e.a(com.mbridge.msdk.foundation.same.b.c.MBRIDGE_700_RES);
|
|
}
|
|
|
|
public static g a() {
|
|
return a.a;
|
|
}
|
|
|
|
/* renamed from: com.mbridge.msdk.videocommon.download.g$1, reason: invalid class name */
|
|
public class AnonymousClass1 extends com.mbridge.msdk.foundation.same.e.a {
|
|
final /* synthetic */ g a;
|
|
|
|
@Override // com.mbridge.msdk.foundation.same.e.a
|
|
public final void cancelTask() {
|
|
}
|
|
|
|
@Override // com.mbridge.msdk.foundation.same.e.a
|
|
public final void pauseTask(boolean z) {
|
|
}
|
|
|
|
@Override // com.mbridge.msdk.foundation.same.e.a
|
|
public final void runTask() {
|
|
ad.a(this.a.b);
|
|
}
|
|
}
|
|
|
|
public final String a(String str) {
|
|
String str2;
|
|
String str3 = "";
|
|
try {
|
|
String str4 = this.b + "/" + SameMD5.getMD5(aq.b(str));
|
|
List<String> queryParameters = Uri.parse(str).getQueryParameters(ResourceManager.KEY_INDEX_HTML);
|
|
if (queryParameters == null || queryParameters.size() <= 0) {
|
|
return null;
|
|
}
|
|
String str5 = queryParameters.get(0);
|
|
if (TextUtils.isEmpty(str5)) {
|
|
return null;
|
|
}
|
|
String str6 = str4 + "/" + str5 + "/" + str5 + ".html";
|
|
if (!ad.d(str6)) {
|
|
return null;
|
|
}
|
|
try {
|
|
com.mbridge.msdk.c.g b = com.mbridge.msdk.c.h.a().b(com.mbridge.msdk.foundation.controller.c.m().k());
|
|
if (b != null && !TextUtils.isEmpty(b.W())) {
|
|
com.mbridge.msdk.foundation.same.d.a(str, new File(str6));
|
|
}
|
|
str2 = str.substring(str.indexOf("?") + 1);
|
|
} catch (Exception unused) {
|
|
str2 = "";
|
|
}
|
|
if (!TextUtils.isEmpty(str2)) {
|
|
str3 = "?" + str2;
|
|
}
|
|
return AdPayload.FILE_SCHEME + str6 + str3;
|
|
} catch (Exception e) {
|
|
if (!MBridgeConstans.DEBUG) {
|
|
return null;
|
|
}
|
|
e.printStackTrace();
|
|
return null;
|
|
}
|
|
}
|
|
}
|