AI Chat v1.1.8版本的 MD5 值为:1bcdce875f86738c8cfbf1e5f4064353
以下内容为反编译后的 h.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.ah;
import com.mbridge.msdk.foundation.tools.v;
import com.mbridge.msdk.videocommon.download.f;
import java.io.File;
public final class h {
private String a;
public static class a {
public static h a = new h();
}
public final void b() {
try {
if (TextUtils.isEmpty(this.a)) {
return;
}
f.a.a.a(new com.mbridge.msdk.foundation.same.e.a() {
@Override
public final void a() {
v.c(h.this.a);
}
@Override
public final void b() {
}
});
} catch (Exception e) {
if (MBridgeConstans.DEBUG) {
e.printStackTrace();
}
}
}
private h() {
this.a = com.mbridge.msdk.foundation.same.b.e.b(com.mbridge.msdk.foundation.same.b.c.MBRIDGE_700_HTML);
}
public static h a() {
return a.a;
}
public final boolean a(String str, byte[] bArr) {
if (bArr != null) {
try {
if (bArr.length > 0) {
StringBuilder sb = new StringBuilder();
sb.append(this.a);
sb.append("/");
sb.append(SameMD5.getMD5(ah.a(str)));
sb.append(".html");
return v.a(bArr, new File(sb.toString()));
}
return false;
} catch (Exception e) {
if (MBridgeConstans.DEBUG) {
e.printStackTrace();
return false;
}
return false;
}
}
return false;
}
public final String b(String str) {
try {
String md5 = SameMD5.getMD5(ah.a(str));
File file = new File(this.a + "/" + md5 + ".html");
if (file.exists()) {
return v.a(file);
}
return null;
} catch (Throwable th) {
if (MBridgeConstans.DEBUG) {
th.printStackTrace();
return null;
}
return null;
}
}
public final String a(String str) {
try {
String str2 = this.a + "/" + SameMD5.getMD5(ah.a(str)) + ".html";
File file = new File(str2);
if (file.exists()) {
com.mbridge.msdk.c.a b = com.mbridge.msdk.c.b.a().b(com.mbridge.msdk.foundation.controller.a.d().g());
if (b != null && !TextUtils.isEmpty(b.as())) {
v.a(com.mbridge.msdk.a.b.a(kd7.a(MBridgeConstans.OMID_JS_SERVICE_CONTENT, v.a(file))).getBytes(), file);
}
return "file:////" + str2;
}
return null;
} catch (Throwable th) {
if (MBridgeConstans.DEBUG) {
th.printStackTrace();
return null;
}
return null;
}
}
}