SIM Number Setter
SIM numbers on the card are often “unknown” when you change carriers, keeping the same number, or requested for a replacement SIM card. This does not mean that you have a null number, the carrier still knows you’re using the same number, however, the card itself don’t store that data. Some apps needs to access this data.
Old Android versions have this feature that you can edit this entry directly and write to SIM itself.
If you’re on Android, and have a rooted device, you can do this by using SIM Number Setter by KieronQuinn. What it is:
SIM Number Setter is a small Xposed module that invokes normally unused Android System code to set the “subscriber number” on the device’s SIM card. This is the number displayed in the system settings, and used in apps such as Google Messages, as well as being available to third party apps with sufficient permissions.
Being an Xposed module, you need Lsposed module as well for it to work. The number you set will persist on the SIM card.
Check it out: https://github.com/KieronQuinn/SIMNumberSetter