diff --git a/android/app/src/main/kotlin/com/yubico/authenticator/MainActivity.kt b/android/app/src/main/kotlin/com/yubico/authenticator/MainActivity.kt index 3198751e..fa1f2bfb 100644 --- a/android/app/src/main/kotlin/com/yubico/authenticator/MainActivity.kt +++ b/android/app/src/main/kotlin/com/yubico/authenticator/MainActivity.kt @@ -1,6 +1,7 @@ package com.yubico.authenticator import android.os.Bundle +import android.view.WindowManager import androidx.activity.viewModels import androidx.lifecycle.lifecycleScope import com.yubico.authenticator.logging.FlutterLog @@ -28,6 +29,11 @@ class MainActivity : FlutterFragmentActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) + window.setFlags( + WindowManager.LayoutParams.FLAG_SECURE, + WindowManager.LayoutParams.FLAG_SECURE + ) + yubikit = YubiKitManager(this) viewModel.handleYubiKey.observe(this) {