MD5 校验值:51aae3247d6bd20bca268c4c9a4dd21c
b.java 文件包含反编译后的源代码,请注意,该内容仅供学习和参考使用,不得用于非法用途。
package co.median.android; import android.content.Context; import android.os.AsyncTask; import java.io.OutputStreamWriter; import java.lang.ref.WeakReference; import java.net.HttpURLConnection; import java.net.URL; import n1.AbstractC0872I; import org.json.JSONException; import org.json.JSONObject; public class b { private static final String f9954b = "co.median.android.b"; private Context f9955a; private static class a extends AsyncTask { WeakReference f9956a; a(Context context) { this.f9956a = new WeakReference(context); } @Override public Void doInBackground(Void... voidArr) { Context context = (Context) this.f9956a.get(); if (context == null) { return null; } JSONObject jSONObject = new JSONObject(AbstractC0872I.b(context)); try { jSONObject.put("event", "launch"); try { HttpURLConnection httpURLConnection = (HttpURLConnection) new URL("https://events.gonative.io/api/events/new").openConnection(); httpURLConnection.setRequestMethod("POST"); httpURLConnection.setRequestProperty("Content-Type", "application/json"); httpURLConnection.setDoOutput(true); httpURLConnection.setDoInput(false); OutputStreamWriter outputStreamWriter = new OutputStreamWriter(httpURLConnection.getOutputStream(), "UTF-8"); outputStreamWriter.write(jSONObject.toString()); outputStreamWriter.close(); httpURLConnection.connect(); httpURLConnection.getResponseCode(); httpURLConnection.disconnect(); } catch (Exception e5) { B1.g.a().c(b.f9954b, e5.getMessage(), e5); } return null; } catch (JSONException e6) { B1.g.a().c(b.f9954b, e6.getMessage(), e6); return null; } } } public b(Context context) { this.f9955a = context; } public void b() { if (B1.a.V(this.f9955a).f968p) { return; } new a(this.f9955a).execute(new Void[0]); } }