HealthPermissions

public final class HealthPermissions
extends Object

java.lang.Object
   ↳ android.health.connect.HealthPermissions


Permissions for accessing the HealthConnect APIs.

Apps must support Intent.ACTION_VIEW_PERMISSION_USAGE with HealthConnectManager.CATEGORY_HEALTH_PERMISSIONS category to be granted read/write health data permissions.

Summary

Constants

String READ_ACTIVE_CALORIES_BURNED

Allows an application to read the user's active calories burned data.

String READ_BASAL_BODY_TEMPERATURE

Allows an application to read the user's body temperature data.

String READ_BASAL_METABOLIC_RATE

Allows an application to read the user's basal metabolic rate data.

String READ_BLOOD_GLUCOSE

Allows an application to read the user's blood glucose data.

String READ_BLOOD_PRESSURE

Allows an application to read the user's blood pressure data.

String READ_BODY_FAT

Allows an application to read the user's body fat data.

String READ_BODY_TEMPERATURE

Allows an application to read the user's body temperature data.

String READ_BODY_WATER_MASS

Allows an application to read the user's body water mass data.

String READ_BONE_MASS

Allows an application to read the user's bone mass data.

String READ_CERVICAL_MUCUS

Allows an application to read the user's cervical mucus data.

String READ_DISTANCE

Allows an application to read the user's distance data.

String READ_ELEVATION_GAINED

Allows an application to read the user's elevation gained data.

String READ_EXERCISE

Allows an application to read the user's exercise data.

String READ_FLOORS_CLIMBED

Allows an application to read the user's floors climbed data.

String READ_HEART_RATE

Allows an application to read the user's heart rate data.

String READ_HEART_RATE_VARIABILITY

Allows an application to read the user's heart rate variability data.

String READ_HEIGHT

Allows an application to read the user's height data.

String READ_HYDRATION

Allows an application to read the user's hydration data.

String READ_INTERMENSTRUAL_BLEEDING

Allows an application to read the user's intermenstrual bleeding data.

String READ_LEAN_BODY_MASS

Allows an application to read the user's lean body mass data.

String READ_MENSTRUATION

Allows an application to read the user's menstruation data.

String READ_NUTRITION

Allows an application to read the user's nutrition data.

String READ_OVULATION_TEST

Allows an application to read the user's ovulation test data.

String READ_OXYGEN_SATURATION

Allows an application to read the user's oxygen saturation data.

String READ_POWER

Allows an application to read the user's power data.

String READ_RESPIRATORY_RATE

Allows an application to read the user's respiratory rate data.

String READ_RESTING_HEART_RATE

Allows an application to read the user's resting heart rate data.

String READ_SEXUAL_ACTIVITY

Allows an application to read the user's sexual activity data.

String READ_SLEEP

Allows an application to read the user's sleep data.

String READ_SPEED

Allows an application to read the user's speed data.

String READ_STEPS

Allows an application to read the user's steps data.

String READ_TOTAL_CALORIES_BURNED

Allows an application to read the user's total calories burned data.

String READ_VO2_MAX

Allows an application to read the user's vo2 maximum data.

String READ_WEIGHT

Allows an application to read the user's weight data.

String READ_WHEELCHAIR_PUSHES

Allows an application to read the user's wheelchair pushes data.

String WRITE_ACTIVE_CALORIES_BURNED

Allows an application to write the user's calories burned data.

String WRITE_BASAL_BODY_TEMPERATURE

Allows an application to write the user's basal body temperature data.

String WRITE_BASAL_METABOLIC_RATE

Allows an application to write the user's basal metabolic rate data.

String WRITE_BLOOD_GLUCOSE

Allows an application to write the user's blood glucose data.

String WRITE_BLOOD_PRESSURE

Allows an application to write the user's blood pressure data.

String WRITE_BODY_FAT

Allows an application to write the user's body fat data.

String WRITE_BODY_TEMPERATURE

Allows an application to write the user's body temperature data.

String WRITE_BODY_WATER_MASS

Allows an application to write the user's body water mass data.

String WRITE_BONE_MASS

Allows an application to write the user's bone mass data.

