Add DEVICE_LOCK permission to Shell to support ATS test
Adds DEVICE_LOCK permission to Shell to support the CarDevicePolicyManagerTest. This permission is needed to call DevicePolicyManager#lockNow which locks the device. Bug: 187199256 Test: atest CarDevicePolicyManagerTest Change-Id: I3fa20b53b929c97a6760d65b432a74c3415d6a08
This commit is contained in:
@@ -507,6 +507,8 @@ applications that come with the platform
|
|||||||
<permission name="android.permission.NOTIFY_PENDING_SYSTEM_UPDATE" />
|
<permission name="android.permission.NOTIFY_PENDING_SYSTEM_UPDATE" />
|
||||||
<!-- Permission required for GTS test - GtsAssistIntentTestCases -->
|
<!-- Permission required for GTS test - GtsAssistIntentTestCases -->
|
||||||
<permission name="android.permission.MANAGE_VOICE_KEYPHRASES" />
|
<permission name="android.permission.MANAGE_VOICE_KEYPHRASES" />
|
||||||
|
<!-- Permission required for ATS test - CarDevicePolicyManagerTest -->
|
||||||
|
<permission name="android.permission.LOCK_DEVICE" />
|
||||||
</privapp-permissions>
|
</privapp-permissions>
|
||||||
|
|
||||||
<privapp-permissions package="com.android.statementservice">
|
<privapp-permissions package="com.android.statementservice">
|
||||||
|
|||||||
@@ -592,6 +592,9 @@
|
|||||||
<!-- Permission required for CTS test - SettingsMultiPaneDeepLinkTest -->
|
<!-- Permission required for CTS test - SettingsMultiPaneDeepLinkTest -->
|
||||||
<uses-permission android:name="android.permission.LAUNCH_MULTI_PANE_SETTINGS_DEEP_LINK" />
|
<uses-permission android:name="android.permission.LAUNCH_MULTI_PANE_SETTINGS_DEEP_LINK" />
|
||||||
|
|
||||||
|
<!-- Permission required for ATS test - CarDevicePolicyManagerTest -->
|
||||||
|
<uses-permission android:name="android.permission.LOCK_DEVICE" />
|
||||||
|
|
||||||
<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