imei
I am getting IMEI null in Android Q?
Android Q has restricted to access for both IMEI and serial no. It is available only for platform and apps with special carrier permission. Also the permission READ_PRIVILEGED_PHONE_STATE is not available for non platform apps. If you try to access it throws below exception java.lang.SecurityException: getImeiForSlot: The user 10180 does not meet the requirements to … Read more
Android : Check whether the phone is dual SIM
Update 23 March’15 : Official multiple SIM API is available now from Android 5.1 onwards Other possible option : You can use Java reflection to get both IMEI numbers. Using these IMEI numbers you can check whether the phone is a DUAL SIM or not. Try following activity : import android.app.Activity; import android.os.Bundle; import android.widget.TextView; … Read more
How to get the device’s IMEI/ESN programmatically in android?
You want to call android.telephony.TelephonyManager.getDeviceId(). This will return whatever string uniquely identifies the device (IMEI on GSM, MEID for CDMA). You’ll need the following permission in your AndroidManifest.xml: <uses-permission android:name=”android.permission.READ_PHONE_STATE” /> in order to do this. That being said, be careful about doing this. Not only will users wonder why your application is accessing their … Read more