diff options
| author | 2019-05-17 09:49:39 -0700 | |
|---|---|---|
| committer | 2019-05-17 09:49:39 -0700 | |
| commit | 240d1d6bb84f3f98a11143d5479bf99f546c1504 (patch) | |
| tree | 3a4730cab2288e6c6a448aaf848967cb607b4fa9 /services/surfaceflinger/RegionSamplingThread.cpp | |
| parent | 3f8312b5dc975c391f85f90a4a0586ac3c7ac899 (diff) | |
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
Diffstat (limited to 'services/surfaceflinger/RegionSamplingThread.cpp')
0 files changed, 0 insertions, 0 deletions