[Bug]: NoSuchMethodException: android.telephony.TelephonyManager.getSimSlotMapping #15

Closed
opened 2024-02-29 11:18:28 +01:00 by moon-cacke · 1 comment

Hi

First thing first and as always thanks for your wonderful work

The method
android.telephony.TelephonyManager.getSimSlotMapping
Was introduced in android 13

(https://raw.githubusercontent.com/LineageOS/android_frameworks_base/lineage-20.0/telephony/java/android/telephony/TelephonyManager.java)

(https://raw.githubusercontent.com/LineageOS/android_frameworks_base/lineage-18.1/telephony/java/android/telephony/TelephonyManager.java)

Slot mapping feature result in app crash on lower android version like android 11...

You can consider using getLogicalToPhysicalSlotMapping() or telephony.getSlotsMapping() for a wider system support or may be disable the feature for android < 13

Thanks

Hi First thing first and as always thanks for your wonderful work The method android.telephony.TelephonyManager.getSimSlotMapping Was introduced in android 13 (https://raw.githubusercontent.com/LineageOS/android_frameworks_base/lineage-20.0/telephony/java/android/telephony/TelephonyManager.java) (https://raw.githubusercontent.com/LineageOS/android_frameworks_base/lineage-18.1/telephony/java/android/telephony/TelephonyManager.java) Slot mapping feature result in app crash on lower android version like android 11... You can consider using getLogicalToPhysicalSlotMapping() or telephony.getSlotsMapping() for a wider system support or may be disable the feature for android < 13 Thanks
Owner

Good point, I was trying to be careful about lower platforms but I probably missed this one. Will just disable the slot mapping madness for pre-13.

Good point, I was trying to be careful about lower platforms but I probably missed this one. Will just disable the slot mapping madness for pre-13.
moon-cacke changed title from Bug: NoSuchMethodException: android.telephony.TelephonyManager.getSimSlotMapping to [Bug]: NoSuchMethodException: android.telephony.TelephonyManager.getSimSlotMapping 2024-03-21 16:37:17 +01:00
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: PeterCxy/OpenEUICC#15
No description provided.