android下获取手机号和手机MIEI ID

获取MIEI标识

String myIMSI = android.os.SystemProperties.get(android.telephony.TelephonyProperties.PROPERTY_IMSI);

获取手机号

TelephonyManager telephonyMgr = (TelephonyManager)context.getSystemService(Context.TELEPHONY_SERVICE);
return telephonyMgr.getLine1Number();


原文地址:https://www.cnblogs.com/jacktu/p/1888622.html