Skip to content

Commit

Permalink
Restore getSimStateForSlotIndex in SubscriptionManager
Browse files Browse the repository at this point in the history
MTK IMS still needs it here

Change-Id: I41bac57c68055f369232359a464642daab94403b
Signed-off-by: Nishant Kumar <www.rajsonu13@gmail.com>
Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com>
  • Loading branch information
AndyCGYan authored and hungphan2001 committed Nov 27, 2023
1 parent 5de2c02 commit 023c4dc
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions telephony/java/android/telephony/SubscriptionManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -2549,6 +2549,20 @@ public boolean isNetworkRoaming(int subId) {
return TelephonyManager.getDefault().isNetworkRoaming(subId);
}

/**
* Returns a constant indicating the state of sim for the slot index.
*
* @param slotIndex Logical SIM slot index.
*
* @see TelephonyManager.SimState
*
* @hide
*/
@TelephonyManager.SimState
public static int getSimStateForSlotIndex(int slotIndex) {
return TelephonyManager.getSimStateForSlotIndex(slotIndex);
}

/**
* Set a field in the subscription database. Note not all fields are supported.
*
Expand Down

0 comments on commit 023c4dc

Please sign in to comment.