APKPure v3.19.91版本的 MD5 值为:f9be25764b720fb55728dbddf2153619

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


package f4;

import android.app.Activity;
import android.app.Application;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.Context;
import android.content.res.Resources;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.os.Handler;
import android.os.Process;
import android.view.View;
import com.apkpure.aegon.R;
import com.apkpure.aegon.ads.topon.nativead.qdah;
import com.apkpure.aegon.aigc.c;
import com.apkpure.aegon.aigc.d;
import com.apkpure.aegon.app.newcard.impl.CategoryEnterCard;
import com.apkpure.aegon.application.AegonApplication;
import com.apkpure.aegon.application.RealApplicationLike;
import com.apkpure.aegon.db.table.PopupRecord;
import com.apkpure.aegon.download.DownloadButton;
import com.apkpure.aegon.garbage.clean.qdbb;
import com.apkpure.aegon.helper.gson.JsonUtils;
import com.apkpure.aegon.main.activity.MainTabActivity;
import com.apkpure.aegon.main.activity.qdcc;
import com.apkpure.aegon.main.activity.qdcd;
import com.apkpure.aegon.main.mainfragment.qdbe;
import com.apkpure.aegon.main.mainfragment.qdda;
import com.apkpure.aegon.statistics.datong.DTReportUtils;
import com.apkpure.aegon.statistics.datong.element.DTStatInfo;
import com.apkpure.aegon.utils.j;
import com.apkpure.components.xinstaller.RestartActivity;
import com.apkpure.proto.nano.AppDetailInfoProtos;
import com.google.android.datatransport.runtime.scheduling.jobscheduling.AlarmManagerSchedulerBroadcastReceiver;
import com.google.firebase.crashlytics.internal.metadata.UserMetadata;
import com.tencent.qqdownloader.waterdrop.install.InstallerListenerActivity;
import com.tencent.trpcprotocol.projecta.dynamic_popup_svr.dynamic_popup_svr.nano.InstallApps;
import com.tencent.trpcprotocol.projecta.dynamic_popup_svr.dynamic_popup_svr.nano.InstallAppsArr;
import java.io.File;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.LinkedHashMap;
import k2.qdbc;
import k5.qdbd;
import k5.qdcb;
import kotlinx.coroutines.qddg;
import tmsdk.fg.module.cleanV2.IUpdateCallBack;
import y4.qdba;

public final class qdab implements Runnable {

    public final int f20505b;

    public qdab(int i4) {
        this.f20505b = i4;
    }

