正在查看: Atlys v4.8.7 应用的 D.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Atlys v4.8.7 应用的 D.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package xk;
import android.content.Context;
import android.net.TrafficStats;
import android.text.TextUtils;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.URL;
import javax.net.ssl.HttpsURLConnection;
import org.json.JSONObject;
public final class D extends g {
public final E.j a;
public D(Context context) {
this.a = E.j.U(context);
}
@Override
public final Object doInBackground(Object[] objArr) {
TrafficStats.setThreadStatsTag(0);
JSONObject jSONObject = new JSONObject();
HttpsURLConnection httpsURLConnection = null;
try {
HttpsURLConnection httpsURLConnection2 = (HttpsURLConnection) new URL("%sdk/uriskiplist_v#.json".replace("%", !TextUtils.isEmpty(null) ? null : "https://cdn.branch.io/").replace("#", Integer.toString(u.e.optInt("version") + 1))).openConnection();
try {
httpsURLConnection2.setConnectTimeout(1500);
httpsURLConnection2.setReadTimeout(1500);
if (httpsURLConnection2.getResponseCode() == 200 && httpsURLConnection2.getInputStream() != null) {
jSONObject = new JSONObject(new BufferedReader(new InputStreamReader(httpsURLConnection2.getInputStream())).readLine());
}
httpsURLConnection2.disconnect();
} catch (Exception unused) {
httpsURLConnection = httpsURLConnection2;
if (httpsURLConnection != null) {
httpsURLConnection.disconnect();
}
return jSONObject;
} catch (Throwable th2) {
th = th2;
httpsURLConnection = httpsURLConnection2;
if (httpsURLConnection != null) {
httpsURLConnection.disconnect();
}
throw th;
}
} catch (Exception unused2) {
} catch (Throwable th3) {
th = th3;
}
return jSONObject;
}
@Override
public final void onPostExecute(Object obj) {
JSONObject jSONObject = (JSONObject) obj;
super.onPostExecute(jSONObject);
if (jSONObject.optInt("version") > u.e.optInt("version")) {
u.e = jSONObject;
this.a.G0("skip_url_format_key", jSONObject.toString());
}
}
}