+12
−1
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
Previously, we only made an AppOp lookup if the custom sensor used BODY_SENSORS. We are deprecating BODY_SENSORS in favor of READ_HEART_RATE and other granular health permissions. This CL ensures the correct AppOp is used if the custom sensor uses these other permissions. In the spirit of flagging, we guard the expanded AppOp lookup behind the replace_body_sensor_permission_enabled flag. However, it's worth noting that any permission with an existing AppOp would now be used (not just READ_HEART_RATE). Bug: 377576685 Change-Id: Ia16663795479ee49d5b5a82cd5b304b6dd6a26f1 Flag: android.permission.flags.replace_body_sensor_permission_enabled