导航菜单

页面标题

页面副标题

Tasker v6.5.11 - g.java 源代码

正在查看: Tasker v6.5.11 应用的 g.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package net.dinglisch.android.tasker;

import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import com.joaomgcd.taskerm.util.s6;
import com.joaomgcd.taskerm.util.u5;
import com.joaomgcd.taskerm.util.v6;
import com.joaomgcd.taskerm.util.x2;
import com.joaomgcd.taskerm.util.x6;
import hg.l1;
import hg.z1;
import ji.r;
import lj.e0;
import net.dinglisch.android.tasker.g;
import net.dinglisch.android.tasker.h;
import net.dinglisch.android.taskerm.Kid;
import net.dinglisch.android.taskerm.MyVpnService;
import xj.l;
import yj.p;
import yj.q;

public final class g {
    public static final a a = new a(null);
    private static final boolean b = !Kid.a();

    public static final class a {

        static final class C0249a extends q implements l<Intent, e0> {
            final String i;
            final String q;

            C0249a(String str, String str2) {
                super(1);
                this.i = str;
                this.q = str2;
            }

            @Override
            public e0 invoke(Intent intent) {
                invoke2(intent);
                return e0.a;
            }

            public final void invoke2(Intent intent) {
                p.i(intent, "$this$runBackCompatAction");
                intent.setComponent(new ComponentName("com.joaomgcd.taskersettings", "com.joaomgcd.taskersettings.ServiceSettings"));
                intent.putExtra("com.joaomgcd.taskersettings.EXTRA_SETTING_KEY", this.i);
                intent.putExtra("com.joaomgcd.taskersettings.EXTRA_SETTING_VALUE", this.q);
            }
        }

        static final class b extends q implements l<s6, e0> {
            public static final b i = new b();

            b() {
                super(1);
            }

            public final void a(s6 s6Var) {
                if (s6Var instanceof x6) {
                    Object d = ((x6) s6Var).d();
                    if (d instanceof OutputNetworkAccess) {
                        OutputNetworkAccess outputNetworkAccess = (OutputNetworkAccess) d;
                        MyVpnService.q(outputNetworkAccess.getResultMode());
                        String[] currentPackages = outputNetworkAccess.getCurrentPackages();
                        MyVpnService.r(currentPackages != null ? kotlin.collections.l.C0(currentPackages) : null);
                    }
                }
            }

            @Override
            public e0 invoke(s6 s6Var) {
                a(s6Var);
                return e0.a;
            }
        }

        static final class c extends q implements l<z1, e0> {
            final Context i;

            c(Context context) {
                super(1);
                this.i = context;
            }

            public final void a(z1 z1Var) {
                p.i(z1Var, "$this$runBackCompatAction");
                String Q4 = x2.Q4(2131890973, this.i, new Object[0]);
                z1Var.N(new l1("togglebluetoothapi33", Q4, x2.Q4(2131890974, this.i, new Object[0]), 5, null, new long[]{0, 1000, 200, 1000, 200, 1000}, null, false, null, false, null, null, 4048, null));
                z1Var.Y(Q4);
                z1Var.W(x2.Q4(2131888080, this.i, new Object[0]));
                z1Var.i().add(new hg.h(this.i, "https://developer.android.com/reference/android/bluetooth/BluetoothAdapter#enable()", true, "Check Issue"));
                z1Var.i().add(new hg.h(this.i, "https://tasker.joaoapps.com/userguide/en/target_api.html ", true, "Target API?"));
            }

            @Override
            public e0 invoke(z1 z1Var) {
                a(z1Var);
                return e0.a;
            }
        }

        static final class d extends q implements l<z1, e0> {
            final Context i;

            d(Context context) {
                super(1);
                this.i = context;
            }

            public final void a(z1 z1Var) {
                p.i(z1Var, "$this$runBackCompatAction");
                String Q4 = x2.Q4(2131890976, this.i, new Object[0]);
                z1Var.N(new l1("togglewifiapi29", Q4, x2.Q4(2131890977, this.i, new Object[0]), 5, null, new long[]{0, 1000, 200, 1000, 200, 1000}, null, false, null, false, null, null, 4048, null));
                z1Var.Y(Q4);
                z1Var.W(x2.Q4(2131888078, this.i, new Object[0]));
                z1Var.i().add(new hg.h(this.i, "https://issuetracker.google.com/issues/128554616", true, "Check Issue"));
                z1Var.i().add(new hg.h(this.i, "https://tasker.joaoapps.com/userguide/en/target_api.html ", true, "Target API?"));
                u5.y(this.i, true);
            }

            @Override
            public e0 invoke(z1 z1Var) {
                a(z1Var);
                return e0.a;
            }
        }

        public a(yj.h hVar) {
            this();
        }

        public static final void e(l lVar, Object obj) {
            p.i(lVar, "$tmp0");
            lVar.invoke(obj);
        }

        public final r<s6> b(Context context, String str, String str2) {
            r<s6> a;
            p.i(context, "context");
            p.i(str, "key");
            p.i(str2, "value");
            String Q4 = x2.Q4(2131886286, context, new Object[0]);
            String string = context.getString(2131886934);
            p.h(string, "getString(...)");
            a = h.a(context, Q4, "ChangeSetting", null, "change custom setting with Tasker Settings", string, (r24 & 64) != 0 ? 3 : 3, (r24 & 128) != 0 ? null : null, (r24 & 256) != 0 ? new h.a(null, "ChangeSetting") : new C0249a(str, str2), (r24 & 512) != 0, (r24 & 1024) != 0 ? h.b.i : null);
            return a;
        }

        public final r<s6> c(Context context, InputConnectToWifi inputConnectToWifi) {
            r<s6> a;
            p.i(context, "context");
            p.i(inputConnectToWifi, "input");
            String Q4 = x2.Q4(2131886277, context, new Object[0]);
            String string = context.getString(2131886931);
            p.h(string, "getString(...)");
            a = h.a(context, Q4, "ConnectToWifi", inputConnectToWifi, "connect to wifi", string, (r24 & 64) != 0 ? 3 : 6, (r24 & 128) != 0 ? null : null, (r24 & 256) != 0 ? new h.a(inputConnectToWifi, "ConnectToWifi") : null, (r24 & 512) != 0, (r24 & 1024) != 0 ? h.b.i : null);
            return a;
        }

        public final r<s6> d(Context context, InputNetworkAccess inputNetworkAccess) {
            r a;
            p.i(context, "context");
            p.i(inputNetworkAccess, "input");
            String Q4 = x2.Q4(2131886453, context, new Object[0]);
            String string = context.getString(2131886935);
            p.h(string, "getString(...)");
            a = h.a(context, Q4, "NetworkAccess", inputNetworkAccess, "Control Network Access with Tasker Settings", string, (r24 & 64) != 0 ? 3 : 10, (r24 & 128) != 0 ? null : OutputNetworkAccess.class, (r24 & 256) != 0 ? new h.a(inputNetworkAccess, "NetworkAccess") : null, (r24 & 512) != 0, (r24 & 1024) != 0 ? h.b.i : null);
            final b bVar = b.i;
            r<s6> q = a.q(new oi.d() {
                @Override
                public final void accept(Object obj) {
                    g.a.e(l.this, obj);
                }
            });
            p.h(q, "doOnSuccess(...)");
            return q;
        }

        public final r<s6> f(Context context, InputDisplayDensity inputDisplayDensity) {
            r<s6> a;
            p.i(context, "context");
            p.i(inputDisplayDensity, "input");
            String Q4 = x2.Q4(2131886340, context, new Object[0]);
            String string = context.getString(2131886929);
            p.h(string, "getString(...)");
            a = h.a(context, Q4, "DisplayDensity", inputDisplayDensity, "change the display size setting", string, (r24 & 64) != 0 ? 3 : 0, (r24 & 128) != 0 ? null : null, (r24 & 256) != 0 ? new h.a(inputDisplayDensity, "DisplayDensity") : null, (r24 & 512) != 0, (r24 & 1024) != 0 ? h.b.i : null);
            return a;
        }

        public final boolean g() {
            return g.b;
        }

        public final r<s6> h(Context context, InputOpenFile inputOpenFile) {
            r<s6> a;
            p.i(context, "context");
            p.i(inputOpenFile, "input");
            String Q4 = x2.Q4(2131886624, context, new Object[0]);
            String string = context.getString(2131886936);
            p.h(string, "getString(...)");
            a = h.a(context, Q4, "OpenFile", inputOpenFile, "Open File with Tasker Settings", string, (r24 & 64) != 0 ? 3 : 8, (r24 & 128) != 0 ? null : OutputOpenFile.class, (r24 & 256) != 0 ? new h.a(inputOpenFile, "OpenFile") : null, (r24 & 512) != 0, (r24 & 1024) != 0 ? h.b.i : null);
            return a;
        }

        public final r<s6> i(Context context) {
            p.i(context, "context");
            return d(context, new InputNetworkAccess(kotlin.collections.r.l(), MyVpnService.Mode.AllowAll, true, false));
        }

