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

Skip to content
Commit 0980aa86 authored by Justin Lannin's avatar Justin Lannin
Browse files

ASM: Add required AppOp lookup to custom sensors for all permissions.

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
parent 52683c69
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