导航菜单

页面标题

页面副标题

Fancy Optimizer v4.6.3 - SyncNCConfigJobIntentService.java 源代码

正在查看: Fancy Optimizer v4.6.3 应用的 SyncNCConfigJobIntentService.java JAVA 源代码文件

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


package com.fancyclean.boost.notificationclean.service;

import ak.a;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.content.pm.ResolveInfo;
import androidx.annotation.NonNull;
import c7.e;
import ja.b;
import ja.d;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import vj.h;

public class SyncNCConfigJobIntentService extends e {
    public static final h c = h.f(SyncNCConfigJobIntentService.class);

    public final void onHandleWork(@NonNull Intent intent) {
        la.e eVar;
        Context applicationContext = getApplicationContext();
        d d = d.d(applicationContext);
        PackageManager packageManager = getPackageManager();
        Intent intent2 = new Intent();
        intent2.addCategory("android.intent.category.LAUNCHER");
        intent2.setAction("android.intent.action.MAIN");
        List<ResolveInfo> queryIntentActivities = packageManager.queryIntentActivities(intent2, 0);
        h hVar = b.a;
        HashSet hashSet = new HashSet();
        a f = la.d.f(applicationContext);
        applicationContext.getApplicationContext();
        try {
            eVar = new la.e(f.getReadableDatabase().query("notification_clean_config", null, null, null, null, null, "package_name ASC", null));
        } catch (Throwable th) {
            th = th;
            eVar = null;
        }
        try {
            if (eVar.moveToFirst()) {
                do {
                    hashSet.add(((ak.b) eVar).c.getString(eVar.d));
                } while (eVar.moveToNext());
            }
            eVar.close();
            HashSet hashSet2 = new HashSet();
            Iterator<ResolveInfo> it = queryIntentActivities.iterator();
            while (it.hasNext()) {
                String str = it.next().activityInfo.packageName;
                if (hashSet.contains(str)) {
                    hashSet2.add(str);
                } else {
                    d.a(str);
                    hashSet.add(str);
                }
            }
            hashSet.removeAll(hashSet2);
            if (j4.b.G(hashSet)) {
                return;
            }
            c.c("remove uninstalled package configs");
            Iterator it2 = hashSet.iterator();
            while (it2.hasNext()) {
                d.f((String) it2.next());
            }
        } catch (Throwable th2) {
            th = th2;
            if (eVar != null) {
                eVar.close();
            }
            throw th;
        }
    }
}