正在查看: PrestMan MX v1.0.0 应用的 d.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: PrestMan MX v1.0.0 应用的 d.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package T2;
import T2.d;
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.u;
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 w3.AbstractC1371c;
import w3.C1374f;
public class d {
private boolean f2563a = false;
private c f2564b;
private long f2565c;
private T2.b f2566d;
private FlutterJNI f2567e;
private ExecutorService f2568f;
Future f2569g;
class a implements Callable {
final Context f2570a;
a(Context context) {
this.f2570a = context;
}
public void c() {
d.this.f2567e.prefetchDefaultFontManager();
}
@Override
public b call() {
C1374f l4 = C1374f.l("FlutterLoader initTask");
try {
d.a(d.this, this.f2570a);
try {
d.this.f2567e.loadLibrary();
d.this.f2567e.updateRefreshRate();
d.this.f2568f.execute(new Runnable() {
@Override
public final void run() {
d.a.this.c();
}
});
b bVar = new b(AbstractC1371c.d(this.f2570a), AbstractC1371c.a(this.f2570a), AbstractC1371c.c(this.f2570a), null);
if (l4 != null) {
l4.close();
}
return bVar;
} catch (UnsatisfiedLinkError e5) {
if (!e5.toString().contains("couldn't find \"libflutter.so\"") && !e5.toString().contains("dlopen failed: library \"libflutter.so\" not found")) {
throw e5;
}
String property = System.getProperty("os.arch");
File file = new File(d.this.f2566d.f2560f);
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()), e5);
}
} catch (Throwable th) {
if (l4 != null) {
try {
l4.close();
} catch (Throwable th2) {
th.addSuppressed(th2);
}
}
throw th;
}
}
}
private static class b {
final String f2572a;
final String f2573b;
final String f2574c;
private b(String str, String str2, String str3) {
this.f2572a = str;
this.f2573b = str2;
this.f2574c = str3;
}
b(String str, String str2, String str3, a aVar) {
this(str, str2, str3);
}
}
public static class c {
private String f2575a;
public String a() {
return this.f2575a;
}
}
public d(FlutterJNI flutterJNI, ExecutorService executorService) {
this.f2567e = flutterJNI;
this.f2568f = executorService;
}
static e a(d dVar, Context context) {
dVar.j(context);
return null;
}
private String h(String str) {
return this.f2566d.f2558d + 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.f2566d.f2561g;
}
public void f(Context context, String[] strArr) {
if (this.f2563a) {
return;
}
if (Looper.myLooper() != Looper.getMainLooper()) {
throw new IllegalStateException("ensureInitializationComplete must be called on the main thread");
}
if (this.f2564b == null) {
throw new IllegalStateException("ensureInitializationComplete must be called after startInitialization");
}
try {
C1374f l4 = C1374f.l("FlutterLoader#ensureInitializationComplete");
try {
b bVar = (b) this.f2569g.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.f2566d.f2560f);
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.f2566d.f2555a);
arrayList.add("--aot-shared-library-name=" + this.f2566d.f2560f + str + this.f2566d.f2555a);
StringBuilder sb2 = new StringBuilder();
sb2.append("--cache-dir-path=");
sb2.append(bVar.f2573b);
arrayList.add(sb2.toString());
if (this.f2566d.f2559e != null) {
arrayList.add("--domain-network-policy=" + this.f2566d.f2559e);
}
if (this.f2564b.a() != null) {
arrayList.add("--log-tag=" + this.f2564b.a());
}
Bundle bundle = context.getPackageManager().getApplicationInfo(context.getPackageName(), 128).metaData;
int i5 = bundle != null ? bundle.getInt("io.flutter.embedding.android.OldGenHeapSize") : 0;
if (i5 == 0) {
((ActivityManager) context.getSystemService("activity")).getMemoryInfo(new ActivityManager.MemoryInfo());
i5 = (int) ((r7.totalMem / 1000000.0d) / 2.0d);
}
arrayList.add("--old-gen-heap-size=" + i5);
DisplayMetrics displayMetrics = context.getResources().getDisplayMetrics();
arrayList.add("--resource-cache-max-bytes-threshold=" + (displayMetrics.widthPixels * displayMetrics.heightPixels * 48));
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.f2567e.init(context, (String[]) arrayList.toArray(new String[0]), null, bVar.f2572a, bVar.f2573b, SystemClock.uptimeMillis() - this.f2565c);
this.f2563a = true;
if (l4 != null) {
l4.close();
}
} finally {
}
} catch (Exception e5) {
Q2.b.c("FlutterLoader", "Flutter initialization failed.", e5);
throw new RuntimeException(e5);
}
}
public String g() {
return this.f2566d.f2558d;
}
public String i(String str) {
return h(str);
}
public boolean k() {
return this.f2563a;
}
public void m(Context context) {
n(context, new c());
}
public void n(Context context, c cVar) {
if (this.f2564b != null) {
return;
}
if (Looper.myLooper() != Looper.getMainLooper()) {
throw new IllegalStateException("startInitialization must be called on the main thread");
}
C1374f l4 = C1374f.l("FlutterLoader#startInitialization");
try {
Context applicationContext = context.getApplicationContext();
this.f2564b = cVar;
this.f2565c = SystemClock.uptimeMillis();
this.f2566d = T2.a.e(applicationContext);
u.f((DisplayManager) applicationContext.getSystemService("display"), this.f2567e).g();
this.f2569g = this.f2568f.submit(new a(applicationContext));
if (l4 != null) {
l4.close();
}
} catch (Throwable th) {
if (l4 != null) {
try {
l4.close();
} catch (Throwable th2) {
th.addSuppressed(th2);
}
}
throw th;
}
}
}