Fix for provisioning_devices failure on user builds.
commite0827b05ebab526d0ad7ba92fcd0b784f45176b4
authorklundberg@chromium.org <klundberg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Thu, 26 Jun 2014 00:04:36 +0000 (26 00:04 +0000)
committerklundberg@chromium.org <klundberg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Thu, 26 Jun 2014 00:04:36 +0000 (26 00:04 +0000)
treee0e7e43a7028836778f60d570982cc975a2dbe12
parent0a8055c00d6693153a581d004505cd838107f812
Fix for provisioning_devices failure on user builds.

provisioning_devices tries to use "adb shell su" to set content
settings. However, "su" is not available for user builds and
thus provisioning_devices fails for devices with user builds.

This CL fixes this failure by only setting the content settings
when the device has a userdebug build.

BUG=385789

Review URL: https://codereview.chromium.org/344233005

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@279873 0039d316-1c4b-4281-b951-d872f2087c98
build/android/pylib/device_settings.py