APK反编译源代码展示 - 南明离火平台提供

应用版本信息
应用名称:My Hobby App
版本号:1.3.0
包名称:com.wargame

MD5 校验值:5f1b84d1c0d0613c76d15f8d65fbde50

反编译源代码说明

m0.java 文件包含反编译后的源代码,请注意,该内容仅供学习和参考使用,不得用于非法用途。


package n1;

import android.app.AlarmManager;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
import app.notifee.core.Logger;
import app.notifee.core.NotificationAlarmReceiver;
import app.notifee.core.model.NotificationModel;
import java.util.Iterator;
import java.util.List;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

public class m0 {

    public static final ExecutorService f13357a = Executors.newCachedThreadPool();

    public static PendingIntent b(String str) {
        try {
            Context context = ka.e.f12416a;
            Intent intent = new Intent(context, (Class<?>) NotificationAlarmReceiver.class);
            intent.putExtra("notificationId", str);
            return PendingIntent.getBroadcast(context, str.hashCode(), intent, 167772160);
        } catch (Exception e10) {
            Logger.e("NotifeeAlarmManager", "Unable to create AlarmManager intent", e10);
            return null;
        }
    }

    public static f7.a<Object, f7.i> c() {
        return new f7.a() {
            @Override
            public final Object a(f7.i iVar) {
                return m0.i(iVar);
            }
        };
    }

    public static f7.i d(final String str, f7.i iVar) {
        byte[] bArr;
        final ka.s sVar = (ka.s) iVar.k();
        if (sVar == null || sVar.f12442b == null || (bArr = sVar.f12443c) == null) {
            Logger.w("NotifeeAlarmManager", "Attempted to handle doScheduledWork but no notification data was found.");
            return null;
        }
        final Bundle b10 = ka.m.b(bArr);
        final NotificationModel notificationModel = new NotificationModel(ka.m.b(sVar.f12442b));
        return f1.v(notificationModel, b10).b(new f7.d() {
            @Override
            public final void a(f7.i iVar2) {
                m0.g(b10, notificationModel, str, sVar, iVar2);
            }
        });
    }

    public static Object e(f7.i iVar) {
        if (!iVar.o()) {
            return null;
        }
        Iterator it = ((List) iVar.k()).iterator();
        while (it.hasNext()) {
            PendingIntent b10 = b(((ka.s) it.next()).f12441a);
            AlarmManager a10 = ka.a.a();
            if (b10 != null) {
                a10.cancel(b10);
            }
        }
        return null;
    }

    public static void f(Bundle bundle) {
        final String string;
        if (bundle == null || (string = bundle.getString("notificationId")) == null) {
            return;
        }
        new o1.i(ka.e.f12416a).p(string).i(f13357a, new f7.a() {
            @Override
            public final Object a(f7.i iVar) {
                return m0.d(string, iVar);
            }
        }).b(new f7.d() {
            @Override
            public final void a(f7.i iVar) {
                m0.k(iVar);
            }
        });
    }

    public static void g(Bundle bundle, NotificationModel notificationModel, String str, ka.s sVar, f7.i iVar) {
        if (!iVar.o()) {
            Logger.e("NotifeeAlarmManager", "Failed to display notification", iVar.j());
            return;
        }
        if (!bundle.containsKey("repeatFrequency") || ka.m.a(bundle.get("repeatFrequency")) == -1) {
            o1.i.j(ka.e.f12416a).l(str);
            return;
        }
        ka.p pVar = new ka.p(bundle);
        pVar.a();
        h(notificationModel, pVar);
        o1.i.j(ka.e.f12416a).y(new ka.s(str, sVar.f12442b, ka.m.c(bundle), Boolean.TRUE));
    }

    public static void h(NotificationModel notificationModel, ka.p pVar) {
        PendingIntent b10 = b(notificationModel.c());
        AlarmManager a10 = ka.a.a();
        if (Build.VERSION.SDK_INT >= 31 && !a10.canScheduleExactAlarms()) {
            System.err.println("Missing SCHEDULE_EXACT_ALARM permission. Trigger not scheduled. See: https://notifee.app/react-native/docs/triggers#android-12-limitations");
            return;
        }
        pVar.a();
        boolean booleanValue = pVar.f12433e.booleanValue();
        long longValue = pVar.f12435g.longValue();
        if (booleanValue) {
            androidx.core.app.d.b(a10, 0, longValue, b10);
        } else {
            androidx.core.app.d.a(a10, 0, longValue, b10);
        }
    }

    public static Object i(f7.i iVar) {
        return o1.i.j(ka.e.f12416a).i(Boolean.TRUE).g(new f7.a() {
            @Override
            public final Object a(f7.i iVar2) {
                return m0.e(iVar2);
            }
        });
    }

    public static void k(f7.i iVar) {
        if (iVar.o()) {
            return;
        }
        Logger.e("NotifeeAlarmManager", "Failed to display notification", iVar.j());
    }

    public void l(f7.i iVar) {
        byte[] bArr;
        for (ka.s sVar : (List) iVar.k()) {
            byte[] bArr2 = sVar.f12442b;
            if (bArr2 != null && (bArr = sVar.f12443c) != null) {
                Bundle b10 = ka.m.b(bArr);
                NotificationModel notificationModel = new NotificationModel(ka.m.b(bArr2));
                if (ka.m.a(b10.get("type")) == 0) {
                    ka.p pVar = new ka.p(b10);
                    if (pVar.f12432d.booleanValue()) {
                        h(notificationModel, pVar);
                    }
                }
            }
        }
    }

    public void j() {
        Logger.d("NotifeeAlarmManager", "Reschedule Notifications on reboot");
        new o1.i(ka.e.f12416a).i(Boolean.TRUE).b(new f7.d() {
            @Override
            public final void a(f7.i iVar) {
                m0.this.l(iVar);
            }
        });
    }
}