From b83b0f1f728c64374622b7ca8c3e2adb1b50bc5e Mon Sep 17 00:00:00 2001 From: Roman Kiryanov Date: Wed, 9 May 2018 21:21:26 +0000 Subject: [PATCH] Revert "ANDROID: allow using network as a location provider" This reverts commit 3431578839205f2741718e579ed465d32ff75dca. Bug: 72886046 Test: run a cts test Reason for revert: I found a better fix: https://googleplex-android-review.git.corp.google.com/c/platform/frameworks/base/+/3790358 Change-Id: Id2047740e85895868b97b4582903a376c6a49f17 --- apps/SdkSetup/src/com/android/sdksetup/DefaultActivity.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/apps/SdkSetup/src/com/android/sdksetup/DefaultActivity.java b/apps/SdkSetup/src/com/android/sdksetup/DefaultActivity.java index 3758f6c32..77833a477 100644 --- a/apps/SdkSetup/src/com/android/sdksetup/DefaultActivity.java +++ b/apps/SdkSetup/src/com/android/sdksetup/DefaultActivity.java @@ -51,10 +51,7 @@ public class DefaultActivity extends Activity { // Enable the GPS. // Not needed since this SDK will contain the Settings app. Settings.Secure.putString(getContentResolver(), Settings.Secure.LOCATION_PROVIDERS_ALLOWED, - LocationManager.GPS_PROVIDER + "," + LocationManager.NETWORK_PROVIDER); - - Settings.Secure.putInt(getContentResolver(), Settings.Secure.LOCATION_MODE, - Settings.Secure.LOCATION_MODE_HIGH_ACCURACY); + LocationManager.GPS_PROVIDER); // enable install from non market Settings.Global.putInt(getContentResolver(), Settings.Global.INSTALL_NON_MARKET_APPS, 1);