MT Manager v2.15.3版本的 MD5 值为:1cbd6ee7afdac97645dd3a8c4751ecf0

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


package l;

import android.app.Service;
import android.net.Uri;
import com.alipay.sdk.m.l.a;
import java.io.IOException;
import java.lang.ref.WeakReference;
import java.net.ServerSocket;

public final class C11322 extends Thread {

    public ServerSocket f34164;

    public C14690 f34165;

    public final WeakReference f34166;

    public final boolean m25215() {
        return this.f34164 != null;
    }

    public final synchronized void m25216() {
        final ServerSocket serverSocket = this.f34164;
        if (serverSocket != null) {
            this.f34164 = null;
            C10249.f30506.execute(new Runnable() {
                @Override
                public final void run() {
                    try {
                        serverSocket.close();
                    } catch (IOException e) {
                        throw new RuntimeException(e);
                    }
                }
            });
        }
    }

    @Override
    public final void run() {
        Service service;
        WeakReference weakReference = this.f34166;
        try {
            this.f34164 = new ServerSocket(0);
            while (!isInterrupted()) {
                new RunnableC3694(this.f34164.accept(), this.f34165);
            }
            C14226.m29875(this.f34165);
            try {
                ServerSocket serverSocket = this.f34164;
                if (serverSocket != null) {
                    serverSocket.close();
                    this.f34164 = null;
                }
            } catch (IOException unused) {
            }
            service = (Service) weakReference.get();
            if (service == null) {
                return;
            }
        } catch (Exception unused2) {
            C14226.m29875(this.f34165);
            try {
                ServerSocket serverSocket2 = this.f34164;
                if (serverSocket2 != null) {
                    serverSocket2.close();
                    this.f34164 = null;
                }
            } catch (IOException unused3) {
            }
            service = (Service) weakReference.get();
            if (service == null) {
                return;
            }
        } catch (Throwable th) {
            C14226.m29875(this.f34165);
            try {
                ServerSocket serverSocket3 = this.f34164;
                if (serverSocket3 != null) {
                    serverSocket3.close();
                    this.f34164 = null;
                }
            } catch (IOException unused4) {
            }
            Service service2 = (Service) weakReference.get();
            if (service2 != null) {
                service2.stopSelf();
                throw th;
            }
            throw th;
        }
        service.stopSelf();
    }

    public final Uri m25214(C14690 c14690) {
        C14690 c146902 = this.f34165;
        String str = c14690.f44383;
        if (c146902 == null || !c146902.f44383.equals(str)) {
            final C14690 c146903 = this.f34165;
            if (c146903 != null) {
                C10249.f30506.execute(new Runnable() {
                    @Override
                    public final void run() {
                        C14226.m29875(C14690.this);
                    }
                });
            }
            this.f34165 = c14690;
        }
        return new Uri.Builder().scheme(a.r).encodedAuthority("127.0.0.1:" + this.f34164.getLocalPort()).path(str + "/" + c14690.f44388).build();
    }

    public C11322(Service service) {
        this.f34166 = new WeakReference(service);
        setDaemon(true);
        start();
    }
}