From aed215283904e1dddee81018351a3e88624e3d86 Mon Sep 17 00:00:00 2001 From: Holly Jiuyu Sun Date: Mon, 15 Apr 2019 14:04:12 -0700 Subject: [PATCH] Add EuiccManager#EXTRA_PHYSICAL_SLOT_ID to detect it's an operation for pSIM. Platform needs to pass LPA the pSIM slotId so that LPA knows it's a toggle action on pSIM. Bug: 123945155 Test: build Change-Id: Ie0db50e8ade4c6ce385ebfbfe7cf9e2982d67e34 Merged-In: Ie0db50e8ade4c6ce385ebfbfe7cf9e2982d67e34 --- .../java/android/telephony/euicc/EuiccManager.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/telephony/java/android/telephony/euicc/EuiccManager.java b/telephony/java/android/telephony/euicc/EuiccManager.java index 96a2514e8ff06..cabd4dfd91f14 100644 --- a/telephony/java/android/telephony/euicc/EuiccManager.java +++ b/telephony/java/android/telephony/euicc/EuiccManager.java @@ -333,6 +333,18 @@ public class EuiccManager { public static final String EXTRA_FROM_SUBSCRIPTION_ID = "android.telephony.euicc.extra.FROM_SUBSCRIPTION_ID"; + /** + * Key for an extra set on privileged actions {@link #ACTION_TOGGLE_SUBSCRIPTION_PRIVILEGED} + * providing the physical slot ID of the target slot. + * + *

Expected type of the extra data: int + * + * @hide + */ + // TODO: Make this a @SystemApi. + public static final String EXTRA_PHYSICAL_SLOT_ID = + "android.telephony.euicc.extra.PHYSICAL_SLOT_ID"; + /** * Optional meta-data attribute for a carrier app providing an icon to use to represent the * carrier. If not provided, the app's launcher icon will be used as a fallback.