ああ v4.7.3版本的 MD5 值为:852b7e5365c359961c773f5886414359
以下内容为反编译后的 t.java 源代码,内容仅作参考
package le;
import android.annotation.TargetApi;
import android.content.Context;
import android.text.TextUtils;
import java.io.BufferedInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.PrintWriter;
import java.io.StringWriter;
import java.util.Properties;
public final class t {
public static t f12396g;
public final Context f12397a;
public File f12398b = null;
public String f12399c;
public String f12400d;
public String f12401e;
public String f12402f;
@TargetApi(11)
public t(Context context) {
?? r02 = 0;
r02 = 0;
this.f12397a = null;
this.f12399c = "https://log.tbs.qq.com/ajax?c=pu&v=2&k=";
this.f12400d = "https://log.tbs.qq.com/ajax?c=pu&tk=";
this.f12401e = "https://log.tbs.qq.com/ajax?c=dl&k=";
this.f12402f = "https://tbsrecovery.imtt.qq.com/getconfig";
e.h("TbsCommonConfig", "TbsCommonConfig constructing...");
this.f12397a = context.getApplicationContext();
synchronized (this) {
try {
File c10 = c();
if (c10 == null) {
e.a("TbsCommonConfig", "Config file is null, default values will be applied");
} else {
BufferedInputStream bufferedInputStream = new BufferedInputStream(new FileInputStream(c10));
try {
Properties properties = new Properties();
properties.load(bufferedInputStream);
String property = properties.getProperty("pv_post_url", "");
if (!"".equals(property)) {
this.f12399c = property;
}
String property2 = properties.getProperty("tbs_download_stat_post_url", "");
if (!"".equals(property2)) {
this.f12401e = property2;
}
String property3 = properties.getProperty("tbs_downloader_post_url", "");
e.c("TbsCommonConfig", "KEY_TBS_DOWNLOADER_POST_URL is " + property3);
"".equals(property3);
String property4 = properties.getProperty("tbs_downloader_response_query", "");
e.c("TbsCommonConfig", "KEY_TBS_DOWNLOADER_RESPONSE_QUERY is " + property4);
"".equals(property4);
String property5 = properties.getProperty("tbs_downloader_response_update", "");
e.c("TbsCommonConfig", "KEY_TBS_DOWNLOADER_RESPONSE_UPDATE is " + property5);
"".equals(property5);
String property6 = properties.getProperty("tbs_downloader_response_download", "");
e.c("TbsCommonConfig", "KEY_TBS_DOWNLOADER_RESPONSE_DOWNLOAD is " + property6);
"".equals(property6);
"".equals(properties.getProperty("tbs_log_post_url", ""));
"".equals(properties.getProperty("tips_url", ""));
"".equals(properties.getProperty("tbs_cmd_post_url", ""));
String property7 = properties.getProperty("tbs_emergency_post_url", "");
if (!"".equals(property7)) {
this.f12402f = property7;
}
String property8 = properties.getProperty("pv_post_url_tk", "");
r02 = "".equals(property8);
if (r02 == 0) {
this.f12400d = property8;
}
try {
bufferedInputStream.close();
r02 = r02;
} catch (IOException e10) {
e10.printStackTrace();
r02 = r02;
}
} catch (Throwable th2) {
th = th2;
r02 = bufferedInputStream;
StringWriter stringWriter = new StringWriter();
th.printStackTrace(new PrintWriter(stringWriter));
e.a("TbsCommonConfig", "exceptions occurred1:" + stringWriter.toString());
if (r02 != 0) {
r02.close();
}
}
}
} catch (Throwable th3) {
th = th3;
}
}
}
public static synchronized t a() {
t tVar;
synchronized (t.class) {
tVar = f12396g;
}
return tVar;
}
public static synchronized t b(Context context) {
t tVar;
synchronized (t.class) {
if (f12396g == null) {
f12396g = new t(context);
}
tVar = f12396g;
}
return tVar;
}
public final File c() {
File file;
File file2;
Context context = this.f12397a;
File file3 = null;
try {
if (this.f12398b == null) {
if (!TextUtils.isEmpty(context.getApplicationContext().getApplicationInfo().packageName)) {
File file4 = new File(b.b(8, context));
this.f12398b = file4;
if (!file4.isDirectory()) {
file = new File(b.b(5, context));
}
file2 = this.f12398b;
if (file2 != null || !file2.isDirectory()) {
return null;
}
} else {
file = new File(b.b(8, context));
}
this.f12398b = file;
file2 = this.f12398b;
if (file2 != null) {
}
return null;
}
e.c("TbsCommonConfig", "mTbsConfigDir is " + this.f12398b.getAbsolutePath());
File file5 = new File(this.f12398b, "tbsnet.conf");
if (!file5.exists()) {
e.a("TbsCommonConfig", "Get file(" + file5.getCanonicalPath() + ") failed!");
return null;
}
try {
e.h("TbsCommonConfig", "pathc:" + file5.getCanonicalPath());
return file5;
} catch (Throwable th2) {
file3 = file5;
th = th2;
StringWriter stringWriter = new StringWriter();
th.printStackTrace(new PrintWriter(stringWriter));
e.a("TbsCommonConfig", "exceptions occurred2:" + stringWriter.toString());
return file3;
}
} catch (Throwable th3) {
th = th3;
}
}
}