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

Commit 01fae55d authored by Eric Laurent's avatar Eric Laurent
Browse files

add permission for AudioManager routing APIs.

Add signature or system permission
"android.permission.MODIFY_AUDIO_ROUTING" for AudioManager APIs
allowing system services and applications to modify audio routing.

Bug: 14815883.
Change-Id: If09f6f3a166a6b2f3761b65dbde0c86873850f07
parent c6b4d9b8
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -2225,6 +2225,14 @@
        android:description="@string/permdesc_captureAudioHotword"
        android:protectionLevel="signature|system" />

    <!-- Allows an application to modify audio routing and override policy decisions.
         <p>Not for use by third-party applications.</p>
         @hide -->
    <permission android:name="android.permission.MODIFY_AUDIO_ROUTING"
        android:label="@string/permlab_modifyAudioRouting"
        android:description="@string/permdesc_modifyAudioRouting"
        android:protectionLevel="signature|system" />

    <!-- Allows an application to capture video output.
         <p>Not for use by third-party applications.</p> -->
    <permission android:name="android.permission.CAPTURE_VIDEO_OUTPUT"
+6 −0
Original line number Diff line number Diff line
@@ -1555,6 +1555,12 @@
    <string name="permdesc_captureAudioHotword">Allows the app to capture audio for Hotword detection. The capture can
      happen in the background but does not prevent other audio capture (e.g. Camcorder).</string>

    <!-- Title of an application permission, listed so the user can choose whether they want to allow the application to do this. -->
    <string name="permlab_modifyAudioRouting">Audio Routing</string>
    <!-- Description of an application permission, listed so the user can choose whether they want to allow the application to do this. -->
    <string name="permdesc_modifyAudioRouting">Allows the app to directly control audio routing and
      override audio policy decisions.</string>

    <!-- Title of an application permission, listed so the user can choose whether they want to allow the application to do this. -->
    <string name="permlab_captureVideoOutput">capture video output</string>
    <!-- Description of an application permission, listed so the user can choose whether they want to allow the application to do this. -->