AdGuard v4.4.135版本的 MD5 值为:95950267eaafbda3588f0934f48b2e36

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


package z1;

import ch.qos.logback.core.rolling.helper.DateTokenConverter;
import ch.qos.logback.core.rolling.helper.IntegerTokenConverter;
import com.adguard.android.storage.RoutingMode;
import com.adguard.android.storage.d0;
import com.adguard.android.storage.y;
import kotlin.Metadata;
import kotlin.jvm.internal.n;
@Metadata(d1 = {"\u0000L\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\t\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0010\u000e\n\u0002\b\u0005\n\u0002\u0010\u000b\n\u0002\b\u0017\u0018\u00002\u00020\u0001:\u0002\u0016\nB\u000f\u0012\u0006\u0010\u0019\u001a\u00020\u0017¢\u0006\u0004\b;\u0010<J\u0017\u0010\u0005\u001a\u00020\u00042\b\u0010\u0003\u001a\u0004\u0018\u00010\u0002¢\u0006\u0004\b\u0005\u0010\u0006J\u0010\u0010\n\u001a\u0004\u0018\u00010\t2\u0006\u0010\b\u001a\u00020\u0007J\u0006\u0010\u000b\u001a\u00020\u0004J\u0006\u0010\f\u001a\u00020\u0004J\u0006\u0010\r\u001a\u00020\u0004J\u0006\u0010\u000e\u001a\u00020\u0004J\u0006\u0010\u000f\u001a\u00020\u0004J\u0006\u0010\u0010\u001a\u00020\u0004J\u0006\u0010\u0011\u001a\u00020\u0004J\u0006\u0010\u0012\u001a\u00020\u0004J\u0006\u0010\u0014\u001a\u00020\u0013J\u000e\u0010\u0016\u001a\u00020\u00042\u0006\u0010\u0015\u001a\u00020\u0013R\u0014\u0010\u0019\u001a\u00020\u00178\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u0016\u0010\u0018R\u0014\u0010\u001c\u001a\u00020\u001a8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\n\u0010\u001bR\u0011\u0010\u001f\u001a\u00020\u00028F¢\u0006\u0006\u001a\u0004\b\u001d\u0010\u001eR$\u0010%\u001a\u00020 2\u0006\u0010\u0003\u001a\u00020 8F@FX\u0086\u000e¢\u0006\f\u001a\u0004\b!\u0010\"\"\u0004\b#\u0010$R$\u0010+\u001a\u00020&2\u0006\u0010\u0003\u001a\u00020&8F@FX\u0086\u000e¢\u0006\f\u001a\u0004\b'\u0010(\"\u0004\b)\u0010*R$\u0010.\u001a\u00020&2\u0006\u0010\u0003\u001a\u00020&8F@FX\u0086\u000e¢\u0006\f\u001a\u0004\b,\u0010(\"\u0004\b-\u0010*R$\u00101\u001a\u00020&2\u0006\u0010\u0003\u001a\u00020&8F@FX\u0086\u000e¢\u0006\f\u001a\u0004\b/\u0010(\"\u0004\b0\u0010*R$\u00104\u001a\u00020 2\u0006\u0010\u0003\u001a\u00020 8F@FX\u0086\u000e¢\u0006\f\u001a\u0004\b2\u0010\"\"\u0004\b3\u0010$R$\u00107\u001a\u00020&2\u0006\u0010\u0003\u001a\u00020&8F@FX\u0086\u000e¢\u0006\f\u001a\u0004\b5\u0010(\"\u0004\b6\u0010*R$\u0010:\u001a\u00020&2\u0006\u0010\u0003\u001a\u00020&8F@FX\u0086\u000e¢\u0006\f\u001a\u0004\b8\u0010(\"\u0004\b9\u0010*¨\u0006="}, d2 = {"Lz1/b;", "", "", "value", "", "z", "(Ljava/lang/Integer;)V", "Lcom/adguard/android/storage/RoutingMode;", "routingMode", "Lz1/b$b;", "b", "r", "p", "o", "n", "m", "q", "l", "s", "Lz1/a;", "c", "vpnSettingsImpExData", "a", "Lcom/adguard/android/storage/d0;", "Lcom/adguard/android/storage/d0;", "storage", "Lz1/b$a;", "Lz1/b$a;", "assistant", "j", "()I", "mtu", "", "h", "()Ljava/lang/String;", "x", "(Ljava/lang/String;)V", "ipv4Address", "", "g", "()Z", "w", "(Z)V", "includeGateway", "f", "v", "forceIPv4DefaultRoute", "e", "u", "forceIPv4ComplexRoute", IntegerTokenConverter.CONVERTER_KEY, "y", "ipv6Address", DateTokenConverter.CONVERTER_KEY, "t", "autoPauseVpn", "k", "A", "writePcap", "<init>", "(Lcom/adguard/android/storage/d0;)V", "base_release"}, k = 1, mv = {1, 8, 0})
public final class b {
    public final d0 f29769a;
    public final a f29770b;

