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

应用版本信息
应用名称:Candyfloss
版本号:3.9.6
包名称:com.stark.candyfloss

MD5 校验值:5b5c91fb96bf669521c42e375c79f86c

反编译源代码说明

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


package o;

import android.content.ActivityNotFoundException;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.net.Uri;
import android.os.Build;
import android.widget.Toast;
import candybar.lib.R;
import com.afollestad.materialdialogs.c;
import java.util.HashMap;
import me.zhanghai.android.materialprogressbar.BuildConfig;
import o.ue0;

public abstract class ue0 {

    public class a extends HashMap {
        public final String e;

        public a(String str) {
            this.e = str;
            put("section", "apply");
            put("action", "confirm");
            put("launcher", str);
        }
    }

    public class a0 extends HashMap {
        public final String e;

        public a0(String str) {
            this.e = str;
            put("section", "apply");
            put("action", "confirm");
            put("launcher", str);
        }
    }

    public class b extends HashMap {
        public final String e;

        public b(String str) {
            this.e = str;
            put("section", "apply");
            put("action", "confirm");
            put("launcher", str);
        }
    }

    public class b0 extends HashMap {
        public final String e;

        public b0(String str) {
            this.e = str;
            put("section", "apply");
            put("action", "confirm");
            put("launcher", str);
        }
    }

    public class c extends HashMap {
        public final String e;

        public c(String str) {
            this.e = str;
            put("section", "apply");
            put("action", "confirm");
            put("launcher", str);
        }
    }

    public static final class c0 {
        public static final c0 E;
        public static final c0 F;
        public static final c0 G;
        public static final c0 H;
        public static final c0 I;
        public static final c0 J;
        public static final c0 K;
        public static final c0 L;
        public static final c0 M;
        public static final c0 N;
        public static final c0 O;
        public static final c0 P;
        public static final c0 Q;
        public static final c0[] R;
        public final String e;
        public final int f;
        public final String[] g;
        public final boolean h;
        public a i;
        public static final c0 j = new c0("UNKNOWN", 0);
        public static final c0 k = new c0("ACTION", 1, "Action", R.drawable.ic_launcher_action, new String[]{"com.actionlauncher.playstore", "com.chrislacy.actionlauncher.pro"}, true);
        public static final c0 l = new c0("ADW", 2, "ADW", R.drawable.ic_launcher_adw, new String[]{"org.adw.launcher", "org.adwfreak.launcher"}, true);
        public static final c0 m = new c0("APEX", 3, "Apex", R.drawable.ic_launcher_apex, new String[]{"com.anddoes.launcher", "com.anddoes.launcher.pro"}, true);
        public static final c0 n = new c0("BEFORE", 4, "Before", R.drawable.ic_launcher_before, new String[]{"com.beforesoft.launcher"}, true);

        public static final c0 f148o = new c0("CMTHEME", 5, "CM Theme", R.drawable.ic_launcher_cm, new String[]{"org.cyanogenmod.theme.chooser"}, true);
        public static final c0 p = new c0("COLOR_OS", 6, "ColorOS", R.drawable.ic_launcher_color_os, new String[]{"com.oppo.launcher"}, false);
        public static final c0 q = new c0("GO", 7, "GO EX", R.drawable.ic_launcher_go, new String[]{"com.gau.go.launcherex"}, true);
        public static final c0 r = new c0("HIOS", 8, "HiOS", R.drawable.ic_launcher_hios, new String[]{"com.transsion.hilauncher"}, false);
        public static final c0 s = new c0("HOLO", 9, "Holo", R.drawable.ic_launcher_holo, new String[]{"com.mobint.hololauncher"}, false);
        public static final c0 t = new c0("HOLOHD", 10, "Holo HD", R.drawable.ic_launcher_holohd, new String[]{"com.mobint.hololauncher.hd"}, false);
        public static final c0 u = new c0("LAWNCHAIR", 11, "Lawnchair", R.drawable.ic_launcher_lawnchair, new String[]{"ch.deletescape.lawnchair.plah", "ch.deletescape.lawnchair.ci", "app.lawnchair"}, new a() {
            @Override
            public final boolean a(String str) {
                boolean c;
                c = ue0.c0.c(str);
                return c;
            }

            @Override
            public void citrus() {
            }
        });
        public static final c0 v = new c0("LGHOME", 12, "LG Home", R.drawable.ic_launcher_lg, new String[]{"com.lge.launcher2", "com.lge.launcher3"}, false);
        public static final c0 w = new c0("LUCID", 13, "Lucid", R.drawable.ic_launcher_lucid, new String[]{"com.powerpoint45.launcher"}, true);
        public static final c0 x = new c0("NOTHING", 14, "Nothing", R.drawable.ic_launcher_nothing, new String[]{"com.nothing.launcher"}, false);
        public static final c0 y = new c0("NOUGAT", 15, "Nougat", R.drawable.ic_launcher_nougat, new String[]{"me.craftsapp.nlauncher"}, true);
        public static final c0 z = new c0("NOVA", 16, "Nova", R.drawable.ic_launcher_nova, new String[]{"com.teslacoilsw.launcher", "com.teslacoilsw.launcher.prime"}, true);
        public static final c0 A = new c0("OXYGEN_OS", 17, "OxygenOS", R.drawable.ic_launcher_oxygen_os, new String[]{"net.oneplus.launcher"}, false);
        public static final c0 B = new c0("PIXEL", 18, "Pixel", R.drawable.ic_launcher_pixel, new String[]{"com.google.android.apps.nexuslauncher"}, false);
        public static final c0 C = new c0("SMART", 19, "Smart", R.drawable.ic_launcher_smart, new String[]{"ginlemon.flowerfree", "ginlemon.flowerpro", "ginlemon.flowerpro.special"}, true);
        public static final c0 D = new c0("SOLO", 20, "Solo", R.drawable.ic_launcher_solo, new String[]{"home.solo.launcher.free"}, true);

