Anti Spy v30.16.1.24版本的 MD5 值为:c71fa7f3f1aa08291411b9a5a8b2e65d
以下内容为反编译后的 h.java 源代码,内容仅作参考
package b9;
import a9.z;
import android.content.Intent;
import android.content.SharedPreferences;
import android.text.TextUtils;
import android.view.View;
import android.widget.TextView;
import android.widget.Toast;
import c9.a0;
import com.google.android.material.textfield.TextInputEditText;
import erfanrouhani.antispy.R;
import erfanrouhani.antispy.ui.activities.FirewallActivity;
import erfanrouhani.antispy.util.VpnUtil;
import j$.util.Objects;
import java.net.InetAddress;
import java.util.ArrayList;
public final class h implements View.OnClickListener {
public final int f1574a;
public final Object f1575b;
public final Object f1576c;
public h(Object obj, int i10, Object obj2) {
this.f1574a = i10;
this.f1575b = obj;
this.f1576c = obj2;
}
@Override
public final void onClick(View view) {
int i10 = this.f1574a;
Object obj = this.f1576c;
Object obj2 = this.f1575b;
switch (i10) {
case 0:
k kVar = (k) obj2;
w8.i iVar = (w8.i) obj;
if (kVar.f1594t) {
kVar.b(iVar);
return;
} else {
kVar.f1593s.b(new k7.k(kVar, 12, iVar));
return;
}
case 1:
w8.e eVar = (w8.e) obj;
ArrayList arrayList = ((o) obj2).f1612n;
boolean z10 = !((Boolean) arrayList.get(eVar.getAdapterPosition())).booleanValue();
o.c(eVar, z10);
arrayList.set(eVar.getAdapterPosition(), Boolean.valueOf(z10));
return;
case 2:
c9.q qVar = (c9.q) obj2;
q8.a aVar = (q8.a) obj;
int i11 = c9.q.f2674o;
qVar.getClass();
String trim = ((TextInputEditText) aVar.f18229e).getText() != null ? ((TextInputEditText) aVar.f18229e).getText().toString().trim() : "";
z zVar = (z) qVar.f2675a;
int i12 = zVar.f457a;
FirewallActivity firewallActivity = zVar.f458b;
try {
switch (i12) {
case 0:
int i13 = FirewallActivity.Y;
firewallActivity.getClass();
boolean isEmpty = TextUtils.isEmpty(trim);
z8.b bVar = firewallActivity.R;
z8.a aVar2 = firewallActivity.S;
if (!isEmpty) {
if (!VpnUtil.b(trim)) {
Toast.makeText(firewallActivity, firewallActivity.getString(R.string.bad_address), 0).show();
break;
} else {
firewallActivity.Q.I.setText(trim);
SharedPreferences.Editor editor = firewallActivity.U;
Objects.requireNonNull(aVar2);
editor.putString("YMzH9ilTI4", trim).apply();
Objects.requireNonNull(bVar);
firewallActivity.sendBroadcast(new Intent("action_restart_firewall"));
break;
}
} else {
firewallActivity.Q.I.setText("-");
SharedPreferences.Editor editor2 = firewallActivity.U;
Objects.requireNonNull(aVar2);
editor2.putString("YMzH9ilTI4", trim).apply();
Objects.requireNonNull(bVar);
firewallActivity.sendBroadcast(new Intent("action_restart_firewall"));
break;
}
case 1:
int i14 = FirewallActivity.Y;
firewallActivity.getClass();
boolean isEmpty2 = TextUtils.isEmpty(trim);
z8.b bVar2 = firewallActivity.R;
z8.a aVar3 = firewallActivity.S;
if (!isEmpty2) {
if (!VpnUtil.b(trim)) {
Toast.makeText(firewallActivity, firewallActivity.getString(R.string.bad_address), 0).show();
break;
} else {
InetAddress byName = InetAddress.getByName(trim);
if (!byName.isLoopbackAddress() && !byName.isAnyLocalAddress()) {
firewallActivity.Q.F.setText(trim);
SharedPreferences.Editor editor3 = firewallActivity.U;
Objects.requireNonNull(aVar3);
editor3.putString("sZKwwLYNn2", trim).apply();
Objects.requireNonNull(bVar2);
firewallActivity.sendBroadcast(new Intent("action_restart_firewall"));
break;
}
Toast.makeText(firewallActivity, firewallActivity.getString(R.string.bad_address), 0).show();
}
} else {
TextView textView = firewallActivity.Q.F;
Objects.requireNonNull(aVar3);
textView.setText("fd00:1:fd00:1:fd00:1:fd00:1");
firewallActivity.U.putString("sZKwwLYNn2", "fd00:1:fd00:1:fd00:1:fd00:1").apply();
Objects.requireNonNull(bVar2);
firewallActivity.sendBroadcast(new Intent("action_restart_firewall"));
break;
}
break;
case 2:
int i15 = FirewallActivity.Y;
firewallActivity.getClass();
boolean isEmpty3 = TextUtils.isEmpty(trim);
z8.b bVar3 = firewallActivity.R;
z8.a aVar4 = firewallActivity.S;
if (!isEmpty3) {
if (!VpnUtil.b(trim)) {
Toast.makeText(firewallActivity, firewallActivity.getString(R.string.bad_address), 0).show();
break;
} else {
firewallActivity.Q.D.setText(trim);
SharedPreferences.Editor editor4 = firewallActivity.U;
Objects.requireNonNull(aVar4);
editor4.putString("rUpHTqLETV", trim).apply();
Objects.requireNonNull(bVar3);
firewallActivity.sendBroadcast(new Intent("action_restart_firewall"));
break;
}
} else {
firewallActivity.Q.D.setText("-");
SharedPreferences.Editor editor5 = firewallActivity.U;
Objects.requireNonNull(aVar4);
editor5.putString("rUpHTqLETV", null).apply();
Objects.requireNonNull(bVar3);
firewallActivity.sendBroadcast(new Intent("action_restart_firewall"));
break;
}
case 3:
int i16 = FirewallActivity.Y;
firewallActivity.getClass();
boolean isEmpty4 = TextUtils.isEmpty(trim);
z8.b bVar4 = firewallActivity.R;
z8.a aVar5 = firewallActivity.S;
if (!isEmpty4) {
if (!VpnUtil.b(trim)) {
Toast.makeText(firewallActivity, firewallActivity.getString(R.string.bad_address), 0).show();
break;
} else {
firewallActivity.Q.C.setText(trim);
SharedPreferences.Editor editor6 = firewallActivity.U;
Objects.requireNonNull(aVar5);
editor6.putString("7pOKLz2ccU", trim).apply();
Objects.requireNonNull(bVar4);
firewallActivity.sendBroadcast(new Intent("action_restart_firewall"));
break;
}
} else {
firewallActivity.Q.C.setText("-");
SharedPreferences.Editor editor7 = firewallActivity.U;
Objects.requireNonNull(aVar5);
editor7.putString("7pOKLz2ccU", null).apply();
Objects.requireNonNull(bVar4);
firewallActivity.sendBroadcast(new Intent("action_restart_firewall"));
break;
}
case 4:
int i17 = FirewallActivity.Y;
firewallActivity.getClass();
if (TextUtils.isEmpty(trim)) {
firewallActivity.Q.O.setText("-");
} else {
firewallActivity.Q.O.setText(trim);
}
SharedPreferences.Editor editor8 = firewallActivity.U;
Objects.requireNonNull(firewallActivity.S);
editor8.putString("aEY0Hzqp0s", trim).apply();
Objects.requireNonNull(firewallActivity.R);
firewallActivity.sendBroadcast(new Intent("action_restart_firewall"));
break;
case 5:
int i18 = FirewallActivity.Y;
firewallActivity.getClass();
if (TextUtils.isEmpty(trim)) {
firewallActivity.Q.K.setText("-");
} else {
firewallActivity.Q.K.setText(trim);
}
SharedPreferences.Editor editor9 = firewallActivity.U;
Objects.requireNonNull(firewallActivity.S);
editor9.putString("HDKqNjBjtE", trim).apply();
Objects.requireNonNull(firewallActivity.R);
firewallActivity.sendBroadcast(new Intent("action_restart_firewall"));
break;
case 6:
int i19 = FirewallActivity.Y;
firewallActivity.getClass();
boolean isEmpty5 = TextUtils.isEmpty(trim);
z8.a aVar6 = firewallActivity.S;
if (isEmpty5) {
firewallActivity.Q.M.setText("-");
SharedPreferences.Editor editor10 = firewallActivity.U;
Objects.requireNonNull(aVar6);
editor10.putInt("FDguxwMskM", 0).apply();
} else {
firewallActivity.Q.M.setText(trim);
SharedPreferences.Editor editor11 = firewallActivity.U;
Objects.requireNonNull(aVar6);
editor11.putInt("FDguxwMskM", Integer.parseInt(trim)).apply();
}
Objects.requireNonNull(firewallActivity.R);
firewallActivity.sendBroadcast(new Intent("action_restart_firewall"));
break;
default:
int i20 = FirewallActivity.Y;
firewallActivity.getClass();
boolean isEmpty6 = TextUtils.isEmpty(trim);
z8.b bVar5 = firewallActivity.R;
z8.a aVar7 = firewallActivity.S;
if (!isEmpty6) {
if (!VpnUtil.b(trim)) {
Toast.makeText(firewallActivity, firewallActivity.getString(R.string.bad_address), 0).show();
break;
} else {
InetAddress byName2 = InetAddress.getByName(trim);
if (!byName2.isLoopbackAddress() && !byName2.isAnyLocalAddress()) {
firewallActivity.Q.E.setText(trim);
SharedPreferences.Editor editor12 = firewallActivity.U;
Objects.requireNonNull(aVar7);
editor12.putString("8Cuw0nm79Y", trim).apply();
Objects.requireNonNull(bVar5);
firewallActivity.sendBroadcast(new Intent("action_restart_firewall"));
break;
}
Toast.makeText(firewallActivity, firewallActivity.getString(R.string.bad_address), 0).show();
}
} else {
TextView textView2 = firewallActivity.Q.E;
Objects.requireNonNull(aVar7);
textView2.setText("10.1.10.1");
firewallActivity.U.putString("8Cuw0nm79Y", "10.1.10.1").apply();
Objects.requireNonNull(bVar5);
firewallActivity.sendBroadcast(new Intent("action_restart_firewall"));
break;
}
break;
}
} catch (Exception unused) {
}
qVar.dismiss();
return;
default:
a0 a0Var = (a0) obj2;
SharedPreferences.Editor editor13 = (SharedPreferences.Editor) obj;
String str = a0Var.f2619c;
boolean equals = str.equals("cam");
z8.a aVar8 = a0Var.f2618b;
if (equals) {
Objects.requireNonNull(aVar8);
editor13.putInt("NLDDYd4qtb", a0Var.f2620d);
editor13.putInt("omg1UcfC5Q", a0Var.f2621n);
editor13.putInt("hYZuwvrFXM", a0Var.f2622o);
editor13.putInt("UdakolW9Rb", a0Var.f2623p);
editor13.apply();
a0Var.dismiss();
} else if (str.equals("mic")) {
Objects.requireNonNull(aVar8);
editor13.putInt("4x6gB0gE9b", a0Var.f2620d);
editor13.putInt("ScHucv39Bl", a0Var.f2621n);
editor13.putInt("JrCV63cu81", a0Var.f2622o);
editor13.putInt("9XNFAxRdwb", a0Var.f2623p);
editor13.apply();
a0Var.dismiss();
} else if (str.equals("location")) {
Objects.requireNonNull(aVar8);
editor13.putInt("10gOFflPNy", a0Var.f2620d);
editor13.putInt("TLZ2PyYoTI", a0Var.f2621n);
editor13.putInt("PVa5P4rdCu", a0Var.f2622o);
editor13.putInt("6hHbfuIwXn", a0Var.f2623p);
editor13.apply();
a0Var.dismiss();
}
return;
}
}
}