CONECTA PRO v4.2.8版本的 MD5 值为:ad88cf9e66d8cdaae8c40233e50eb389
以下内容为反编译后的 f.java 源代码,内容仅作参考
package f8;
import android.content.Context;
import android.os.ParcelFileDescriptor;
import fa.e0;
import java.io.File;
import java.io.FileDescriptor;
import java.util.ArrayList;
import ka.o;
import z8.b1;
public final class f {
public final Context f4149a;
public ParcelFileDescriptor f4150b;
public final int f4151c;
public final String f4152d;
public final String f4153e;
public final String f4154f;
public final String f4155g;
public final String f4156h;
public final boolean f4157i;
public Process f4158j;
public boolean f4159k;
public f(Context context, ParcelFileDescriptor parcelFileDescriptor, String str, String str2, String str3, boolean z10) {
b1.o("context", context);
b1.o("socksServerAddress", str);
this.f4149a = context;
this.f4150b = parcelFileDescriptor;
this.f4151c = 1500;
this.f4152d = "172.16.0.2";
this.f4153e = "255.255.255.0";
this.f4154f = str;
this.f4155g = str2;
this.f4156h = str3;
this.f4157i = z10;
this.f4159k = true;
}
public final void a() {
FileDescriptor fileDescriptor;
String absolutePath = new File(this.f4149a.getApplicationContext().getFilesDir(), "sock_path").getAbsolutePath();
ParcelFileDescriptor parcelFileDescriptor = this.f4150b;
if (parcelFileDescriptor != null) {
fileDescriptor = parcelFileDescriptor.getFileDescriptor();
} else {
fileDescriptor = null;
}
la.d dVar = e0.f4188a;
com.bumptech.glide.f.q(com.bumptech.glide.e.a(o.f7023a), null, new e(absolutePath, fileDescriptor, null), 3);
}
public final void b() {
Context context = this.f4149a;
ArrayList a10 = t5.b.a(new File(context.getApplicationInfo().nativeLibraryDir, "libtun2socks5.so").getAbsolutePath(), "--netif-ipaddr", this.f4152d, "--netif-netmask", this.f4153e, "--socks-server-addr", this.f4154f, "--tunmtu", String.valueOf(this.f4151c), "--sock", new File(context.getApplicationContext().getFilesDir(), "sock_path").getAbsolutePath(), "--loglevel", "3");
if (this.f4157i) {
a10.add("--udpgw-transparent-dns");
}
String str = this.f4155g;
if (str != null) {
a10.add("--udpgw-remote-server-addr");
a10.add(str);
}
String str2 = this.f4156h;
if (str2 != null) {
a10.add("--dnsgw");
a10.add(str2);
}
try {
this.f4158j = new ProcessBuilder(a10).start();
new Thread(new a.b(11, this)).start();
a();
} catch (Exception e10) {
e10.printStackTrace();
}
}
}