        public interface a {
            boolean a(String str);

            default void citrus() {
            }
        }

        static {
            String str;
            int i;
            if (ue0.r()) {
                str = "ColorOS";
            } else if (ue0.t()) {
                str = "realme UI";
            } else {
                str = "Stock Launcher";
            }
            String str2 = str;
            if (ue0.r()) {
                i = R.drawable.ic_launcher_color_os;
            } else if (ue0.t()) {
                i = R.drawable.ic_launcher_realme_ui;
            } else {
                i = R.drawable.ic_launcher_android;
            }
            E = new c0("STOCK_LEGACY", 21, str2, i, new String[]{"com.android.launcher"}, false);
            F = new c0("POCO", 22, "POCO", R.drawable.ic_launcher_poco, new String[]{"com.mi.android.globallauncher"}, false);
            G = new c0("MICROSOFT", 23, "Microsoft", R.drawable.ic_launcher_microsoft, new String[]{"com.microsoft.launcher"}, false);
            H = new c0("BLACKBERRY", 24, "BlackBerry", R.drawable.ic_launcher_blackberry, new String[]{"com.blackberry.blackberrylauncher"}, false);
            I = new c0("FLICK", 25, "Flick", R.drawable.ic_launcher_flick, new String[]{"com.universallauncher.universallauncher"}, true);
            J = new c0("SQUARE", 26, "Square", R.drawable.ic_launcher_square, new String[]{"com.ss.squarehome2"}, true);
            K = new c0("NIAGARA", 27, "Niagara", R.drawable.ic_launcher_niagara, new String[]{"bitpit.launcher"}, true);
            L = new c0("HYPERION", 28, "Hyperion", R.drawable.ic_launcher_hyperion, new String[]{"projekt.launcher"}, false);
            M = new c0("KISS", 29, "KISS", R.drawable.ic_launcher_kiss, new String[]{"fr.neamar.kiss"}, false);
            N = new c0("Kvaesitso", 30, "Kvaesitso", R.drawable.ic_launcher_kvaesitso, new String[]{"de.mm20.launcher2.release"}, false);
            O = new c0("ONEUI", 31, "Samsung One UI", R.drawable.ic_launcher_one_ui, new String[]{"com.sec.android.app.launcher"}, false);
            P = new c0("TINYBIT", 32, "TinyBit", R.drawable.ic_launcher_tinybit, new String[]{"rocks.tbog.tblauncher"}, false);
            Q = new c0("ZENUI", 33, "ZenUI", R.drawable.ic_launcher_zenui, new String[]{"com.asus.launcher"}, true);
            R = b();
        }

        public c0(String str, int i) {
            this.i = null;
            this.e = null;
            this.f = 0;
            this.g = null;
            this.h = false;
        }

        public static c0[] b() {
            return new c0[]{j, k, l, m, n, f148o, p, q, r, s, t, u, v, w, x, y, z, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q};
        }

        public static boolean c(String str) {
            return !str.startsWith("app");
        }

        public static c0 valueOf(String str) {
            return (c0) Enum.valueOf(c0.class, str);
        }

        public static c0[] values() {
            return (c0[]) R.clone();
        }

        public void citrus() {
        }

        public boolean d(String str) {
            a aVar = this.i;
            if (aVar != null) {
                return aVar.a(str);
            }
            return this.h;
        }

        public c0(String str, int i, String str2, int i2, String[] strArr, boolean z2) {
            this.i = null;
            this.e = str2;
            this.f = i2;
            this.g = strArr;
            this.h = z2;
        }

        public c0(String str, int i, String str2, int i2, String[] strArr, a aVar) {
            this.e = str2;
            this.f = i2;
            this.g = strArr;
            this.h = true;
            this.i = aVar;
        }
    }

    public class d extends HashMap {
        public final String e;

        public d(String str) {
            this.e = str;
            put("section", "apply");
            put("action", "confirm");
            put("launcher", str);
        }
    }

    public class e extends HashMap {
        public final String e;

        public e(String str) {
            this.e = str;
            put("section", "apply");
            put("action", "confirm");
            put("launcher", str);
        }
    }

    public class f extends HashMap {
        public final String e;

        public f(String str) {
            this.e = str;
            put("section", "apply");
            put("action", "confirm");
            put("launcher", str);
        }
    }

    public class g extends HashMap {
        public final String e;

        public g(String str) {
            this.e = str;
            put("section", "apply");
            put("action", "confirm");
            put("launcher", str);
        }
    }

    public class h extends HashMap {
        public final String e;

        public h(String str) {
            this.e = str;
            put("section", "apply");
            put("action", "confirm");
            put("launcher", str);
        }
    }

    public class i extends HashMap {
        public final String e;

        public i(String str) {
            this.e = str;
            put("section", "apply");
            put("action", "manual_open_confirm");
            put("launcher", str);
        }
    }

    public class j extends HashMap {
        public final String e;

