chore(android): remove unused Health Connect permissions (Play policy, Routing ID ZLFS) - #664
Merged
Merged
Conversation
Removes the 13 Health Connect read permissions the app does not use, which Google Play flagged during health permissions review: ActiveCaloriesBurned, BloodGlucose, BloodPressure, BodyFat, BodyTemperature, Height, HeartRateVariabilityRmssd, OxygenSaturation, RespiratoryRate, RestingHeartRate, SleepSession, TotalCaloriesBurned, Weight Kept: READ_STEPS, READ_DISTANCE, READ_HEART_RATE, READ_SKIN_TEMPERATURE, plus READ_HEALTH_DATA_HISTORY and READ_HEALTH_DATA_IN_BACKGROUND. None of the removed types are referenced from Dart code.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes the Google Play Health Connect Permissions policy rejection (Routing ID
ZLFS, App Bundle Version Code 139, Production).Why
Play review flagged "Excessive data access for declared features" — the manifest declared 13 Health Connect read permissions that no code in the app ever reads. Play requires the minimum necessary scopes, and every requested permission must be demonstrably critical to functionality.
What
Removes the exact 13 permissions Play listed, from
android/app/src/main/AndroidManifest.xml:READ_ACTIVE_CALORIES_BURNEDREAD_TOTAL_CALORIES_BURNEDREAD_BLOOD_GLUCOSEREAD_BLOOD_PRESSUREREAD_BODY_FATREAD_BODY_TEMPERATUREREAD_HEIGHTREAD_WEIGHTREAD_HEART_RATE_VARIABILITYREAD_OXYGEN_SATURATIONREAD_RESPIRATORY_RATEREAD_RESTING_HEART_RATEREAD_SLEEPJustification for what is kept
READ_STEPSREAD_DISTANCEREAD_HEART_RATEREAD_SKIN_TEMPERATUREREAD_HEALTH_DATA_HISTORYREAD_HEALTH_DATA_IN_BACKGROUNDVerification
lib/,assets/,android/) — removal is manifest-only, nothing breaks at runtime.debugandprofilemanifests never declared health permissions.Follow-up outside this PR