TelephonyManager telephoneyManager = (TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE);
String imei = telephoneyManager.getDeviceId();
String sOwnNumber = telephoneyManager.getLine1Number();
String sServer = telephoneyManager.getNetworkOperatorName();
<uses-permission android:name="android.permission.READ_PHONE_STATE" /><!-- 读取本机号码和IMEI权限 -->