        public j(String str) {
            this.e = str;
            put("section", "apply");
            put("action", "manual_open_cancel");
            put("launcher", str);
        }
    }

    public class k extends HashMap {
        public final String e;

        public k(String str) {
            this.e = str;
            put("section", "apply");
            put("action", "open_dialog");
            put("launcher", str);
        }
    }

    public class l extends HashMap {
        public final String e;

        public l(String str) {
            this.e = str;
            put("section", "apply");
            put("action", "manual_open_confirm");
            put("launcher", str);
        }
    }

    public class m extends HashMap {
        public final String e;

        public m(String str) {
            this.e = str;
            put("section", "apply");
            put("action", "manual_open_cancel");
            put("launcher", str);
        }
    }

    public class n extends HashMap {
        public final String e;

        public n(String str) {
            this.e = str;
            put("section", "apply");
            put("action", "manual_open_confirm");
            put("launcher", str);
        }
    }

    public class o extends HashMap {
        public final String e;

        public o(String str) {
            this.e = str;
            put("section", "apply");
            put("action", "manual_open_cancel");
            put("launcher", str);
        }
    }

    public class p extends HashMap {
        public final String e;

        public p(String str) {
            this.e = str;
            put("section", "apply");
            put("action", "incompatible_third_party_open");
            put("launcher", str);
        }
    }

    public class q extends HashMap {
        public final String e;

        public q(String str) {
            this.e = str;
            put("section", "apply");
            put("action", "incompatible_third_party_cancel");
            put("launcher", str);
        }
    }

    public class r extends HashMap {
        public final String e;

        public r(String str) {
            this.e = str;
            put("section", "apply");
            put("action", "not_installed_google_play_open");
            put("launcher", str);
        }
    }

    public class s extends HashMap {
        public final String e;

        public s(String str) {
            this.e = str;
            put("section", "apply");
            put("action", "not_installed_google_play_cancel");
            put("launcher", str);
        }
    }

    public static class t {
        public static final int[] a;

        static {
            int[] iArr = new int[c0.values().length];
            a = iArr;
            try {
                iArr[c0.k.ordinal()] = 1;
            } catch (NoSuchFieldError unused) {
            }
            try {
                a[c0.l.ordinal()] = 2;
            } catch (NoSuchFieldError unused2) {
            }
            try {
                a[c0.m.ordinal()] = 3;
            } catch (NoSuchFieldError unused3) {
            }
            try {
                a[c0.n.ordinal()] = 4;
            } catch (NoSuchFieldError unused4) {
            }
            try {
                a[c0.H.ordinal()] = 5;
            } catch (NoSuchFieldError unused5) {
            }
            try {
                a[c0.f148o.ordinal()] = 6;
            } catch (NoSuchFieldError unused6) {
            }
            try {
                a[c0.p.ordinal()] = 7;
            } catch (NoSuchFieldError unused7) {
            }
            try {
                a[c0.A.ordinal()] = 8;
            } catch (NoSuchFieldError unused8) {
            }
            try {
                a[c0.I.ordinal()] = 9;
            } catch (NoSuchFieldError unused9) {
            }
            try {
                a[c0.q.ordinal()] = 10;
            } catch (NoSuchFieldError unused10) {
            }
            try {
                a[c0.r.ordinal()] = 11;
            } catch (NoSuchFieldError unused11) {
            }
            try {
                a[c0.s.ordinal()] = 12;
            } catch (NoSuchFieldError unused12) {
            }
            try {
                a[c0.t.ordinal()] = 13;
            } catch (NoSuchFieldError unused13) {
            }
            try {
                a[c0.L.ordinal()] = 14;
            } catch (NoSuchFieldError unused14) {
            }
            try {
                a[c0.M.ordinal()] = 15;
            } catch (NoSuchFieldError unused15) {
            }
            try {
                a[c0.N.ordinal()] = 16;
            } catch (NoSuchFieldError unused16) {
            }
            try {
                a[c0.u.ordinal()] = 17;
            } catch (NoSuchFieldError unused17) {
            }
            try {
                a[c0.v.ordinal()] = 18;
            } catch (NoSuchFieldError unused18) {
            }
            try {
                a[c0.w.ordinal()] = 19;
            } catch (NoSuchFieldError unused19) {
            }
            try {
                a[c0.G.ordinal()] = 20;
            } catch (NoSuchFieldError unused20) {
            }
            try {
                a[c0.K.ordinal()] = 21;
            } catch (NoSuchFieldError unused21) {
            }
            try {
                a[c0.x.ordinal()] = 22;
            } catch (NoSuchFieldError unused22) {
            }
            try {
                a[c0.z.ordinal()] = 23;
            } catch (NoSuchFieldError unused23) {
            }
            try {
                a[c0.B.ordinal()] = 24;
            } catch (NoSuchFieldError unused24) {
            }
            try {
                a[c0.F.ordinal()] = 25;
            } catch (NoSuchFieldError unused25) {
            }
            try {
                a[c0.O.ordinal()] = 26;
            } catch (NoSuchFieldError unused26) {
            }
            try {
                a[c0.P.ordinal()] = 27;
            } catch (NoSuchFieldError unused27) {
            }
            try {
                a[c0.C.ordinal()] = 28;
            } catch (NoSuchFieldError unused28) {
            }
            try {
                a[c0.D.ordinal()] = 29;
            } catch (NoSuchFieldError unused29) {
            }
            try {
                a[c0.J.ordinal()] = 30;
            } catch (NoSuchFieldError unused30) {
            }
            try {
                a[c0.E.ordinal()] = 31;
            } catch (NoSuchFieldError unused31) {
            }
            try {
                a[c0.y.ordinal()] = 32;
            } catch (NoSuchFieldError unused32) {
            }
            try {
                a[c0.Q.ordinal()] = 33;
            } catch (NoSuchFieldError unused33) {
            }
        }
    }

