Grant READ_DREAM_STATE & WRITE_DREAM_STATE permissions to shell
This is required for ambient display tests. NOTE: This CL is manually cherry-picked from aosp/1215115 due to merge conflict. Bug: 147874708 Test: Run newly added ambient display tests. Change-Id: I61c28e15c4e5c3d0ffee4137ecb86e33f7e8f64d
This commit is contained in:
@@ -356,6 +356,9 @@ applications that come with the platform
|
|||||||
<permission name="android.permission.CONTROL_INCALL_EXPERIENCE"/>
|
<permission name="android.permission.CONTROL_INCALL_EXPERIENCE"/>
|
||||||
<!-- Permission required for Tethering CTS tests. -->
|
<!-- Permission required for Tethering CTS tests. -->
|
||||||
<permission name="android.permission.TETHER_PRIVILEGED"/>
|
<permission name="android.permission.TETHER_PRIVILEGED"/>
|
||||||
|
<!-- Permissions required to test ambient display. -->
|
||||||
|
<permission name="android.permission.READ_DREAM_STATE" />
|
||||||
|
<permission name="android.permission.WRITE_DREAM_STATE" />
|
||||||
</privapp-permissions>
|
</privapp-permissions>
|
||||||
|
|
||||||
<privapp-permissions package="com.android.statementservice">
|
<privapp-permissions package="com.android.statementservice">
|
||||||
|
|||||||
@@ -239,6 +239,10 @@
|
|||||||
<!-- Allows setting brightness from the shell -->
|
<!-- Allows setting brightness from the shell -->
|
||||||
<uses-permission android:name="android.permission.CONTROL_DISPLAY_BRIGHTNESS"/>
|
<uses-permission android:name="android.permission.CONTROL_DISPLAY_BRIGHTNESS"/>
|
||||||
|
|
||||||
|
<!-- Permissions required to test ambient display. -->
|
||||||
|
<uses-permission android:name="android.permission.READ_DREAM_STATE"/>
|
||||||
|
<uses-permission android:name="android.permission.WRITE_DREAM_STATE"/>
|
||||||
|
|
||||||
<application android:label="@string/app_label"
|
<application android:label="@string/app_label"
|
||||||
android:theme="@android:style/Theme.DeviceDefault.DayNight"
|
android:theme="@android:style/Theme.DeviceDefault.DayNight"
|
||||||
android:defaultToDeviceProtectedStorage="true"
|
android:defaultToDeviceProtectedStorage="true"
|
||||||
|
|||||||
Reference in New Issue
Block a user