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

Commit 06c85480 authored by Nicholas Ambur's avatar Nicholas Ambur
Browse files

add SOUND_TRIGGER_RUN_IN_BATTERY_SAVER permission

New privledged permission added for OEMs to control which SoundTrigger
framework interface clients can run in battery saver mode

Bug: 172294448
Test: simple build verification
Change-Id: If4911d46367e2cd16a2dfff67f7a13753f073f53
parent c0a3c8c5
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -237,6 +237,7 @@ package android {
    field public static final String SET_WALLPAPER_COMPONENT = "android.permission.SET_WALLPAPER_COMPONENT";
    field public static final String SHOW_KEYGUARD_MESSAGE = "android.permission.SHOW_KEYGUARD_MESSAGE";
    field public static final String SHUTDOWN = "android.permission.SHUTDOWN";
    field public static final String SOUND_TRIGGER_RUN_IN_BATTERY_SAVER = "android.permission.SOUND_TRIGGER_RUN_IN_BATTERY_SAVER";
    field public static final String START_ACTIVITIES_FROM_BACKGROUND = "android.permission.START_ACTIVITIES_FROM_BACKGROUND";
    field public static final String START_FOREGROUND_SERVICES_FROM_BACKGROUND = "android.permission.START_FOREGROUND_SERVICES_FROM_BACKGROUND";
    field public static final String STATUS_BAR_SERVICE = "android.permission.STATUS_BAR_SERVICE";
+7 −0
Original line number Diff line number Diff line
@@ -5034,6 +5034,13 @@
    <permission android:name="android.permission.MANAGE_SOUND_TRIGGER"
        android:protectionLevel="signature|privileged" />

    <!-- Must be required by system/priv apps to run sound trigger recognition sessions while in
         battery saver mode.
         @hide
         @SystemApi -->
    <permission android:name="android.permission.SOUND_TRIGGER_RUN_IN_BATTERY_SAVER"
                android:protectionLevel="signature|privileged" />

    <!-- Must be required by system/priv apps implementing sound trigger detection services
         @hide
         @SystemApi -->