    @Metadata(d1 = {"\u0000 \n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0010\u000e\n\u0002\b\u0005\n\u0002\u0010\u000b\n\u0002\b\u000e\n\u0002\u0010\b\n\u0002\b\u0006\u0018\u00002\u00020\u0001B\u0007¢\u0006\u0004\b\u001b\u0010\u001cR\u001a\u0010\u0007\u001a\u00020\u00028\u0006X\u0086D¢\u0006\f\n\u0004\b\u0003\u0010\u0004\u001a\u0004\b\u0005\u0010\u0006R\u001a\u0010\r\u001a\u00020\b8\u0006X\u0086D¢\u0006\f\n\u0004\b\t\u0010\n\u001a\u0004\b\u000b\u0010\fR\u001a\u0010\u000f\u001a\u00020\b8\u0006X\u0086D¢\u0006\f\n\u0004\b\u000e\u0010\n\u001a\u0004\b\u000e\u0010\fR\u001a\u0010\u0010\u001a\u00020\b8\u0006X\u0086D¢\u0006\f\n\u0004\b\u0005\u0010\n\u001a\u0004\b\t\u0010\fR\u001a\u0010\u0012\u001a\u00020\u00028\u0006X\u0086D¢\u0006\f\n\u0004\b\u0011\u0010\u0004\u001a\u0004\b\u0011\u0010\u0006R\u001a\u0010\u0013\u001a\u00020\b8\u0006X\u0086D¢\u0006\f\n\u0004\b\u000b\u0010\n\u001a\u0004\b\u0003\u0010\fR\u001a\u0010\u0016\u001a\u00020\b8\u0006X\u0086D¢\u0006\f\n\u0004\b\u0014\u0010\n\u001a\u0004\b\u0015\u0010\fR\u001a\u0010\u001a\u001a\u00020\u00178\u0006X\u0086D¢\u0006\f\n\u0004\b\u0015\u0010\u0018\u001a\u0004\b\u0014\u0010\u0019¨\u0006\u001d"}, d2 = {"Lz1/b$a;", "", "", "a", "Ljava/lang/String;", DateTokenConverter.CONVERTER_KEY, "()Ljava/lang/String;", "defaultIPv4Address", "", "b", "Z", "f", "()Z", "defaultIncludeGateway", "c", "defaultForceIPv4DefaultRoute", "defaultForceIPv4ComplexRoute", "e", "defaultIPv6Address", "defaultAutoPauseVpn", "g", "h", "defaultWritePcap", "", "I", "()I", "defaultMtuValue", "<init>", "()V", "base_release"}, k = 1, mv = {1, 8, 0})
    public static final class a {
        public final boolean f29773c;
        public final boolean f29774d;
        public final boolean f29776f;
        public final boolean f29777g;
        public final String f29771a = "172.18.11.218";
        public final boolean f29772b = true;
        public final String f29775e = "2001:db8:ad:0:ff::";
        public final int f29778h = 9000;

        public final boolean a() {
            return this.f29776f;
        }

        public final boolean b() {
            return this.f29774d;
        }

        public final boolean c() {
            return this.f29773c;
        }

        public final String d() {
            return this.f29771a;
        }

        public final String e() {
            return this.f29775e;
        }

        public final boolean f() {
            return this.f29772b;
        }

        public final int g() {
            return this.f29778h;
        }

        public final boolean h() {
            return this.f29777g;
        }
    }

