0

For my app we need a unique device id, to detect which devices was already assigned (used) to customer and which is not assigned (clean) and ready to assign

The problem is Android 10 and above restrict access to hardware device number, IMEI, mac-adress.

On Android 8.0 (API level 26) and higher versions of the platform, a 64-bit number (expressed as a hexadecimal string), unique to each combination of app-signing key, user, and device. The value may change if a factory reset is performed on the device or if an APK signing key changes. I tried to use device_info_plus but it generates a different key after every app reinstall. If you have any solution, ideas, please fell free to suggest

2
  • There is an extensive question over the history of Android about Is there a unique Android device ID?. But why track the device when you should track the user (i.e. allow only one or only a few login devices, enforced server side). If you need to track business/company owned devices then Mobile Device Management/Enterprise Mobility Management is what your business should be looking at. Commented Feb 27, 2023 at 22:51
  • @MorrisonChang devices are delivered with pre-installed app, and we need to detect the same device when user reinstall the app Commented Feb 27, 2023 at 22:57

1 Answer 1

0

Try this lib: device_information 0.0.4 It's old but it works for me :)

Sign up to request clarification or add additional context in comments.

1 Comment

This lib don't show unique Id and throws an exception when trying to receive IMEI

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.