导航菜单

页面标题

页面副标题

91看片 v1.0.4 - MainActivity.java 源代码

正在查看: 91看片 v1.0.4 应用的 MainActivity.java JAVA 源代码文件

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


package vjgoe.vecaip.jdomn;

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 ja.a;
import kotlin.jvm.internal.k;
import vjgoe.vecaip.jdomn.MainActivity;

public final class MainActivity extends FlutterActivity {
    public static final void b(MainActivity this$0, MethodCall call, MethodChannel.Result result) {
        String d10;
        int intValue;
        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 -474128857:
                    if (str.equals("NATIVE_PHONE_INFO")) {
                        d10 = this$0.d(this$0);
                        break;
                    }
                    break;
                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")) {
                        d10 = this$0.c(this$0);
                        break;
                    }
                    break;
                case 2043593267:
                    if (str.equals("NATIVE_ANDROID_ID")) {
                        d10 = Settings.Secure.getString(this$0.getContentResolver(), "android_id");
                        break;
                    }
                    break;
            }
            result.success(d10);
            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 "";
        }
    }

    @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);
    }
}