Issue With Device ID

Hello Guys,
I Face Weird Issue Today.
Untitled

This is Device ID from Same Mobile.
1st is Login From Mobile number and password and second is login from Google.

Why both Device Ids are Different?

Are you sure??? I didn’t face like this…

Yes I M Sure.
I Tried Many Time But Got Same Result.

I Request you to try and Check.

In live testing you will get different device ID. But in app you will get same

Also note that getting device id won’t work on Android 10 and higher devices because the application needs this permission:
android.permission.READ_PRIVILEGED_PHONE_STATE which is granted to only apps signed with the platform key and privileged system apps.

So you won’t be able to get DeviceId, get Imei, get Meid, get SimSerialNumber, get SubscriberId and get Serial

https://source.android.com/devices/tech/config/device-identifiers

1 Like

Can We Allow to Access Device ID if User Grant Permission ?

Nope. This permission isn’t available for non-system app. If you tried to ask this then you will probably face a security exception.

Refer here:

2 Likes

Then What is Solution?
Pls Describe

Procedure getUUID()
if exist(aa.txt in sdcard) then //after reinstall app
Read from aa.txt
else //first time install app
generate uuid(some unique string)
write aa.txt in sdcard

Thanks For Help But I’m Not understand this process.
Will u pls provide me suitable .aia? I’ll learn from it.

Thanks You

pls check here:

2 Likes