Android Question Android 10 - None of the device unique ids are exposed.

Robert Valentino

Well-Known Member
Licensed User
Longtime User
According to this post by Erel (https://www.b4x.com/android/forum/threads/android-jar-targetsdkversion-minsdkversion.87610/#content)

On Android 10 " None of the device unique ids are exposed. The only id available is the advertising id: https://www.b4x.com/android/forum/threads/101050/#content"

I don't have a device with Android 10 on it. Can someone tell me what happens if I go after one of the device unique ids?

B4X:
Dim R                       As Reflector

r.GetStaticField("android.os.Build", "SERIAL")

Dim P As Phone           
P.GetSettings("android_id")

Does the APP crash? Or is nothing returned?

BobVal
 

Peter Simpson

Expert
Licensed User
Longtime User
On my test device which is a P 4 XL running Android 11.

Reflector returns unknown
Phone returns 1889c872......... etc etc etc.
 
Upvote 0
Top