commit | cc607df16504e3930ef2f80ae7432411e8528fda | [log] [tgz] |
---|---|---|
author | Greg Plesur <plesur@google.com> | Thu Feb 02 18:11:12 2017 +0000 |
committer | android-build-merger <android-build-merger@google.com> | Thu Feb 02 18:11:12 2017 +0000 |
tree | 609e86ff24dd04bfd213bcff9aba5c9c837365a4 | |
parent | db034ebe28c172aa7179053c6f0f81e1398cd38d [diff] | |
parent | 591c82b42c4483b11c0faf519832792a2f03a3b5 [diff] |
Exempt Watch from testPackageInstallUserRestrictions. am: 591c82b42c Change-Id: If8803fcfbbd6dae21e23e9eb0f9aed519d1743a8
diff --git a/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/DeviceAndProfileOwnerTest.java b/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/DeviceAndProfileOwnerTest.java index 9112f67..7427570 100644 --- a/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/DeviceAndProfileOwnerTest.java +++ b/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/DeviceAndProfileOwnerTest.java
@@ -456,6 +456,10 @@ if (!mHasFeature) { return; } + boolean mIsWatch = hasDeviceFeature("android.hardware.type.watch"); + if (mIsWatch) { + return; + } // UserManager.DISALLOW_INSTALL_UNKNOWN_SOURCES final String DISALLOW_INSTALL_UNKNOWN_SOURCES = "no_install_unknown_sources"; final String UNKNOWN_SOURCES_SETTING = "install_non_market_apps";