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

Skip to content
Commit 240d1d6b authored by Brian Stack's avatar Brian Stack
Browse files

Only check noteOp in SensorService if AppOp >= 0

Do not add a sensor to the handle-to-appOp mapping if the sensor's
AppOp is less than 0 since this means that the sensor does not require
an AppOpp.

Bug: 132670516
Test: Verified test tool receives events for sensors
Test: Verified app targeting Q must have AR permission to access Step
      Detector and Step Counter.
Test: Verified app targeting P with AR permission defined in manifest
      cannot receive Step Counter or Step Detector events if user
      revokes AR permission.
Test: Verified app targeting P without any permissions defined in the
      manifest can access Step Counter and Step Detector.
Test: Verified app targeting J cannot receive Step Counter or Step
      Detector events if user revokes AR permission.

Change-Id: Ied0f94fe7e91abd346a4033dbb321833b4a1958c
parent 3f8312b5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment