导航菜单

页面标题

页面副标题

万能钥匙 v1.1.23 - C3631a.java 源代码

正在查看: 万能钥匙 v1.1.23 应用的 C3631a.java JAVA 源代码文件

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


package lg0;

import ah0.a;
import android.app.AlarmManager;
import android.app.NotificationChannel;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.os.Build;
import android.os.Handler;
import android.os.Looper;
import android.os.Message;
import android.widget.RemoteViews;
import androidx.core.app.NotificationCompat;
import com.meituan.robust.ChangeQuickRedirect;
import com.meituan.robust.PatchProxy;
import com.meituan.robust.PatchProxyResult;
import com.wifitutu.link.foundation.kernel.ProcessingEnv;
import com.wifitutu.link.foundation.kernel.e;
import com.wifitutu.link.foundation.kernel.g;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.TimeUnit;
import kotlin.Metadata;
import kotlin.jvm.internal.n;
import kotlin.jvm.internal.p;
import lg0.C3631a;
import lg0.d6;
import lg0.r4;
import lg0.z4;
import tg0.f;
import tg0.l;
import tj0.t;
import vj0.InterfaceC3487l0;
import vj0.n0;

@Metadata(d1 = {"\u0000t\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0000\n\u0002\u0010\u000b\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\b\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0010!\n\u0002\b\u0007\n\u0002\u0010\t\n\u0002\b\b\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0005\bÆ\u0002\u0018\u00002\u00020\u0001:\u0005B&.14B\t\b\u0002¢\u0006\u0004\b\u0002\u0010\u0003J\u0017\u0010\u0007\u001a\u00020\u00062\b\u0010\u0005\u001a\u0004\u0018\u00010\u0004¢\u0006\u0004\b\u0007\u0010\bJ\u0017\u0010\n\u001a\u00020\t2\b\u0010\u0005\u001a\u0004\u0018\u00010\u0004¢\u0006\u0004\b\n\u0010\u000bJ'\u0010\u0012\u001a\u00020\t2\u0006\u0010\r\u001a\u00020\f2\u0006\u0010\u000f\u001a\u00020\u000e2\b\u0010\u0011\u001a\u0004\u0018\u00010\u0010¢\u0006\u0004\b\u0012\u0010\u0013J\u001f\u0010\u0014\u001a\u00020\t2\u0006\u0010\r\u001a\u00020\f2\u0006\u0010\u000f\u001a\u00020\u000eH\u0002¢\u0006\u0004\b\u0014\u0010\u0015J\u000f\u0010\u0016\u001a\u00020\tH\u0002¢\u0006\u0004\b\u0016\u0010\u0003J\u0017\u0010\u0017\u001a\u00020\t2\u0006\u0010\u000f\u001a\u00020\u000eH\u0002¢\u0006\u0004\b\u0017\u0010\u0018J\u001f\u0010\u001c\u001a\u00020\t2\u0006\u0010\u001a\u001a\u00020\u00192\u0006\u0010\u001b\u001a\u00020\u0004H\u0002¢\u0006\u0004\b\u001c\u0010\u001dJ/\u0010\"\u001a\u00020\t2\u0006\u0010\r\u001a\u00020\f2\u0006\u0010\u000f\u001a\u00020\u000e2\u0006\u0010\u001f\u001a\u00020\u001e2\u0006\u0010!\u001a\u00020 H\u0002¢\u0006\u0004\b\"\u0010#J\u001f\u0010$\u001a\u00020\t2\u0006\u0010\r\u001a\u00020\f2\u0006\u0010\u000f\u001a\u00020\u000eH\u0002¢\u0006\u0004\b$\u0010\u0015R*\u0010,\u001a\n\u0012\u0006\u0012\u0004\u0018\u00010\u00040%8\u0006@\u0006X\u0086\u000e¢\u0006\u0012\n\u0004\b&\u0010'\u001a\u0004\b(\u0010)\"\u0004\b*\u0010+R\u0014\u00100\u001a\u00020-8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b.\u0010/R\u0014\u00103\u001a\u00020\u001e8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b1\u00102R\u0014\u00105\u001a\u00020\u001e8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b4\u00102R\u0016\u00109\u001a\u0002068\u0002@\u0002X\u0082.¢\u0006\u0006\n\u0004\b7\u00108R\u0016\u0010=\u001a\u00020:8\u0002@\u0002X\u0082.¢\u0006\u0006\n\u0004\b;\u0010<R\u0016\u0010A\u001a\u00020>8\u0002@\u0002X\u0082.¢\u0006\u0006\n\u0004\b?\u0010@¨\u0006C"}, d2 = {"Lx50/a;", "", "<init>", "()V", "", "flag", "", "o", "(Ljava/lang/String;)Z", "Llg0/e0;", "r", "(Ljava/lang/String;)V", "Landroid/content/Context;", "context", "Landroid/content/Intent;", "intent", "Lx50/e;", "callback", "s", "(Landroid/content/Context;Landroid/content/Intent;Lx50/e;)V", "m", "(Landroid/content/Context;Landroid/content/Intent;)V", "l", "k", "(Landroid/content/Intent;)V", "Landroid/app/NotificationManager;", "notificationManager", "channel", "n", "(Landroid/app/NotificationManager;Ljava/lang/String;)V", "Lx50/a$a;", "notify", "Ljava/lang/Runnable;", "runnable", "p", "(Landroid/content/Context;Landroid/content/Intent;Lx50/a$a;Ljava/lang/Runnable;)V", "q", "", "b", "Ljava/util/List;", "getShowFlags", "()Ljava/util/List;", "setShowFlags", "(Ljava/util/List;)V", "showFlags", "", "c", "J", "SECOND", "d", "Lx50/a$a;", "sNotify1", "e", "sNotify2", "Landroid/app/AlarmManager;", "f", "Landroid/app/AlarmManager;", "alarmManager", "Landroid/app/PendingIntent;", "g", "Landroid/app/PendingIntent;", "pendingIntent", "Landroid/os/Handler;", "h", "Landroid/os/Handler;", "handler", "a", "wakeup-juven_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
public final class C3631a {
    public static ChangeQuickRedirect changeQuickRedirect;

    public static AlarmManager alarmManager;

    public static PendingIntent pendingIntent;

    public static Handler handler;
    public static final C3631a a = new C3631a();

    public static List<String> showFlags = new ArrayList();

    public static final long SECOND = TimeUnit.SECONDS.toMillis(1);

    public static final C1210a sNotify1 = new C1210a(10101, "AA_TAG1", "sm_lkr_ntf_hl_pr_chn_id_7355608", 101);

    public static final C1210a sNotify2 = new C1210a(10102, "AA_TAG2", "popup_ntf_hl_pr_chn_id_7355608", 102);

    @Metadata(d1 = {"\u0000\u0016\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0014\b\u0002\u0018\u00002\u00020\u0001B'\u0012\u0006\u0010\u0003\u001a\u00020\u0002\u0012\u0006\u0010\u0005\u001a\u00020\u0004\u0012\u0006\u0010\u0006\u001a\u00020\u0004\u0012\u0006\u0010\u0007\u001a\u00020\u0002¢\u0006\u0004\b\b\u0010\tR\"\u0010\u0003\u001a\u00020\u00028\u0006@\u0006X\u0086\u000e¢\u0006\u0012\n\u0004\b\n\u0010\u000b\u001a\u0004\b\f\u0010\r\"\u0004\b\u000e\u0010\u000fR\"\u0010\u0005\u001a\u00020\u00048\u0006@\u0006X\u0086\u000e¢\u0006\u0012\n\u0004\b\f\u0010\u0010\u001a\u0004\b\u0011\u0010\u0012\"\u0004\b\u0013\u0010\u0014R\"\u0010\u0006\u001a\u00020\u00048\u0006@\u0006X\u0086\u000e¢\u0006\u0012\n\u0004\b\u0015\u0010\u0010\u001a\u0004\b\n\u0010\u0012\"\u0004\b\u0016\u0010\u0014R\"\u0010\u0007\u001a\u00020\u00028\u0006@\u0006X\u0086\u000e¢\u0006\u0012\n\u0004\b\u0011\u0010\u000b\u001a\u0004\b\u0015\u0010\r\"\u0004\b\u0017\u0010\u000f¨\u0006\u0018"}, d2 = {"Lx50/a$a;", "", "", "id", "", "tag", "channel", "msgId", "<init>", "(ILjava/lang/String;Ljava/lang/String;I)V", "a", "I", "b", "()I", "setId", "(I)V", "Ljava/lang/String;", "d", "()Ljava/lang/String;", "setTag", "(Ljava/lang/String;)V", "c", "setChannel", "setMsgId", "wakeup-juven_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
    public static final class C1210a {
        public static ChangeQuickRedirect changeQuickRedirect;

        public int id;

        public String tag;

        public String channel;

        public int msgId;

        public C1210a(int i, String str, String str2, int i2) {
            this.id = i;
            this.tag = str;
            this.channel = str2;
            this.msgId = i2;
        }

        public final String getChannel() {
            return this.channel;
        }

        public final int getId() {
            return this.id;
        }

        public final int getMsgId() {
            return this.msgId;
        }

        public final String getTag() {
            return this.tag;
        }
    }

    @Metadata(d1 = {"\u0000$\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0007\b\u0002\u0018\u00002\u00020\u0001B\u0017\u0012\u0006\u0010\u0003\u001a\u00020\u0002\u0012\u0006\u0010\u0005\u001a\u00020\u0004¢\u0006\u0004\b\u0006\u0010\u0007J\u0017\u0010\u000b\u001a\u00020\n2\u0006\u0010\t\u001a\u00020\bH\u0016¢\u0006\u0004\b\u000b\u0010\fR\u0017\u0010\u0003\u001a\u00020\u00028\u0006¢\u0006\f\n\u0004\b\r\u0010\u000e\u001a\u0004\b\u000f\u0010\u0010¨\u0006\u0011"}, d2 = {"Lx50/a$b;", "Landroid/os/Handler;", "Landroid/content/Context;", "context", "Landroid/os/Looper;", "looper", "<init>", "(Landroid/content/Context;Landroid/os/Looper;)V", "Landroid/os/Message;", "msg", "Llg0/e0;", "handleMessage", "(Landroid/os/Message;)V", "a", "Landroid/content/Context;", "getContext", "()Landroid/content/Context;", "wakeup-juven_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
    public static final class b extends Handler {
        public static ChangeQuickRedirect changeQuickRedirect;

        public final Context context;

        public b(Context context, Looper looper) {
            super(looper);
            this.context = context;
        }

        @Override
        public void handleMessage(Message msg) {
            if (PatchProxy.proxy(new Object[]{msg}, this, changeQuickRedirect, false, 34558, new Class[]{Message.class}, Void.TYPE).isSupported) {
                return;
            }
            super.handleMessage(msg);
            Object systemService = this.context.getSystemService("notification");
            n.g(systemService, "null cannot be cast to non-null type android.app.NotificationManager");
            NotificationManager notificationManager = (NotificationManager) systemService;
            C1210a c1210a = msg.what == C3631a.sNotify1.getMsgId() ? C3631a.sNotify1 : C3631a.sNotify2;
            notificationManager.cancel(c1210a.getTag(), c1210a.getId());
        }
    }

    @Metadata(d1 = {"\u0000\u001e\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u000b\b\u0002\u0018\u00002\u00020\u0001B\u0017\u0012\u0006\u0010\u0003\u001a\u00020\u0002\u0012\u0006\u0010\u0005\u001a\u00020\u0004¢\u0006\u0004\b\u0006\u0010\u0007J\u000f\u0010\t\u001a\u00020\bH\u0016¢\u0006\u0004\b\t\u0010\nR\u0017\u0010\u0003\u001a\u00020\u00028\u0006¢\u0006\f\n\u0004\b\u000b\u0010\f\u001a\u0004\b\r\u0010\u000eR\u0017\u0010\u0005\u001a\u00020\u00048\u0006¢\u0006\f\n\u0004\b\u000f\u0010\u0010\u001a\u0004\b\u0011\u0010\u0012¨\u0006\u0013"}, d2 = {"Lx50/a$c;", "Ljava/lang/Runnable;", "Landroid/content/Context;", "context", "Landroid/content/Intent;", "intent", "<init>", "(Landroid/content/Context;Landroid/content/Intent;)V", "Llg0/e0;", "run", "()V", "a", "Landroid/content/Context;", "getContext", "()Landroid/content/Context;", "b", "Landroid/content/Intent;", "getIntent", "()Landroid/content/Intent;", "wakeup-juven_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
    public static final class c implements Runnable {
        public static ChangeQuickRedirect changeQuickRedirect;

        public final Context context;

        public final Intent intent;

        public c(Context context, Intent intent) {
            this.context = context;
            this.intent = intent;
        }

        @Override
        public void run() {
            if (PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 34559, new Class[0], Void.TYPE).isSupported) {
                return;
            }
            C3631a.h(C3631a.a, this.context, this.intent);
        }
    }

    @Metadata(d1 = {"\u0000\u0018\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u000b\b\u0002\u0018\u00002\u00020\u0001B\u0017\u0012\u0006\u0010\u0003\u001a\u00020\u0002\u0012\u0006\u0010\u0004\u001a\u00020\u0001¢\u0006\u0004\b\u0005\u0010\u0006J\u000f\u0010\b\u001a\u00020\u0007H\u0016¢\u0006\u0004\b\b\u0010\tR\u0017\u0010\u0003\u001a\u00020\u00028\u0006¢\u0006\f\n\u0004\b\n\u0010\u000b\u001a\u0004\b\f\u0010\rR\u0017\u0010\u0004\u001a\u00020\u00018\u0006¢\u0006\f\n\u0004\b\u000e\u0010\u000f\u001a\u0004\b\u0010\u0010\u0011¨\u0006\u0012"}, d2 = {"Lx50/a$d;", "Ljava/lang/Runnable;", "Landroid/app/PendingIntent;", "pendingIntent", "runnable", "<init>", "(Landroid/app/PendingIntent;Ljava/lang/Runnable;)V", "Llg0/e0;", "run", "()V", "a", "Landroid/app/PendingIntent;", "getPendingIntent", "()Landroid/app/PendingIntent;", "b", "Ljava/lang/Runnable;", "getRunnable", "()Ljava/lang/Runnable;", "wakeup-juven_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
    public static final class d implements Runnable {
        public static ChangeQuickRedirect changeQuickRedirect;

        public final PendingIntent pendingIntent;

        public final Runnable runnable;

        public d(PendingIntent pendingIntent, Runnable runnable) {
            this.pendingIntent = pendingIntent;
            this.runnable = runnable;
        }

        @Override
        public void run() {
            if (PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 34560, new Class[0], Void.TYPE).isSupported) {
                return;
            }
            try {
                this.pendingIntent.send();
            } catch (Exception e) {
                e.printStackTrace();
                this.runnable.run();
            }
        }
    }

    @Metadata(d1 = {"\u0000\u001e\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0011\b\u0002\u0018\u00002\u0016\u0012\u0006\u0012\u0004\u0018\u00010\u00020\u0001j\n\u0012\u0006\u0012\u0004\u0018\u00010\u0002`\u0003B\u001f\u0012\u0006\u0010\u0005\u001a\u00020\u0004\u0012\u0006\u0010\u0007\u001a\u00020\u0006\u0012\u0006\u0010\b\u001a\u00020\u0002¢\u0006\u0004\b\t\u0010\nR\u0017\u0010\u0005\u001a\u00020\u00048\u0006¢\u0006\f\n\u0004\b\u000b\u0010\f\u001a\u0004\b\r\u0010\u000eR\u0017\u0010\u0007\u001a\u00020\u00068\u0006¢\u0006\f\n\u0004\b\u000f\u0010\u0010\u001a\u0004\b\u0011\u0010\u0012R\u0017\u0010\b\u001a\u00020\u00028\u0006¢\u0006\f\n\u0004\b\u0013\u0010\u0014\u001a\u0004\b\u0015\u0010\u0016¨\u0006\u0017"}, d2 = {"Lx50/a$e;", "Ljava/util/ArrayList;", "Ljava/lang/Runnable;", "Lkotlin/collections/ArrayList;", "Landroid/content/Context;", "context", "Landroid/content/Intent;", "intent", "runnable", "<init>", "(Landroid/content/Context;Landroid/content/Intent;Ljava/lang/Runnable;)V", "a", "Landroid/content/Context;", "getContext", "()Landroid/content/Context;", "b", "Landroid/content/Intent;", "getIntent", "()Landroid/content/Intent;", "c", "Ljava/lang/Runnable;", "getRunnable", "()Ljava/lang/Runnable;", "wakeup-juven_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
    public static final class e extends ArrayList<Runnable> {
        public static ChangeQuickRedirect changeQuickRedirect;

        public final Context context;

        public final Intent intent;

        public final Runnable runnable;

        public e(Context context, Intent intent, Runnable runnable) {
            this.context = context;
            this.intent = intent;
            this.runnable = runnable;
            add(new Runnable() {
                @Override
                public final void run() {
                    C3631a.e.l(C3631a.e.this);
                }
            });
            add(new Runnable() {
                @Override
                public final void run() {
                    C3631a.e.m(C3631a.e.this);
                }
            });
            add(new Runnable() {
                @Override
                public final void run() {
                    C3631a.e.o(C3631a.e.this);
                }
            });
        }

        public static final void l(e eVar) {
            if (PatchProxy.proxy(new Object[]{eVar}, (Object) null, changeQuickRedirect, true, 34561, new Class[]{e.class}, Void.TYPE).isSupported) {
                return;
            }
            C3631a c3631a = C3631a.a;
            Context context = eVar.context;
            Object clone = eVar.intent.clone();
            n.g(clone, "null cannot be cast to non-null type android.content.Intent");
            C3631a.g(c3631a, context, (Intent) clone, C3631a.sNotify1, eVar.runnable);
        }

        public static final void m(e eVar) {
            if (PatchProxy.proxy(new Object[]{eVar}, (Object) null, changeQuickRedirect, true, 34562, new Class[]{e.class}, Void.TYPE).isSupported) {
                return;
            }
            C3631a c3631a = C3631a.a;
            Context context = eVar.context;
            Object clone = eVar.intent.clone();
            n.g(clone, "null cannot be cast to non-null type android.content.Intent");
            C3631a.g(c3631a, context, (Intent) clone, C3631a.sNotify2, eVar.runnable);
        }

        public static final void o(e eVar) {
            if (PatchProxy.proxy(new Object[]{eVar}, (Object) null, changeQuickRedirect, true, 34563, new Class[]{e.class}, Void.TYPE).isSupported) {
                return;
            }
            C3631a c3631a = C3631a.a;
            Context context = eVar.context;
            Object clone = eVar.intent.clone();
            n.g(clone, "null cannot be cast to non-null type android.content.Intent");
            C3631a.b(c3631a, context, (Intent) clone);
        }

        @Override
        public final boolean contains(Object obj) {
            PatchProxyResult proxy = PatchProxy.proxy(new Object[]{obj}, this, changeQuickRedirect, false, 34567, new Class[]{Object.class}, Boolean.TYPE);
            if (proxy.isSupported) {
                return ((Boolean) proxy.result).booleanValue();
            }
            if (obj != null ? obj instanceof Runnable : true) {
                return p((Runnable) obj);
            }
            return false;
        }

        @Override
        public final int indexOf(Object obj) {
            PatchProxyResult proxy = PatchProxy.proxy(new Object[]{obj}, this, changeQuickRedirect, false, 34571, new Class[]{Object.class}, Integer.TYPE);
            if (proxy.isSupported) {
                return ((Integer) proxy.result).intValue();
            }
            if (obj != null ? obj instanceof Runnable : true) {
                return t((Runnable) obj);
            }
            return -1;
        }

        @Override
        public final int lastIndexOf(Object obj) {
            PatchProxyResult proxy = PatchProxy.proxy(new Object[]{obj}, this, changeQuickRedirect, false, 34573, new Class[]{Object.class}, Integer.TYPE);
            if (proxy.isSupported) {
                return ((Integer) proxy.result).intValue();
            }
            if (obj != null ? obj instanceof Runnable : true) {
                return u((Runnable) obj);
            }
            return -1;
        }

        public boolean p(Runnable runnable) {
            PatchProxyResult proxy = PatchProxy.proxy(new Object[]{runnable}, this, changeQuickRedirect, false, 34566, new Class[]{Runnable.class}, Boolean.TYPE);
            return proxy.isSupported ? ((Boolean) proxy.result).booleanValue() : super.contains(runnable);
        }

        @Override
        public final boolean remove(Object obj) {
            PatchProxyResult proxy = PatchProxy.proxy(new Object[]{obj}, this, changeQuickRedirect, false, 34565, new Class[]{Object.class}, Boolean.TYPE);
            if (proxy.isSupported) {
                return ((Boolean) proxy.result).booleanValue();
            }
            if (obj != null ? obj instanceof Runnable : true) {
                return w((Runnable) obj);
            }
            return false;
        }

        public int s() {
            PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 34574, new Class[0], Integer.TYPE);
            return proxy.isSupported ? ((Integer) proxy.result).intValue() : super.size();
        }

        @Override
        public final int size() {
            PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 34575, new Class[0], Integer.TYPE);
            return proxy.isSupported ? ((Integer) proxy.result).intValue() : s();
        }

        public int t(Runnable runnable) {
            PatchProxyResult proxy = PatchProxy.proxy(new Object[]{runnable}, this, changeQuickRedirect, false, 34570, new Class[]{Runnable.class}, Integer.TYPE);
            return proxy.isSupported ? ((Integer) proxy.result).intValue() : super.indexOf(runnable);
        }

        public int u(Runnable runnable) {
            PatchProxyResult proxy = PatchProxy.proxy(new Object[]{runnable}, this, changeQuickRedirect, false, 34572, new Class[]{Runnable.class}, Integer.TYPE);
            return proxy.isSupported ? ((Integer) proxy.result).intValue() : super.lastIndexOf(runnable);
        }

        public boolean w(Runnable runnable) {
            PatchProxyResult proxy = PatchProxy.proxy(new Object[]{runnable}, this, changeQuickRedirect, false, 34564, new Class[]{Runnable.class}, Boolean.TYPE);
            return proxy.isSupported ? ((Boolean) proxy.result).booleanValue() : super.remove(runnable);
        }
    }

    @Metadata(d1 = {"\u0000\b\n\u0002\u0018\u0002\n\u0002\b\u0003\u0010\u0003\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0001\u0010\u0002"}, d2 = {"Llg0/e0;", "invoke", "()V", "<anonymous>"}, k = 3, mv = {1, 8, 0})
    public static final class e0 extends p implements a<lg0.e0> {
        public static ChangeQuickRedirect changeQuickRedirect;
        public final Context s;
        public final Intent t;

        public e0(Context context, Intent intent) {
            super(0);
            this.s = context;
            this.t = intent;
        }

        @Override
        public lg0.e0 invoke() {
            PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 34577, new Class[0], Object.class);
            if (proxy.isSupported) {
                return proxy.result;
            }
            invoke2();
            return lg0.e0.a;
        }

        public final void invoke2() {
            if (PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 34576, new Class[0], Void.TYPE).isSupported) {
                return;
            }
            ChangeQuickRedirect changeQuickRedirect2 = C3631a.changeQuickRedirect;
            C3631a.pendingIntent = PendingIntent.getActivity(this.s, 10102, this.t, 134217728);
            Object systemService = this.s.getSystemService("alarm");
            n.g(systemService, "null cannot be cast to non-null type android.app.AlarmManager");
            C3631a.alarmManager = (AlarmManager) systemService;
            AlarmManager alarmManager = C3631a.alarmManager;
            PendingIntent pendingIntent = null;
            if (alarmManager == null) {
                n.z("alarmManager");
                alarmManager = null;
            }
            PendingIntent pendingIntent2 = C3631a.pendingIntent;
            if (pendingIntent2 == null) {
                n.z("pendingIntent");
                pendingIntent2 = null;
            }
            alarmManager.cancel(pendingIntent2);
            AlarmManager alarmManager2 = C3631a.alarmManager;
            if (alarmManager2 == null) {
                n.z("alarmManager");
                alarmManager2 = null;
            }
            long currentTimeMillis = System.currentTimeMillis() + 200;
            PendingIntent pendingIntent3 = C3631a.pendingIntent;
            if (pendingIntent3 == null) {
                n.z("pendingIntent");
            } else {
                pendingIntent = pendingIntent3;
            }
            alarmManager2.set(0, currentTimeMillis, pendingIntent);
            C3631a.h(C3631a.a, this.s, this.t);
        }
    }

    @Metadata(d1 = {"\u0000\u0014\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0005\u001a\u00020\u00042\u0006\u0010\u0001\u001a\u00020\u00002\f\u0010\u0003\u001a\b\u0012\u0004\u0012\u00020\u00000\u0002H\n¢\u0006\u0004\b\u0005\u0010\u0006"}, d2 = {"Lqs/r4;", "<anonymous parameter 0>", "Lqs/z4;", "proxy", "Llg0/e0;", "a", "(Lqs/r4;Lqs/z4;)V"}, k = 3, mv = {1, 8, 0})
    public static final class g extends p implements ah0.p<r4, z4<r4>, lg0.e0> {
        public static ChangeQuickRedirect changeQuickRedirect;
        public static final g s = new g();

        public g() {
            super(2);
        }

        public final void a(r4 r4Var, z4<r4> z4Var) {
            if (!PatchProxy.proxy(new Object[]{r4Var, z4Var}, this, changeQuickRedirect, false, 34578, new Class[]{r4.class, z4.class}, Void.TYPE).isSupported && com.wifitutu.link.foundation.kernel.d.d().r().getForegrounding()) {
                z50.h.b("wake_up", "MSG_APP_FOREGROUND");
                C3631a.a(C3631a.a);
                e.a.a(z4Var, null, 1, null);
            }
        }

        @Override
        public lg0.e0 invoke(r4 r4Var, z4<r4> z4Var) {
            PatchProxyResult proxy = PatchProxy.proxy(new Object[]{r4Var, z4Var}, this, changeQuickRedirect, false, 34579, new Class[]{Object.class, Object.class}, Object.class);
            if (proxy.isSupported) {
                return proxy.result;
            }
            a(r4Var, z4Var);
            return lg0.e0.a;
        }
    }

    @Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0002\u001a\u00020\u0001*\u00020\u0000H\u008a@¢\u0006\u0004\b\u0002\u0010\u0003"}, d2 = {"Lvj0/l0;", "Llg0/e0;", "<anonymous>", "(Lvj0/l0;)V"}, k = 3, mv = {1, 8, 0})
    @f(c = "com.wifitutu.wakeup.juven.open.ActivityStart$startActivity$2", f = "ActivityStart.kt", l = {197}, m = "invokeSuspend")
    public static final class h extends l implements ah0.p<InterfaceC3487l0, rg0.d<? super lg0.e0>, Object> {
        public static ChangeQuickRedirect changeQuickRedirect;
        public Object a;
        public int b;
        public int c;
        public final e d;
        public final InterfaceC3635e e;

        public h(e eVar, InterfaceC3635e interfaceC3635e, rg0.d<? super h> dVar) {
            super(2, dVar);
            this.d = eVar;
            this.e = interfaceC3635e;
        }

        @Override
        public final rg0.d<lg0.e0> create(Object obj, rg0.d<?> dVar) {
            PatchProxyResult proxy = PatchProxy.proxy(new Object[]{obj, dVar}, this, changeQuickRedirect, false, 34581, new Class[]{Object.class, rg0.d.class}, rg0.d.class);
            return proxy.isSupported ? (rg0.d) proxy.result : new h(this.d, this.e, dVar);
        }

        @Override
        public Object invoke(InterfaceC3487l0 interfaceC3487l0, rg0.d<? super lg0.e0> dVar) {
            PatchProxyResult proxy = PatchProxy.proxy(new Object[]{interfaceC3487l0, dVar}, this, changeQuickRedirect, false, 34583, new Class[]{Object.class, Object.class}, Object.class);
            return proxy.isSupported ? proxy.result : invoke2(interfaceC3487l0, dVar);
        }

        public final Object invoke2(InterfaceC3487l0 interfaceC3487l0, rg0.d<? super lg0.e0> dVar) {
            PatchProxyResult proxy = PatchProxy.proxy(new Object[]{interfaceC3487l0, dVar}, this, changeQuickRedirect, false, 34582, new Class[]{InterfaceC3487l0.class, rg0.d.class}, Object.class);
            return proxy.isSupported ? proxy.result : ((h) create(interfaceC3487l0, dVar)).invokeSuspend(lg0.e0.a);
        }

        @Override
        public final java.lang.Object invokeSuspend(java.lang.Object r10) {
            throw new UnsupportedOperationException("Method not decompiled: lg0.C3631a.h.invokeSuspend(java.lang.Object):java.lang.Object");
        }
    }

    public static final void a(C3631a c3631a) {
        if (PatchProxy.proxy(new Object[]{c3631a}, (Object) null, changeQuickRedirect, true, 34555, new Class[]{C3631a.class}, Void.TYPE).isSupported) {
            return;
        }
        c3631a.l();
    }

    public static final void b(C3631a c3631a, Context context, Intent intent) {
        if (PatchProxy.proxy(new Object[]{c3631a, context, intent}, (Object) null, changeQuickRedirect, true, 34557, new Class[]{C3631a.class, Context.class, Intent.class}, Void.TYPE).isSupported) {
            return;
        }
        c3631a.m(context, intent);
    }

    public static final void g(C3631a c3631a, Context context, Intent intent, C1210a c1210a, Runnable runnable) {
        if (PatchProxy.proxy(new Object[]{c3631a, context, intent, c1210a, runnable}, (Object) null, changeQuickRedirect, true, 34556, new Class[]{C3631a.class, Context.class, Intent.class, C1210a.class, Runnable.class}, Void.TYPE).isSupported) {
            return;
        }
        c3631a.p(context, intent, c1210a, runnable);
    }

    public static final void h(C3631a c3631a, Context context, Intent intent) {
        if (PatchProxy.proxy(new Object[]{c3631a, context, intent}, (Object) null, changeQuickRedirect, true, 34554, new Class[]{C3631a.class, Context.class, Intent.class}, Void.TYPE).isSupported) {
            return;
        }
        c3631a.q(context, intent);
    }

    public final void k(Intent intent) {
        Class<?> cls = Boolean.TYPE;
        if (PatchProxy.proxy(new Object[]{intent}, this, changeQuickRedirect, false, 34549, new Class[]{Intent.class}, Void.TYPE).isSupported) {
            return;
        }
        String str = Build.MANUFACTURER;
        boolean v = t.v("xiaomi", str, true);
        Class<?> cls2 = Integer.TYPE;
        if (v) {
            try {
                Method declaredMethod = intent.getClass().getDeclaredMethod("addMiuiFlags", cls2);
                declaredMethod.setAccessible(true);
                declaredMethod.invoke(intent, 2);
                return;
            } catch (Throwable th) {
                th.printStackTrace();
                return;
            }
        }
        if (!t.v("vivo", str, true)) {
            if (t.v("oppo", str, true)) {
                try {
                    Method declaredMethod2 = intent.getClass().getDeclaredMethod("setOplusFlags", cls2);
                    declaredMethod2.setAccessible(true);
                    declaredMethod2.invoke(intent, 512);
                    return;
                } catch (Throwable th2) {
                    th2.printStackTrace();
                    return;
                }
            }
            return;
        }
        try {
            Method declaredMethod3 = intent.getClass().getDeclaredMethod("setForceStart", cls);
            declaredMethod3.setAccessible(true);
            declaredMethod3.invoke(intent, Boolean.TRUE);
        } catch (Throwable th3) {
            th3.printStackTrace();
        }
        try {
            Method declaredMethod4 = intent.getClass().getDeclaredMethod("setIsVivoWidget", cls);
            declaredMethod4.setAccessible(true);
            declaredMethod4.invoke(intent, Boolean.TRUE);
        } catch (Throwable th4) {
            th4.printStackTrace();
        }
    }

    public final void l() {
        if (PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 34548, new Class[0], Void.TYPE).isSupported) {
            return;
        }
        try {
            AlarmManager alarmManager2 = alarmManager;
            PendingIntent pendingIntent2 = null;
            if (alarmManager2 == null) {
                n.z("alarmManager");
                alarmManager2 = null;
            }
            PendingIntent pendingIntent3 = pendingIntent;
            if (pendingIntent3 == null) {
                n.z("pendingIntent");
            } else {
                pendingIntent2 = pendingIntent3;
            }
            alarmManager2.cancel(pendingIntent2);
        } catch (Exception e2) {
            e2.printStackTrace();
        }
    }

    public final void m(Context context, Intent intent) {
        if (!PatchProxy.proxy(new Object[]{context, intent}, this, changeQuickRedirect, false, 34545, new Class[]{Context.class, Intent.class}, Void.TYPE).isSupported && Build.VERSION.SDK_INT >= 29) {
            d6.k(new e0(context, intent));
        }
    }

    public final void n(NotificationManager notificationManager, String channel) {
        if (!PatchProxy.proxy(new Object[]{notificationManager, channel}, this, changeQuickRedirect, false, 34550, new Class[]{NotificationManager.class, String.class}, Void.TYPE).isSupported && Build.VERSION.SDK_INT >= 26 && notificationManager.getNotificationChannel(channel) == null) {
            NotificationChannel notificationChannel = new NotificationChannel(channel, "Default", 2);
            notificationChannel.setDescription("Default");
            notificationChannel.setLockscreenVisibility(-1);
            notificationChannel.enableLights(false);
            notificationChannel.enableVibration(false);
            notificationChannel.setShowBadge(false);
            notificationChannel.setSound(null, null);
            notificationChannel.setBypassDnd(true);
            notificationManager.createNotificationChannel(notificationChannel);
        }
    }

    public final boolean o(String flag) {
        PatchProxyResult proxy = PatchProxy.proxy(new Object[]{flag}, this, changeQuickRedirect, false, 34546, new Class[]{String.class}, Boolean.TYPE);
        return proxy.isSupported ? ((Boolean) proxy.result).booleanValue() : showFlags.contains(flag);
    }

    public final void p(Context context, Intent intent, C1210a notify, Runnable runnable) {
        if (PatchProxy.proxy(new Object[]{context, intent, notify, runnable}, this, changeQuickRedirect, false, 34551, new Class[]{Context.class, Intent.class, C1210a.class, Runnable.class}, Void.TYPE).isSupported) {
            return;
        }
        PendingIntent activity = PendingIntent.getActivity(context, notify.getId(), intent, 134217728);
        Handler handler2 = null;
        try {
            Object systemService = context.getSystemService("notification");
            n.g(systemService, "null cannot be cast to non-null type android.app.NotificationManager");
            NotificationManager notificationManager = (NotificationManager) systemService;
            n(notificationManager, notify.getChannel());
            notificationManager.cancel(notify.getTag(), notify.getId());
            RemoteViews remoteViews = new RemoteViews(context.getPackageName(), v50.a.layout_ntf);
            notificationManager.notify(notify.getTag(), notify.getId(), new NotificationCompat.Builder(context, notify.getChannel()).setSmallIcon(context.getApplicationInfo().icon).setFullScreenIntent(activity, true).setCustomContentView(remoteViews).setCustomBigContentView(remoteViews).setCustomHeadsUpContentView(remoteViews).setVisibility(-1).setPriority(-1).setOngoing(true).setVibrate((long[]) null).setSound((Uri) null).setDefaults(8).build());
        } catch (Exception e2) {
            e2.printStackTrace();
        }
        Handler handler3 = handler;
        if (handler3 == null) {
            n.z("handler");
            handler3 = null;
        }
        handler3.removeMessages(notify.getMsgId());
        Handler handler4 = handler;
        if (handler4 == null) {
            n.z("handler");
        } else {
            handler2 = handler4;
        }
        handler2.sendEmptyMessageDelayed(notify.getMsgId(), SECOND);
        new d(activity, runnable).run();
    }

    public final void q(Context context, Intent intent) {
        if (PatchProxy.proxy(new Object[]{context, intent}, this, changeQuickRedirect, false, 34552, new Class[]{Context.class, Intent.class}, Void.TYPE).isSupported) {
            return;
        }
        try {
            context.startActivity(intent);
        } catch (Exception unused) {
        }
    }

    public final void r(String flag) {
        if (PatchProxy.proxy(new Object[]{flag}, this, changeQuickRedirect, false, 34547, new Class[]{String.class}, Void.TYPE).isSupported) {
            return;
        }
        showFlags.add(flag);
    }

    public final void s(Context context, Intent intent, InterfaceC3635e callback) {
        if (PatchProxy.proxy(new Object[]{context, intent, callback}, this, changeQuickRedirect, false, 34553, new Class[]{Context.class, Intent.class, InterfaceC3635e.class}, Void.TYPE).isSupported) {
            return;
        }
        handler = new b(context, Looper.getMainLooper());
        g.a.b(ProcessingEnv.INSTANCE.a(), null, g.s, 1, null);
        intent.setFlags(1352695808);
        q(context, intent);
        k(intent);
        vj0.g.d(com.wifitutu.link.foundation.kernel.d.d().getCoScopeUI(), (rg0.g) null, (n0) null, new h(new e(context, intent, new c(context, intent)), callback, null), 3, (Object) null);
    }
}