String WRITE_CERVICAL_MUCUS

Allows an application to write the user's cervical mucus data.

String WRITE_DISTANCE

Allows an application to write the user's distance data.

String WRITE_ELEVATION_GAINED

Allows an application to write the user's elevation gained data.

String WRITE_EXERCISE

Allows an application to write the user's exercise data.

String WRITE_EXERCISE_ROUTE

Allows an application to write the user's exercise route.

String WRITE_FLOORS_CLIMBED

Allows an application to write the user's floors climbed data.

String WRITE_HEART_RATE

Allows an application to write the user's heart rate data.

String WRITE_HEART_RATE_VARIABILITY

Allows an application to write the user's heart rate variability data.

String WRITE_HEIGHT

Allows an application to write the user's height data.

String WRITE_HYDRATION

Allows an application to write the user's hydration data.

String WRITE_INTERMENSTRUAL_BLEEDING

Allows an application to write the user's intermenstrual bleeding data.

String WRITE_LEAN_BODY_MASS

Allows an application to write the user's lean body mass data.

String WRITE_MENSTRUATION

Allows an application to write the user's menstruation data.

String WRITE_NUTRITION

Allows an application to write the user's nutrition data.

String WRITE_OVULATION_TEST

Allows an application to write the user's ovulation test data.

String WRITE_OXYGEN_SATURATION

Allows an application to write the user's oxygen saturation data.

String WRITE_POWER

Allows an application to write the user's power data.

String WRITE_RESPIRATORY_RATE

Allows an application to write the user's respiratory rate data.

String WRITE_RESTING_HEART_RATE

Allows an application to write the user's resting heart rate data.

String WRITE_SEXUAL_ACTIVITY

Allows an application to write the user's sexual activity data.

String WRITE_SLEEP

Allows an application to write the user's sleep data.

String WRITE_SPEED

Allows an application to write the user's speed data.

String WRITE_STEPS

Allows an application to write the user's steps data.

String WRITE_TOTAL_CALORIES_BURNED

Allows an application to write the user's total calories burned data.

String WRITE_VO2_MAX

Allows an application to write the user's vo2 maximum data.

String WRITE_WEIGHT

Allows an application to write the user's weight data.

String WRITE_WHEELCHAIR_PUSHES

Allows an application to write the user's wheelchair pushes data.

Inherited methods

Constants

READ_ACTIVE_CALORIES_BURNED

Added in API level 34
public static final String READ_ACTIVE_CALORIES_BURNED

Allows an application to read the user's active calories burned data.

Protection level: dangerous.

Constant Value: "android.permission.health.READ_ACTIVE_CALORIES_BURNED"

READ_BASAL_BODY_TEMPERATURE

Added in API level 34
public static final String READ_BASAL_BODY_TEMPERATURE

Allows an application to read the user's body temperature data.

Protection level: dangerous.

Constant Value: "android.permission.health.READ_BASAL_BODY_TEMPERATURE"

READ_BASAL_METABOLIC_RATE

Added in API level 34
public static final String READ_BASAL_METABOLIC_RATE

Allows an application to read the user's basal metabolic rate data.

Protection level: dangerous.

Constant Value: "android.permission.health.READ_BASAL_METABOLIC_RATE"

READ_BLOOD_GLUCOSE

Added in API level 34
public static final String READ_BLOOD_GLUCOSE

Allows an application to read the user's blood glucose data.

Protection level: dangerous.

Constant Value: "android.permission.health.READ_BLOOD_GLUCOSE"

READ_BLOOD_PRESSURE

Added in API level 34
public static final String READ_BLOOD_PRESSURE

Allows an application to read the user's blood pressure data.

Protection level: dangerous.

Constant Value: "android.permission.health.READ_BLOOD_PRESSURE"

READ_BODY_FAT

Added in API level 34
public static final String READ_BODY_FAT

Allows an application to read the user's body fat data.

Protection level: dangerous.

Constant Value: "android.permission.health.READ_BODY_FAT"

READ_BODY_TEMPERATURE

Added in API level 34
public static final String READ_BODY_TEMPERATURE

