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

应用版本信息
应用名称:Electrical Cost
版本号:6.0.5
包名称:it.Ettore.spesaelettrica

MD5 校验值:facd8e3913e14e36e7daf9e69fbd45cb

反编译源代码说明

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


package M1;

import B2.o;
import android.content.ActivityNotFoundException;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.net.Uri;
import java.util.Map;
import k2.C0329h;
import l2.y;

public abstract class c {
    public static final a Companion = new Object();

    public final Context f729a;

    public final b f730b;

    public final Map f731c;

    public c(Context context, b bVar) {
        kotlin.jvm.internal.k.e(context, "context");
        this.f731c = y.v0(new C0329h("it.ettoregallina.calcolielettrici.huawei", "101575933"), new C0329h("it.ettoregallina.calcolielettriciprokey.huawei", "101594341"), new C0329h("it.ettoregallina.calcoliilluminotecnici.huawei", "101624973"), new C0329h("it.ettoregallina.calcoliilluminotecniciprokey.huawei", "101625013"), new C0329h("it.ettoregallina.spesaelettrica.huawei", "101653325"), new C0329h("it.ettoregallina.spesaelettricaprokey.huawei", "101653335"), new C0329h("it.ettoregallina.raspcontroller.huawei", "101749243"), new C0329h("it.ettoregallina.raspcontrollerprokey.huawei", "101749247"), new C0329h("it.ettoregallina.arducontroller.huawei", "102212601"), new C0329h("it.ettoregallina.calcoliinformatici.huawei", "102351183"), new C0329h("it.ettoregallina.calcolifotovoltaici.huawei", "107171539"));
        this.f729a = context;
        this.f730b = bVar;
    }

    public final void a(String packageName) {
        Context context = this.f729a;
        kotlin.jvm.internal.k.e(packageName, "packageName");
        try {
            context.startActivity(b(packageName));
        } catch (ActivityNotFoundException e) {
            e.printStackTrace();
            o.a0(context, 1, "Market not found!").show();
        }
    }

    public final Intent b(String packageName) {
        kotlin.jvm.internal.k.e(packageName, "packageName");
        Intent intent = new Intent("android.intent.action.VIEW");
        Context context = this.f729a;
        kotlin.jvm.internal.k.e(context, "context");
        PackageManager packageManager = context.getPackageManager();
        kotlin.jvm.internal.k.d(packageManager, "getPackageManager(...)");
        String packagename = c().f728d;
        kotlin.jvm.internal.k.e(packagename, "packagename");
        try {
            packageManager.getPackageInfo(packagename, 1);
            intent.setData(Uri.parse(c().f726b + packageName));
        } catch (PackageManager.NameNotFoundException e) {
            e.printStackTrace();
            if (c() != b.HUAWEI) {
                String str = (String) this.f731c.get(packageName);
                if (str != null) {
                    intent.setData(Uri.parse(c().f727c + str));
                } else {
                    intent.setData(Uri.parse("https://appgallery.huawei.com/"));
                }
            } else {
                intent.setData(Uri.parse(c().f727c + packageName));
            }
            return intent;
        } catch (Exception e4) {
            e4.printStackTrace();
            if (c() != b.HUAWEI) {
            }
            return intent;
        }
        return intent;
    }

    public final b c() {
        b bVar = this.f730b;
        if (bVar == null) {
            d();
            bVar = b.GOOGLE;
        }
        return bVar;
    }

    public abstract void d();
}