CONECTA PRO v4.2.8版本的 MD5 值为:ad88cf9e66d8cdaae8c40233e50eb389
以下内容为反编译后的 a.java 源代码,内容仅作参考
package y1;
import android.net.Uri;
import android.os.Process;
import android.util.Log;
import java.io.IOException;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.HashMap;
import java.util.Map;
import q8.h;
public final class a extends Thread {
public final int f10573r = 1;
public final Object f10574s;
public a(HashMap hashMap) {
this.f10574s = hashMap;
}
@Override
public final void run() {
byte[] bArr;
String message;
StringBuilder sb2;
String str;
switch (this.f10573r) {
case 0:
Process.setThreadPriority(9);
super.run();
return;
case 1:
Map map = (Map) this.f10574s;
Uri.Builder buildUpon = Uri.parse("https://pagead2.googlesyndication.com/pagead/gen_204?id=gmob-apps").buildUpon();
for (String str2 : map.keySet()) {
buildUpon.appendQueryParameter(str2, (String) map.get(str2));
}
String uri = buildUpon.build().toString();
try {
HttpURLConnection httpURLConnection = (HttpURLConnection) new URL(uri).openConnection();
try {
int responseCode = httpURLConnection.getResponseCode();
if (responseCode < 200 || responseCode >= 300) {
StringBuilder sb3 = new StringBuilder(String.valueOf(uri).length() + 65);
sb3.append("Received non-success response code ");
sb3.append(responseCode);
sb3.append(" from pinging URL: ");
sb3.append(uri);
Log.w("HttpUrlPinger", sb3.toString());
}
httpURLConnection.disconnect();
return;
} catch (Throwable th) {
httpURLConnection.disconnect();
throw th;
}
} catch (IOException e10) {
e = e10;
message = e.getMessage();
sb2 = new StringBuilder(String.valueOf(message).length() + String.valueOf(uri).length() + 27);
str = "Error while pinging URL: ";
sb2.append(str);
sb2.append(uri);
sb2.append(". ");
sb2.append(message);
Log.w("HttpUrlPinger", sb2.toString(), e);
return;
} catch (IndexOutOfBoundsException e11) {
e = e11;
message = e.getMessage();
sb2 = new StringBuilder(String.valueOf(message).length() + String.valueOf(uri).length() + 32);
str = "Error while parsing ping URL: ";
sb2.append(str);
sb2.append(uri);
sb2.append(". ");
sb2.append(message);
Log.w("HttpUrlPinger", sb2.toString(), e);
return;
} catch (RuntimeException e12) {
e = e12;
message = e.getMessage();
sb2 = new StringBuilder(String.valueOf(message).length() + String.valueOf(uri).length() + 27);
str = "Error while pinging URL: ";
sb2.append(str);
sb2.append(uri);
sb2.append(". ");
sb2.append(message);
Log.w("HttpUrlPinger", sb2.toString(), e);
return;
}
}
while (true) {
synchronized (((h) this.f10574s).f8620a) {
if (((h) this.f10574s).f8620a.size() == 0) {
try {
((h) this.f10574s).f8620a.wait(2000L);
} catch (InterruptedException unused) {
}
if (((h) this.f10574s).f8620a.size() == 0) {
((h) this.f10574s).f8621b = null;
return;
}
}
bArr = (byte[]) ((h) this.f10574s).f8620a.remove(0);
}
try {
((h) this.f10574s).k(bArr);
} catch (IOException unused2) {
return;
}
}
}
public a(h hVar) {
this.f10574s = hVar;
}
public a(v1.a aVar, Runnable runnable) {
super(runnable);
this.f10574s = aVar;
}
}