그늘 v4.6.9版本的 MD5 值为:45bd3dac9e441bb87fea09c92b437adc
以下内容为反编译后的 t.java 源代码,内容仅作参考
package ke;
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 f9489g;
public final Context f9490a;
public File f9491b = null;
public String f9492c;
public String f9493d;
public String f9494e;
public String f9495f;
@TargetApi(11)
public t(Context context) {
?? r02 = 0;
r02 = 0;
this.f9490a = null;
this.f9492c = "https://log.tbs.qq.com/ajax?c=pu&v=2&k=";
this.f9493d = "https://log.tbs.qq.com/ajax?c=pu&tk=";
this.f9494e = "https://log.tbs.qq.com/ajax?c=dl&k=";
this.f9495f = "https://tbsrecovery.imtt.qq.com/getconfig";
e.h("TbsCommonConfig", "TbsCommonConfig constructing...");
this.f9490a = context.getApplicationContext();
synchronized (this) {
try {
File c4 = c();
if (c4 == null) {
e.a("TbsCommonConfig", "Config file is null, default values will be applied");
} else {
BufferedInputStream bufferedInputStream = new BufferedInputStream(new FileInputStream(c4));
try {
Properties properties = new Properties();
properties.load(bufferedInputStream);
String property = properties.getProperty("pv_post_url", "");
if (!"".equals(property)) {
this.f9492c = property;
}
String property2 = properties.getProperty("tbs_download_stat_post_url", "");
if (!"".equals(property2)) {
this.f9494e = 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.f9495f = property7;
}
String property8 = properties.getProperty("pv_post_url_tk", "");
r02 = "".equals(property8);
if (r02 == 0) {
this.f9493d = 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 = f9489g;
}
return tVar;
}
public static synchronized t b(Context context) {
t tVar;
synchronized (t.class) {
if (f9489g == null) {
f9489g = new t(context);
}
tVar = f9489g;
}
return tVar;
}
public final File c() {
File file;
File file2;
Context context = this.f9490a;
File file3 = null;
try {
if (this.f9491b == null) {
if (!TextUtils.isEmpty(context.getApplicationContext().getApplicationInfo().packageName)) {
File file4 = new File(b.b(8, context));
this.f9491b = file4;
if (!file4.isDirectory()) {
file = new File(b.b(5, context));
}
file2 = this.f9491b;
if (file2 != null || !file2.isDirectory()) {
return null;
}
} else {
file = new File(b.b(8, context));
}
this.f9491b = file;
file2 = this.f9491b;
if (file2 != null) {
}
return null;
}
e.c("TbsCommonConfig", "mTbsConfigDir is " + this.f9491b.getAbsolutePath());
File file5 = new File(this.f9491b, "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;
}
}
}