Allows an application to read the user's body temperature data.

Protection level: dangerous.

Constant Value: "android.permission.health.READ_BODY_TEMPERATURE"

READ_BODY_WATER_MASS

Added in API level 34
public static final String READ_BODY_WATER_MASS

Allows an application to read the user's body water mass data.

Protection level: dangerous.

Constant Value: "android.permission.health.READ_BODY_WATER_MASS"

READ_BONE_MASS

Added in API level 34
public static final String READ_BONE_MASS

Allows an application to read the user's bone mass data.

Protection level: dangerous.

Constant Value: "android.permission.health.READ_BONE_MASS"

READ_CERVICAL_MUCUS

Added in API level 34
public static final String READ_CERVICAL_MUCUS

Allows an application to read the user's cervical mucus data.

Protection level: dangerous.

Constant Value: "android.permission.health.READ_CERVICAL_MUCUS"

READ_DISTANCE

Added in API level 34
public static final String READ_DISTANCE

Allows an application to read the user's distance data.

Protection level: dangerous.

Constant Value: "android.permission.health.READ_DISTANCE"

READ_ELEVATION_GAINED

Added in API level 34
public static final String READ_ELEVATION_GAINED

Allows an application to read the user's elevation gained data.

Protection level: dangerous.

Constant Value: "android.permission.health.READ_ELEVATION_GAINED"

READ_EXERCISE

Added in API level 34
public static final String READ_EXERCISE

Allows an application to read the user's exercise data.

Protection level: dangerous.

Constant Value: "android.permission.health.READ_EXERCISE"

READ_FLOORS_CLIMBED

Added in API level 34
public static final String READ_FLOORS_CLIMBED

Allows an application to read the user's floors climbed data.

Protection level: dangerous.

Constant Value: "android.permission.health.READ_FLOORS_CLIMBED"

READ_HEART_RATE

Added in API level 34
public static final String READ_HEART_RATE

Allows an application to read the user's heart rate data.

Protection level: dangerous.

Constant Value: "android.permission.health.READ_HEART_RATE"

READ_HEART_RATE_VARIABILITY

Added in API level 34
public static final String READ_HEART_RATE_VARIABILITY

Allows an application to read the user's heart rate variability data.

Protection level: dangerous.

Constant Value: "android.permission.health.READ_HEART_RATE_VARIABILITY"

READ_HEIGHT

Added in API level 34
public static final String READ_HEIGHT

Allows an application to read the user's height data.

Protection level: dangerous.

Constant Value: "android.permission.health.READ_HEIGHT"

READ_HYDRATION

Added in API level 34
public static final String READ_HYDRATION

Allows an application to read the user's hydration data.

Protection level: dangerous.

Constant Value: "android.permission.health.READ_HYDRATION"

READ_INTERMENSTRUAL_BLEEDING

Added in API level 34
public static final String READ_INTERMENSTRUAL_BLEEDING

Allows an application to read the user's intermenstrual bleeding data.

Protection level: dangerous.

Constant Value: "android.permission.health.READ_INTERMENSTRUAL_BLEEDING"

READ_LEAN_BODY_MASS

Added in API level 34
public static final String READ_LEAN_BODY_MASS

Allows an application to read the user's lean body mass data.

Protection level: dangerous.

Constant Value: "android.permission.health.READ_LEAN_BODY_MASS"

READ_MENSTRUATION

Added in API level 34
public static final String READ_MENSTRUATION

Allows an application to read the user's menstruation data.

Protection level: dangerous.

Constant Value: "android.permission.health.READ_MENSTRUATION"

READ_NUTRITION

Added in API level 34
public static final String READ_NUTRITION

Allows an application to read the user's nutrition data.

Protection level: dangerous.

Constant Value: "android.permission.health.READ_NUTRITION"

READ_OVULATION_TEST

Added in API level 34
public static final String READ_OVULATION_TEST

Allows an application to read the user's ovulation test data.

Protection level: dangerous.

Constant Value: "android.permission.health.READ_OVULATION_TEST"

READ_OXYGEN_SATURATION

Added in API level 34
public static final String READ_OXYGEN_SATURATION

