docs: Correct sensor runtime permission documentation
The ACTIVITY_RECOGNITION permission applies to TYPE_STEP_DETECTOR, not TYPE_GEOMAGNETIC_ROTATION_VECTOR. Bug: 139363621 Test: n/a, comment update only Change-Id: Ibce74be1e704ded04ae710988d0e03df43ab1cf9
This commit is contained in:
committed by
Kevin Hufnagle
parent
8931739c16
commit
0fcaef12c0
@@ -339,6 +339,8 @@ public final class Sensor {
|
||||
* for {@link #TYPE_STEP_COUNTER} instead. It is defined as a
|
||||
* {@link Sensor#REPORTING_MODE_SPECIAL_TRIGGER} sensor.
|
||||
* <p>
|
||||
* This sensor requires permission {@code android.permission.ACTIVITY_RECOGNITION}.
|
||||
* <p>
|
||||
* See {@link android.hardware.SensorEvent#values SensorEvent.values} for more details.
|
||||
*/
|
||||
public static final int TYPE_STEP_DETECTOR = 18;
|
||||
@@ -384,8 +386,6 @@ public final class Sensor {
|
||||
* gyroscope. This sensor uses lower power than the other rotation vectors, because it doesn't
|
||||
* use the gyroscope. However, it is more noisy and will work best outdoors.
|
||||
* <p>
|
||||
* This sensor requires permission {@code android.permission.ACTIVITY_RECOGNITION}.
|
||||
* <p>
|
||||
* See {@link android.hardware.SensorEvent#values SensorEvent.values} for more details.
|
||||
*/
|
||||
public static final int TYPE_GEOMAGNETIC_ROTATION_VECTOR = 20;
|
||||
|
||||
Reference in New Issue
Block a user