正在查看: Online Loans v421.2.42 应用的 f.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Online Loans v421.2.42 应用的 f.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package X4;
import X4.f;
import android.app.ActivityManager;
import android.content.Context;
import android.hardware.display.DisplayManager;
import android.os.Build;
import android.os.Bundle;
import android.os.Handler;
import android.os.Looper;
import android.os.SystemClock;
import android.util.DisplayMetrics;
import io.flutter.embedding.engine.FlutterJNI;
import io.flutter.view.n;
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 {
public boolean f6243a = false;
public c f6244b;
public long f6245c;
public X4.b f6246d;
public FlutterJNI f6247e;
public ExecutorService f6248f;
public Future f6249g;
public class a implements Callable {
public final Context f6250a;
public a(Context context) {
this.f6250a = context;
}
@Override
public b call() {
String str;
I5.e r6 = I5.e.r("FlutterLoader initTask");
try {
f.c(f.this, this.f6250a);
try {
f.this.f6247e.loadLibrary(this.f6250a);
f.this.f6247e.updateRefreshRate();
f.this.f6248f.execute(new Runnable() {
@Override
public final void run() {
f.a.this.c();
}
});
b bVar = new b(I5.b.d(this.f6250a), I5.b.a(this.f6250a), I5.b.c(this.f6250a), null);
if (r6 != null) {
r6.close();
}
return bVar;
} catch (UnsatisfiedLinkError e7) {
if (!e7.toString().contains("couldn't find \"libflutter.so\"") && !e7.toString().contains("dlopen failed: library \"libflutter.so\" not found")) {
throw e7;
}
String property = System.getProperty("os.arch");
File file = new File(f.this.f6246d.f6230f);
String[] list = file.list();
StringBuilder sb = new StringBuilder();
sb.append("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: ");
sb.append(property);
sb.append(", and the native libraries directory (with path ");
sb.append(file.getAbsolutePath());
sb.append(") ");
if (file.exists()) {
str = "contains the following files: " + Arrays.toString(list);
} else {
str = "does not exist.";
}
sb.append(str);
throw new UnsupportedOperationException(sb.toString(), e7);
}
} catch (Throwable th) {
if (r6 != null) {
try {
r6.close();
} catch (Throwable th2) {
th.addSuppressed(th2);
}
}
throw th;
}
}
public final void c() {
f.this.f6247e.prefetchDefaultFontManager();
}
}
public static class b {
public final String f6252a;
public final String f6253b;
public final String f6254c;
public b(String str, String str2, String str3, a aVar) {
this(str, str2, str3);
}
public b(String str, String str2, String str3) {
this.f6252a = str;
this.f6253b = str2;
this.f6254c = str3;
}
}
public static class c {
public String f6255a;
public String a() {
return this.f6255a;
}
}
public f(FlutterJNI flutterJNI, ExecutorService executorService) {
this.f6247e = flutterJNI;
this.f6248f = executorService;
}
public static g c(f fVar, Context context) {
fVar.m(context);
return null;
}
public static boolean o(Bundle bundle) {
if (bundle == null) {
return true;
}
return bundle.getBoolean("io.flutter.embedding.android.LeakVM", true);
}
public boolean g() {
return this.f6246d.f6231g;
}
public void h(Context context, String[] strArr) {
if (this.f6243a) {
return;
}
if (Looper.myLooper() != Looper.getMainLooper()) {
throw new IllegalStateException("ensureInitializationComplete must be called on the main thread");
}
if (this.f6244b == null) {
throw new IllegalStateException("ensureInitializationComplete must be called after startInitialization");
}
try {
I5.e r6 = I5.e.r("FlutterLoader#ensureInitializationComplete");
try {
b bVar = (b) this.f6249g.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.f6246d.f6230f);
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.f6246d.f6225a);
arrayList.add("--aot-shared-library-name=" + this.f6246d.f6230f + str + this.f6246d.f6225a);
StringBuilder sb2 = new StringBuilder();
sb2.append("--cache-dir-path=");
sb2.append(bVar.f6253b);
arrayList.add(sb2.toString());
if (this.f6246d.f6229e != null) {
arrayList.add("--domain-network-policy=" + this.f6246d.f6229e);
}
if (this.f6244b.a() != null) {
arrayList.add("--log-tag=" + this.f6244b.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) ((r9.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 * 48));
arrayList.add("--prefetched-default-font-manager");
if (bundle != null) {
if (bundle.containsKey("io.flutter.embedding.android.EnableImpeller")) {
if (bundle.getBoolean("io.flutter.embedding.android.EnableImpeller")) {
arrayList.add("--enable-impeller=true");
} else {
arrayList.add("--enable-impeller=false");
}
}
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");
}
if (bundle.containsKey("io.flutter.embedding.android.DisableMergedPlatformUIThread") && bundle.getBoolean("io.flutter.embedding.android.DisableMergedPlatformUIThread")) {
arrayList.add("--no-enable-merged-platform-ui-thread");
}
if (bundle.getBoolean("io.flutter.embedding.android.EnableSurfaceControl", false)) {
arrayList.add("--enable-surface-control");
}
String string = bundle.getString("io.flutter.embedding.android.ImpellerBackend");
if (string != null) {
arrayList.add("--impeller-backend=" + string);
}
if (bundle.getBoolean("io.flutter.embedding.android.ImpellerLazyShaderInitialization")) {
arrayList.add("--impeller-lazy-shader-mode");
}
if (bundle.getBoolean("io.flutter.embedding.android.ImpellerAntialiasLines")) {
arrayList.add("--impeller-antialias-lines");
}
}
arrayList.add("--leak-vm=" + (o(bundle) ? "true" : "false"));
this.f6247e.init(context, (String[]) arrayList.toArray(new String[0]), null, bVar.f6252a, bVar.f6253b, SystemClock.uptimeMillis() - this.f6245c, Build.VERSION.SDK_INT);
this.f6243a = true;
if (r6 != null) {
r6.close();
}
} finally {
}
} catch (Exception e7) {
S4.b.c("FlutterLoader", "Flutter initialization failed.", e7);
throw new RuntimeException(e7);
}
}
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.f6244b == null) {
throw new IllegalStateException("ensureInitializationComplete must be called after startInitialization");
}
if (this.f6243a) {
handler.post(runnable);
} else {
this.f6248f.execute(new Runnable() {
@Override
public final void run() {
f.this.q(context, strArr, handler, runnable);
}
});
}
}
public String j() {
return this.f6246d.f6228d;
}
public final String k(String str) {
return this.f6246d.f6228d + File.separator + str;
}
public String l(String str) {
return k(str);
}
public final g m(Context context) {
return null;
}
public boolean n() {
return this.f6243a;
}
public final void p(Context context, String[] strArr, Handler handler, Runnable runnable) {
h(context.getApplicationContext(), strArr);
handler.post(runnable);
}
public final void q(final Context context, final String[] strArr, final Handler handler, final Runnable runnable) {
try {
I5.a.a(Looper.getMainLooper()).post(new Runnable() {
@Override
public final void run() {
f.this.p(context, strArr, handler, runnable);
}
});
} catch (Exception e7) {
S4.b.c("FlutterLoader", "Flutter initialization failed.", e7);
throw new RuntimeException(e7);
}
}
public void r(Context context) {
s(context, new c());
}
public void s(Context context, c cVar) {
if (this.f6244b != null) {
return;
}
if (Looper.myLooper() != Looper.getMainLooper()) {
throw new IllegalStateException("startInitialization must be called on the main thread");
}
I5.e r6 = I5.e.r("FlutterLoader#startInitialization");
try {
Context applicationContext = context.getApplicationContext();
this.f6244b = cVar;
this.f6245c = SystemClock.uptimeMillis();
this.f6246d = X4.a.e(applicationContext);
n.f((DisplayManager) applicationContext.getSystemService("display"), this.f6247e).g();
this.f6249g = this.f6248f.submit(new a(applicationContext));
if (r6 != null) {
r6.close();
}
} catch (Throwable th) {
if (r6 != null) {
try {
r6.close();
} catch (Throwable th2) {
th.addSuppressed(th2);
}
}
throw th;
}
}
}