Allows an application to read the user's oxygen saturation data.

Protection level: dangerous.

Constant Value: "android.permission.health.READ_OXYGEN_SATURATION"

READ_POWER

Added in API level 34
public static final String READ_POWER

Allows an application to read the user's power data.

Protection level: dangerous.

Constant Value: "android.permission.health.READ_POWER"

READ_RESPIRATORY_RATE

Added in API level 34
public static final String READ_RESPIRATORY_RATE

Allows an application to read the user's respiratory rate data.

Protection level: dangerous.

Constant Value: "android.permission.health.READ_RESPIRATORY_RATE"

READ_RESTING_HEART_RATE

Added in API level 34
public static final String READ_RESTING_HEART_RATE

Allows an application to read the user's resting heart rate data.

Protection level: dangerous.

Constant Value: "android.permission.health.READ_RESTING_HEART_RATE"

READ_SEXUAL_ACTIVITY

Added in API level 34
public static final String READ_SEXUAL_ACTIVITY

Allows an application to read the user's sexual activity data.

Protection level: dangerous.

Constant Value: "android.permission.health.READ_SEXUAL_ACTIVITY"

READ_SLEEP

Added in API level 34
public static final String READ_SLEEP

Allows an application to read the user's sleep data.

Protection level: dangerous.

Constant Value: "android.permission.health.READ_SLEEP"

READ_SPEED

Added in API level 34
public static final String READ_SPEED

Allows an application to read the user's speed data.

Protection level: dangerous.

Constant Value: "android.permission.health.READ_SPEED"

READ_STEPS

Added in API level 34
public static final String READ_STEPS

Allows an application to read the user's steps data.

Protection level: dangerous.

Constant Value: "android.permission.health.READ_STEPS"

READ_TOTAL_CALORIES_BURNED

Added in API level 34
public static final String READ_TOTAL_CALORIES_BURNED

Allows an application to read the user's total calories burned data.

Protection level: dangerous.

Constant Value: "android.permission.health.READ_TOTAL_CALORIES_BURNED"

READ_VO2_MAX

Added in API level 34
public static final String READ_VO2_MAX

Allows an application to read the user's vo2 maximum data.

Protection level: dangerous.

Constant Value: "android.permission.health.READ_VO2_MAX"

READ_WEIGHT

Added in API level 34
public static final String READ_WEIGHT

Allows an application to read the user's weight data.

Protection level: dangerous.

Constant Value: "android.permission.health.READ_WEIGHT"

READ_WHEELCHAIR_PUSHES

Added in API level 34
public static final String READ_WHEELCHAIR_PUSHES

Allows an application to read the user's wheelchair pushes data.

Protection level: dangerous.

Constant Value: "android.permission.health.READ_WHEELCHAIR_PUSHES"

WRITE_ACTIVE_CALORIES_BURNED

Added in API level 34
public static final String WRITE_ACTIVE_CALORIES_BURNED

Allows an application to write the user's calories burned data.

Protection level: dangerous.

Constant Value: "android.permission.health.WRITE_ACTIVE_CALORIES_BURNED"

WRITE_BASAL_BODY_TEMPERATURE

Added in API level 34
public static final String WRITE_BASAL_BODY_TEMPERATURE

Allows an application to write the user's basal body temperature data.

Protection level: dangerous.

Constant Value: "android.permission.health.WRITE_BASAL_BODY_TEMPERATURE"

WRITE_BASAL_METABOLIC_RATE

Added in API level 34
public static final String WRITE_BASAL_METABOLIC_RATE

Allows an application to write the user's basal metabolic rate data.

Protection level: dangerous.

Constant Value: "android.permission.health.WRITE_BASAL_METABOLIC_RATE"

WRITE_BLOOD_GLUCOSE

Added in API level 34
public static final String WRITE_BLOOD_GLUCOSE

Allows an application to write the user's blood glucose data.

Protection level: dangerous.

Constant Value: "android.permission.health.WRITE_BLOOD_GLUCOSE"

WRITE_BLOOD_PRESSURE

Added in API level 34
public static final String WRITE_BLOOD_PRESSURE

