Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 91531e37 authored by Brian Duddie's avatar Brian Duddie Committed by Android (Google) Code Review
Browse files

Merge "Update heart rate sensor with new permission for sdk >= 36" into main

parents f408241c 76a44fce
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -418,7 +418,8 @@ public final class Sensor {
     * {@code SENSOR_STATUS_UNRELIABLE} or {@code SENSOR_STATUS_NO_CONTACT}, the heart rate
     * value should be discarded.
     * <p>
     * This sensor requires permission {@code android.permission.BODY_SENSORS}.
     * This sensor requires permission {@code android.permission.BODY_SENSORS} for SDK < 36 and
     * {@code android.permission.health.READ_HEART_RATE} for SDK >= 36.
     * It will not be returned by {@code SensorManager.getSensorsList} nor
     * {@code SensorManager.getDefaultSensor} if the application doesn't have this permission.
     */