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

应用版本信息
应用名称:IntelliInvest
版本号:3.0.40
包名称:com.intelli.intelliinvest

MD5 校验值:8d01bad3385dcb060a6dcda2da0f8dbf

反编译源代码说明

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


package ed;

import android.app.ActivityManager;
import android.content.Context;
import android.hardware.display.DisplayManager;
import android.os.Bundle;
import android.os.Handler;
import android.os.Looper;
import android.os.SystemClock;
import android.util.DisplayMetrics;
import ed.f;
import io.flutter.embedding.engine.FlutterJNI;
import io.flutter.view.q;
import java.io.File;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.concurrent.Callable;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Future;

public class f {

    private boolean f12882a;

    private c f12883b;

    private long f12884c;

    private ed.b f12885d;

    private FlutterJNI f12886e;

    private ExecutorService f12887f;

    Future<b> f12888g;

    public class a implements Callable<b> {

        final Context f12889a;

        a(Context context) {
            this.f12889a = context;
        }

        public void c() {
            f.this.f12886e.prefetchDefaultFontManager();
        }

        @Override
        public b call() {
            fe.e g10 = fe.e.g("FlutterLoader initTask");
            try {
                f.c(f.this, this.f12889a);
                try {
                    f.this.f12886e.loadLibrary();
                    f.this.f12886e.updateRefreshRate();
                    f.this.f12887f.execute(new Runnable() {
                        @Override
                        public final void run() {
                            f.a.this.c();
                        }
                    });
                    b bVar = new b(fe.b.d(this.f12889a), fe.b.a(this.f12889a), fe.b.c(this.f12889a), null);
                    if (g10 != null) {
                        g10.close();
                    }
                    return bVar;
                } catch (UnsatisfiedLinkError e10) {
                    if (!e10.toString().contains("couldn't find \"libflutter.so\"") && !e10.toString().contains("dlopen failed: library \"libflutter.so\" not found")) {
                        throw e10;
                    }
                    String property = System.getProperty("os.arch");
                    File file = new File(f.this.f12885d.f12869f);
                    throw new UnsupportedOperationException("Could not load libflutter.so this is possibly because the application is running on an architecture that Flutter Android does not support (e.g. x86) see https://docs.flutter.dev/deployment/android#what-are-the-supported-target-architectures for more detail.\nApp is using cpu architecture: " + property + ", and the native libraries directory (with path " + file.getAbsolutePath() + ") contains the following files: " + Arrays.toString(file.list()), e10);
                }
            } catch (Throwable th) {
                if (g10 != null) {
                    try {
                        g10.close();
                    } catch (Throwable th2) {
                        th.addSuppressed(th2);
                    }
                }
                throw th;
            }
        }
    }

    public static class b {

        final String f12891a;

        final String f12892b;

        final String f12893c;

        private b(String str, String str2, String str3) {
            this.f12891a = str;
            this.f12892b = str2;
            this.f12893c = str3;
        }

        b(String str, String str2, String str3, a aVar) {
            this(str, str2, str3);
        }
    }

    public static class c {

        private String f12894a;

        public String a() {
            return this.f12894a;
        }
    }

    public f() {
        this(ad.a.e().d().a());
    }

    public f(FlutterJNI flutterJNI) {
        this(flutterJNI, ad.a.e().b());
    }

    public f(FlutterJNI flutterJNI, ExecutorService executorService) {
        this.f12882a = false;
        this.f12886e = flutterJNI;
        this.f12887f = executorService;
    }

    static g c(f fVar, Context context) {
        fVar.n(context);
        return null;
    }

    private String k(String str) {
        return this.f12885d.f12867d + File.separator + str;
    }

    private g n(Context context) {
        return null;
    }

    private static boolean p(Bundle bundle) {
        if (bundle == null) {
            return true;
        }
        return bundle.getBoolean("io.flutter.embedding.android.LeakVM", true);
    }

    public void q(Context context, String[] strArr, Handler handler, Runnable runnable) {
        h(context.getApplicationContext(), strArr);
        handler.post(runnable);
    }

    public void r(final Context context, final String[] strArr, final Handler handler, final Runnable runnable) {
        try {
            this.f12888g.get();
            fe.a.a(Looper.getMainLooper()).post(new Runnable() {
                @Override
                public final void run() {
                    f.this.q(context, strArr, handler, runnable);
                }
            });
        } catch (Exception e10) {
            ad.b.c("FlutterLoader", "Flutter initialization failed.", e10);
            throw new RuntimeException(e10);
        }
    }

    public boolean g() {
        return this.f12885d.f12870g;
    }