        public final r<s6> j(Context context, InputRunShell inputRunShell) {
            r<s6> a;
            p.i(context, "context");
            p.i(inputRunShell, "input");
            String Q4 = x2.Q4(2131886504, context, new Object[0]);
            String string = context.getString(2131886937);
            p.h(string, "getString(...)");
            a = h.a(context, Q4, "RunShell", inputRunShell, "run shell with Tasker Settings", string, (r24 & 64) != 0 ? 3 : 7, (r24 & 128) != 0 ? null : OutputRunShell.class, (r24 & 256) != 0 ? new h.a(inputRunShell, "RunShell") : null, (r24 & 512) != 0, (r24 & 1024) != 0 ? h.b.i : null);
            return a;
        }

        public final r<s6> k(Context context) {
            p.i(context, "context");
            MyVpnService.Mode j = MyVpnService.j();
            MyVpnService.Mode mode = MyVpnService.Mode.AllowAll;
            if (j != mode) {
                return d(context, new InputNetworkAccess(kotlin.collections.r.l(), mode, false, true));
            }
            r<s6> w = r.w(new v6());
            p.h(w, "just(...)");
            return w;
        }

        public final r<s6> l(Context context, InputToggleBluetooth inputToggleBluetooth) {
            r<s6> a;
            p.i(context, "context");
            p.i(inputToggleBluetooth, "input");
            String Q4 = x2.Q4(2131886259, context, new Object[0]);
            String string = context.getString(2131886938);
            p.h(string, "getString(...)");
            a = h.a(context, Q4, "ToggleBluetooth", inputToggleBluetooth, "toggle bluetooth", string, (r24 & 64) != 0 ? 3 : 9, (r24 & 128) != 0 ? null : null, (r24 & 256) != 0 ? new h.a(inputToggleBluetooth, "ToggleBluetooth") : null, (r24 & 512) != 0, (r24 & 1024) != 0 ? h.b.i : new c(context));
            return a;
        }

        public final r<s6> m(Context context, InputToggleBackCompat inputToggleBackCompat) {
            r<s6> a;
            p.i(context, "context");
            p.i(inputToggleBackCompat, "input");
            String Q4 = x2.Q4(2131886266, context, new Object[0]);
            String string = context.getString(2131886939);
            p.h(string, "getString(...)");
            a = h.a(context, Q4, "ToggleCamera", inputToggleBackCompat, "toggle camera", string, (r24 & 64) != 0 ? 3 : 5, (r24 & 128) != 0 ? null : null, (r24 & 256) != 0 ? new h.a(inputToggleBackCompat, "ToggleCamera") : null, (r24 & 512) != 0, (r24 & 1024) != 0 ? h.b.i : null);
            return a;
        }

        public final r<s6> n(Context context, InputToggleWifi inputToggleWifi) {
            r<s6> a;
            p.i(context, "context");
            p.i(inputToggleWifi, "input");
            String Q4 = x2.Q4(2131886641, context, new Object[0]);
            String string = context.getString(2131886940);
            p.h(string, "getString(...)");
            a = h.a(context, Q4, "ToggleWifi", inputToggleWifi, "toggle wifi", string, (r24 & 64) != 0 ? 3 : 4, (r24 & 128) != 0 ? null : null, (r24 & 256) != 0 ? new h.a(inputToggleWifi, "ToggleWifi") : null, (r24 & 512) != 0, (r24 & 1024) != 0 ? h.b.i : new d(context));
            return a;
        }

        public final r<s6> o(Context context, InputWifiNet inputWifiNet) {
            r<s6> a;
            p.i(context, "context");
            p.i(inputWifiNet, "input");
            a = h.a(context, x2.Q4(2131886639, context, new Object[0]), "WifiNet", inputWifiNet, "disconnect current wifi network", "Can't disconnect from the current wifi network", (r24 & 64) != 0 ? 3 : 12, (r24 & 128) != 0 ? null : null, (r24 & 256) != 0 ? new h.a(inputWifiNet, "WifiNet") : null, (r24 & 512) != 0, (r24 & 1024) != 0 ? h.b.i : null);
            return a;
        }

        private a() {
        }
    }

    public static final r<s6> b(Context context, InputNetworkAccess inputNetworkAccess) {
        return a.d(context, inputNetworkAccess);
    }

    public static final boolean c() {
        return a.g();
    }

    public static final r<s6> d(Context context) {
        return a.i(context);
    }

    public static final r<s6> e(Context context) {
        return a.k(context);
    }

    public static final r<s6> f(Context context, InputToggleWifi inputToggleWifi) {
        return a.n(context, inputToggleWifi);
    }
}