    public class u extends HashMap {
        public final String e;

        public u(String str) {
            this.e = str;
            put("section", "apply");
            put("action", "confirm");
            put("launcher", str);
        }
    }

    public class v extends HashMap {
        public final String e;

        public v(String str) {
            this.e = str;
            put("section", "apply");
            put("action", "confirm");
            put("launcher", str);
        }
    }

    public class w extends HashMap {
        public final String e;

        public w(String str) {
            this.e = str;
            put("section", "apply");
            put("action", "confirm");
            put("launcher", str);
        }
    }

    public class x extends HashMap {
        public final String e;

        public x(String str) {
            this.e = str;
            put("section", "apply");
            put("action", "confirm");
            put("launcher", str);
        }
    }

    public class y extends HashMap {
        public final String e;

        public y(String str) {
            this.e = str;
            put("section", "apply");
            put("action", "confirm");
            put("launcher", str);
        }
    }

    public class z extends HashMap {
        public final String e;

        public z(String str) {
            this.e = str;
            put("section", "apply");
            put("action", "confirm");
            put("launcher", str);
        }
    }

    public static void A(String str, Context context, com.afollestad.materialdialogs.c cVar, gr grVar) {
        he.b().d().b("click", new p(str));
        try {
            context.startActivity(new Intent("android.intent.action.VIEW", Uri.parse("https://play.google.com/store/apps/details?id=rk.android.app.shortcutmaker")));
        } catch (ActivityNotFoundException unused) {
            Toast.makeText(context, context.getResources().getString(R.string.no_browser), 1).show();
        }
    }

    public static void B(String str, com.afollestad.materialdialogs.c cVar, gr grVar) {
        he.b().d().b("click", new q(str));
    }

    public static void C(String str, Context context, com.afollestad.materialdialogs.c cVar, gr grVar) {
        he.b().d().b("click", new r(str));
        try {
            context.startActivity(new Intent("android.intent.action.VIEW", Uri.parse("https://play.google.com/store/apps/details?id=" + str)));
        } catch (ActivityNotFoundException unused) {
            Toast.makeText(context, context.getResources().getString(R.string.no_browser), 1).show();
        }
    }

    public static void D(String str, com.afollestad.materialdialogs.c cVar, gr grVar) {
        he.b().d().b("click", new s(str));
    }

    public static void E(Context context, String str) {
        F(context, str, context.getResources().getString(R.string.apply_launcher_incompatible, str, str));
    }

    public static void F(final Context context, final String str, String str2) {
        new c.d(context).z(si1.b(context), si1.c(context)).y(str).h(str2).s(android.R.string.yes).p(new c.g() {
            @Override
            public final void a(com.afollestad.materialdialogs.c cVar, gr grVar) {
                ue0.A(str, context, cVar, grVar);
            }

            @Override
            public void citrus() {
            }
        }).m(android.R.string.cancel).o(new c.g() {
            @Override
            public final void a(com.afollestad.materialdialogs.c cVar, gr grVar) {
                ue0.B(str, cVar, grVar);
            }

            @Override
            public void citrus() {
            }
        }).w();
    }

    public static void G(final Context context, final String str, String str2) {
        new c.d(context).z(si1.b(context), si1.c(context)).y(str2).g(R.string.apply_launcher_not_installed, str2).t(context.getResources().getString(R.string.install)).p(new c.g() {
            @Override
            public final void a(com.afollestad.materialdialogs.c cVar, gr grVar) {
                ue0.C(str, context, cVar, grVar);
            }

            @Override
            public void citrus() {
            }
        }).m(android.R.string.cancel).o(new c.g() {
            @Override
            public final void a(com.afollestad.materialdialogs.c cVar, gr grVar) {
                ue0.D(str, cVar, grVar);
            }

            @Override
            public void citrus() {
            }
        }).w();
    }

    public static boolean H(Context context) {
        PackageManager packageManager = context.getPackageManager();
        Intent intent = new Intent("android.intent.action.MAIN");
        intent.addCategory("android.intent.category.HOME");
        String str = packageManager.resolveActivity(intent, 65536).activityInfo.packageName;
        c0 p2 = p(str);
        if (!p2.d(str)) {
            return false;
        }
        l(context, str, p2.e, p2);
        return true;
    }

    public static void k(Context context, String str, String str2) {
        he.b().d().b("click", new k(str));
        l(context, str, str2, p(str));
    }

