Added label for REQUEST_IGNORE_BATTERY_OPTIMIZATIONS permission.
Change-Id: I84dc652f7297c2b8c9351e737074ddf43754718d
Fixes: 32950329
Test: manually verified it
diff --git a/core/res/AndroidManifest.xml b/core/res/AndroidManifest.xml
index 87b0c7b..f39fc1a 100644
--- a/core/res/AndroidManifest.xml
+++ b/core/res/AndroidManifest.xml
@@ -2682,6 +2682,8 @@
This is a normal permission: an app requesting it will always be granted the
permission, without the user needing to approve or see it. -->
<permission android:name="android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS"
+ android:label="@string/permlab_requestIgnoreBatteryOptimizations"
+ android:description="@string/permdesc_requestIgnoreBatteryOptimizations"
android:protectionLevel="normal" />
<!-- @SystemApi Allows an application to collect battery statistics -->
diff --git a/core/res/res/values/strings.xml b/core/res/res/values/strings.xml
index 5d399c1..5ae03a9 100644
--- a/core/res/res/values/strings.xml
+++ b/core/res/res/values/strings.xml
@@ -3237,6 +3237,11 @@
<!-- Description of an application permission that lets it read install sessions. -->
<string name="permdesc_requestInstallPackages">Allows an application to request installation of packages.</string>
+ <!-- Title of an application permission that lets it ask user to ignore battery optimizations for that app. -->
+ <string name="permlab_requestIgnoreBatteryOptimizations">ask to ignore battery optimizations</string>
+ <!-- Description of an application permission that lets it ask user to ignore battery optimizations for that app-->
+ <string name="permdesc_requestIgnoreBatteryOptimizations">Allows an app to ask for permission to ignore battery optimizations for that app.</string>
+
<!-- Shown in the tutorial for tap twice for zoom control. -->
<string name="tutorial_double_tap_to_zoom_message_short">Tap twice for zoom control</string>