From 074084c44439edb39d572d6ff1e8ed3a845d534a Mon Sep 17 00:00:00 2001 From: Omer Ozer Date: Thu, 27 Jul 2023 21:07:06 +0000 Subject: Create a new default wallet role entry. Bug: 283989236 Bug: 291794775 Test: local testing Change-Id: Ibd1b48e62b2702678434add5a007ca24d9fbf7d2 --- framework-s/java/android/app/role/RoleManager.java | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'framework-s/java') diff --git a/framework-s/java/android/app/role/RoleManager.java b/framework-s/java/android/app/role/RoleManager.java index 3cf1e94ba..fe27d50f3 100644 --- a/framework-s/java/android/app/role/RoleManager.java +++ b/framework-s/java/android/app/role/RoleManager.java @@ -145,6 +145,15 @@ public final class RoleManager { */ public static final String ROLE_NOTES = "android.app.role.NOTES"; + /** + * The name of the Wallet role. + * + * @see android.nfc.cardemulation.CardEmulation + */ + @FlaggedApi(Flags.FLAG_WALLET_ROLE_ENABLED) + @RequiresApi(Build.VERSION_CODES.VANILLA_ICE_CREAM) + public static final String ROLE_WALLET = "android.app.role.WALLET"; + /** * The name of the system wellbeing role. * -- cgit v1.2.3-59-g8ed1b