    public void h(Context context, String[] strArr) {
        if (this.f12882a) {
            return;
        }
        if (Looper.myLooper() != Looper.getMainLooper()) {
            throw new IllegalStateException("ensureInitializationComplete must be called on the main thread");
        }
        if (this.f12883b == null) {
            throw new IllegalStateException("ensureInitializationComplete must be called after startInitialization");
        }
        try {
            fe.e g10 = fe.e.g("FlutterLoader#ensureInitializationComplete");
            try {
                b bVar = this.f12888g.get();
                ArrayList arrayList = new ArrayList();
                arrayList.add("--icu-symbol-prefix=_binary_icudtl_dat");
                StringBuilder sb2 = new StringBuilder();
                sb2.append("--icu-native-lib-path=");
                sb2.append(this.f12885d.f12869f);
                String str = File.separator;
                sb2.append(str);
                sb2.append("libflutter.so");
                arrayList.add(sb2.toString());
                if (strArr != null) {
                    Collections.addAll(arrayList, strArr);
                }
                arrayList.add("--aot-shared-library-name=" + this.f12885d.f12864a);
                arrayList.add("--aot-shared-library-name=" + this.f12885d.f12869f + str + this.f12885d.f12864a);
                StringBuilder sb3 = new StringBuilder();
                sb3.append("--cache-dir-path=");
                sb3.append(bVar.f12892b);
                arrayList.add(sb3.toString());
                if (this.f12885d.f12868e != null) {
                    arrayList.add("--domain-network-policy=" + this.f12885d.f12868e);
                }
                if (this.f12883b.a() != null) {
                    arrayList.add("--log-tag=" + this.f12883b.a());
                }
                Bundle bundle = context.getPackageManager().getApplicationInfo(context.getPackageName(), 128).metaData;
                int i10 = bundle != null ? bundle.getInt("io.flutter.embedding.android.OldGenHeapSize") : 0;
                if (i10 == 0) {
                    ((ActivityManager) context.getSystemService("activity")).getMemoryInfo(new ActivityManager.MemoryInfo());
                    i10 = (int) ((r6.totalMem / 1000000.0d) / 2.0d);
                }
                arrayList.add("--old-gen-heap-size=" + i10);
                DisplayMetrics displayMetrics = context.getResources().getDisplayMetrics();
                arrayList.add("--resource-cache-max-bytes-threshold=" + (displayMetrics.widthPixels * displayMetrics.heightPixels * 12 * 4));
                arrayList.add("--prefetched-default-font-manager");
                if (bundle != null) {
                    if (bundle.getBoolean("io.flutter.embedding.android.EnableImpeller", false)) {
                        arrayList.add("--enable-impeller");
                    }
                    if (bundle.getBoolean("io.flutter.embedding.android.EnableVulkanValidation", false)) {
                        arrayList.add("--enable-vulkan-validation");
                    }
                    if (bundle.getBoolean("io.flutter.embedding.android.EnableOpenGLGPUTracing", false)) {
                        arrayList.add("--enable-opengl-gpu-tracing");
                    }
                    if (bundle.getBoolean("io.flutter.embedding.android.EnableVulkanGPUTracing", false)) {
                        arrayList.add("--enable-vulkan-gpu-tracing");
                    }
                    String string = bundle.getString("io.flutter.embedding.android.ImpellerBackend");
                    if (string != null) {
                        arrayList.add("--impeller-backend=" + string);
                    }
                }
                arrayList.add("--leak-vm=" + (p(bundle) ? "true" : "false"));
                this.f12886e.init(context, (String[]) arrayList.toArray(new String[0]), null, bVar.f12891a, bVar.f12892b, SystemClock.uptimeMillis() - this.f12884c);
                this.f12882a = true;
                if (g10 != null) {
                    g10.close();
                }
            } finally {
            }
        } catch (Exception e10) {
            ad.b.c("FlutterLoader", "Flutter initialization failed.", e10);
            throw new RuntimeException(e10);
        }
    }

    public void i(final Context context, final String[] strArr, final Handler handler, final Runnable runnable) {
        if (Looper.myLooper() != Looper.getMainLooper()) {
            throw new IllegalStateException("ensureInitializationComplete must be called on the main thread");
        }
        if (this.f12883b == null) {
            throw new IllegalStateException("ensureInitializationComplete must be called after startInitialization");
        }
        if (this.f12882a) {
            handler.post(runnable);
        } else {
            this.f12887f.execute(new Runnable() {
                @Override
                public final void run() {
                    f.this.r(context, strArr, handler, runnable);
                }
            });
        }
    }

    public String j() {
        return this.f12885d.f12867d;
    }

    public String l(String str) {
        return k(str);
    }

    public String m(String str, String str2) {
        StringBuilder sb2 = new StringBuilder();
        sb2.append("packages");
        String str3 = File.separator;
        sb2.append(str3);
        sb2.append(str2);
        sb2.append(str3);
        sb2.append(str);
        return l(sb2.toString());
    }

    public boolean o() {
        return this.f12882a;
    }

    public void s(Context context) {
        t(context, new c());
    }

    public void t(Context context, c cVar) {
        if (this.f12883b != null) {
            return;
        }
        if (Looper.myLooper() != Looper.getMainLooper()) {
            throw new IllegalStateException("startInitialization must be called on the main thread");
        }
        fe.e g10 = fe.e.g("FlutterLoader#startInitialization");
        try {
            Context applicationContext = context.getApplicationContext();
            this.f12883b = cVar;
            this.f12884c = SystemClock.uptimeMillis();
            this.f12885d = ed.a.e(applicationContext);
            q.f((DisplayManager) applicationContext.getSystemService("display"), this.f12886e).g();
            this.f12888g = this.f12887f.submit(new a(applicationContext));
            if (g10 != null) {
                g10.close();
            }
        } catch (Throwable th) {
            if (g10 != null) {
                try {
                    g10.close();
                } catch (Throwable th2) {
                    th.addSuppressed(th2);
                }
            }
            throw th;
        }
    }
}