@kakula You may be referring to a different thing than I am.
You don’t need android.permission.READ_PHONE_STATE
in order to use system.getInfo( "deviceID" )
. In fact, I haven’t used that request because it is very invasive in my opinion.
Here’s an excerpt from the docs on the matter, which I had previously linked to:
On Android, if your app uses the "android.permission.READ_PHONE_STATE"
permission, this will return IMEI
for GSM phones, MEID
or ESN
for CDMA phones, or the operating system’s unique ID for devices that are not phones. If your Android app does not use the "android.permission.READ_PHONE_STATE"
permission, the operating system’s unique ID will be returned for all devices. Note that the operating system’s unique ID may change after re-installing the operating system on the device.
So, you can use system.getInfo( "deviceID" )
without worries, but it isn’t the true device ID. It’s just something that Android OS gives your app and this value changes over time. It doesn’t just change when the OS is reinstalled, but perhaps also with software updates. I’m not sure on when it changes, I just know that it does.
As I mentioned, my only use for this API call has been to, on first launch, generate random seeds, random user IDs, or to check if the device belongs to a developer.