java获得android的imei号步骤:
1、权限添加:
2、调用android的api
TelephonyManager telephonyManager = (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE);
String IMEI = telephonyManager.getDeviceId();
3、adb命令获得:
adb shell dumpsys iphonesubinfo
4、任何手机都可以在拨打电话的界面输入*#06# 来查看IMEI。