blob: fb31997bf51c6e1aa1b0f8475070c1417064b3a6 [file] [log] [blame]
/*
* Copyright (C) 2022 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package android.healthconnect;
import android.annotation.SystemApi;
// TODO(b/255340973): consider generate this class.
/** Permissions for accessing the HealthConnect APIs. */
public final class HealthPermissions {
private HealthPermissions() {}
/**
* Allows an application to grant/revoke health-related permissions.
*
* <p>Protection level: signature.
*
* @hide
*/
@SystemApi
public static final String MANAGE_HEALTH_PERMISSIONS =
"android.permission.MANAGE_HEALTH_PERMISSIONS";
/**
* Used for runtime permissions which grant access to Health Connect data.
*
* @hide
*/
@SystemApi
public static final String HEALTH_PERMISSION_GROUP = "android.permission-group.HEALTH";
/*
* Allows an application to read the user's active calories burned data.
* <p>Protection level: dangerous
*/
public static final String READ_ACTIVE_CALORIES_BURNED =
"android.permission.health.READ_ACTIVE_CALORIES_BURNED";
/*
* Allows an application to read the user's distance data.
* <p>Protection level: dangerous
*/
public static final String READ_DISTANCE = "android.permission.health.READ_DISTANCE";
/*
* Allows an application to read the user's elevation gained data.
* <p>Protection level: dangerous
*/
public static final String READ_ELEVATION_GAINED =
"android.permission.health.READ_ELEVATION_GAINED";
/*
* Allows an application to read the user's exercise data.
* <p>Protection level: dangerous
*/
public static final String READ_EXERCISE = "android.permission.health.READ_EXERCISE";
/*
* Allows an application to read the user's floors climbed data.
* <p>Protection level: dangerous
*/
public static final String READ_FLOORS_CLIMBED =
"android.permission.health.READ_FLOORS_CLIMBED";
/*
* Allows an application to read the user's steps data.
* <p>Protection level: dangerous
*/
public static final String READ_STEPS = "android.permission.health.READ_STEPS";
/*
* Allows an application to read the user's total calories burned data.
* <p>Protection level: dangerous
*/
public static final String READ_TOTAL_CALORIES_BURNED =
"android.permission.health.READ_TOTAL_CALORIES_BURNED";
/*
* Allows an application to read the user's vo2 maximum data.
* <p>Protection level: dangerous
*/
public static final String READ_VO2_MAX = "android.permission.health.READ_VO2_MAX";
/*
* Allows an application to read the user's wheelchair pushes data.
* <p>Protection level: dangerous
*/
public static final String READ_WHEELCHAIR_PUSHES =
"android.permission.health.READ_WHEELCHAIR_PUSHES";
/*
* Allows an application to read the user's power data.
* <p>Protection level: dangerous
*/
public static final String READ_POWER = "android.permission.health.READ_POWER";
/*
* Allows an application to read the user's speed data.
* <p>Protection level: dangerous
*/
public static final String READ_SPEED = "android.permission.health.READ_SPEED";
/*
* Allows an application to read the user's basal metabolic rate data.
* <p>Protection level: dangerous
*/
public static final String READ_BASAL_METABOLIC_RATE =
"android.permission.health.READ_BASAL_METABOLIC_RATE";
/*
* Allows an application to read the user's body fat data.
* <p>Protection level: dangerous
*/
public static final String READ_BODY_FAT = "android.permission.health.READ_BODY_FAT";
/*
* Allows an application to read the user's body water mass data.
* <p>Protection level: dangerous
*/
public static final String READ_BODY_WATER_MASS =
"android.permission.health.READ_BODY_WATER_MASS";
/*
* Allows an application to read the user's bone mass data.
* <p>Protection level: dangerous
*/
public static final String READ_BONE_MASS = "android.permission.health.READ_BONE_MASS";
/*
* Allows an application to read the user's height data.
* <p>Protection level: dangerous
*/
public static final String READ_HEIGHT = "android.permission.health.READ_HEIGHT";
/*
* Allows an application to read the user's hip circumference data.
* <p>Protection level: dangerous
*/
public static final String READ_HIP_CIRCUMFERENCE =
"android.permission.health.READ_HIP_CIRCUMFERENCE";
/*
* Allows an application to read the user's lean body mass data.
* <p>Protection level: dangerous
*/
public static final String READ_LEAN_BODY_MASS =
"android.permission.health.READ_LEAN_BODY_MASS";
/*
* Allows an application to read the user's waist circumference data.
* <p>Protection level: dangerous
*/
public static final String READ_WAIST_CIRCUMFERENCE =
"android.permission.health.READ_WAIST_CIRCUMFERENCE";
/*
* Allows an application to read the user's weight data.
* <p>Protection level: dangerous
*/
public static final String READ_WEIGHT = "android.permission.health.READ_WEIGHT";
/*
* Allows an application to read the user's cervical mucus data.
* <p>Protection level: dangerous
*/
public static final String READ_CERVICAL_MUCUS =
"android.permission.health.READ_CERVICAL_MUCUS";
/*
* Allows an application to read the user's menstruation data.
* <p>Protection level: dangerous
*/
public static final String READ_MENSTRUATION = "android.permission.health.READ_MENSTRUATION";
/*
* Allows an application to read the user's ovulation test data.
* <p>Protection level: dangerous
*/
public static final String READ_OVULATION_TEST =
"android.permission.health.READ_OVULATION_TEST";
/*
* Allows an application to read the user's sexual activity data.
* <p>Protection level: dangerous
*/
public static final String READ_SEXUAL_ACTIVITY =
"android.permission.health.READ_SEXUAL_ACTIVITY";
/*
* Allows an application to read the user's hydration data.
* <p>Protection level: dangerous
*/
public static final String READ_HYDRATION = "android.permission.health.READ_HYDRATION";
/*
* Allows an application to read the user's nutrition data.
* <p>Protection level: dangerous
*/
public static final String READ_NUTRITION = "android.permission.health.READ_NUTRITION";
/*
* Allows an application to read the user's sleep data.
* <p>Protection level: dangerous
*/
public static final String READ_SLEEP = "android.permission.health.READ_SLEEP";
/*
* Allows an application to read the user's body temperature data.
* <p>Protection level: dangerous
*/
public static final String READ_BASAL_BODY_TEMPERATURE =
"android.permission.health.READ_BASAL_BODY_TEMPERATURE";
/*
* Allows an application to read the user's blood glucose data.
* <p>Protection level: dangerous
*/
public static final String READ_BLOOD_GLUCOSE = "android.permission.health.READ_BLOOD_GLUCOSE";
/*
* Allows an application to read the user's blood pressure data.
* <p>Protection level: dangerous
*/
public static final String READ_BLOOD_PRESSURE =
"android.permission.health.READ_BLOOD_PRESSURE";
/*
* Allows an application to read the user's body temperature data.
* <p>Protection level: dangerous
*/
public static final String READ_BODY_TEMPERATURE =
"android.permission.health.READ_BODY_TEMPERATURE";
/*
* Allows an application to read the user's heart rate data.
* <p>Protection level: dangerous
*/
public static final String READ_HEART_RATE = "android.permission.health.READ_HEART_RATE";
/*
* Allows an application to read the user's heart rate variability data.
* <p>Protection level: dangerous
*/
public static final String READ_HEART_RATE_VARIABILITY =
"android.permission.health.READ_HEART_RATE_VARIABILITY";
/*
* Allows an application to read the user's oxygen saturation data.
* <p>Protection level: dangerous
*/
public static final String READ_OXYGEN_SATURATION =
"android.permission.health.READ_OXYGEN_SATURATION";
/*
* Allows an application to read the user's respiratory rate data.
* <p>Protection level: dangerous
*/
public static final String READ_RESPIRATORY_RATE =
"android.permission.health.READ_RESPIRATORY_RATE";
/*
* Allows an application to read the user's resting heart rate data.
* <p>Protection level: dangerous
*/
public static final String READ_RESTING_HEART_RATE =
"android.permission.health.READ_RESTING_HEART_RATE";
/*
* Allows an application to write the user's calories burned data.
* <p>Protection level: dangerous
*/
public static final String WRITE_ACTIVE_CALORIES_BURNED =
"android.permission.health.WRITE_ACTIVE_CALORIES_BURNED";
/*
* Allows an application to write the user's distance data.
* <p>Protection level: dangerous
*/
public static final String WRITE_DISTANCE = "android.permission.health.WRITE_DISTANCE";
/*
* Allows an application to write the user's elevation gained data.
* <p>Protection level: dangerous
*/
public static final String WRITE_ELEVATION_GAINED =
"android.permission.health.WRITE_ELEVATION_GAINED";
/*
* Allows an application to write the user's exercise data.
* <p>Protection level: dangerous
*/
public static final String WRITE_EXERCISE = "android.permission.health.WRITE_EXERCISE";
/*
* Allows an application to write the user's floors climbed data.
* <p>Protection level: dangerous
*/
public static final String WRITE_FLOORS_CLIMBED =
"android.permission.health.WRITE_FLOORS_CLIMBED";
/*
* Allows an application to write the user's steps data.
* <p>Protection level: dangerous
*/
public static final String WRITE_STEPS = "android.permission.health.WRITE_STEPS";
/*
* Allows an application to write the user's total calories burned data.
* <p>Protection level: dangerous
*/
public static final String WRITE_TOTAL_CALORIES_BURNED =
"android.permission.health.WRITE_TOTAL_CALORIES_BURNED";
/*
* Allows an application to write the user's vo2 maximum data.
* <p>Protection level: dangerous
*/
public static final String WRITE_VO2_MAX = "android.permission.health.WRITE_VO2_MAX";
/*
* Allows an application to write the user's wheelchair pushes data.
* <p>Protection level: dangerous
*/
public static final String WRITE_WHEELCHAIR_PUSHES =
"android.permission.health.WRITE_WHEELCHAIR_PUSHES";
/*
* Allows an application to write the user's power data.
* <p>Protection level: dangerous
*/
public static final String WRITE_POWER = "android.permission.health.WRITE_POWER";
/*
* Allows an application to write the user's speed data.
* <p>Protection level: dangerous
*/
public static final String WRITE_SPEED = "android.permission.health.WRITE_SPEED";
/*
* Allows an application to write the user's basal metabolic rate data.
* <p>Protection level: dangerous
*/
public static final String WRITE_BASAL_METABOLIC_RATE =
"android.permission.health.WRITE_BASAL_METABOLIC_RATE";
/*
* Allows an application to write the user's body fat data.
* <p>Protection level: dangerous
*/
public static final String WRITE_BODY_FAT = "android.permission.health.WRITE_BODY_FAT";
/*
* Allows an application to write the user's body water mass data.
* <p>Protection level: dangerous
*/
public static final String WRITE_BODY_WATER_MASS =
"android.permission.health.WRITE_BODY_WATER_MASS";
/*
* Allows an application to write the user's bone mass data.
* <p>Protection level: dangerous
*/
public static final String WRITE_BONE_MASS = "android.permission.health.WRITE_BONE_MASS";
/*
* Allows an application to write the user's height data.
* <p>Protection level: dangerous
*/
public static final String WRITE_HEIGHT = "android.permission.health.WRITE_HEIGHT";
/*
* Allows an application to write the user's hip circumference data.
* <p>Protection level: dangerous
*/
public static final String WRITE_HIP_CIRCUMFERENCE =
"android.permission.health.WRITE_HIP_CIRCUMFERENCE";
/*
* Allows an application to write the user's lean body mass data.
* <p>Protection level: dangerous
*/
public static final String WRITE_LEAN_BODY_MASS =
"android.permission.health.WRITE_LEAN_BODY_MASS";
/*
* Allows an application to write the user's waist circumference data.
* <p>Protection level: dangerous
*/
public static final String WRITE_WAIST_CIRCUMFERENCE =
"android.permission.health.WRITE_WAIST_CIRCUMFERENCE";
/*
* Allows an application to write the user's weight data.
* <p>Protection level: dangerous
*/
public static final String WRITE_WEIGHT = "android.permission.health.WRITE_WEIGHT";
/*
* Allows an application to write the user's cervical mucus data.
* <p>Protection level: dangerous
*/
public static final String WRITE_CERVICAL_MUCUS =
"android.permission.health.WRITE_CERVICAL_MUCUS";
/*
* Allows an application to write the user's menstruation data.
* <p>Protection level: dangerous
*/
public static final String WRITE_MENSTRUATION = "android.permission.health.WRITE_MENSTRUATION";
/*
* Allows an application to write the user's ovulation test data.
* <p>Protection level: dangerous
*/
public static final String WRITE_OVULATION_TEST =
"android.permission.health.WRITE_OVULATION_TEST";
/*
* Allows an application to write the user's sexual activity data.
* <p>Protection level: dangerous
*/
public static final String WRITE_SEXUAL_ACTIVITY =
"android.permission.health.WRITE_SEXUAL_ACTIVITY";
/*
* Allows an application to write the user's hydration data.
* <p>Protection level: dangerous
*/
public static final String WRITE_HYDRATION = "android.permission.health.WRITE_HYDRATION";
/*
* Allows an application to write the user's nutrition data.
* <p>Protection level: dangerous
*/
public static final String WRITE_NUTRITION = "android.permission.health.WRITE_NUTRITION";
/*
* Allows an application to write the user's sleep data.
* <p>Protection level: dangerous
*/
public static final String WRITE_SLEEP = "android.permission.health.WRITE_SLEEP";
/*
* Allows an application to write the user's basal body temperature data.
* <p>Protection level: dangerous
*/
public static final String WRITE_BASAL_BODY_TEMPERATURE =
"android.permission.health.WRITE_BASAL_BODY_TEMPERATURE";
/*
* Allows an application to write the user's blood glucose data.
* <p>Protection level: dangerous
*/
public static final String WRITE_BLOOD_GLUCOSE =
"android.permission.health.WRITE_BLOOD_GLUCOSE";
/*
* Allows an application to write the user's blood pressure data.
* <p>Protection level: dangerous
*/
public static final String WRITE_BLOOD_PRESSURE =
"android.permission.health.WRITE_BLOOD_PRESSURE";
/*
* Allows an application to write the user's body temperature data.
* <p>Protection level: dangerous
*/
public static final String WRITE_BODY_TEMPERATURE =
"android.permission.health.WRITE_BODY_TEMPERATURE";
/*
* Allows an application to write the user's heart rate data.
* <p>Protection level: dangerous
*/
public static final String WRITE_HEART_RATE = "android.permission.health.WRITE_HEART_RATE";
/*
* Allows an application to write the user's heart rate variability data.
* <p>Protection level: dangerous
*/
public static final String WRITE_HEART_RATE_VARIABILITY =
"android.permission.health.WRITE_HEART_RATE_VARIABILITY";
/*
* Allows an application to write the user's oxygen saturation data.
* <p>Protection level: dangerous
*/
public static final String WRITE_OXYGEN_SATURATION =
"android.permission.health.WRITE_OXYGEN_SATURATION";
/*
* Allows an application to write the user's respiratory rate data.
* <p>Protection level: dangerous
*/
public static final String WRITE_RESPIRATORY_RATE =
"android.permission.health.WRITE_RESPIRATORY_RATE";
/*
* Allows an application to write the user's resting heart rate data.
* <p>Protection level: dangerous
*/
public static final String WRITE_RESTING_HEART_RATE =
"android.permission.health.WRITE_RESTING_HEART_RATE";
}