正在查看: 自健身 v3.3.4 应用的 f.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: 自健身 v3.3.4 应用的 f.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.pgyersdk.crash;
import android.os.AsyncTask;
import com.pgyersdk.PgyerProvider;
import com.pgyersdk.f.l;
import com.pgyersdk.f.m;
import com.tencent.connect.common.Constants;
import java.io.File;
import java.io.IOException;
import java.net.HttpURLConnection;
import java.util.Map;
public class f extends AsyncTask<Void, Void, Object> {
HttpURLConnection a;
StringBuffer b;
boolean c;
public f() {
this.c = false;
}
private Boolean b(StringBuffer stringBuffer, boolean z) throws IOException {
Map<String, String> b = com.pgyersdk.a.a.b();
b.put("crashLog", stringBuffer.toString());
b.put("isException", z ? "2" : "1");
HttpURLConnection a = new com.pgyersdk.f.d("http://www.pgyer.com/apiv1/crash/add").a(Constants.HTTP_POST).a(b, PgyerProvider.a, null, null).a();
this.a = a;
int responseCode = a.getResponseCode();
return Boolean.valueOf(responseCode == 202 || responseCode == 200);
}
@Override
public Object doInBackground(Void... voidArr) {
StringBuffer stringBuffer;
if (!this.c || (stringBuffer = this.b) == null) {
a();
return null;
}
a(stringBuffer, true);
a();
return null;
}
public f(StringBuffer stringBuffer, boolean z) {
this.c = false;
this.b = stringBuffer;
this.c = z;
}
private void a() {
File[] listFiles;
if (l.e() && m.b()) {
File file = new File(com.pgyersdk.f.c.a().b(PgyerProvider.a));
if (file.exists() && file.isDirectory() && (listFiles = file.listFiles()) != null) {
for (int i = 0; i < listFiles.length; i++) {
StringBuffer stringBuffer = new StringBuffer();
try {
m.a(stringBuffer, listFiles[i].getPath());
if (listFiles[i].getName().contains("crash")) {
a(stringBuffer, listFiles[i], false);
} else {
a(stringBuffer, listFiles[i], true);
}
} catch (IOException e) {
e.printStackTrace();
}
}
}
}
}
private void b() {
HttpURLConnection httpURLConnection = this.a;
if (httpURLConnection != null) {
httpURLConnection.disconnect();
}
}
public void a(java.lang.StringBuffer r6, java.io.File r7, boolean r8) {
throw new UnsupportedOperationException("Method not decompiled: com.pgyersdk.crash.f.a(java.lang.StringBuffer, java.io.File, boolean):void");
}
public void a(java.lang.StringBuffer r6, boolean r7) {
throw new UnsupportedOperationException("Method not decompiled: com.pgyersdk.crash.f.a(java.lang.StringBuffer, boolean):void");
}
}