How do I remove unused Health Connect permissions?
The Terra Android SDK declares all Health Connect permissions by default, which triggers Play Store review questions about permissions you do not actually use.
The Terra Android SDK declares all Health Connect permissions by default, which triggers Play Store review questions about permissions you do not actually use.
Do not delete the lines outright. Instead, add tools:node="remove" to each unused <uses-permission> entry in your AndroidManifest.xml so they are stripped from the merged manifest, while declaring normally the permissions you do use. The SDK keeps working with only the permissions your app uses.
If you intend to read all Health Connect data types:
Complete Google Play's health apps declaration in the Play Console (per Google's health apps declaration docs).
For full data-type access, apply through Google's Health Connect API access form, explaining each data type's use.
Make sure the Play Store health declaration exactly matches the permissions in your manifest, or the submission will be rejected. This is documented in the Android setup section.
Last updated
Was this helpful?