    @Metadata(d1 = {"\u0000\u001e\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0010\u000e\n\u0000\n\u0002\u0010\b\n\u0002\b\u0002\n\u0002\u0010\u000b\n\u0002\b\u0018\b\u0086\b\u0018\u00002\u00020\u0001B?\u0012\u0006\u0010\r\u001a\u00020\u0004\u0012\u0006\u0010\u0012\u001a\u00020\u0002\u0012\u0006\u0010\u0016\u001a\u00020\u0007\u0012\u0006\u0010\u0017\u001a\u00020\u0007\u0012\u0006\u0010\u0019\u001a\u00020\u0007\u0012\u0006\u0010\u001a\u001a\u00020\u0002\u0012\u0006\u0010\u001c\u001a\u00020\u0007¢\u0006\u0004\b\u001d\u0010\u001eJ\t\u0010\u0003\u001a\u00020\u0002HÖ\u0001J\t\u0010\u0005\u001a\u00020\u0004HÖ\u0001J\u0013\u0010\b\u001a\u00020\u00072\b\u0010\u0006\u001a\u0004\u0018\u00010\u0001HÖ\u0003R\u0017\u0010\r\u001a\u00020\u00048\u0006¢\u0006\f\n\u0004\b\t\u0010\n\u001a\u0004\b\u000b\u0010\fR\u0017\u0010\u0012\u001a\u00020\u00028\u0006¢\u0006\f\n\u0004\b\u000e\u0010\u000f\u001a\u0004\b\u0010\u0010\u0011R\u0017\u0010\u0016\u001a\u00020\u00078\u0006¢\u0006\f\n\u0004\b\u0013\u0010\u0014\u001a\u0004\b\u0013\u0010\u0015R\u0017\u0010\u0017\u001a\u00020\u00078\u0006¢\u0006\f\n\u0004\b\u0010\u0010\u0014\u001a\u0004\b\u000e\u0010\u0015R\u0017\u0010\u0019\u001a\u00020\u00078\u0006¢\u0006\f\n\u0004\b\u0018\u0010\u0014\u001a\u0004\b\t\u0010\u0015R\u0017\u0010\u001a\u001a\u00020\u00028\u0006¢\u0006\f\n\u0004\b\u000b\u0010\u000f\u001a\u0004\b\u0018\u0010\u0011R\u0017\u0010\u001c\u001a\u00020\u00078\u0006¢\u0006\f\n\u0004\b\u001b\u0010\u0014\u001a\u0004\b\u001b\u0010\u0015¨\u0006\u001f"}, d2 = {"Lz1/b$b;", "", "", "toString", "", "hashCode", "other", "", "equals", "a", "I", "f", "()I", "mtu", "b", "Ljava/lang/String;", DateTokenConverter.CONVERTER_KEY, "()Ljava/lang/String;", "ipv4Address", "c", "Z", "()Z", "includeGateway", "forceIPv4DefaultRoute", "e", "forceIPv4ComplexRoute", "ipv6Address", "g", "writePcap", "<init>", "(ILjava/lang/String;ZZZLjava/lang/String;Z)V", "base_release"}, k = 1, mv = {1, 8, 0})
    public static final class C1208b {
        public final int f29779a;
        public final String f29780b;
        public final boolean f29781c;
        public final boolean f29782d;
        public final boolean f29783e;
        public final String f29784f;
        public final boolean f29785g;

        public C1208b(int i10, String ipv4Address, boolean z10, boolean z11, boolean z12, String ipv6Address, boolean z13) {
            n.g(ipv4Address, "ipv4Address");
            n.g(ipv6Address, "ipv6Address");
            this.f29779a = i10;
            this.f29780b = ipv4Address;
            this.f29781c = z10;
            this.f29782d = z11;
            this.f29783e = z12;
            this.f29784f = ipv6Address;
            this.f29785g = z13;
        }

        public final boolean a() {
            return this.f29783e;
        }

        public final boolean b() {
            return this.f29782d;
        }

        public final boolean c() {
            return this.f29781c;
        }

        public final String d() {
            return this.f29780b;
        }

        public final String e() {
            return this.f29784f;
        }

        public boolean equals(Object obj) {
            if (this == obj) {
                return true;
            }
            if (obj instanceof C1208b) {
                C1208b c1208b = (C1208b) obj;
                return this.f29779a == c1208b.f29779a && n.b(this.f29780b, c1208b.f29780b) && this.f29781c == c1208b.f29781c && this.f29782d == c1208b.f29782d && this.f29783e == c1208b.f29783e && n.b(this.f29784f, c1208b.f29784f) && this.f29785g == c1208b.f29785g;
            }
            return false;
        }

        public final int f() {
            return this.f29779a;
        }

        public final boolean g() {
            return this.f29785g;
        }

        public int hashCode() {
            int hashCode = ((Integer.hashCode(this.f29779a) * 31) + this.f29780b.hashCode()) * 31;
            boolean z10 = this.f29781c;
            int i10 = 1;
            int i11 = z10;
            if (z10 != 0) {
                i11 = 1;
            }
            int i12 = (hashCode + i11) * 31;
            boolean z11 = this.f29782d;
            int i13 = z11;
            if (z11 != 0) {
                i13 = 1;
            }
            int i14 = (i12 + i13) * 31;
            boolean z12 = this.f29783e;
            int i15 = z12;
            if (z12 != 0) {
                i15 = 1;
            }
            int hashCode2 = (((i14 + i15) * 31) + this.f29784f.hashCode()) * 31;
            boolean z13 = this.f29785g;
            if (!z13) {
                i10 = z13 ? 1 : 0;
            }
            return hashCode2 + i10;
        }

        public String toString() {
            int i10 = this.f29779a;
            String str = this.f29780b;
            boolean z10 = this.f29781c;
            boolean z11 = this.f29782d;
            boolean z12 = this.f29783e;
            String str2 = this.f29784f;
            boolean z13 = this.f29785g;
            return "ParamsForProtection(mtu=" + i10 + ", ipv4Address=" + str + ", includeGateway=" + z10 + ", forceIPv4DefaultRoute=" + z11 + ", forceIPv4ComplexRoute=" + z12 + ", ipv6Address=" + str2 + ", writePcap=" + z13 + ")";
        }
    }