    public static void l(Context context, String str, String str2, c0 c0Var) {
        switch (t.a[c0Var.ordinal()]) {
            case 1:
                try {
                    Intent launchIntentForPackage = context.getPackageManager().getLaunchIntentForPackage(str);
                    launchIntentForPackage.putExtra("apply_icon_pack", context.getPackageName());
                    launchIntentForPackage.setFlags(268435456);
                    context.startActivity(launchIntentForPackage);
                    ((g4) context).finish();
                    he.b().d().b("click", new u(str));
                    return;
                } catch (ActivityNotFoundException | NullPointerException unused) {
                    G(context, str, str2);
                    return;
                }
            case 2:
                try {
                    Intent intent = new Intent("org.adw.launcher.SET_THEME");
                    intent.putExtra("org.adw.launcher.theme.NAME", context.getPackageName());
                    intent.setFlags(268435456);
                    context.startActivity(intent);
                    ((g4) context).finish();
                    he.b().d().b("click", new v(str));
                    return;
                } catch (ActivityNotFoundException | NullPointerException unused2) {
                    G(context, str, str2);
                    return;
                }
            case 3:
                try {
                    Intent intent2 = new Intent("com.anddoes.launcher.SET_THEME");
                    intent2.putExtra("com.anddoes.launcher.THEME_PACKAGE_NAME", context.getPackageName());
                    intent2.setFlags(268435456);
                    context.startActivity(intent2);
                    ((g4) context).finish();
                    he.b().d().b("click", new w(str));
                    return;
                } catch (ActivityNotFoundException | NullPointerException unused3) {
                    G(context, str, str2);
                    return;
                }
            case 4:
                try {
                    Intent intent3 = new Intent("com.beforesoftware.launcher.APPLY_ICONS");
                    intent3.putExtra("packageName", context.getPackageName());
                    intent3.setFlags(268435456);
                    context.startActivity(intent3);
                    ((g4) context).finish();
                    he.b().d().b("click", new x(str));
                    return;
                } catch (ActivityNotFoundException | NullPointerException unused4) {
                    o(context, str2, context.getResources().getString(R.string.apply_manual_before), new String[]{context.getResources().getString(R.string.apply_manual_before_step_1), context.getResources().getString(R.string.apply_manual_before_step_2), context.getResources().getString(R.string.apply_manual_before_step_3), context.getResources().getString(R.string.apply_manual_before_step_4), context.getResources().getString(R.string.apply_manual_before_step_5, context.getResources().getString(R.string.app_name))});
                    return;
                }
            case 5:
                m(context, str, str2, "com.blackberry.blackberrylauncher.MainActivity");
                return;
            case 6:
                try {
                    Intent intent4 = new Intent("android.intent.action.MAIN");
                    intent4.setComponent(new ComponentName(str, "org.cyanogenmod.theme.chooser.ChooserActivity"));
                    intent4.putExtra("pkgName", context.getPackageName());
                    context.startActivity(intent4);
                    he.b().d().b("click", new y(str));
                    return;
                } catch (ActivityNotFoundException | NullPointerException unused5) {
                    Toast.makeText(context, R.string.apply_cmtheme_not_available, 1).show();
                    return;
                } catch (IllegalArgumentException | SecurityException unused6) {
                    Toast.makeText(context, R.string.apply_cmtheme_failed, 1).show();
                    return;
                }
            case 7:
                if (Build.VERSION.SDK_INT >= 30) {
                    o(context, str2, context.getResources().getString(R.string.apply_manual, str2, context.getResources().getString(R.string.app_name)), new String[]{context.getResources().getString(R.string.apply_manual_color_os_step_1), context.getResources().getString(R.string.apply_manual_color_os_step_2), context.getResources().getString(R.string.apply_manual_color_os_step_3), context.getResources().getString(R.string.apply_manual_color_os_step_4, context.getResources().getString(R.string.app_name))});
                    return;
                } else {
                    F(context, str2, context.getResources().getString(R.string.apply_launcher_incompatible_depending_on_version, str2, 10));
                    return;
                }
            case lk.a:
                if (Build.VERSION.SDK_INT >= 28) {
                    o(context, str2, context.getResources().getString(R.string.apply_manual, str2, context.getResources().getString(R.string.app_name)), new String[]{context.getResources().getString(R.string.apply_manual_oxygen_os_step_1), context.getResources().getString(R.string.apply_manual_oxygen_os_step_2), context.getResources().getString(R.string.apply_manual_oxygen_os_step_3), context.getResources().getString(R.string.apply_manual_oxygen_os_step_4, context.getResources().getString(R.string.app_name))});
                    return;
                } else {
                    F(context, str2, context.getResources().getString(R.string.apply_launcher_incompatible_depending_on_version, str2, 8));
                    return;
                }
            case 9:
                try {
                    Intent launchIntentForPackage2 = context.getPackageManager().getLaunchIntentForPackage("com.universallauncher.universallauncher");
                    Intent intent5 = new Intent("com.universallauncher.universallauncher.FLICK_ICON_PACK_APPLIER");
                    intent5.putExtra("com.universallauncher.universallauncher.ICON_THEME_PACKAGE", context.getPackageName());
                    intent5.setComponent(new ComponentName("com.universallauncher.universallauncher", "com.android.launcher3.icon.ApplyIconPack"));
                    launchIntentForPackage2.setFlags(268435456);
                    context.sendBroadcast(intent5);
                    context.startActivity(launchIntentForPackage2);
                    ((g4) context).finish();
                    he.b().d().b("click", new z(str));
                    return;
                } catch (ActivityNotFoundException | NullPointerException unused7) {
                    G(context, str, str2);
                    return;
                }
            case 10:
                try {
                    Intent launchIntentForPackage3 = context.getPackageManager().getLaunchIntentForPackage("com.gau.go.launcherex");
                    Intent intent6 = new Intent("com.gau.go.launcherex.MyThemes.mythemeaction");
                    intent6.putExtra("type", 1);
                    intent6.putExtra("pkgname", context.getPackageName());
                    launchIntentForPackage3.setFlags(268435456);
                    context.sendBroadcast(intent6);
                    context.startActivity(launchIntentForPackage3);
                    ((g4) context).finish();
                    he.b().d().b("click", new a0(str));
                    return;
                } catch (ActivityNotFoundException | NullPointerException unused8) {
                    G(context, str, str2);
                    return;
                }
            case 11:
                o(context, str2, context.getResources().getString(R.string.apply_manual_hios), new String[]{context.getResources().getString(R.string.apply_manual_hios_step_1), context.getResources().getString(R.string.apply_manual_hios_step_2), context.getResources().getString(R.string.apply_manual_hios_step_3), context.getResources().getString(R.string.apply_manual_hios_step_4), context.getResources().getString(R.string.apply_manual_hios_step_5, context.getResources().getString(R.string.app_name))});
                return;
            case 12:
            case 13:
                m(context, str, str2, "com.mobint.hololauncher.SettingsActivity");
                return;
            case 14:
                m(context, str, str2, "projekt.launcher.activities.SettingsActivity");
                return;
            case 15:
                o(context, str2, context.getResources().getString(R.string.apply_manual_kiss), new String[]{context.getResources().getString(R.string.apply_manual_kiss_step_1), context.getResources().getString(R.string.apply_manual_kiss_step_2), context.getResources().getString(R.string.apply_manual_kiss_step_3), context.getResources().getString(R.string.apply_manual_kiss_step_4, context.getResources().getString(R.string.app_name))});
                return;
            case BuildConfig.VERSION_CODE:
                o(context, str2, context.getResources().getString(R.string.apply_manual_kvaesitso), new String[]{context.getResources().getString(R.string.apply_manual_kvaesitso_step_1), context.getResources().getString(R.string.apply_manual_kvaesitso_step_2), context.getResources().getString(R.string.apply_manual_kvaesitso_step_3), context.getResources().getString(R.string.apply_manual_kvaesitso_step_4, context.getResources().getString(R.string.app_name)), context.getResources().getString(R.string.apply_manual_kvaesitso_step_5)});
                return;
            case 17:
                if (str.startsWith("app")) {
                    m(context, str, str2, "app.lawnchair.ui.preferences.PreferenceActivity");
                    return;
                }
                try {
                    Intent intent7 = new Intent("ch.deletescape.lawnchair.APPLY_ICONS", (Uri) null);
                    intent7.putExtra("packageName", context.getPackageName());
                    context.startActivity(intent7);
                    ((g4) context).finish();
                    he.b().d().b("click", new b0(str));
                    return;
                } catch (ActivityNotFoundException | NullPointerException unused9) {
                    G(context, str, str2);
                    return;
                }
            case 18:
                E(context, str2);
                return;
            case 19:
                try {
                    Intent intent8 = new Intent("com.powerpoint45.action.APPLY_THEME", (Uri) null);
                    intent8.putExtra("icontheme", context.getPackageName());
                    context.startActivity(intent8);
                    ((g4) context).finish();
                    he.b().d().b("click", new a(str));
                    return;
                } catch (ActivityNotFoundException | NullPointerException unused10) {
                    G(context, str, str2);
                    return;
                }
            case zh0.c:
                m(context, str, str2, null);
                return;
            case 21:
                try {
                    Intent intent9 = new Intent("bitpit.launcher.APPLY_ICONS");
                    intent9.putExtra("packageName", context.getPackageName());
                    context.startActivity(intent9);
                    he.b().d().b("click", new b(str));
                    return;
                } catch (ActivityNotFoundException | NullPointerException unused11) {
                    G(context, str, str2);
                    return;
                }
            case t7.c:
                o(context, str2, context.getResources().getString(R.string.apply_manual, str2, context.getResources().getString(R.string.app_name)), new String[]{context.getResources().getString(R.string.apply_manual_nothing_step_1), context.getResources().getString(R.string.apply_manual_nothing_step_2), context.getResources().getString(R.string.apply_manual_nothing_step_3), context.getResources().getString(R.string.apply_manual_nothing_step_4, context.getResources().getString(R.string.app_name))});
                return;
            case 23:
                try {
                    Intent intent10 = new Intent("com.teslacoilsw.launcher.APPLY_ICON_THEME");
                    intent10.setPackage("com.teslacoilsw.launcher");
                    intent10.putExtra("com.teslacoilsw.launcher.extra.ICON_THEME_TYPE", "GO");
                    intent10.putExtra("com.teslacoilsw.launcher.extra.ICON_THEME_PACKAGE", context.getPackageName());
                    String string = context.getResources().getString(R.string.nova_reshape_legacy_icons);
                    if (!string.equals("KEEP")) {
                        intent10.putExtra("com.teslacoilsw.launcher.extra.ICON_THEME_RESHAPE", string);
                    }
                    intent10.setFlags(268435456);
                    context.startActivity(intent10);
                    ((g4) context).finish();
                    he.b().d().b("click", new c(str));
                    return;
                } catch (ActivityNotFoundException | NullPointerException unused12) {
                    G(context, str, str2);
                    return;
                }
            case 24:
                E(context, str2);
                return;
            case 25:
                m(context, str, str2, "com.miui.home.settings.HomeSettingsActivity");
                return;
            case 26:
                n(context, str2);
                return;
            case 27:
                m(context, str, str2, "rocks.tbog.tblauncher.SettingsActivity");
                return;
            case 28:
                try {
                    Intent intent11 = new Intent("ginlemon.smartlauncher.setGSLTHEME");
                    intent11.putExtra("package", context.getPackageName());
                    intent11.setFlags(268435456);
                    context.startActivity(intent11);
                    ((g4) context).finish();
                    he.b().d().b("click", new d(str));
                    return;
                } catch (ActivityNotFoundException | NullPointerException unused13) {
                    G(context, str, str2);
                    return;
                }
            case 29:
                try {
                    Intent launchIntentForPackage4 = context.getPackageManager().getLaunchIntentForPackage("home.solo.launcher.free");
                    Intent intent12 = new Intent("home.solo.launcher.free.APPLY_THEME");
                    intent12.putExtra("EXTRA_THEMENAME", context.getResources().getString(R.string.app_name));
                    intent12.putExtra("EXTRA_PACKAGENAME", context.getPackageName());
                    launchIntentForPackage4.setFlags(268435456);
                    context.sendBroadcast(intent12);
                    context.startActivity(launchIntentForPackage4);
                    ((g4) context).finish();
                    he.b().d().b("click", new e(str));
                    return;
                } catch (ActivityNotFoundException | NullPointerException unused14) {
                    G(context, str, str2);
                    return;
                }
            case 30:
                try {
                    Intent intent13 = new Intent("com.ss.squarehome2.ACTION_APPLY_ICONPACK");
                    intent13.setComponent(ComponentName.unflattenFromString("com.ss.squarehome2/.ApplyThemeActivity"));
                    intent13.putExtra("com.ss.squarehome2.EXTRA_ICONPACK", context.getPackageName());
                    context.startActivity(intent13);
                    he.b().d().b("click", new f(str));
                    return;
                } catch (ActivityNotFoundException | NullPointerException unused15) {
                    G(context, str, str2);
                    return;
                }
            case 31:
                o(context, str2, context.getResources().getString(R.string.apply_manual, str2, context.getResources().getString(R.string.app_name)), new String[]{context.getResources().getString(R.string.apply_manual_color_os_step_1), context.getResources().getString(R.string.apply_manual_color_os_step_2), context.getResources().getString(R.string.apply_manual_color_os_step_3), context.getResources().getString(R.string.apply_manual_color_os_step_4, context.getResources().getString(R.string.app_name))});
                return;
            case 32:
                try {
                    Intent intent14 = new Intent("me.craftsapp.nlauncher");
                    intent14.setAction("me.craftsapp.nlauncher.SET_THEME");
                    intent14.putExtra("me.craftsapp.nlauncher.theme.NAME", context.getPackageName());
                    intent14.setFlags(268435456);
                    context.startActivity(intent14);
                    ((g4) context).finish();
                    he.b().d().b("click", new g(str));
                    return;
                } catch (ActivityNotFoundException | NullPointerException unused16) {
                    G(context, str, str2);
                    return;
                }
            case 33:
                try {
                    Intent intent15 = new Intent("com.asus.launcher");
                    intent15.setAction("com.asus.launcher.intent.action.APPLY_ICONPACK");
                    intent15.addCategory("android.intent.category.DEFAULT");
                    intent15.putExtra("com.asus.launcher.iconpack.PACKAGE_NAME", context.getPackageName());
                    intent15.setFlags(268435456);
                    context.startActivity(intent15);
                    ((g4) context).finish();
                    he.b().d().b("click", new h(str));
                    return;
                } catch (ActivityNotFoundException | NullPointerException unused17) {
                    G(context, str, str2);
                    return;
                }
            default:
                return;
        }
    }

