Anybuypro - Free followers v1.0.0版本的 MD5 值为:ac97504c3229ff11289cc66f3291d928
以下内容为反编译后的 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 org.json.JSONException;
import org.json.JSONObject;
import r0.h0;
public class b {
private static final String f3638b = "co.median.android.b";
private Context f3639a;
public static class a extends AsyncTask<Void, Void, Void> {
WeakReference<Context> f3640a;
a(Context context) {
this.f3640a = new WeakReference<>(context);
}
@Override
public Void doInBackground(Void... voidArr) {
Context context = this.f3640a.get();
if (context == null) {
return null;
}
JSONObject jSONObject = new JSONObject(h0.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 e3) {
t0.g.a().c(b.f3638b, e3.getMessage(), e3);
}
return null;
} catch (JSONException e4) {
t0.g.a().c(b.f3638b, e4.getMessage(), e4);
return null;
}
}
}
public b(Context context) {
this.f3639a = context;
}
public void b() {
if (t0.a.M(this.f3639a).f6833p) {
return;
}
new a(this.f3639a).execute(new Void[0]);
}
}