Anti Spy v30.16.1.24版本的 MD5 值为:c71fa7f3f1aa08291411b9a5a8b2e65d
以下内容为反编译后的 b1.java 源代码,内容仅作参考
package u4;
import android.app.Application;
import android.os.Handler;
import android.util.JsonReader;
import android.util.JsonWriter;
import android.webkit.WebSettings;
import com.google.android.gms.internal.ads.gr;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.io.StringReader;
import java.net.HttpURLConnection;
import java.net.SocketTimeoutException;
import java.net.URL;
import java.util.List;
import java.util.Map;
import java.util.Scanner;
import java.util.concurrent.Executor;
public final class b1 {
public final Application f19327a;
public final Handler f19328b;
public final Executor f19329c;
public final g f19330d;
public final o f19331e;
public final x0 f19332f;
public final h.f f19333g;
public final u0 f19334h;
public b1(Application application, Handler handler, c0 c0Var, g gVar, o oVar, x0 x0Var, h.f fVar, u0 u0Var) {
this.f19327a = application;
this.f19328b = handler;
this.f19329c = c0Var;
this.f19330d = gVar;
this.f19331e = oVar;
this.f19332f = x0Var;
this.f19333g = fVar;
this.f19334h = u0Var;
}
public final a0 a(gr grVar) {
a0 a0Var;
try {
HttpURLConnection httpURLConnection = (HttpURLConnection) new URL("https://fundingchoicesmessages.google.com/a/consent").openConnection();
httpURLConnection.setRequestProperty("User-Agent", WebSettings.getDefaultUserAgent(this.f19327a));
httpURLConnection.setConnectTimeout(10000);
httpURLConnection.setReadTimeout(30000);
httpURLConnection.setDoOutput(true);
httpURLConnection.setRequestMethod("POST");
httpURLConnection.setRequestProperty("Content-Type", "application/json");
OutputStreamWriter outputStreamWriter = new OutputStreamWriter(httpURLConnection.getOutputStream(), "UTF-8");
try {
JsonWriter jsonWriter = new JsonWriter(outputStreamWriter);
jsonWriter.beginObject();
String str = (String) grVar.f5760a;
if (str != null) {
jsonWriter.name("admob_app_id");
jsonWriter.value(str);
}
String str2 = (String) grVar.f5761b;
if (str2 != null) {
jsonWriter.name("adid");
jsonWriter.value(str2);
}
g0.d dVar = (g0.d) grVar.f5762c;
if (dVar != null) {
jsonWriter.name("device_info");
jsonWriter.beginObject();
int i10 = dVar.f14275a;
if (i10 != 1) {
jsonWriter.name("os_type");
int i11 = i10 - 1;
if (i11 == 0) {
jsonWriter.value("UNKNOWN");
} else if (i11 == 1) {
jsonWriter.value("ANDROID");
}
}
String str3 = (String) dVar.f14276b;
if (str3 != null) {
jsonWriter.name("model");
jsonWriter.value(str3);
}
Integer num = (Integer) dVar.f14277c;
if (num != null) {
jsonWriter.name("android_api_level");
jsonWriter.value(num);
}
jsonWriter.endObject();
}
String str4 = (String) grVar.f5763d;
if (str4 != null) {
jsonWriter.name("language_code");
jsonWriter.value(str4);
}
Boolean bool = (Boolean) grVar.f5764n;
if (bool != null) {
jsonWriter.name("tag_for_under_age_of_consent");
jsonWriter.value(bool.booleanValue());
}
Map map = (Map) grVar.f5765o;
if (!map.isEmpty()) {
jsonWriter.name("stored_infos_map");
jsonWriter.beginObject();
for (Map.Entry entry : map.entrySet()) {
jsonWriter.name((String) entry.getKey());
jsonWriter.value((String) entry.getValue());
}
jsonWriter.endObject();
}
r2.h hVar = (r2.h) grVar.f5766p;
if (hVar != null) {
jsonWriter.name("screen_info");
jsonWriter.beginObject();
Integer num2 = (Integer) hVar.f18338a;
if (num2 != null) {
jsonWriter.name("width");
jsonWriter.value(num2);
}
Integer num3 = (Integer) hVar.f18339b;
if (num3 != null) {
jsonWriter.name("height");
jsonWriter.value(num3);
}
Double d10 = (Double) hVar.f18340c;
if (d10 != null) {
jsonWriter.name("density");
jsonWriter.value(d10);
}
List<y> list = (List) hVar.f18341d;
if (!list.isEmpty()) {
jsonWriter.name("screen_insets");
jsonWriter.beginArray();
for (y yVar : list) {
jsonWriter.beginObject();
Integer num4 = yVar.f19472a;
if (num4 != null) {
jsonWriter.name("top");
jsonWriter.value(num4);
}
Integer num5 = yVar.f19473b;
if (num5 != null) {
jsonWriter.name("left");
jsonWriter.value(num5);
}
Integer num6 = yVar.f19474c;
if (num6 != null) {
jsonWriter.name("right");
jsonWriter.value(num6);
}
Integer num7 = yVar.f19475d;
if (num7 != null) {
jsonWriter.name("bottom");
jsonWriter.value(num7);
}
jsonWriter.endObject();
}
jsonWriter.endArray();
}
jsonWriter.endObject();
}
w wVar = (w) grVar.f5767q;
if (wVar != null) {
jsonWriter.name("app_info");
jsonWriter.beginObject();
String str5 = wVar.f19454a;
if (str5 != null) {
jsonWriter.name("package_name");
jsonWriter.value(str5);
}
String str6 = wVar.f19455b;
if (str6 != null) {
jsonWriter.name("publisher_display_name");
jsonWriter.value(str6);
}
String str7 = wVar.f19456c;
if (str7 != null) {
jsonWriter.name("version");
jsonWriter.value(str7);
}
jsonWriter.endObject();
}
a4.d dVar2 = (a4.d) grVar.f5768r;
if (dVar2 != null) {
jsonWriter.name("sdk_info");
jsonWriter.beginObject();
String str8 = dVar2.f260a;
if (str8 != null) {
jsonWriter.name("version");
jsonWriter.value(str8);
}
jsonWriter.endObject();
}
List<x> list2 = (List) grVar.f5769s;
if (!list2.isEmpty()) {
jsonWriter.name("debug_params");
jsonWriter.beginArray();
for (x xVar : list2) {
int ordinal = xVar.ordinal();
if (ordinal == 0) {
jsonWriter.value("DEBUG_PARAM_UNKNOWN");
} else if (ordinal == 1) {
jsonWriter.value("ALWAYS_SHOW");
} else if (ordinal == r2) {
jsonWriter.value("GEO_OVERRIDE_EEA");
} else if (ordinal == 3) {
jsonWriter.value("GEO_OVERRIDE_NON_EEA");
} else if (ordinal == 4) {
jsonWriter.value("PREVIEWING_DEBUG_MESSAGES");
}
}
jsonWriter.endArray();
}
jsonWriter.endObject();
jsonWriter.close();
outputStreamWriter.close();
int responseCode = httpURLConnection.getResponseCode();
if (responseCode != 200) {
throw new IOException("Http error code - " + responseCode + ".\n" + new Scanner(httpURLConnection.getErrorStream()).useDelimiter("\\A").next());
}
String headerField = httpURLConnection.getHeaderField("x-ump-using-header");
if (headerField != null) {
a0Var = a0.d(new JsonReader(new StringReader(headerField)));
a0Var.f19310a = new Scanner(httpURLConnection.getInputStream()).useDelimiter("\\A").next();
} else {
BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(httpURLConnection.getInputStream(), "UTF-8"));
try {
bufferedReader.readLine();
JsonReader jsonReader = new JsonReader(bufferedReader);
a0 d11 = a0.d(jsonReader);
jsonReader.close();
bufferedReader.close();
a0Var = d11;
} catch (Throwable th) {
try {
bufferedReader.close();
} catch (Throwable th2) {
Throwable.class.getDeclaredMethod("addSuppressed", Throwable.class).invoke(th, th2);
}
throw th;
}
}
return a0Var;
} finally {
try {
outputStreamWriter.close();
} catch (Throwable th3) {
Throwable.class.getDeclaredMethod("addSuppressed", Throwable.class).invoke(th, th3);
}
}
} catch (SocketTimeoutException e10) {
throw new v0("The server timed out.", e10, 4);
} catch (IOException e11) {
throw new v0("Error making request.", e11, r2);
}
}
}