    public static void m(final Context context, final String str, final String str2, final String str3) {
        if (s(context, str)) {
            new c.d(context).z(si1.b(context), si1.c(context)).y(str2).h(context.getResources().getString(R.string.apply_manual, str2, context.getResources().getString(R.string.app_name))).s(android.R.string.ok).p(new c.g() {
                @Override
                public final void a(com.afollestad.materialdialogs.c cVar, gr grVar) {
                    ue0.u(str, str3, context, str2, cVar, grVar);
                }

                @Override
                public void citrus() {
                }
            }).m(android.R.string.cancel).o(new c.g() {
                @Override
                public final void a(com.afollestad.materialdialogs.c cVar, gr grVar) {
                    ue0.v(str, cVar, grVar);
                }

                @Override
                public void citrus() {
                }
            }).w();
        } else {
            G(context, str, str2);
        }
    }

    public static void n(final Context context, final String str) {
        String string = context.getResources().getString(R.string.apply_manual_samsung_oneui_too_old, str);
        String str2 = "\t• " + context.getResources().getString(R.string.apply_manual_samsung_oneui_step_1, "Samsung Galaxy Store") + "\n\t• " + context.getResources().getString(R.string.apply_manual_samsung_oneui_step_2, "Theme Park") + "\n\t• " + context.getResources().getString(R.string.apply_manual_samsung_oneui_step_3) + "\n\t• " + context.getResources().getString(R.string.apply_manual_samsung_oneui_step_4) + "\n\t• " + context.getResources().getString(R.string.apply_manual_samsung_oneui_step_5) + "\n\t• " + context.getResources().getString(R.string.apply_manual_samsung_oneui_step_6, context.getResources().getString(R.string.app_name)) + "\n\n" + context.getResources().getString(R.string.apply_manual_samsung_oneui_step_7, context.getResources().getString(R.string.app_name));
        c.d y2 = new c.d(context).z(si1.b(context), si1.c(context)).y(str);
        StringBuilder sb = new StringBuilder();
        sb.append(context.getResources().getString(R.string.apply_manual_samsung_oneui, str, str + " 4.0"));
        sb.append("\n\n");
        if (Build.VERSION.SDK_INT > 30) {
            string = str2;
        }
        sb.append(string);
        y2.h(sb.toString()).s(android.R.string.yes).p(new c.g() {
            @Override
            public final void a(com.afollestad.materialdialogs.c cVar, gr grVar) {
                ue0.w(str, context, cVar, grVar);
            }

            @Override
            public void citrus() {
            }
        }).m(android.R.string.cancel).o(new c.g() {
            @Override
            public final void a(com.afollestad.materialdialogs.c cVar, gr grVar) {
                ue0.x(str, cVar, grVar);
            }

            @Override
            public void citrus() {
            }
        }).w();
    }

