I have the following problem in my application. On the first boot I get androidID using the following method:
Settings.Secure.getString(context.getContentResolver(), Settings.Secure.ANDROID_ID)
This code is being used to validate in a webservice whether it is the first installation of the application on a particular device.
But when you perform an android recovery, or give it a recovery, that code is raised again, the Google documentation says it is updated every time the system boots.
I need a code that is unique and can not be the IMEI because it does not exist on devices that do not have a chip.
Any suggestions?