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

Commit c45c27bf authored by Justin Lannin's avatar Justin Lannin
Browse files

Shell: Add health permissions for CTS tests.

BODY_SENSORS is being replaced with granular permissions
READ_HEART_RATE, READ_SKIN_TEMPERATURE, and READ_OXYGEN_SATURATION.
BODY_SENSORS was previously granted to shell, add the new permissions to shell as well.

BODY_SENSORS and the other health permissions are not added to privapp-permissions so not adding these there either.

Change-Id: I9a2bfbbfa1d0fda55cabab6978bb96fb9e1610a6
Flag: android.permission.flags.replace_body_sensor_permission_enabled
Test: atest ActivityManagerForegroundServiceTypeTest on Wear emulator
Bug: 379983910
parent e83ada6d
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -27,6 +27,7 @@ android_app {
    ],
    flags_packages: [
        "android.security.flags-aconfig",
        "android.permission.flags-aconfig",
    ],
    platform_apis: true,
    certificate: "platform",
@@ -51,5 +52,6 @@ android_library {
    manifest: "AndroidManifest.xml",
    flags_packages: [
        "android.security.flags-aconfig",
        "android.permission.flags-aconfig",
    ],
}
+8 −0
Original line number Diff line number Diff line
@@ -981,6 +981,14 @@
    <uses-permission android:name="android.permission.READ_SYSTEM_PREFERENCES" />
    <uses-permission android:name="android.permission.WRITE_SYSTEM_PREFERENCES" />

    <!-- Permissions required for CTS test - ActivityManagerForegroundServiceTypeTest -->
    <uses-permission android:name="android.permission.health.READ_HEART_RATE"
        android:featureFlag="android.permission.flags.replace_body_sensor_permission_enabled"/>
    <uses-permission android:name="android.permission.health.READ_OXYGEN_SATURATION"
        android:featureFlag="android.permission.flags.replace_body_sensor_permission_enabled"/>
    <uses-permission android:name="android.permission.health.READ_SKIN_TEMPERATURE"
        android:featureFlag="android.permission.flags.replace_body_sensor_permission_enabled"/>

    <application
        android:label="@string/app_label"
        android:theme="@android:style/Theme.DeviceDefault.DayNight"