You can try to send sms from the user's mobile phone to yourself and send the code, as well as save this code in the settings. Ask the user to enter this code in your application, and then compare this code with the one you saved in the settings earlier (original). if both matches, then the mobile number is changed.
source
share