I have an android app written in Java.
I am trying to find a way to identify a single device with a unique identifier which would be great if it remained the same even after a factory reset.
I want to only allow one account on a particular device. He/She should not be able to create another account on the same device or login with other credentials. What is good way to do this?
Things I have explored:
1.ANDROID_ID: this is subject to change on a factory reset or change in app signing key and is scoped by android in respect to user, app sign key.
2.Google FrameWork Services ID: subject to change on factory reset
3.WideVine Device Unique ID: Widevine L3 device: changes on factory reset WideVine L1 device: remains constant however it was reported that 2 or more devices may have the same widevine device unique id as mentioned in this thread: Android MediaDrm unique id
Which is the best for my use case? I intend to support devices from android 6 (API 23) and above.
Regards and Thank you.