On SIM changed

Post your questions and help other users.

Moderator: Martin

Post Reply
Friend1
Posts: 52
Joined: 03 May 2017 06:00

On SIM changed

Post by Friend1 » 20 Mar 2018 06:18

Hi Desmanto,

It's possible to show phone number when SIM card changed? After usage of SIM State trigger how to do this? Thanks.

User avatar
Desmanto
Posts: 2709
Joined: 21 Jul 2017 17:50

Re: On SIM changed

Post by Desmanto » 20 Mar 2018 16:55

I can't find any built-in function in Automagic to detect the number in the SIM card. I wanna know too if there is. Maybe someone who understand java can show us how.

Usually we are the one who should supply the number to the OS, not retrieve from the SIM. But some carriers may have free service number which can be used to check various info, including the current number. Maybe can use that to check the phone number. Call the service number and retrieve the UI element from the response and parse the phone number from there.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.

Post Reply