Do not check AppOp if not required
Only check the AppOp if a sensor explicitly requires an AppOp. Otherwise, only check if the client has permission to access the sensor. Bug: 131910349 Test: Verified a_sns_test can access 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: I3c2dd20889b99bce047025607cc6e921330de52e
Loading
Please register or sign in to comment