aboutsummaryrefslogtreecommitdiff
path: root/src/com/android/tradefed/targetprep
diff options
context:
space:
mode:
authorAlan Ma <alanma@google.com>2015-04-28 21:15:51 -0700
committerAlan Ma <alanma@google.com>2015-04-28 21:15:51 -0700
commit3485e97c84fb178dbbe7819e44b39a5fabe30c18 (patch)
tree54ebe74b98e28cb09e1d29e7cad0c053d6c7ba60 /src/com/android/tradefed/targetprep
parentf88bf2f5d8deff447aece0d52ef977889941ec9b (diff)
downloadtradefederation-3485e97c84fb178dbbe7819e44b39a5fabe30c18.tar.gz
Update syntax for turning on location provider
Change-Id: I9cce5ae9022f354225779ab49ec7ed4c94d9b239
Diffstat (limited to 'src/com/android/tradefed/targetprep')
-rw-r--r--src/com/android/tradefed/targetprep/DeviceSetup2.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/com/android/tradefed/targetprep/DeviceSetup2.java b/src/com/android/tradefed/targetprep/DeviceSetup2.java
index e4f56506e..17e005a5b 100644
--- a/src/com/android/tradefed/targetprep/DeviceSetup2.java
+++ b/src/com/android/tradefed/targetprep/DeviceSetup2.java
@@ -164,13 +164,13 @@ public class DeviceSetup2 implements ITargetPreparer, ITargetCleaner{
@Option(name = "location-gps",
description = "Turn the GPS location on or off")
protected BinaryState mLocationGps = BinaryState.DEFAULT;
- // ON: settings put secure location_providers_allowed gps
+ // ON: settings put secure location_providers_allowed +gps
// OFF: settings put secure location_providers_allowed -gps
@Option(name = "location-network",
description = "Turn the network location on or off")
protected BinaryState mLocationNetwork = BinaryState.DEFAULT;
- // ON: settings put secure location_providers_allowed network
+ // ON: settings put secure location_providers_allowed +network
// OFF: settings put secure location_providers_allowed -network
// Sensor
@@ -442,10 +442,10 @@ public class DeviceSetup2 implements ITargetPreparer, ITargetCleaner{
}
setSettingForBinaryState(mLocationGps, mSecureSettings,
- "location_providers_allowed", "gps", "-gps");
+ "location_providers_allowed", "+gps", "-gps");
setSettingForBinaryState(mLocationNetwork, mSecureSettings,
- "location_providers_allowed", "network", "-network");
+ "location_providers_allowed", "+network", "-network");
setSettingForBinaryState(mAutoRotate, mSystemSettings, "accelerometer_rotation", "1", "0");