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

Commit 76a44fce authored by Spencer Sutterlin's avatar Spencer Sutterlin
Browse files

Update heart rate sensor with new permission for sdk >= 36

In Android 16+, this sensor is now guarded with `android.permission.health.READ_HEART_RATE`.

Bug: 408367333
Flag: DOCS_ONLY
Change-Id: I23edeeeaf33de364139e79d61af5bbf0019ee4b3
parent a1dc2c6a
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.
     */