导航菜单

页面标题

页面副标题

涩里逼 v1.0.3 - MainActivity.java 源代码

正在查看: 涩里逼 v1.0.3 应用的 MainActivity.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package mrmhm.lpfuqq.tpyaf;

import android.content.Context;
import android.content.pm.PackageManager;
import android.os.Bundle;
import android.provider.Settings;
import io.flutter.embedding.android.FlutterActivity;
import io.flutter.embedding.engine.FlutterEngine;
import io.flutter.embedding.engine.FlutterEngineCache;
import io.flutter.plugin.common.MethodCall;
import io.flutter.plugin.common.MethodChannel;
import io.flutter.plugin.platform.PlatformPlugin;
import kotlin.jvm.internal.k;
import mrmhm.lpfuqq.tpyaf.MainActivity;
import p9.a;

public final class MainActivity extends FlutterActivity {
    public static final void b(MainActivity this$0, MethodCall call, MethodChannel.Result result) {
        int intValue;
        String c10;
        k.e(this$0, "this$0");
        k.e(call, "call");
        k.e(result, "result");
        String str = call.method;
        if (str != null) {
            switch (str.hashCode()) {
                case 527809754:
                    if (str.equals("CHANGE_LOGO")) {
                        Object obj = call.arguments;
                        if (obj == null) {
                            intValue = 0;
                        } else if (!(obj instanceof Integer)) {
                            return;
                        } else {
                            intValue = ((Number) obj).intValue();
                        }
                        a.a(this$0, intValue);
                        return;
                    }
                    break;
                case 1086951925:
                    if (str.equals("NATIVE_CDN_URL")) {
                        c10 = this$0.c(this$0);
                        break;
                    }
                    break;
                case 1188949179:
                    if (str.equals("NATIVE_CHANNEL")) {
                        c10 = this$0.d(this$0);
                        break;
                    }
                    break;
                case 1982396634:
                    if (str.equals("NATIVE_VERSION_NAME")) {
                        c10 = this$0.e(this$0);
                        break;
                    }
                    break;
                case 2043593267:
                    if (str.equals("NATIVE_ANDROID_ID")) {
                        c10 = Settings.Secure.getString(this$0.getContentResolver(), "android_id");
                        break;
                    }
                    break;
            }
            result.success(c10);
            return;
        }
        result.notImplemented();
    }

    private final String c(Context context) {
        try {
            Bundle bundle = context.getPackageManager().getApplicationInfo(context.getPackageName(), 128).metaData;
            k.d(bundle, "ai.metaData");
            return bundle.getString("APP_CDN_URL");
        } catch (PackageManager.NameNotFoundException e10) {
            e10.printStackTrace();
            return "";
        }
    }

    private final String d(Context context) {
        try {
            Bundle bundle = context.getPackageManager().getApplicationInfo(context.getPackageName(), 128).metaData;
            k.d(bundle, "ai.metaData");
            return bundle.getString("APP_CHANNEL");
        } catch (PackageManager.NameNotFoundException e10) {
            e10.printStackTrace();
            return "";
        }
    }

    private final String e(Context context) {
        String str = context.getPackageManager().getPackageInfo(context.getPackageName(), 0).versionName;
        k.d(str, "context.packageManager.g…ckageName, 0).versionName");
        return str;
    }

    @Override
    public void configureFlutterEngine(FlutterEngine flutterEngine) {
        k.e(flutterEngine, "flutterEngine");
        super.configureFlutterEngine(flutterEngine);
        FlutterEngineCache.getInstance().put("myEngine", flutterEngine);
        new MethodChannel(flutterEngine.getDartExecutor().getBinaryMessenger(), "native").setMethodCallHandler(new MethodChannel.MethodCallHandler() {
            @Override
            public final void onMethodCall(MethodCall methodCall, MethodChannel.Result result) {
                MainActivity.b(MainActivity.this, methodCall, result);
            }
        });
    }

    @Override
    protected void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        getWindow().clearFlags(67108864);
        getWindow().addFlags(Integer.MIN_VALUE);
        getWindow().getDecorView().setSystemUiVisibility(getWindow().getDecorView().getSystemUiVisibility() | PlatformPlugin.DEFAULT_SYSTEM_UI);
        getWindow().setStatusBarColor(0);
    }
}