    @Override
    public final void run() {
        String str;
        long j10;
        String str2;
        Resources resources;
        Bitmap decodeResource;
        View view = null;
        boolean z10 = true;
        int i4 = 0;
        switch (this.f20505b) {
            case 0:
                qdcb.a().a(new qdac(i4));
                return;
            case 1:
                qdba.f32760m = true;
                qdba.f32749b.onAdLoadTimeout();
                return;
            case 2:
                com.apkpure.aegon.ads.topon.interstitial.qdae qdaeVar = com.apkpure.aegon.ads.topon.interstitial.qdae.f5426a;
                com.apkpure.aegon.ads.topon.interstitial.qdae.s();
                return;
            case 3:
                if (qdah.f5673y <= 0) {
                    qddg.E("NativeAdManager", "app enter background, sleep.", new Object[0]);
                    qdah.o();
                    return;
                }
                return;
            case 4:
                int i5 = CategoryEnterCard.f6540n;
                androidx.appcompat.app.qdba g10 = com.apkpure.aegon.application.qdaa.c().g();
                if (g10 != null && !q6.qdac.getDataBoolean(g10, "new_mini_game_guide_shown")) {
                    Activity d4 = com.apkpure.aegon.application.qdaa.c().d();
                    if (!(d4 instanceof MainTabActivity) || !(((MainTabActivity) d4).f8722n instanceof qdbe)) {
                        z10 = false;
                    }
                    if (z10) {
                        androidx.appcompat.app.qdba g11 = com.apkpure.aegon.application.qdaa.c().g();
                        if (!(g11 instanceof MainTabActivity)) {
                            jw.qdab.c("NewMiniGameGuideHelperLog", "top activity is not mainTabActivity, is " + g11);
                        } else {
                            view = g11.findViewById(R.id.arg_res_0x7f09054e);
                        }
                        if (view == null) {
                            jw.qdab.c("NewMiniGameGuideHelperLog", "guide new miniGame, anchor view is null.");
                            return;
                        } else if (view.getMeasuredWidth() == 0) {
                            view.addOnLayoutChangeListener(new c(g10, view));
                            return;
                        } else {
                            d.a(g10, view);
                            return;
                        }
                    }
                    return;
                }
                return;
            case 5:
                com.apkpure.aegon.db.dao.qdac.b();
                return;
            case 6:
                y6.qdaa.c();
                y6.qdaa.f32839e++;
                return;
            case 7:
                qdbb.e(0);
                return;
            case 8:
                qdbb.e(0);
                return;
            case 9:
                Handler handler = qdbb.f8592a;
                int i10 = AegonApplication.f7193e;
                final com.apkpure.aegon.helper.prefs.qdaa qdaaVar = new com.apkpure.aegon.helper.prefs.qdaa(RealApplicationLike.getContext());
                long currentTimeMillis = System.currentTimeMillis() - qdaaVar.f().getLong("GarbageUpdateRuleTime", 0L);
                jw.qdac qdacVar = qdbb.f8594c;
                if (currentTimeMillis < 2592000000L) {
                    str = "Don't need update Rule.";
                } else {
                    final long currentTimeMillis2 = System.currentTimeMillis();
                    qdaaVar.h(System.currentTimeMillis(), "GarbageUpdateRuleTime");
                    if (qdbc.a() == null) {
                        str = "WorkManager is not initialized properly.";
                    } else {
                        qdbb.f8593b.updateRule(new IUpdateCallBack() {
                            @Override
                            public final void updateEnd(int i11) {
                                com.apkpure.aegon.helper.prefs.qdaa preferences = com.apkpure.aegon.helper.prefs.qdaa.this;
                                kotlin.jvm.internal.qdbb.f(preferences, "$preferences");
                                qdbb.f8594c.d("Update Rule. code[" + i11 + "]");
                                if (i11 != 0) {
                                    preferences.h(0L, "GarbageUpdateRuleTime");
                                }
                                ArrayList arrayList = a7.qdad.f96a;
                                long currentTimeMillis3 = System.currentTimeMillis() - currentTimeMillis2;
                                LinkedHashMap linkedHashMap = new LinkedHashMap();
                                linkedHashMap.put(PopupRecord.TIME_COLUMN_NAME, Long.valueOf(currentTimeMillis3));
                                linkedHashMap.put("code", Integer.valueOf(i11));
                                com.apkpure.aegon.statistics.datong.qdae.o("garbage_update_relu", linkedHashMap);
                            }
                        });
                        return;
                    }
                }
                qdacVar.d(str);
                return;
            case 10:
                jw.qdac qdacVar2 = qdcc.f8800a;
                com.apkpure.aegon.signstuff.apk.qdaa g12 = qdcc.g();
                qdcc.f8802c = g12;
                if (g12 != null) {
                    String.valueOf(g12);
                    qdcc.i(qdcc.f8802c);
                    return;
                }
                qdcc.f8800a.d("Get XApk Info From Config.");
                HashMap hashMap = new HashMap();
                oq.qdac.q("status", String.valueOf(10), hashMap);
                oq.qdac.q("return_code", String.valueOf(204), hashMap);
                String str3 = "";
                oq.qdac.q(InstallerListenerActivity.KEY_PACKAGE_NAME, "", hashMap);
                oq.qdac.q("fast_download_id", "", hashMap);
                com.apkpure.aegon.statistics.datong.qdae.n(null, null, "AppExtract", hashMap);
                int i11 = AegonApplication.f7193e;
                Context context = RealApplicationLike.getContext();
                if (context != null) {
                    try {
                        String str4 = context.getPackageManager().getApplicationInfo(context.getPackageName(), UserMetadata.MAX_INTERNAL_KEY_SIZE).sourceDir;
                        kotlin.jvm.internal.qdbb.e(str4, "{\n            context.pa…AGES).sourceDir\n        }");
                        str3 = str4;
                    } catch (Exception e10) {
                        e10.printStackTrace();
                    }
                }
                File file = new File(str3);
                com.apkpure.aegon.signstuff.walle.qdag qdagVar = new com.apkpure.aegon.signstuff.walle.qdag();
                int b9 = s8.qdaa.CONFIG.b();
                qdcd qdcdVar = new qdcd(qdcc.qdab.f8811j);
                jw.qdab.a(ao.qdac.m(file, "getStringById ifFile:{} , chooseId:{} ", Integer.valueOf(b9)));
                try {
                    qdagVar.f11351b = qdcdVar;
                    qdagVar.c(file, b9, null, com.apkpure.aegon.signstuff.walle.qdbb.STRING);
                    return;
                } catch (Exception e11) {
                    qdcdVar.d(e11);
                    return;
                }
            case 11:
                jw.qdac qdacVar3 = qdda.f8976c0;
                return;
            case 12:
                ArrayList arrayList = com.apkpure.aegon.popups.install.qdah.f10868b;
                if (arrayList != null) {
                    Iterator it = arrayList.iterator();
                    while (it.hasNext()) {
                        InstallApps[] installAppsArr = ((InstallAppsArr) it.next()).installApps;
                        kotlin.jvm.internal.qdbb.e(installAppsArr, "installAppsArr.installApps");
                        for (InstallApps installApps : installAppsArr) {
                            if (com.apkpure.aegon.popups.install.qdah.f10872f.contains(installApps.packageName)) {
                                AppDetailInfoProtos.AppDetailInfo appDetailInfo = (AppDetailInfoProtos.AppDetailInfo) JsonUtils.c(JsonUtils.a(), JsonUtils.g(JsonUtils.a(), installApps.appInfo), AppDetailInfoProtos.AppDetailInfo.class);
                                j5.qdaa b10 = j5.qdaa.b();
                                DTStatInfo dTStatInfo = new DTStatInfo();
                                int e12 = qdbd.e(appDetailInfo, null, DownloadButton.qdab.DEFAULT);
                                dTStatInfo.appId = e12;
                                if (com.apkpure.aegon.popups.install.qdah.f10875i) {
                                    j10 = 2144;
                                } else {
                                    j10 = 2162;
                                }
                                dTStatInfo.scene = j10;
                                dTStatInfo.downloadId = com.apkpure.aegon.download.qddg.d(e12);
                                dTStatInfo.modelType = 1131;
                                dTStatInfo.moduleName = "essential_softwares";
                                dTStatInfo.reportElement = "all_install_button";
                                dTStatInfo.isUpdate = 0;
                                dTStatInfo.recommendId = installApps.recommendId;
                                dTStatInfo.adType = DTReportUtils.e(installApps.adSourceType);
                                if (appDetailInfo != null) {
                                    if (appDetailInfo.isAPKs) {
                                        str2 = "1";
                                    } else {
                                        str2 = "0";
                                    }
                                    dTStatInfo.isApks = str2;
                                }
                                androidx.datastore.preferences.protobuf.qdae.m("开始下载: ", installApps.packageName, com.apkpure.aegon.popups.install.qdah.f10870d);
                                b10.f22924d = dTStatInfo;
                                int i12 = AegonApplication.f7193e;
                                qdbd.n(RealApplicationLike.getContext(), appDetailInfo, null, b10);
                                Thread.sleep(200L);
                            }
                        }
                    }
                    return;
                }
                return;
            case 13:
                int i13 = AegonApplication.f7193e;
                Application application = RealApplicationLike.getApplication();
                PendingIntent activity = PendingIntent.getActivity(application, 0, np.qdaf.Z("https://t.me/apkpurechannel"), 67108864);
                try {
                    decodeResource = e7.qdbe.a(application, "https://image.winudf.com/v2/image1/b3JnLnRlbGVncmFtLm1lc3Nlbmdlcl9pY29uXzE1NTk3NjgyMzhfMDA3/icon.png?w=100&fakeurl=1");
                } catch (Exception e13) {
                    jw.qdab.c("TelegramNotificationHelperLog", "load network image error. detail reason: " + e13.getMessage());
                    Context context2 = RealApplicationLike.mContext;
                    if (context2 != null) {
                        resources = context2.getResources();
                    } else {
                        resources = null;
                    }
                    decodeResource = BitmapFactory.decodeResource(resources, R.mipmap.ic_launcher, null);
                }
                s0.qdcb qdcbVar = new s0.qdcb(application, "0x1009");
                qdcbVar.D.icon = R.mipmap.arg_res_0x7f0f0002;
                qdcbVar.g(decodeResource);
                qdcbVar.e("APKPure Channel");
                qdcbVar.d("Join the official Telegram channel to find more exclusive resources!");
                qdcbVar.f29111k = 0;
                qdcbVar.f(16, true);
                qdcbVar.f29107g = activity;
                Object systemService = application.getSystemService("notification");
                if (!(systemService instanceof NotificationManager)) {
                    jw.qdab.c("TelegramNotificationHelperLog", "notification error");
                    return;
                }
                NotificationManager notificationManager = (NotificationManager) systemService;
                j.b("0x1009", "telegram_enter", notificationManager, false);
                notificationManager.notify(2222229, qdcbVar.b());
                com.apkpure.aegon.statistics.datong.qdae.o("telegram_enter_notification", new LinkedHashMap());
                return;
            case 14:
                try {
                    e7.qdbe.a(RealApplicationLike.getContext(), "https://image.winudf.com/v2/image1/b3JnLnRlbGVncmFtLm1lc3Nlbmdlcl9pY29uXzE1NTk3NjgyMzhfMDA3/icon.png?w=100&fakeurl=1");
                    return;
                } catch (Exception e14) {
                    String message = e14.getMessage();
                    jw.qdab.a(ao.qdac.m("https://image.winudf.com/v2/image1/b3JnLnRlbGVncmFtLm1lc3Nlbmdlcl9pY29uXzE1NTk3NjgyMzhfMDA3/icon.png?w=100&fakeurl=1", "load {} error, msg: {}", message));
                    jw.qdab.c("AppBootstrapLog", jw.qdab.a(ao.qdac.m("https://image.winudf.com/v2/image1/b3JnLnRlbGVncmFtLm1lc3Nlbmdlcl9pY29uXzE1NTk3NjgyMzhfMDA3/icon.png?w=100&fakeurl=1", "load {} error, msg: {}", message)));
                    return;
                }
            case 15:
                int i14 = RestartActivity.f12787c;
                Process.killProcess(Process.myPid());
                return;
            default:
                int i15 = AlarmManagerSchedulerBroadcastReceiver.f13216a;
                return;
        }
    }
}