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

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

MD5 校验值:5b5c91fb96bf669521c42e375c79f86c

反编译源代码说明

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


package o;

import android.content.ActivityNotFoundException;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.os.Build;
import android.util.Log;
import candybar.lib.R;
import java.io.File;
import java.lang.ref.WeakReference;
import java.util.ArrayList;
import o.uy0;

public class c70 extends w7 {
    public final WeakReference e;
    public final WeakReference f;
    public String g;
    public dy h;

    public interface a {
        void a();

        default void citrus() {
        }
    }

    public c70(Context context, a aVar) {
        this.e = new WeakReference(context);
        this.f = new WeakReference(aVar);
    }

    @Override
    public void citrus() {
    }

    @Override
    public void k(boolean z) {
        if (z) {
            try {
                if (this.f.get() != null) {
                    ((a) this.f.get()).a();
                }
                ((nz0) this.e.get()).g(p(he.d.a(), this.g), 0);
                return;
            } catch (Exception e) {
                xh0.b(Log.getStackTraceString(e));
                return;
            }
        }
        dy dyVar = this.h;
        if (dyVar != null) {
            xh0.b(dyVar.b());
            this.h.c((Context) this.e.get());
        }
    }

    @Override
    public boolean m() {
        if (!h()) {
            try {
                Thread.sleep(1L);
                if (gz0.k0 == null) {
                    this.h = dy.ICON_REQUEST_NULL;
                    return false;
                }
                uy0.c cVar = he.d;
                if (cVar == null) {
                    this.h = dy.ICON_REQUEST_PROPERTY_NULL;
                    return false;
                }
                if (cVar.a() == null) {
                    this.h = dy.ICON_REQUEST_PROPERTY_COMPONENT_NULL;
                    return false;
                }
                StringBuilder sb = new StringBuilder();
                sb.append(zq.a((Context) this.e.get()));
                if (ju0.b((Context) this.e.get()).A()) {
                    if (he.d.b() != null) {
                        sb.append("Order Id: ");
                        sb.append(he.d.b());
                    }
                    if (he.d.c() != null) {
                        sb.append("\r\nProduct Id: ");
                        sb.append(he.d.c());
                    }
                }
                new ArrayList();
                he.b().j();
                for (int i = 0; i < gz0.k0.size(); i++) {
                    uy0 uy0Var = (uy0) ef.P.get(((Integer) gz0.k0.get(i)).intValue());
                    xo.H((Context) this.e.get()).d(null, uy0Var);
                    if (ju0.b((Context) this.e.get()).A()) {
                        xo.H((Context) this.e.get()).c(null, uy0.a().c(uy0Var.d()).a(uy0Var.b()).f(he.d.c()).d(he.d.b()).b());
                    }
                    if (he.b().D()) {
                        sb.append("\r\n\r\n");
                        sb.append(uy0Var.d());
                        sb.append("\r\n");
                        sb.append(uy0Var.b());
                        sb.append("\r\n");
                        sb.append("https://play.google.com/store/apps/details?id=");
                        sb.append(uy0Var.f());
                    }
                }
                this.g = sb.toString();
                return true;
            } catch (Exception e) {
                he.d = null;
                gz0.k0 = null;
                xh0.b(Log.getStackTraceString(e));
            }
        }
        return false;
    }

    public final void o(Intent intent, String str) {
        intent.setType("application/zip");
        if (he.e != null) {
            File file = new File(he.e);
            if (file.exists()) {
                Uri d = gz.d((Context) this.e.get(), ((Context) this.e.get()).getPackageName(), file);
                if (d == null) {
                    d = Uri.fromFile(file);
                }
                intent.putExtra("android.intent.extra.STREAM", d);
                intent.setFlags(1);
            }
        }
        String string = ((Context) this.e.get()).getResources().getString(R.string.app_name);
        String string2 = ((Context) this.e.get()).getResources().getString(R.string.regular_request_email_subject);
        if (string2.length() == 0) {
            string2 = string + " Icon Request";
        }
        String string3 = ((Context) this.e.get()).getResources().getString(R.string.premium_request_email_subject);
        if (string3.length() == 0) {
            string3 = string + " Premium Icon Request";
        }
        String string4 = ((Context) this.e.get()).getResources().getString(R.string.regular_request_email);
        String string5 = ((Context) this.e.get()).getResources().getString(R.string.premium_request_email);
        if (string5.length() == 0) {
            string5 = string4;
        }
        if (ju0.b((Context) this.e.get()).A()) {
            string2 = string3;
        }
        if (ju0.b((Context) this.e.get()).A()) {
            string4 = string5;
        }
        intent.putExtra("android.intent.extra.EMAIL", new String[]{string4});
        intent.putExtra("android.intent.extra.SUBJECT", string2);
        intent.putExtra("android.intent.extra.TEXT", str);
        intent.addFlags(270532608);
    }

    public final Intent p(ComponentName componentName, String str) {
        try {
            try {
                Intent intent = new Intent("android.intent.action.SEND");
                o(intent, str);
                intent.setComponent(componentName);
                if (Build.VERSION.SDK_INT < 32) {
                    intent.addCategory("android.intent.category.LAUNCHER");
                }
                intent.setFlags(268435456);
                return intent;
            } catch (IllegalArgumentException unused) {
                Intent intent2 = new Intent("android.intent.action.SEND");
                o(intent2, str);
                return intent2;
            }
        } catch (ActivityNotFoundException e) {
            xh0.b(Log.getStackTraceString(e));
            return null;
        }
    }
}