📅  最后修改于: 2022-03-11 14:52:42.888000             🧑  作者: Mango
//first add this to mainfirst
//and this in java
TelephonyManager telephonyManager = (TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE);
telephonyManager.getImei();