How to get & store mobile phone number on a (any..) Android device

It looks like mobile operators no longer store the mobile phone number on the SIM card.

So any tooling / code that tries to read the mobile phone number in the Android SDK designated way will fail to produce a phone number.


I am looking for any tooling that can request and put the mobile phone number on the device storage (eg. by using USSD codes)?


Has anyone seen something like this?


Eventually an MDM system like SOTI MobiControl should read this date, and centrally store it as a device attribute