Allows an application to write the user's blood pressure data.

Protection level: dangerous.

Constant Value: "android.permission.health.WRITE_BLOOD_PRESSURE"

WRITE_BODY_FAT

Added in API level 34
public static final String WRITE_BODY_FAT

Allows an application to write the user's body fat data.

Protection level: dangerous.

Constant Value: "android.permission.health.WRITE_BODY_FAT"

WRITE_BODY_TEMPERATURE

Added in API level 34
public static final String WRITE_BODY_TEMPERATURE

Allows an application to write the user's body temperature data.

Protection level: dangerous.

Constant Value: "android.permission.health.WRITE_BODY_TEMPERATURE"

WRITE_BODY_WATER_MASS

Added in API level 34
public static final String WRITE_BODY_WATER_MASS

Allows an application to write the user's body water mass data.

Protection level: dangerous.

Constant Value: "android.permission.health.WRITE_BODY_WATER_MASS"

WRITE_BONE_MASS

Added in API level 34
public static final String WRITE_BONE_MASS

Allows an application to write the user's bone mass data.

Protection level: dangerous.

Constant Value: "android.permission.health.WRITE_BONE_MASS"

WRITE_CERVICAL_MUCUS

Added in API level 34
public static final String WRITE_CERVICAL_MUCUS

Allows an application to write the user's cervical mucus data.

Protection level: dangerous.

Constant Value: "android.permission.health.WRITE_CERVICAL_MUCUS"

WRITE_DISTANCE

Added in API level 34
public static final String WRITE_DISTANCE

Allows an application to write the user's distance data.

Protection level: dangerous.

Constant Value: "android.permission.health.WRITE_DISTANCE"

WRITE_ELEVATION_GAINED

Added in API level 34
public static final String WRITE_ELEVATION_GAINED

Allows an application to write the user's elevation gained data.

Protection level: dangerous.

Constant Value: "android.permission.health.WRITE_ELEVATION_GAINED"

WRITE_EXERCISE

Added in API level 34
public static final String WRITE_EXERCISE

Allows an application to write the user's exercise data. Additional permission WRITE_EXERCISE_ROUTE is required to write user's exercise route.

Protection level: dangerous.

Constant Value: "android.permission.health.WRITE_EXERCISE"

WRITE_EXERCISE_ROUTE

Added in API level 34
public static final String WRITE_EXERCISE_ROUTE

Allows an application to write the user's exercise route.

Protection level: dangerous.

Constant Value: "android.permission.health.WRITE_EXERCISE_ROUTE"

WRITE_FLOORS_CLIMBED

Added in API level 34
public static final String WRITE_FLOORS_CLIMBED

Allows an application to write the user's floors climbed data.

Protection level: dangerous.

Constant Value: "android.permission.health.WRITE_FLOORS_CLIMBED"

WRITE_HEART_RATE

Added in API level 34
public static final String WRITE_HEART_RATE

Allows an application to write the user's heart rate data.

Protection level: dangerous.

Constant Value: "android.permission.health.WRITE_HEART_RATE"

WRITE_HEART_RATE_VARIABILITY

Added in API level 34
public static final String WRITE_HEART_RATE_VARIABILITY

Allows an application to write the user's heart rate variability data.

Protection level: dangerous.

Constant Value: "android.permission.health.WRITE_HEART_RATE_VARIABILITY"

WRITE_HEIGHT

Added in API level 34
public static final String WRITE_HEIGHT

Allows an application to write the user's height data.

Protection level: dangerous.

Constant Value: "android.permission.health.WRITE_HEIGHT"

WRITE_HYDRATION

Added in API level 34
public static final String WRITE_HYDRATION

Allows an application to write the user's hydration data.

Protection level: dangerous.

Constant Value: "android.permission.health.WRITE_HYDRATION"

WRITE_INTERMENSTRUAL_BLEEDING

Added in API level 34
public static final String WRITE_INTERMENSTRUAL_BLEEDING

Allows an application to write the user's intermenstrual bleeding data.

Protection level: dangerous.

Constant Value: "android.permission.health.WRITE_INTERMENSTRUAL_BLEEDING"

