In Android development platform, you can get the native number via Telephonymanager.
Telephonymanager phonemgr= (Telephonymanager) This.getsystemservice (Context.telephony_service);
Txtphonenumber.settext (Phonemgr.getline1number ()); txtPhoneNumber is a edittext used to display the phone number
Note:
Depending on the security mechanism of Android, when using Telephonymanager, you must add <uses-permission android:name= "Read_phone_state" in Androidmanifest.xml "/> will not be able to obtain the system license.
Phone model Build.model
String MODEL The end-user-visible name for the end product.
SDK version Build.VERSION.SDK
String Sdk This constant is deprecated. Use the sdk_int to easily get the as an integer.
and Frimware version number (System version number) Build.VERSION.RELEASE
String RELEASEThe user-visible version string. such as: 2.1-update1