    public static void o(Context context, final String str, String str2, String[] strArr) {
        new c.d(context).z(si1.b(context), si1.c(context)).y(str).h(str2 + "\n\n\t• " + je0.a("\n\t• ", strArr)).s(android.R.string.yes).p(new c.g() {
            @Override
            public final void a(com.afollestad.materialdialogs.c cVar, gr grVar) {
                ue0.y(str, cVar, grVar);
            }

            @Override
            public void citrus() {
            }
        }).m(android.R.string.cancel).o(new c.g() {
            @Override
            public final void a(com.afollestad.materialdialogs.c cVar, gr grVar) {
                ue0.z(str, cVar, grVar);
            }

            @Override
            public void citrus() {
            }
        }).w();
    }

    public static c0 p(String str) {
        if (str == null) {
            return c0.j;
        }
        for (c0 c0Var : c0.values()) {
            String[] strArr = c0Var.g;
            if (strArr != null) {
                for (String str2 : strArr) {
                    if (str2.contentEquals(str)) {
                        return c0Var;
                    }
                }
            }
        }
        return c0.j;
    }

    public static String q(String str) {
        try {
            Class<?> cls = Class.forName("android.os.SystemProperties");
            return (String) cls.getMethod("get", String.class).invoke(cls, str);
        } catch (Exception unused) {
            return BuildConfig.FLAVOR;
        }
    }

