- 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
85 lines
2.4 KiB
Java
85 lines
2.4 KiB
Java
package com.mbridge.msdk.videocommon.download;
|
|
|
|
import android.text.TextUtils;
|
|
import com.mbridge.msdk.MBridgeConstans;
|
|
import com.mbridge.msdk.foundation.tools.SameMD5;
|
|
import com.mbridge.msdk.foundation.tools.ad;
|
|
import com.mbridge.msdk.foundation.tools.aq;
|
|
import java.io.File;
|
|
|
|
/* loaded from: classes4.dex */
|
|
public final class e {
|
|
private String a;
|
|
|
|
public static class a {
|
|
public static e a = new e(null);
|
|
}
|
|
|
|
public /* synthetic */ e(AnonymousClass1 anonymousClass1) {
|
|
this();
|
|
}
|
|
|
|
private e() {
|
|
this.a = com.mbridge.msdk.foundation.same.b.e.a(com.mbridge.msdk.foundation.same.b.c.MBRIDGE_700_HTML);
|
|
}
|
|
|
|
public static e a() {
|
|
return a.a;
|
|
}
|
|
|
|
/* renamed from: com.mbridge.msdk.videocommon.download.e$1, reason: invalid class name */
|
|
public class AnonymousClass1 extends com.mbridge.msdk.foundation.same.e.a {
|
|
final /* synthetic */ e 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.a);
|
|
}
|
|
}
|
|
|
|
public final String a(String str) {
|
|
try {
|
|
String str2 = this.a + "/" + SameMD5.getMD5(aq.b(str)) + ".html";
|
|
File file = new File(str2);
|
|
if (!file.exists()) {
|
|
return null;
|
|
}
|
|
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, file);
|
|
}
|
|
return "file:////" + str2;
|
|
} catch (Throwable th) {
|
|
if (!MBridgeConstans.DEBUG) {
|
|
return null;
|
|
}
|
|
th.printStackTrace();
|
|
return null;
|
|
}
|
|
}
|
|
|
|
public final String b(String str) {
|
|
try {
|
|
File file = new File(this.a + "/" + SameMD5.getMD5(aq.b(str)) + ".html");
|
|
if (file.exists()) {
|
|
return ad.b(file);
|
|
}
|
|
return null;
|
|
} catch (Throwable th) {
|
|
if (!MBridgeConstans.DEBUG) {
|
|
return null;
|
|
}
|
|
th.printStackTrace();
|
|
return null;
|
|
}
|
|
}
|
|
}
|