MT Manager v2.15.3版本的 MD5 值为:34ea5286e529d87838c6cae0a2220d93
以下内容为反编译后的 C8690.java 源代码,内容仅作参考
package l;
import android.annotation.SuppressLint;
import android.os.SystemClock;
import android.text.TextUtils;
import android.view.View;
import android.widget.AdapterView;
import android.widget.BaseAdapter;
import android.widget.EditText;
import android.widget.ListAdapter;
import android.widget.ListView;
import android.widget.ProgressBar;
import android.widget.TextView;
import bin.mt.plus.Main;
import bin.mt.plus.canary.R;
import com.google.android.material.textfield.TextInputLayout;
import java.io.IOException;
import java.net.Inet6Address;
import java.net.InetAddress;
import java.net.NetworkInterface;
import java.net.SocketException;
import java.util.Collections;
import java.util.Enumeration;
import java.util.List;
import java.util.concurrent.atomic.AtomicInteger;
public final class C8690 extends AbstractC7582 {
public String f25256;
public String f25257;
public String f25258;
public String f25259;
public String f25260;
public int f25261;
public String f25262;
@Override
public final String getName() {
return this.f25259;
}
@Override
public final String mo912() {
return "SMB";
}
@Override
public final void mo916(String str) {
this.f25260 = str;
}
public C8690(int i) {
super(i);
this.f25256 = "";
this.f25261 = 445;
this.f25262 = "";
this.f25257 = "";
this.f25258 = "";
this.f25260 = "";
this.f25259 = "";
}
public C8690(C1653 c1653) {
super(c1653);
this.f25256 = "";
this.f25261 = 445;
this.f25262 = "";
this.f25257 = "";
this.f25258 = "";
this.f25260 = "";
this.f25259 = "";
this.f25256 = c1653.m4989("1");
this.f25261 = c1653.m4983("2");
this.f25262 = c1653.m4989("3");
this.f25257 = c1653.m4989("4");
this.f25258 = c1653.m4989("5");
this.f25260 = c1653.m4989("6");
this.f25259 = c1653.m4989("7");
this.f21528 = c1653.m4993("8") && c1653.m4990("8");
this.f21530 = c1653.m4993("9") && c1653.m4990("9");
}
@Override
public final String mo913() {
StringBuilder sb = new StringBuilder("smb://");
sb.append(this.f25257);
if (!TextUtils.isEmpty(this.f25262)) {
sb.append(":");
sb.append(this.f25262);
}
sb.append("@");
sb.append(this.f25256);
if (this.f25261 != 445) {
sb.append(":");
sb.append(this.f25261);
}
return sb.toString();
}
@Override
public final C1653 mo920() {
C1653 mo920 = super.mo920();
mo920.m4987(this.f25256, "1");
mo920.m4987(Integer.valueOf(this.f25261), "2");
mo920.m4987(this.f25262, "3");
mo920.m4987(this.f25257, "4");
mo920.m4987(this.f25258, "5");
mo920.m4987(this.f25260, "6");
mo920.m4987(this.f25259, "7");
mo920.m4988("8", this.f21528);
mo920.m4988("9", this.f21530);
return mo920;
}
@Override
public final String mo918() {
String str = "smb://" + this.f25257 + "@" + this.f25256;
return str.endsWith("/") ? C4485.m11595(str, 1, 0) : str;
}
@Override
public final void mo917(AbstractC7582 abstractC7582) {
if (abstractC7582 instanceof C8690) {
C8690 c8690 = (C8690) abstractC7582;
this.f25256 = c8690.f25256;
this.f25261 = c8690.f25261;
this.f25262 = c8690.f25262;
this.f25257 = c8690.f25257;
this.f25258 = c8690.f25258;
this.f25260 = c8690.f25260;
this.f25259 = c8690.f25259;
this.f21528 = c8690.f21528;
this.f21530 = c8690.f21530;
}
}
@Override
public final AbstractC1876 mo914(int i) {
return new C8923(i, clone());
}
public static InterfaceC14288 m19993(String str, String str2, String str3) {
if (TextUtils.isEmpty(str2) && TextUtils.isEmpty(str3)) {
return C0349.m1478().mo14962();
}
if (!str2.equals("guest") || !TextUtils.isEmpty(str3)) {
C6852 c6852 = new C6852(str, str2, str3);
C0349 m1478 = C0349.m1478();
m1478.getClass();
return new C11294(m1478, c6852);
}
return C0349.m1478().m14966();
}
@Override
public final C1120 getIcon() {
return C1120.f3918;
}
@Override
public final String mo919() {
return C13032.m27586(new StringBuilder("smb@"), this.f25259, " ");
}
@Override
public final void mo915(Main main) {
m19996(main, this);
}
public static void m19995(AbstractActivityC14931 abstractActivityC14931) {
m19996(abstractActivityC14931, new C8690(-1));
}
@SuppressLint({"SetTextI18n"})
public static void m19996(final AbstractActivityC14931 abstractActivityC14931, C8690 c8690) {
View m30946 = abstractActivityC14931.m30946(R.layout.MT_Protector_res_0x7f0c00cc);
TextView textView = (TextView) m30946.findViewById(R.id.MT_Protector_res_0x7f090480);
final EditText editText = (EditText) m30946.findViewById(R.id.MT_Protector_res_0x7f0901b7);
final EditText editText2 = (EditText) m30946.findViewById(R.id.MT_Protector_res_0x7f090328);
final EditText editText3 = (EditText) m30946.findViewById(R.id.MT_Protector_res_0x7f090117);
final EditText editText4 = (EditText) m30946.findViewById(R.id.MT_Protector_res_0x7f0904b2);
final EditText editText5 = (EditText) m30946.findViewById(R.id.MT_Protector_res_0x7f090315);
final EditText editText6 = (EditText) m30946.findViewById(R.id.MT_Protector_res_0x7f090362);
final EditText editText7 = (EditText) m30946.findViewById(R.id.MT_Protector_res_0x7f090361);
final C8753 c8753 = (C8753) m30946.findViewById(R.id.MT_Protector_res_0x7f0901b0);
final C8753 c87532 = (C8753) m30946.findViewById(R.id.MT_Protector_res_0x7f0902d8);
c87532.setOnCheckedChangeListener(new Object());
((TextInputLayout) m30946.findViewById(R.id.MT_Protector_res_0x7f090431)).setEndIconOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
final EditText editText8 = editText2;
final EditText editText9 = editText7;
final EditText editText10 = editText;
final ?? r9 = new InterfaceC9188() {
@Override
public final void accept(Object obj) {
C7006 c7006 = (C7006) obj;
editText10.setText(c7006.m16929());
editText8.setText(String.valueOf(c7006.m16928()));
editText9.setText(c7006.m16930());
}
};
AbstractActivityC14931 abstractActivityC149312 = AbstractActivityC14931.this;
View m309462 = abstractActivityC149312.m30946(R.layout.MT_Protector_res_0x7f0c00b4);
TextView textView2 = (TextView) m309462.findViewById(R.id.MT_Protector_res_0x7f090480);
textView2.setText(R.string.MT_Protector_res_0x7f110622);
final ProgressBar progressBar = (ProgressBar) m309462.findViewById(R.id.MT_Protector_res_0x7f090336);
progressBar.setVisibility(0);
ListView listView = (ListView) m309462.findViewById(R.id.MT_Protector_res_0x7f0901ff);
C5216.m13034(listView);
final ?? baseAdapter = new BaseAdapter();
baseAdapter.f43723 = Collections.emptyList();
baseAdapter.f43724 = textView2.getPaddingLeft();
baseAdapter.f43725 = C8910.m20432(8.0f);
String str = null;
listView.setDivider(null);
listView.setAdapter((ListAdapter) baseAdapter);
C12510 mo2136 = abstractActivityC149312.mo2136();
mo2136.m26696(m309462);
mo2136.m26710(R.string.MT_Protector_res_0x7f110131, null);
mo2136.m26705();
final DialogInterfaceC15036 m26688 = mo2136.m26688();
listView.setOnItemClickListener(new AdapterView.OnItemClickListener() {
@Override
public final void onItemClick(AdapterView adapterView, View view2, int i, long j) {
r9.accept((C7006) baseAdapter.f43723.get(i));
m26688.dismiss();
}
});
final C0271 c0271 = new C0271(m26688);
m26688.m31211(abstractActivityC149312, c0271.f770, new InterfaceC7179() {
@Override
public final void mo690(Object obj) {
List list = (List) obj;
if (list == null) {
list = Collections.emptyList();
}
boolean isEmpty = list.isEmpty();
ProgressBar progressBar2 = progressBar;
if (isEmpty) {
progressBar2.setVisibility(0);
} else {
progressBar2.setVisibility(8);
}
C14584 c14584 = baseAdapter;
c14584.f43723 = list;
c14584.notifyDataSetChanged();
}
});
C13776.f41824.execute(new Runnable() {
@Override
public final void run() {
C0271 c02712 = C0271.this;
try {
C1787 c1787 = new C1787();
try {
c1787.m5317(new C11216(c02712));
System.out.println("jmdns listener start");
while (true) {
DialogInterfaceC15036 dialogInterfaceC15036 = (DialogInterfaceC15036) c02712.f771.get();
if (dialogInterfaceC15036 == null || !dialogInterfaceC15036.m31218()) {
break;
} else {
SystemClock.sleep(100L);
}
}
System.out.println("jmdns listener end");
c1787.close();
} finally {
}
} catch (IOException unused) {
}
}
});
try {
Enumeration<NetworkInterface> networkInterfaces = NetworkInterface.getNetworkInterfaces();
loop0: while (true) {
if (!networkInterfaces.hasMoreElements()) {
break;
}
Enumeration<InetAddress> inetAddresses = networkInterfaces.nextElement().getInetAddresses();
while (inetAddresses.hasMoreElements()) {
InetAddress nextElement = inetAddresses.nextElement();
if (!(nextElement instanceof Inet6Address)) {
String hostAddress = nextElement.getHostAddress();
if (!"127.0.0.1".equals(hostAddress)) {
str = hostAddress;
break loop0;
}
}
}
}
} catch (SocketException unused) {
}
if (str == null) {
return;
}
final String substring = str.substring(0, str.lastIndexOf(".") + 1);
final AtomicInteger atomicInteger = new AtomicInteger(2);
final ?? r2 = new Runnable() {
@Override
public final void run() {
C2796.m8007(C0271.this, atomicInteger, substring);
}
};
C13776.f41824.execute(new Runnable() {
@Override
public final void run() {
for (int i = 0; i < 32; i++) {
C13776.f41824.execute(r2);
SystemClock.sleep(50L);
}
}
});
}
});
textView.setText(C1636.m4919(c8690.f21529 == -1 ? R.string.MT_Protector_res_0x7f1103f4 : R.string.MT_Protector_res_0x7f110229).concat(" SMB"));
editText.setText(c8690.f25256);
editText2.setText(String.valueOf(c8690.f25261));
editText3.setText(c8690.f25262);
editText4.setText(c8690.f25257);
editText5.setText(c8690.f25258);
editText6.setText(c8690.f25260);
editText7.setText(c8690.f25259);
c8753.setChecked(c8690.f21528);
c87532.setChecked(c8690.f21530);
AbstractC7582.m18262(editText, editText7, new C4309(0, editText3));
AbstractC7582.m18262(editText3, editText7, new C7699(2, editText));
C12510 mo2136 = abstractActivityC14931.mo2136();
mo2136.m26696(m30946);
mo2136.m26710(R.string.MT_Protector_res_0x7f110439, null);
DialogInterfaceC15036 m27587 = C13032.m27587(mo2136, R.string.MT_Protector_res_0x7f11010c, null, R.string.MT_Protector_res_0x7f1104c9, null);
C1636.m4910(editText);
final ?? r1 = new InterfaceC11714() {
@Override
public final Object get() {
return C8690.m19992(editText, editText2, editText3, editText4, editText5, editText6, editText7, c8753, c87532);
}
};
m27587.m31219().setOnClickListener(new ViewOnClickListenerC13161(1, r1, c8690, m27587));
m27587.m31216().setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
C8690 c86902 = (C8690) r1.get();
if (c86902 == null) {
return;
}
new C1954(abstractActivityC14931, c86902, editText4).m18935();
}
});
}
public static C8690 m19992(EditText editText, EditText editText2, EditText editText3, EditText editText4, EditText editText5, EditText editText6, EditText editText7, C8753 c8753, C8753 c87532) {
int i;
if (!AbstractC7582.m18267(editText)) {
return null;
}
C8690 c8690 = new C8690(-1);
c8690.f25256 = editText.getText().toString();
try {
i = Integer.parseInt(editText2.getText().toString());
} catch (NumberFormatException unused) {
i = 445;
}
c8690.f25261 = i;
c8690.f25262 = editText3.getText().toString();
c8690.f25257 = editText4.getText().toString();
c8690.f25258 = editText5.getText().toString();
c8690.f25260 = editText6.getText().toString();
c8690.f25259 = AbstractC7582.m18260(editText7, TextUtils.isEmpty(c8690.f25262) ? c8690.f25256 : c8690.f25262);
c8690.f21528 = c8753.isChecked();
c8690.f21530 = c87532.isChecked();
return c8690;
}
public static void m19994(InterfaceC11714 interfaceC11714, C8690 c8690, DialogInterfaceC15036 dialogInterfaceC15036) {
C8690 c86902 = (C8690) interfaceC11714.get();
if (c86902 == null) {
return;
}
if (c8690.f21529 == -1) {
C8690 c86903 = new C8690(AbstractC7582.m18269());
c86903.mo917(c86902);
C3372.m9411(c86903);
} else {
c8690.mo917(c86902);
C3372.m9417();
}
dialogInterfaceC15036.dismiss();
}
}