    public static boolean r() {
        boolean z2;
        String q2 = q("ro.build.version.opporom");
        boolean z3 = (q2 == null || q2.isEmpty()) ? false : true;
        if (Build.VERSION.SDK_INT >= 31) {
            String str = Build.MANUFACTURER;
            if (str.equalsIgnoreCase("OnePlus") || str.equalsIgnoreCase("OPPO") || (str.equalsIgnoreCase("realme") && z3)) {
                z2 = true;
                return !z3 || z2;
            }
        }
        z2 = false;
        if (z3) {
        }
    }

    public static boolean s(Context context, String str) {
        try {
            context.getPackageManager().getPackageInfo(str, 0);
            return true;
        } catch (PackageManager.NameNotFoundException unused) {
            return false;
        }
    }

    public static boolean t() {
        String q2;
        return (!Build.MANUFACTURER.equalsIgnoreCase("realme") || (q2 = q("ro.build.version.realmeui")) == null || q2.isEmpty()) ? false : true;
    }

    public static void u(String str, String str2, Context context, String str3, com.afollestad.materialdialogs.c cVar, gr grVar) {
        he.b().d().b("click", new i(str));
        if (str2 == null) {
            return;
        }
        try {
            Intent intent = new Intent("android.intent.action.MAIN");
            intent.setComponent(new ComponentName(str, str2));
            intent.setFlags(268435456);
            context.startActivity(intent);
            ((g4) context).finish();
        } catch (ActivityNotFoundException | NullPointerException unused) {
            G(context, str, str3);
        } catch (IllegalArgumentException | SecurityException unused2) {
            Toast.makeText(context, context.getResources().getString(R.string.apply_launch_failed, str3), 1).show();
        }
    }

    public static void v(String str, com.afollestad.materialdialogs.c cVar, gr grVar) {
        he.b().d().b("click", new j(str));
    }

    public static void w(String str, Context context, com.afollestad.materialdialogs.c cVar, gr grVar) {
        he.b().d().b("click", new n(str));
        if (Build.VERSION.SDK_INT > 30) {
            try {
                try {
                    context.startActivity(new Intent("android.intent.action.VIEW", Uri.parse("samsungapps://ProductDetail/com.samsung.android.themedesigner")));
                    return;
                } catch (ActivityNotFoundException unused) {
                    Toast.makeText(context, context.getResources().getString(R.string.no_browser), 1).show();
                    return;
                }
            } catch (ActivityNotFoundException unused2) {
                context.startActivity(new Intent("android.intent.action.VIEW", Uri.parse("https://galaxystore.samsung.com/detail/com.samsung.android.themedesigner")));
                return;
            }
        }
        try {
            Intent intent = new Intent("android.settings.SYSTEM_UPDATE_SETTINGS");
            intent.addFlags(268435456);
            context.startActivity(intent);
        } catch (ActivityNotFoundException unused3) {
        }
    }

    public static void x(String str, com.afollestad.materialdialogs.c cVar, gr grVar) {
        he.b().d().b("click", new o(str));
    }

    public static void y(String str, com.afollestad.materialdialogs.c cVar, gr grVar) {
        he.b().d().b("click", new l(str));
    }

    public static void z(String str, com.afollestad.materialdialogs.c cVar, gr grVar) {
        he.b().d().b("click", new m(str));
    }
}