正在查看: 多多分期 v4.1.2 应用的 w.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: 多多分期 v4.1.2 应用的 w.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package d.s.b.c;
import android.annotation.TargetApi;
import android.content.Context;
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 class w {
public static w f9334h;
public Context f9335a;
public File f9336b = null;
public String f9337c = "http://log.tbs.qq.com/ajax?c=pu&v=2&k=";
public String f9338d = "http://log.tbs.qq.com/ajax?c=pu&tk=";
public String f9339e = "http://log.tbs.qq.com/ajax?c=dl&k=";
public String f9340f = "http://cfg.imtt.qq.com/tbs?v=2&mk=";
public String f9341g = "http://log.tbs.qq.com/ajax?c=ul&v=2&k=";
@TargetApi(11)
public w(Context context) {
this.f9335a = null;
c.l("TbsCommonConfig", "TbsCommonConfig constructing...");
this.f9335a = context.getApplicationContext();
h();
}
public static synchronized w a() {
w wVar;
synchronized (w.class) {
wVar = f9334h;
}
return wVar;
}
public static synchronized w b(Context context) {
w wVar;
synchronized (w.class) {
if (f9334h == null) {
f9334h = new w(context);
}
wVar = f9334h;
}
return wVar;
}
public String c() {
return this.f9337c;
}
public String d() {
return this.f9339e;
}
public String e() {
return this.f9340f;
}
public String f() {
return this.f9341g;
}
public String g() {
return this.f9338d;
}
public final synchronized void h() {
File i2;
BufferedInputStream bufferedInputStream = null;
try {
i2 = i();
} catch (Throwable th) {
th = th;
}
if (i2 == null) {
c.d("TbsCommonConfig", "Config file is null, default values will be applied");
return;
}
BufferedInputStream bufferedInputStream2 = new BufferedInputStream(new FileInputStream(i2));
try {
Properties properties = new Properties();
properties.load(bufferedInputStream2);
String property = properties.getProperty("pv_post_url", "");
if (!"".equals(property)) {
this.f9337c = property;
}
"".equals(properties.getProperty("wup_proxy_domain", ""));
String property2 = properties.getProperty("tbs_download_stat_post_url", "");
if (!"".equals(property2)) {
this.f9339e = property2;
}
String property3 = properties.getProperty("tbs_downloader_post_url", "");
if (!"".equals(property3)) {
this.f9340f = property3;
}
String property4 = properties.getProperty("tbs_log_post_url", "");
if (!"".equals(property4)) {
this.f9341g = property4;
}
"".equals(properties.getProperty("tips_url", ""));
"".equals(properties.getProperty("tbs_cmd_post_url", ""));
String property5 = properties.getProperty("pv_post_url_tk", "");
if (!"".equals(property5)) {
this.f9338d = property5;
}
} catch (Throwable th2) {
th = th2;
bufferedInputStream = bufferedInputStream2;
try {
StringWriter stringWriter = new StringWriter();
th.printStackTrace(new PrintWriter(stringWriter));
c.d("TbsCommonConfig", "exceptions occurred1:" + stringWriter.toString());
if (bufferedInputStream != null) {
try {
bufferedInputStream.close();
} catch (IOException e2) {
e = e2;
e.printStackTrace();
}
}
} finally {
}
}
try {
bufferedInputStream2.close();
} catch (IOException e3) {
e = e3;
e.printStackTrace();
}
}
public final File i() {
File file = null;
try {
if (this.f9336b == null) {
File file2 = new File(n.b(this.f9335a, 5));
this.f9336b = file2;
if (file2 == null || !file2.isDirectory()) {
return null;
}
}
File file3 = new File(this.f9336b, "tbsnet.conf");
if (!file3.exists()) {
c.d("TbsCommonConfig", "Get file(" + file3.getCanonicalPath() + ") failed!");
return null;
}
try {
c.l("TbsCommonConfig", "pathc:" + file3.getCanonicalPath());
return file3;
} catch (Throwable th) {
th = th;
file = file3;
StringWriter stringWriter = new StringWriter();
th.printStackTrace(new PrintWriter(stringWriter));
c.d("TbsCommonConfig", "exceptions occurred2:" + stringWriter.toString());
return file;
}
} catch (Throwable th2) {
th = th2;
}
}
}