diff options
author | 2024-08-14 00:43:00 +0000 | |
---|---|---|
committer | 2024-08-14 00:43:00 +0000 | |
commit | 403343dbc7120c6aeaa835be7f34839fe61bc62c (patch) | |
tree | 28d8184732eea98ace1a6e65dcbb97330f73c0f9 | |
parent | dbbecca1654a01811f290995c8a2d0163632f078 (diff) |
Add an intent action for Non-payment NFC services settings
Which is optional and can be linked to in Default wallet app settings.
Bug: 356428143, 358135339
Flag: android.nfc.nfc_action_manage_services_settings
Test: manual
Ignore-AOSP-First: coordinating with other internal changes
Merged-In: Iebe0e35af2e2712b11c93a2f29cabb3b5ed21d9d
Change-Id: Iebe0e35af2e2712b11c93a2f29cabb3b5ed21d9d
-rw-r--r-- | core/api/system-current.txt | 1 | ||||
-rw-r--r-- | core/java/android/provider/Settings.java | 20 | ||||
-rw-r--r-- | nfc/java/android/nfc/flags.aconfig | 7 |
3 files changed, 28 insertions, 0 deletions
diff --git a/core/api/system-current.txt b/core/api/system-current.txt index 02c88e2bd960..ccae2ba3dadc 100644 --- a/core/api/system-current.txt +++ b/core/api/system-current.txt @@ -11883,6 +11883,7 @@ package android.provider { field public static final String ACTION_MANAGE_APP_OVERLAY_PERMISSION = "android.settings.MANAGE_APP_OVERLAY_PERMISSION"; field public static final String ACTION_MANAGE_DOMAIN_URLS = "android.settings.MANAGE_DOMAIN_URLS"; field public static final String ACTION_MANAGE_MORE_DEFAULT_APPS_SETTINGS = "android.settings.MANAGE_MORE_DEFAULT_APPS_SETTINGS"; + field @FlaggedApi("android.nfc.nfc_action_manage_services_settings") public static final String ACTION_MANAGE_OTHER_NFC_SERVICES_SETTINGS = "android.settings.MANAGE_OTHER_NFC_SERVICES_SETTINGS"; field public static final String ACTION_NOTIFICATION_POLICY_ACCESS_DETAIL_SETTINGS = "android.settings.NOTIFICATION_POLICY_ACCESS_DETAIL_SETTINGS"; field public static final String ACTION_REQUEST_ENABLE_CONTENT_CAPTURE = "android.settings.REQUEST_ENABLE_CONTENT_CAPTURE"; field public static final String ACTION_SHOW_ADMIN_SUPPORT_DETAILS = "android.settings.SHOW_ADMIN_SUPPORT_DETAILS"; diff --git a/core/java/android/provider/Settings.java b/core/java/android/provider/Settings.java index 51585af10f5d..beeab1492837 100644 --- a/core/java/android/provider/Settings.java +++ b/core/java/android/provider/Settings.java @@ -2256,6 +2256,26 @@ public final class Settings { "android.settings.MANAGE_MORE_DEFAULT_APPS_SETTINGS"; /** + * Activity Action: Show Other NFC services settings. + * <p> + * If a Settings activity handles this intent action, an "Other NFC services" entry will be + * shown in the Default payment app settings, and clicking it will launch that activity. + * <p> + * In some cases, a matching Activity may not exist, so ensure you safeguard against this. + * <p> + * Input: Nothing. + * <p> + * Output: Nothing. + * + * @hide + */ + @FlaggedApi(android.nfc.Flags.FLAG_NFC_ACTION_MANAGE_SERVICES_SETTINGS) + @SdkConstant(SdkConstantType.ACTIVITY_INTENT_ACTION) + @SystemApi + public static final String ACTION_MANAGE_OTHER_NFC_SERVICES_SETTINGS = + "android.settings.MANAGE_OTHER_NFC_SERVICES_SETTINGS"; + + /** * Activity Action: Show app screen size list settings for user to override app aspect * ratio. * <p> diff --git a/nfc/java/android/nfc/flags.aconfig b/nfc/java/android/nfc/flags.aconfig index 45036a5f214b..9fb3ce6b9742 100644 --- a/nfc/java/android/nfc/flags.aconfig +++ b/nfc/java/android/nfc/flags.aconfig @@ -117,3 +117,10 @@ flag { bug: "321310044" } +flag { + name: "nfc_action_manage_services_settings" + is_exported: true + namespace: "nfc" + description: "Add Settings.ACTION_MANAGE_OTHER_NFC_SERVICES_SETTINGS" + bug: "358129872" +} |