Add a flag to enable IsTagIntentAllowed API

Flag: android.nfc.nfc_check_tag_intent_preference
Bug: 335916336
Test: device_config put nfc android.nfc.nfc_check_tag_intent_preference true
Test: atest android.nfc.cts.NfcAdapterTest#testIsTagIntentAllowed
Test: atest android.nfc.cts.NfcAdapterTest#testIsTagIntentAppPreferenceSupported
Test: atest android.nfc.cts.NfcAdapterTest#testIsTagIntentAllowedWhenNotSupported
Change-Id: Ifa65d2fe627bc7fa61acc8b806d3daf204a563fb
diff --git a/nfc/java/android/nfc/flags.aconfig b/nfc/java/android/nfc/flags.aconfig
index 8a37aa2..ee287ab 100644
--- a/nfc/java/android/nfc/flags.aconfig
+++ b/nfc/java/android/nfc/flags.aconfig
@@ -181,3 +181,11 @@
     description: "Enable set service enabled for category other"
     bug: "338157113"
 }
+
+flag {
+    name: "nfc_check_tag_intent_preference"
+    is_exported: true
+    namespace: "nfc"
+    description: "App can check its tag intent preference status"
+    bug: "335916336"
+}