Added the missing commands to DevicePolicyManagerServiceShellCommand and changed 'adb shell dpm' to call 'adb shell cmd device_policy' Fixes: 173381875 Test: atest com.android.bedstead.nene.devicepolicy.DevicePolicyTest Test: atest com.android.bedstead.nene.devicepolicy.ProfileOwnerTest Test: atest com.android.bedstead.nene.devicepolicy.DeviceOwnerTest Test: manually tested the migrated commands Change-Id: Id86382f11cf8197230ef62c33961e01b0b541358
25 lines
486 B
Plaintext
25 lines
486 B
Plaintext
// Copyright 2014 The Android Open Source Project
|
|
//
|
|
|
|
package {
|
|
default_applicable_licenses: ["frameworks_base_cmds_dpm_license"],
|
|
}
|
|
|
|
// Added automatically by a large-scale-change
|
|
// See: http://go/android-license-faq
|
|
license {
|
|
name: "frameworks_base_cmds_dpm_license",
|
|
visibility: [":__subpackages__"],
|
|
license_kinds: [
|
|
"SPDX-license-identifier-Apache-2.0",
|
|
],
|
|
license_text: [
|
|
"NOTICE",
|
|
],
|
|
}
|
|
|
|
sh_binary {
|
|
name: "dpm",
|
|
src: "dpm",
|
|
}
|