WRITE_LEAN_BODY_MASS

Added in API level 34
public static final String WRITE_LEAN_BODY_MASS

Allows an application to write the user's lean body mass data.

Protection level: dangerous.

Constant Value: "android.permission.health.WRITE_LEAN_BODY_MASS"

WRITE_MENSTRUATION

Added in API level 34
public static final String WRITE_MENSTRUATION

Allows an application to write the user's menstruation data.

Protection level: dangerous.

Constant Value: "android.permission.health.WRITE_MENSTRUATION"

WRITE_NUTRITION

Added in API level 34
public static final String WRITE_NUTRITION

Allows an application to write the user's nutrition data.

Protection level: dangerous.

Constant Value: "android.permission.health.WRITE_NUTRITION"

WRITE_OVULATION_TEST

Added in API level 34
public static final String WRITE_OVULATION_TEST

Allows an application to write the user's ovulation test data.

Protection level: dangerous.

Constant Value: "android.permission.health.WRITE_OVULATION_TEST"

WRITE_OXYGEN_SATURATION

Added in API level 34
public static final String WRITE_OXYGEN_SATURATION

Allows an application to write the user's oxygen saturation data.

Protection level: dangerous.

Constant Value: "android.permission.health.WRITE_OXYGEN_SATURATION"

WRITE_POWER

Added in API level 34
public static final String WRITE_POWER

Allows an application to write the user's power data.

Protection level: dangerous.

Constant Value: "android.permission.health.WRITE_POWER"

WRITE_RESPIRATORY_RATE

Added in API level 34
public static final String WRITE_RESPIRATORY_RATE

Allows an application to write the user's respiratory rate data.

Protection level: dangerous.

Constant Value: "android.permission.health.WRITE_RESPIRATORY_RATE"

WRITE_RESTING_HEART_RATE

Added in API level 34
public static final String WRITE_RESTING_HEART_RATE

Allows an application to write the user's resting heart rate data.

Protection level: dangerous.

Constant Value: "android.permission.health.WRITE_RESTING_HEART_RATE"

WRITE_SEXUAL_ACTIVITY

Added in API level 34
public static final String WRITE_SEXUAL_ACTIVITY

Allows an application to write the user's sexual activity data.

Protection level: dangerous.

Constant Value: "android.permission.health.WRITE_SEXUAL_ACTIVITY"

WRITE_SLEEP

Added in API level 34
public static final String WRITE_SLEEP

Allows an application to write the user's sleep data.

Protection level: dangerous.

Constant Value: "android.permission.health.WRITE_SLEEP"

WRITE_SPEED

Added in API level 34
public static final String WRITE_SPEED

Allows an application to write the user's speed data.

Protection level: dangerous.

Constant Value: "android.permission.health.WRITE_SPEED"

WRITE_STEPS

Added in API level 34
public static final String WRITE_STEPS

Allows an application to write the user's steps data.

Protection level: dangerous.

Constant Value: "android.permission.health.WRITE_STEPS"

WRITE_TOTAL_CALORIES_BURNED

Added in API level 34
public static final String WRITE_TOTAL_CALORIES_BURNED

Allows an application to write the user's total calories burned data.

Protection level: dangerous.

Constant Value: "android.permission.health.WRITE_TOTAL_CALORIES_BURNED"

WRITE_VO2_MAX

Added in API level 34
public static final String WRITE_VO2_MAX

Allows an application to write the user's vo2 maximum data.

Protection level: dangerous.

Constant Value: "android.permission.health.WRITE_VO2_MAX"

WRITE_WEIGHT

Added in API level 34
public static final String WRITE_WEIGHT

Allows an application to write the user's weight data.

Protection level: dangerous.

Constant Value: "android.permission.health.WRITE_WEIGHT"

WRITE_WHEELCHAIR_PUSHES

Added in API level 34
public static final String WRITE_WHEELCHAIR_PUSHES

Allows an application to write the user's wheelchair pushes data.

Protection level: dangerous.

Constant Value: "android.permission.health.WRITE_WHEELCHAIR_PUSHES"