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

Commit 85abab72 authored by Joe Antonetti's avatar Joe Antonetti
Browse files

[Handoff] Add recents to permissions

Add the "recents" flag to Handoff's permissions, to guarantee the "recents" app has access to these APIs. The permissions are still restricted to system apps.

Flag: android.companion.enable_task_continuity
Bug: 400970610
API-Coverage-Bug: 419601871
Test: Built - CTS tests to come
Change-Id: I8e5cb33e2589d336275fc1ae8f1b0d8b2a5cf9f9
parent 2525179c
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -9320,25 +9320,25 @@
        android:featureFlag="android.content.pm.verification_service" />
    <!-- Allows an application to read tasks on a remote device.
         <p>Protection level: signature|privileged
         <p>Protection level: signature|privileged|recents
         @FlaggedApi(android.companion.Flags.FLAG_ENABLE_TASK_CONTINUITY)
         @SystemApi
         @hide
    -->
    <permission
        android:name="android.permission.READ_REMOTE_TASKS"
        android:protectionLevel="signature|privileged"
        android:protectionLevel="signature|privileged|recents"
        android:featureFlag="android.companion.enable_task_continuity" />
    <!-- Allows an application to request a task be handed off to the current device.
         <p>Protection level: signature|privileged
         <p>Protection level: signature|privileged|recents
         @FlaggedApi(android.companion.Flags.FLAG_ENABLE_TASK_CONTINUITY)
         @SystemApi
         @hide
    -->
    <permission
        android:name="android.permission.REQUEST_TASK_HANDOFF"
        android:protectionLevel="signature|privileged"
        android:protectionLevel="signature|privileged|recents"
        android:featureFlag="android.companion.enable_task_continuity" />
    <!-- Permission required to access TV Watchdog Metrics