    public b(d0 storage) {
        n.g(storage, "storage");
        this.f29769a = storage;
        this.f29770b = new a();
    }

    public final void A(boolean z10) {
        this.f29769a.e().p(z10);
    }

    public final void a(z1.a vpnSettingsImpExData) {
        boolean booleanValue;
        boolean booleanValue2;
        boolean booleanValue3;
        boolean booleanValue4;
        boolean booleanValue5;
        int intValue;
        n.g(vpnSettingsImpExData, "vpnSettingsImpExData");
        Integer g10 = vpnSettingsImpExData.g();
        if (g10 != null && j() != (intValue = g10.intValue())) {
            z(Integer.valueOf(intValue));
        }
        String e10 = vpnSettingsImpExData.e();
        if (e10 != null && !n.b(h(), e10)) {
            x(e10);
        }
        Boolean d10 = vpnSettingsImpExData.d();
        if (d10 != null && g() != (booleanValue5 = d10.booleanValue())) {
            w(booleanValue5);
        }
        Boolean c10 = vpnSettingsImpExData.c();
        if (c10 != null && f() != (booleanValue4 = c10.booleanValue())) {
            v(booleanValue4);
        }
        Boolean b10 = vpnSettingsImpExData.b();
        if (b10 != null && e() != (booleanValue3 = b10.booleanValue())) {
            u(booleanValue3);
        }
        String f10 = vpnSettingsImpExData.f();
        if (f10 != null && !n.b(i(), f10)) {
            y(f10);
        }
        Boolean a10 = vpnSettingsImpExData.a();
        if (a10 != null && d() != (booleanValue2 = a10.booleanValue())) {
            t(booleanValue2);
        }
        Boolean h10 = vpnSettingsImpExData.h();
        if (h10 == null || k() == (booleanValue = h10.booleanValue())) {
            return;
        }
        A(booleanValue);
    }

    public final C1208b b(RoutingMode routingMode) {
        n.g(routingMode, "routingMode");
        C1208b c1208b = new C1208b(j(), h(), g(), f(), e(), i(), k());
        if (routingMode == RoutingMode.LocalVpn) {
            return c1208b;
        }
        return null;
    }

    public final z1.a c() {
        z1.a aVar = new z1.a();
        aVar.o(Integer.valueOf(j()));
        aVar.m(h());
        aVar.l(Boolean.valueOf(g()));
        aVar.k(Boolean.valueOf(f()));
        aVar.j(Boolean.valueOf(e()));
        aVar.n(i());
        aVar.i(Boolean.valueOf(d()));
        aVar.p(Boolean.valueOf(k()));
        return aVar;
    }

    public final boolean d() {
        return this.f29769a.e().a();
    }

    public final boolean e() {
        return this.f29769a.e().b();
    }

    public final boolean f() {
        return this.f29769a.e().c();
    }

    public final boolean g() {
        return this.f29769a.e().d();
    }

    public final String h() {
        return this.f29769a.e().e();
    }

    public final String i() {
        return this.f29769a.e().f();
    }

    public final int j() {
        return this.f29769a.e().g();
    }

    public final boolean k() {
        return this.f29769a.e().h();
    }

    public final void l() {
        t(this.f29770b.a());
    }

    public final void m() {
        u(this.f29770b.b());
    }

    public final void n() {
        v(this.f29770b.c());
    }

    public final void o() {
        w(this.f29770b.f());
    }

    public final void p() {
        x(this.f29770b.d());
    }

    public final void q() {
        y(this.f29770b.e());
    }

    public final void r() {
        z(null);
    }

    public final void s() {
        A(this.f29770b.h());
    }

    public final void t(boolean z10) {
        this.f29769a.e().i(z10);
    }

    public final void u(boolean z10) {
        this.f29769a.e().j(z10);
    }

    public final void v(boolean z10) {
        this.f29769a.e().k(z10);
    }

    public final void w(boolean z10) {
        this.f29769a.e().l(z10);
    }

    public final void x(String value) {
        n.g(value, "value");
        y.b0 e10 = this.f29769a.e();
        if (value.length() == 0) {
            value = this.f29770b.d();
        }
        e10.m(value);
    }

    public final void y(String value) {
        n.g(value, "value");
        y.b0 e10 = this.f29769a.e();
        if (value.length() == 0) {
            value = this.f29770b.e();
        }
        e10.n(value);
    }

    public final void z(Integer num) {
        this.f29769a.e().o(num != null ? num.intValue() : this.f29770b.g());
    }
}