There are many of questions/answers on how to detect if the user as changed or not is SIM but many of them rely on obtaining the SIM card imsi (TelephonyManager.getSubscriberId()) and since this info is no longer available (https://developer.android.com/about/versions/10/privacy/changes#non-resettable-device-ids), on Android Q/10 how can we detect that the user changed is SIM?