package com.riyaz.zvytour;

import Q3.a;
import Q3.b;
import io.flutter.embedding.android.FlutterActivity;
import io.flutter.embedding.engine.FlutterEngine;
import io.flutter.plugin.common.MethodChannel;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import r4.AbstractC0983h;

/* JADX INFO: loaded from: classes.dex */
public final class MainActivity extends FlutterActivity {

    /* JADX INFO: renamed from: k, reason: collision with root package name */
    public final String f5960k = "com.riyaz.zvytour/security";

    static {
        System.loadLibrary("security_v2");
    }

    /* JADX WARN: Failed to restore switch over string. Please report as a decompilation issue */
    /* JADX WARN: Removed duplicated region for block: B:159:0x02c3  */
    /* JADX WARN: Removed duplicated region for block: B:160:0x02c5 A[Catch: Exception -> 0x03c5, TryCatch #5 {Exception -> 0x03c5, blocks: (B:139:0x024c, B:142:0x0256, B:144:0x0260, B:147:0x0274, B:149:0x0287, B:150:0x028b, B:152:0x0291, B:154:0x029f, B:157:0x02ad, B:160:0x02c5, B:162:0x02cb, B:163:0x02cf, B:165:0x02d5, B:167:0x02ee, B:170:0x02f5, B:172:0x02fb, B:174:0x0305, B:176:0x030d, B:179:0x0317, B:181:0x0336, B:183:0x033e, B:186:0x0348, B:187:0x0360, B:189:0x0366, B:192:0x0374, B:194:0x037a, B:198:0x0382, B:201:0x03a1, B:202:0x03a5, B:204:0x03ab, B:206:0x03b7), top: B:240:0x024c }] */
    /* JADX WARN: Removed duplicated region for block: B:189:0x0366 A[Catch: Exception -> 0x03c5, TryCatch #5 {Exception -> 0x03c5, blocks: (B:139:0x024c, B:142:0x0256, B:144:0x0260, B:147:0x0274, B:149:0x0287, B:150:0x028b, B:152:0x0291, B:154:0x029f, B:157:0x02ad, B:160:0x02c5, B:162:0x02cb, B:163:0x02cf, B:165:0x02d5, B:167:0x02ee, B:170:0x02f5, B:172:0x02fb, B:174:0x0305, B:176:0x030d, B:179:0x0317, B:181:0x0336, B:183:0x033e, B:186:0x0348, B:187:0x0360, B:189:0x0366, B:192:0x0374, B:194:0x037a, B:198:0x0382, B:201:0x03a1, B:202:0x03a5, B:204:0x03ab, B:206:0x03b7), top: B:240:0x024c }] */
    /* JADX WARN: Removed duplicated region for block: B:220:0x0411  */
    /* JADX WARN: Removed duplicated region for block: B:278:0x0374 A[SYNTHETIC] */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct code enable 'Show inconsistent code' option in preferences
    */
    public static void a(boolean r29, com.riyaz.zvytour.MainActivity r30, io.flutter.plugin.common.MethodCall r31, io.flutter.plugin.common.MethodChannel.Result r32) {
        /*
            Method dump skipped, instruction units count: 1098
            To view this dump change 'Code comments level' option to 'DEBUG'
        */
        throw new UnsupportedOperationException("Method not decompiled: com.riyaz.zvytour.MainActivity.a(boolean, com.riyaz.zvytour.MainActivity, io.flutter.plugin.common.MethodCall, io.flutter.plugin.common.MethodChannel$Result):void");
    }

    public static String b(String str) {
        try {
            BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(Runtime.getRuntime().exec("getprop " + str).getInputStream()));
            String line = bufferedReader.readLine();
            bufferedReader.close();
            return line == null ? "" : line;
        } catch (Exception unused) {
            return "";
        }
    }

    private final native boolean checkNativeIntegrity();

    @Override // io.flutter.embedding.android.FlutterActivity, io.flutter.embedding.android.FlutterActivityAndFragmentDelegate.Host, io.flutter.embedding.android.FlutterEngineConfigurator
    public final void configureFlutterEngine(FlutterEngine flutterEngine) {
        AbstractC0983h.e("flutterEngine", flutterEngine);
        super.configureFlutterEngine(flutterEngine);
        flutterEngine.getPlugins().add(new a());
        new MethodChannel(flutterEngine.getDartExecutor().getBinaryMessenger(), this.f5960k).setMethodCallHandler(new b((getApplicationContext().getApplicationInfo().flags & 2) != 0, this));
    }
}
