v1 is HERE
V2 is updated for target api 30, so i post v2 here this community.
why this extension
Since we are not able to get DeviceId, get Imei, get Meid, get SimSerialNumber, get SubscriberId and get Serial from Android 10 and higher devices,
the most practical way is to generate a random string and save it on sdcard, and retrieve the string back from the file when needed.
This is what this extension is doing.
This extension will ask READ_EXTERNAL_STORAGE permission, if denied, it will return empty string.
1.defautltFileScope need to be set to legacy, other wise no permission granted.
V2: cn.kevinkun.UUID.aix (12.5 KB)
if you think this extension is useful to you, you may donate to here
Any feedback/ suggestion are welcomed.