0

I need to get IMEI number using c code into android. I tried using command but didn't get success.

Does anybody know how to get IMEI number using native code?

I tried this command

adb shell service call iphonesubinfo 1

and

service call iphonesubinfo 3

also tried this answer

this answer is working, but can not get success in Android 10

Priyanka
  • 3,369
  • 1
  • 10
  • 33
  • 1
    _"but can not get success in Android 10"_ Android 10 doesn't allow 3rd party apps to access the IMEI number. Doesn't matter if you're using native code or not. – Michael Jan 04 '20 at 11:26
  • is there any command to get IMEI number? anything which can return me that? – Priyanka Jan 04 '20 at 11:28
  • None that I know of. The correct solution is to design your app not to rely on an IMEI number. – Michael Jan 04 '20 at 11:32

0 Answers0