MD5 校验值:2e3fa178664099471711035e7f3bf95c
d.java 文件包含反编译后的源代码,请注意,该内容仅供学习和参考使用,不得用于非法用途。
package t3; import android.app.ActivityManager; import android.content.Context; import android.hardware.display.DisplayManager; import android.os.Bundle; import android.os.Looper; import android.os.SystemClock; import android.util.DisplayMetrics; import io.flutter.embedding.engine.FlutterJNI; import io.flutter.view.w; import j4.f; 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; import t3.d; public class d { private boolean f5872a; private c f5873b; private long f5874c; private t3.b f5875d; private FlutterJNI f5876e; private ExecutorService f5877f; Future<b> f5878g; public class a implements Callable<b> { final Context f5879a; a(Context context) { this.f5879a = context; } public void c() { d.this.f5876e.prefetchDefaultFontManager(); } @Override public b call() { f f6 = f.f("FlutterLoader initTask"); try { d.a(d.this, this.f5879a); try { d.this.f5876e.loadLibrary(); d.this.f5876e.updateRefreshRate(); d.this.f5877f.execute(new Runnable() { @Override public final void run() { d.a.this.c(); } }); b bVar = new b(j4.c.d(this.f5879a), j4.c.a(this.f5879a), j4.c.c(this.f5879a), null); if (f6 != null) { f6.close(); } return bVar; } catch (UnsatisfiedLinkError e6) { if (!e6.toString().contains("couldn't find \"libflutter.so\"") && !e6.toString().contains("dlopen failed: library \"libflutter.so\" not found")) { throw e6; } String property = System.getProperty("os.arch"); File file = new File(d.this.f5875d.f5869f); 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()), e6); } } catch (Throwable th) { if (f6 != null) { try { f6.close(); } catch (Throwable th2) { th.addSuppressed(th2); } } throw th; } } } public static class b { final String f5881a; final String f5882b; final String f5883c; private b(String str, String str2, String str3) { this.f5881a = str; this.f5882b = str2; this.f5883c = str3; } b(String str, String str2, String str3, a aVar) { this(str, str2, str3); } } public static class c { private String f5884a; public String a() { return this.f5884a; } } public d() { this(p3.a.e().d().a()); } public d(FlutterJNI flutterJNI) { this(flutterJNI, p3.a.e().b()); } public d(FlutterJNI flutterJNI, ExecutorService executorService) { this.f5872a = false; this.f5876e = flutterJNI; this.f5877f = executorService; } static e a(d dVar, Context context) { dVar.j(context); return null; } private String h(String str) { return this.f5875d.f5867d + File.separator + str; } private e j(Context context) { return null; } private static boolean l(Bundle bundle) { if (bundle == null) { return true; } return bundle.getBoolean("io.flutter.embedding.android.LeakVM", true); } public boolean e() { return this.f5875d.f5870g; } public void f(Context context, String[] strArr) { if (this.f5872a) { return; } if (Looper.myLooper() != Looper.getMainLooper()) { throw new IllegalStateException("ensureInitializationComplete must be called on the main thread"); } if (this.f5873b == null) { throw new IllegalStateException("ensureInitializationComplete must be called after startInitialization"); } try { f f6 = f.f("FlutterLoader#ensureInitializationComplete"); try { b bVar = this.f5878g.get(); ArrayList arrayList = new ArrayList(); arrayList.add("--icu-symbol-prefix=_binary_icudtl_dat"); StringBuilder sb = new StringBuilder(); sb.append("--icu-native-lib-path="); sb.append(this.f5875d.f5869f); String str = File.separator; sb.append(str); sb.append("libflutter.so"); arrayList.add(sb.toString()); if (strArr != null) { Collections.addAll(arrayList, strArr); } arrayList.add("--aot-shared-library-name=" + this.f5875d.f5864a); arrayList.add("--aot-shared-library-name=" + this.f5875d.f5869f + str + this.f5875d.f5864a); StringBuilder sb2 = new StringBuilder(); sb2.append("--cache-dir-path="); sb2.append(bVar.f5882b); arrayList.add(sb2.toString()); if (this.f5875d.f5868e != null) { arrayList.add("--domain-network-policy=" + this.f5875d.f5868e); } if (this.f5873b.a() != null) { arrayList.add("--log-tag=" + this.f5873b.a()); } Bundle bundle = context.getPackageManager().getApplicationInfo(context.getPackageName(), 128).metaData; int i6 = bundle != null ? bundle.getInt("io.flutter.embedding.android.OldGenHeapSize") : 0; if (i6 == 0) { ((ActivityManager) context.getSystemService("activity")).getMemoryInfo(new ActivityManager.MemoryInfo()); i6 = (int) ((r6.totalMem / 1000000.0d) / 2.0d); } arrayList.add("--old-gen-heap-size=" + i6); 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=" + (l(bundle) ? "true" : "false")); this.f5876e.init(context, (String[]) arrayList.toArray(new String[0]), null, bVar.f5881a, bVar.f5882b, SystemClock.uptimeMillis() - this.f5874c); this.f5872a = true; if (f6 != null) { f6.close(); } } finally { } } catch (Exception e6) { p3.b.c("FlutterLoader", "Flutter initialization failed.", e6); throw new RuntimeException(e6); } } public String g() { return this.f5875d.f5867d; } public String i(String str) { return h(str); } public boolean k() { return this.f5872a; } public void m(Context context) { n(context, new c()); } public void n(Context context, c cVar) { if (this.f5873b != null) { return; } if (Looper.myLooper() != Looper.getMainLooper()) { throw new IllegalStateException("startInitialization must be called on the main thread"); } f f6 = f.f("FlutterLoader#startInitialization"); try { Context applicationContext = context.getApplicationContext(); this.f5873b = cVar; this.f5874c = SystemClock.uptimeMillis(); this.f5875d = t3.a.e(applicationContext); w.f((DisplayManager) applicationContext.getSystemService("display"), this.f5876e).g(); this.f5878g = this.f5877f.submit(new a(applicationContext)); if (f6 != null) { f6.close(); } } catch (Throwable th) { if (f6 != null) { try { f6.close(); } catch (Throwable th2) { th.addSuppressed(th2); } } throw th; } } }