Reputation: 2733
This code reads Android device id
:
String androidId = Settings.Secure.getString(App.getAppContext().getContentResolver(), Settings.Secure.ANDROID_ID);
Is it forbidden to use this code inside apps published to Play Store?
I heard publishers are required to use advertisingId
instead.
(In code I use device id
as a constant in mathematics computations, without an attempt to gather personal data).
Upvotes: 0
Views: 186
Reputation: 3444
No it's not forbidden. I have a published app on the play store that uses this. From the docs:
Secure system settings, containing system preferences that applications can read but are not allowed to write.
Notice the part about being allowed to read these settings, which is what you are doing.
Upvotes: 1
Reputation: 4076
There is nothing in the documentation that states it is forbidden - using it in Play Store apps is perfectly fine.
Upvotes: 1