Register Sms related broadcast receiver without allowing permission can cause ANR?
I’m investigating ANR issue, I encountered the issue in a screen where user otp automatically inputs the value when received via broadcast receiver but I haven’t allowed the app sms permission.
How to detect SIM state change in Android
I am trying to detect changes in SIM state (in dual sim scenario – single SIM active/inactive, both SIM active/inactive) from Broadcast receiver in Android.
I googled to find solution, but they are outdated, for instance, one solution was to register broadcast receiver with android.intent.action.SIM_STATE_CHANGED, which seems no more supported.