From 23418fe577756565353fcadc2498c0ab3c6c52be Mon Sep 17 00:00:00 2001 From: Aman Gupta Date: Thu, 13 Jan 2022 03:18:18 +0000 Subject: [PATCH] make UiccSlotMapping constructor a system API UiccSlotMapping need to be constructed and passed from LPA app to telephony framework API setSimSlotMapping, thus need to be exposed. the real API to setSimSlotMapping was already protected with the privileged permission. Bug: 214306205 Test: atest UiccSlotMappingTest CTS-Coverage-Bug: 214446121 Change-Id: I109575750ab16ee9b73a469633372e93f03d2199 --- core/api/system-current.txt | 1 + telephony/java/android/telephony/UiccSlotMapping.java | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/core/api/system-current.txt b/core/api/system-current.txt index 1794c1314ccae..8f8a1004bd7a8 100644 --- a/core/api/system-current.txt +++ b/core/api/system-current.txt @@ -13085,6 +13085,7 @@ package android.telephony { } public final class UiccSlotMapping implements android.os.Parcelable { + ctor public UiccSlotMapping(int, int, int); method public int describeContents(); method @IntRange(from=0) public int getLogicalSlotIndex(); method @IntRange(from=0) public int getPhysicalSlotIndex(); diff --git a/telephony/java/android/telephony/UiccSlotMapping.java b/telephony/java/android/telephony/UiccSlotMapping.java index 87e7acdc792d4..08de7fdc7029d 100644 --- a/telephony/java/android/telephony/UiccSlotMapping.java +++ b/telephony/java/android/telephony/UiccSlotMapping.java @@ -94,7 +94,6 @@ public final class UiccSlotMapping implements Parcelable { * @param physicalSlotIndex is unique index referring to a physical SIM slot. * @param logicalSlotIndex is unique index referring to a logical SIM slot. * - * @hide */ public UiccSlotMapping(int portIndex, int physicalSlotIndex, int logicalSlotIndex) { this.mPortIndex = portIndex;