Skip to content
Commit ba43e33c authored by George Chang's avatar George Chang
Browse files

Add NFC TagIntentAppPreference System API

Add System APIs for setting a preference list by filtering package names
before sending NFC TAG intents.

ACTION_NDEF_DISCOVERED, ACTION_TECH_DISCOVERED and ACTION_TAG_DISCOVERED
will not be dispatched to an Activity if its package is disallowed.

An app is added to the preference list with the allowed flag set to true
when a Tag intent is dispatched to the package for the first time.
The System APIs are called by settings to note that the user wants to
change this default preference.

Bug: 244272155
Test: atest NfcFeatureFlagTest
Test: atest android.permission.cts.NfcPermissionTest
Merged-In: I9d353cf794dbe7dbcbfeb3a8b37ef29fe86387f1
Change-Id: I9d353cf794dbe7dbcbfeb3a8b37ef29fe86387f1
parent e97ad39e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment