Souza NET DTunnel v4.2.6版本的 MD5 值为:9c33be9da88136132d2ea8a79815d093

以下内容为反编译后的 a.java 源代码,内容仅作参考


package z1;

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 x8.h;
public final class a extends Thread {
    public final int f11612s = 1;
    public final Object f11613t;

    public a(HashMap hashMap) {
        this.f11613t = hashMap;
    }

    @Override
    public final void run() {
        byte[] bArr;
        String message;
        StringBuilder sb2;
        String str;
        switch (this.f11612s) {
            case 0:
                Process.setThreadPriority(9);
                super.run();
                return;
            case 1:
                Map map = (Map) this.f11613t;
                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.f11613t).f11104a) {
                if (((h) this.f11613t).f11104a.size() == 0) {
                    try {
                        ((h) this.f11613t).f11104a.wait(2000L);
                    } catch (InterruptedException unused) {
                    }
                    if (((h) this.f11613t).f11104a.size() == 0) {
                        ((h) this.f11613t).f11105b = null;
                        return;
                    }
                }
                bArr = (byte[]) ((h) this.f11613t).f11104a.remove(0);
            }
            try {
                ((h) this.f11613t).k(bArr);
            } catch (IOException unused2) {
                return;
            }
        }
    }

    public a(w1.a aVar, Runnable runnable) {
        super(runnable);
        this.f11613t = aVar;
    }

    public a(h hVar) {
        this.f11613t = hVar;
    }
}