Welcome! Log In Create A New Profile

Advanced

[WM23] IMEI for Android 9+

Posted by Wilaroth 
[WM23] IMEI for Android 9+
June 22, 2020 11:04AM
Hi everyone,
I've developed an Android app that uses SysIMEI (which is equivalent to SysSerialNum) so i can differentiate and recognize the Android phones that have my app installed.
Sadly, as the Windev help says, this function no longer works for Android 9 and above.
Is there another function/way to replace SysIMEI?
TIA
Re: [WM23] IMEI for Android 9+
June 22, 2020 03:00PM
Hi

In WM22 I use SysIdentifier(), works on Android 10.

Hope that still works for 23.

Cheers

Pete
Re: [WM23] IMEI for Android 9+
June 22, 2020 04:46PM
Hi Pete,
thanks for the reply.
I've tried SysIdentifier and it works, even among different apps, IF:

-Every app has the same signature;
-The user on the phone is always the same;
-There will be no factory reset on the phone.

Otherwise, it will change everytime.
For the time being I will use your suggestion, but that's a pity that SysIMEI, which returns the same value on the same phone no matter what (set aside advanced tinkering on the phone), has been disabled.
Thank you again.
Argus
Re: [WM23] IMEI for Android 9+
June 25, 2020 12:44PM
I haven't tried, but it SEEMS it still may be possible:

...Starting in Android 10, apps must have the READ_PRIVILEGED_PHONE_STATE privileged permission in order to access the device's non-resettable identifiers, which include both IMEI and serial number....

Source :
[developer.android.com]
Re: [WM23] IMEI for Android 9+
July 06, 2020 05:51PM
Hi Argus,
I tried inserting your permission in the manifest, but with no avail, sadly
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: