Getting Device IMEI

Usually, using java.lang.System.getProperty() can return the device IMEI. Unfortunately, the String parameter you need to use to get the IMEI will change from one handset manufacturer to the next. Strings to try: imei phone.imei com.lge.imei com.nokia.imei com.nokia.mid.imei com.siemens.imei com.sonyericsson.imei com.motorola.imei … you get the idea. you may need to uppercase the last part of the … Read more

Android 10: IMEI no longer available on API 29. Looking for alternatives

I advice you to read the official blog of the best practice of google to see what the use case match with your specification : https://developer.android.com/training/articles/user-data-ids.html For me i occcured the same problem about the unicity of android identifiers and i found the only solution is to use the MediaDrm API ( https://android.googlesource.com/platform/frameworks/base/+/android-cts-4.4_r1/media/java/android/media/MediaDrm.java#539 ) which … Read more

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

How to get IMEI on iPhone?

You can’t get IMEI on iPhone anymore. You may have to use UDID instead. See other answers. In the past, you could use the header file “Message/NetworkController.h” posted on ericasadun.com. http://ericasadun.com/iPhoneDocs300/_network_controller_8h-source.html (It’s been removed now) You would add the NetworkController.h file and the private framework “Message.framework” to your project, then import that header file to … 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

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