Skip to content

Commit

Permalink
require OTHER_SENSORS permission for sensors
Browse files Browse the repository at this point in the history
Ported from 10: ff005a6b6a38baef95c4a01d7e1fc75aac651a58
  • Loading branch information
thestinger authored and kdrag0n committed Jun 7, 2022
1 parent 5361fff commit abf0760
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libs/sensor/Sensor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ Sensor::Sensor(struct sensor_t const& hwSensor, const uuid_t& uuid, int halVersi
mMinDelay = hwSensor.minDelay;
mFlags = 0;
mUuid = uuid;
mRequiredPermission = "android.permission.OTHER_SENSORS";

// Set fifo event count zero for older devices which do not support batching. Fused
// sensors also have their fifo counts set to zero.
Expand Down

0 comments on commit abf0760

Please sign in to comment.