QQ浏览器 v12.2.3.7053版本的 MD5 值为:8285ab3059e5c8b521a264dfbc5c3685
以下内容为反编译后的 c.java 源代码,内容仅作参考
package com.tencent.qimei.u;
import android.content.Context;
import android.text.TextUtils;
import com.tencent.qimei.k.f;
import java.io.File;
import java.util.concurrent.atomic.AtomicInteger;
public class c {
public AtomicInteger f77227a = new AtomicInteger();
public Context f77228b;
public String f77229c;
public String f77230d;
public b e;
abstract class a implements com.tencent.qimei.e.d {
public final String f77231a;
public final String f77232b;
public a(String str, String str2) {
this.f77231a = str;
this.f77232b = str2;
}
public abstract String a(String str);
@Override
public void a(String str, int i, String str2) {
c.this.a(this.f77232b, null);
com.tencent.qimei.m.a.a("HidTask", "pull content from server,code = %d", Integer.valueOf(i));
}
@Override
public void a(String str, String... strArr) {
String str2 = strArr.length > 0 ? strArr[0] : "";
f.b(c.this.f77229c).b(this.f77231a, str2);
c.this.a(this.f77232b, a(str));
com.tencent.qimei.m.a.b("HidTask", "pull content from server,code:%d lastModifiedTime:%s", 200, str2);
}
}
public interface b {
void a();
}
public c(Context context, String str, b bVar) {
this.f77228b = context;
this.f77229c = str;
this.e = bVar;
this.f77230d = this.f77228b.getFilesDir().getAbsolutePath() + "/jsfile/";
}
public final void a(String str, String str2) {
if (this.f77227a.incrementAndGet() == 2) {
this.e.a();
}
f.b(this.f77229c).a("lc_fe_tm", System.currentTimeMillis());
if (TextUtils.isEmpty(str2)) {
return;
}
f.b(this.f77229c).b(str, com.tencent.qimei.l.a.a(str2));
}
public void a(boolean z) {
String d2 = f.b(this.f77229c).d("hm_md_tm");
if (z) {
d2 = "";
}
com.tencent.qimei.e.c.c("https://tun-cos-1258344701.file.myqcloud.com/my.html", d2, new com.tencent.qimei.u.a(this, "hm_md_tm", "lc_fe_st_hm"));
}
public boolean a() {
return a("tun-cos-1258344701.html") && a("tun-cos-1258344701.js");
}
public final boolean a(String str) {
return new File(this.f77230d + str).exists();
}
public void b(boolean z) {
String d2 = f.b(this.f77229c).d("js_md_tm");
if (z) {
d2 = "";
}
com.tencent.qimei.e.c.c("https://tun-cos-1258344701.file.myqcloud.com/fp.js", d2, new com.tencent.qimei.u.b(this, "js_md_tm", "lc_fe_st_js"));
}
public boolean b() {
return b("tun-cos-1258344701.html", "lc_fe_st_hm") && b("tun-cos-1258344701.js", "lc_fe_st_js");
}
public final boolean b(String str, String str2) {
return com.tencent.qimei.l.a.a(com.tencent.qimei.l.c.a(this.f77230d, str)).equals(f.b(this.f77229c).d(str2));
}
}