正在查看: 万能钥匙 v1.1.23 应用的 a.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: 万能钥匙 v1.1.23 应用的 a.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package x50;
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.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.facebook.react.uimanager.events.o;
import com.google.android.inner_exoplayer2.C;
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.Iterator;
import java.util.List;
import java.util.concurrent.TimeUnit;
import kotlin.Metadata;
import kotlin.jvm.internal.n;
import kotlin.jvm.internal.p;
import lg0.e0;
import qs.d6;
import qs.r4;
import qs.z4;
import tg0.l;
import tj0.t;
import vj0.i;
import vj0.l0;
import vj0.v0;
import x50.a;
@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.f16820f, "(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", "", bg.b.f9417c, "Ljava/util/List;", "getShowFlags", "()Ljava/util/List;", "setShowFlags", "(Ljava/util/List;)V", "showFlags", "", r0.c.f68529d, "J", "SECOND", bg.d.f9423d, "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 a {
public static ChangeQuickRedirect changeQuickRedirect;
public static AlarmManager alarmManager;
public static PendingIntent pendingIntent;
public static Handler handler;
public static final a f78730a = new a();
public static List<String> showFlags = new ArrayList();
public static final long SECOND = TimeUnit.SECONDS.toMillis(1);
public static final C2230a sNotify1 = new C2230a(10101, "AA_TAG1", "sm_lkr_ntf_hl_pr_chn_id_7355608", 101);
public static final C2230a sNotify2 = new C2230a(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", bg.b.f9417c, "()I", "setId", "(I)V", "Ljava/lang/String;", bg.d.f9423d, "()Ljava/lang/String;", "setTag", "(Ljava/lang/String;)V", r0.c.f68529d, "setChannel", "setMsgId", "wakeup-juven_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
public static final class C2230a {
public static ChangeQuickRedirect changeQuickRedirect;
public int id;
public String tag;
public String channel;
public int msgId;
public C2230a(int i11, String str, String str2, int i12) {
this.id = i11;
this.tag = str;
this.channel = str2;
this.msgId = i12;
}
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;
C2230a c2230a = msg.what == a.sNotify1.getMsgId() ? a.sNotify1 : a.sNotify2;
notificationManager.cancel(c2230a.getTag(), c2230a.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;", bg.b.f9417c, "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;
}
a.h(a.f78730a, 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;", bg.b.f9417c, "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 e11) {
e11.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;", bg.b.f9417c, "Landroid/content/Intent;", "getIntent", "()Landroid/content/Intent;", r0.c.f68529d, "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() {
a.e.l(a.e.this);
}
});
add(new Runnable() {
@Override
public final void run() {
a.e.m(a.e.this);
}
});
add(new Runnable() {
@Override
public final void run() {
a.e.o(a.e.this);
}
});
}
public static final void l(e eVar) {
if (PatchProxy.proxy(new Object[]{eVar}, null, changeQuickRedirect, true, 34561, new Class[]{e.class}, Void.TYPE).isSupported) {
return;
}
a aVar = a.f78730a;
Context context = eVar.context;
Object clone = eVar.intent.clone();
n.g(clone, "null cannot be cast to non-null type android.content.Intent");
a.g(aVar, context, (Intent) clone, a.sNotify1, eVar.runnable);
}
public static final void m(e eVar) {
if (PatchProxy.proxy(new Object[]{eVar}, null, changeQuickRedirect, true, 34562, new Class[]{e.class}, Void.TYPE).isSupported) {
return;
}
a aVar = a.f78730a;
Context context = eVar.context;
Object clone = eVar.intent.clone();
n.g(clone, "null cannot be cast to non-null type android.content.Intent");
a.g(aVar, context, (Intent) clone, a.sNotify2, eVar.runnable);
}
public static final void o(e eVar) {
if (PatchProxy.proxy(new Object[]{eVar}, null, changeQuickRedirect, true, 34563, new Class[]{e.class}, Void.TYPE).isSupported) {
return;
}
a aVar = a.f78730a;
Context context = eVar.context;
Object clone = eVar.intent.clone();
n.g(clone, "null cannot be cast to non-null type android.content.Intent");
a.b(aVar, 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 f extends p implements ah0.a<e0> {
public static ChangeQuickRedirect changeQuickRedirect;
public final Context f78750s;
public final Intent f78751t;
public f(Context context, Intent intent) {
super(0);
this.f78750s = context;
this.f78751t = intent;
}
@Override
public 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 e0.f58580a;
}
public final void invoke2() {
if (PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 34576, new Class[0], Void.TYPE).isSupported) {
return;
}
ChangeQuickRedirect changeQuickRedirect2 = a.changeQuickRedirect;
a.pendingIntent = PendingIntent.getActivity(this.f78750s, 10102, this.f78751t, C.BUFFER_FLAG_FIRST_SAMPLE);
Object systemService = this.f78750s.getSystemService(NotificationCompat.CATEGORY_ALARM);
n.g(systemService, "null cannot be cast to non-null type android.app.AlarmManager");
a.alarmManager = (AlarmManager) systemService;
AlarmManager alarmManager = a.alarmManager;
PendingIntent pendingIntent = null;
if (alarmManager == null) {
n.z("alarmManager");
alarmManager = null;
}
PendingIntent pendingIntent2 = a.pendingIntent;
if (pendingIntent2 == null) {
n.z("pendingIntent");
pendingIntent2 = null;
}
alarmManager.cancel(pendingIntent2);
AlarmManager alarmManager2 = a.alarmManager;
if (alarmManager2 == null) {
n.z("alarmManager");
alarmManager2 = null;
}
long currentTimeMillis = System.currentTimeMillis() + 200;
PendingIntent pendingIntent3 = a.pendingIntent;
if (pendingIntent3 == null) {
n.z("pendingIntent");
} else {
pendingIntent = pendingIntent3;
}
alarmManager2.set(0, currentTimeMillis, pendingIntent);
a.h(a.f78730a, this.f78750s, this.f78751t);
}
}
@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>, e0> {
public static ChangeQuickRedirect changeQuickRedirect;
public static final g f78752s = 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");
a.a(a.f78730a);
e.a.a(z4Var, null, 1, null);
}
}
@Override
public e0 mo1invoke(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 e0.f58580a;
}
}
@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})
@tg0.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<l0, rg0.d<? super e0>, Object> {
public static ChangeQuickRedirect changeQuickRedirect;
public Object f78753a;
public int f78754b;
public int f78755c;
public final e f78756d;
public final x50.e f78757e;
public h(e eVar, x50.e eVar2, rg0.d<? super h> dVar) {
super(2, dVar);
this.f78756d = eVar;
this.f78757e = eVar2;
}
@Override
public final rg0.d<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.f78756d, this.f78757e, dVar);
}
@Override
public Object mo1invoke(l0 l0Var, rg0.d<? super e0> dVar) {
PatchProxyResult proxy = PatchProxy.proxy(new Object[]{l0Var, dVar}, this, changeQuickRedirect, false, 34583, new Class[]{Object.class, Object.class}, Object.class);
return proxy.isSupported ? proxy.result : invoke2(l0Var, dVar);
}
public final Object invoke2(l0 l0Var, rg0.d<? super e0> dVar) {
PatchProxyResult proxy = PatchProxy.proxy(new Object[]{l0Var, dVar}, this, changeQuickRedirect, false, 34582, new Class[]{l0.class, rg0.d.class}, Object.class);
return proxy.isSupported ? proxy.result : ((h) create(l0Var, dVar)).invokeSuspend(e0.f58580a);
}
@Override
public final Object invokeSuspend(Object obj) {
Iterator<Runnable> it;
int i11;
PatchProxyResult proxy = PatchProxy.proxy(new Object[]{obj}, this, changeQuickRedirect, false, 34580, new Class[]{Object.class}, Object.class);
if (proxy.isSupported) {
return proxy.result;
}
Object c11 = sg0.c.c();
int i12 = this.f78755c;
if (i12 == 0) {
lg0.o.b(obj);
it = this.f78756d.iterator();
while (it.hasNext()) {
Runnable next = it.next();
if (next != null) {
next.run();
}
if (this.f78757e != null) {
i11 = 0;
if (i11 >= 3) {
}
}
}
return e0.f58580a;
}
if (i12 != 1) {
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
}
i11 = this.f78754b;
Iterator<Runnable> it2 = (Iterator) this.f78753a;
lg0.o.b(obj);
it = it2;
i11++;
if (i11 >= 3 && !this.f78757e.isOpen()) {
this.f78753a = it;
this.f78754b = i11;
this.f78755c = 1;
if (v0.a(100L, this) == c11) {
return c11;
}
i11++;
if (i11 >= 3) {
}
}
}
}
public static final void a(a aVar) {
if (PatchProxy.proxy(new Object[]{aVar}, null, changeQuickRedirect, true, 34555, new Class[]{a.class}, Void.TYPE).isSupported) {
return;
}
aVar.l();
}
public static final void b(a aVar, Context context, Intent intent) {
if (PatchProxy.proxy(new Object[]{aVar, context, intent}, null, changeQuickRedirect, true, 34557, new Class[]{a.class, Context.class, Intent.class}, Void.TYPE).isSupported) {
return;
}
aVar.m(context, intent);
}
public static final void g(a aVar, Context context, Intent intent, C2230a c2230a, Runnable runnable) {
if (PatchProxy.proxy(new Object[]{aVar, context, intent, c2230a, runnable}, null, changeQuickRedirect, true, 34556, new Class[]{a.class, Context.class, Intent.class, C2230a.class, Runnable.class}, Void.TYPE).isSupported) {
return;
}
aVar.p(context, intent, c2230a, runnable);
}
public static final void h(a aVar, Context context, Intent intent) {
if (PatchProxy.proxy(new Object[]{aVar, context, intent}, null, changeQuickRedirect, true, 34554, new Class[]{a.class, Context.class, Intent.class}, Void.TYPE).isSupported) {
return;
}
aVar.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 v11 = t.v("xiaomi", str, true);
Class<?> cls2 = Integer.TYPE;
if (v11) {
try {
Method declaredMethod = intent.getClass().getDeclaredMethod("addMiuiFlags", cls2);
declaredMethod.setAccessible(true);
declaredMethod.invoke(intent, 2);
return;
} catch (Throwable th2) {
th2.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 th3) {
th3.printStackTrace();
return;
}
}
return;
}
try {
Method declaredMethod3 = intent.getClass().getDeclaredMethod("setForceStart", cls);
declaredMethod3.setAccessible(true);
declaredMethod3.invoke(intent, Boolean.TRUE);
} catch (Throwable th4) {
th4.printStackTrace();
}
try {
Method declaredMethod4 = intent.getClass().getDeclaredMethod("setIsVivoWidget", cls);
declaredMethod4.setAccessible(true);
declaredMethod4.invoke(intent, Boolean.TRUE);
} catch (Throwable th5) {
th5.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 e11) {
e11.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 f(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, C2230a notify, Runnable runnable) {
if (PatchProxy.proxy(new Object[]{context, intent, notify, runnable}, this, changeQuickRedirect, false, 34551, new Class[]{Context.class, Intent.class, C2230a.class, Runnable.class}, Void.TYPE).isSupported) {
return;
}
PendingIntent activity = PendingIntent.getActivity(context, notify.getId(), intent, C.BUFFER_FLAG_FIRST_SAMPLE);
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(null).setSound(null).setDefaults(8).build());
} catch (Exception e11) {
e11.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, x50.e callback) {
if (PatchProxy.proxy(new Object[]{context, intent, callback}, this, changeQuickRedirect, false, 34553, new Class[]{Context.class, Intent.class, x50.e.class}, Void.TYPE).isSupported) {
return;
}
handler = new b(context, Looper.getMainLooper());
g.a.b(ProcessingEnv.INSTANCE.a(), null, g.f78752s, 1, null);
intent.setFlags(1352695808);
q(context, intent);
k(intent);
i.d(com.wifitutu.link.foundation.kernel.d.d().getCoScopeUI(), null, null, new h(new e(context, intent, new c(context, intent)), callback, null), 3, null);
}
}