Loading core/java/android/provider/Settings.java +4 −3 Original line number Diff line number Diff line Loading @@ -6334,9 +6334,10 @@ public final class Settings { * Comma-separated list of location providers that are enabled. Do not rely on this value * being present or correct, or on ContentObserver notifications on the corresponding Uri. * * @deprecated The preferred methods for checking provider status and listening for changes * are via {@link LocationManager#isProviderEnabled(String)} and * {@link LocationManager#PROVIDERS_CHANGED_ACTION}. * @deprecated This setting no longer exists from Android S onwards as it no longer is * capable of realistically reflecting location settings. Use {@link * LocationManager#isProviderEnabled(String)} or {@link LocationManager#isLocationEnabled()} * instead. */ @Deprecated public static final String LOCATION_PROVIDERS_ALLOWED = "location_providers_allowed"; Loading packages/SettingsProvider/src/com/android/providers/settings/SettingsProvider.java +8 −1 Original line number Diff line number Diff line Loading @@ -3342,7 +3342,7 @@ public class SettingsProvider extends ContentProvider { } private final class UpgradeController { private static final int SETTINGS_VERSION = 193; private static final int SETTINGS_VERSION = 194; private final int mUserId; Loading Loading @@ -4754,6 +4754,13 @@ public class SettingsProvider extends ContentProvider { currentVersion = 193; } if (currentVersion == 193) { // Version 193: remove obsolete LOCATION_PROVIDERS_ALLOWED settings getSecureSettingsLocked(userId).deleteSettingLocked( Secure.LOCATION_PROVIDERS_ALLOWED); currentVersion = 194; } // vXXX: Add new settings above this point. if (currentVersion != newVersion) { Loading Loading
core/java/android/provider/Settings.java +4 −3 Original line number Diff line number Diff line Loading @@ -6334,9 +6334,10 @@ public final class Settings { * Comma-separated list of location providers that are enabled. Do not rely on this value * being present or correct, or on ContentObserver notifications on the corresponding Uri. * * @deprecated The preferred methods for checking provider status and listening for changes * are via {@link LocationManager#isProviderEnabled(String)} and * {@link LocationManager#PROVIDERS_CHANGED_ACTION}. * @deprecated This setting no longer exists from Android S onwards as it no longer is * capable of realistically reflecting location settings. Use {@link * LocationManager#isProviderEnabled(String)} or {@link LocationManager#isLocationEnabled()} * instead. */ @Deprecated public static final String LOCATION_PROVIDERS_ALLOWED = "location_providers_allowed"; Loading
packages/SettingsProvider/src/com/android/providers/settings/SettingsProvider.java +8 −1 Original line number Diff line number Diff line Loading @@ -3342,7 +3342,7 @@ public class SettingsProvider extends ContentProvider { } private final class UpgradeController { private static final int SETTINGS_VERSION = 193; private static final int SETTINGS_VERSION = 194; private final int mUserId; Loading Loading @@ -4754,6 +4754,13 @@ public class SettingsProvider extends ContentProvider { currentVersion = 193; } if (currentVersion == 193) { // Version 193: remove obsolete LOCATION_PROVIDERS_ALLOWED settings getSecureSettingsLocked(userId).deleteSettingLocked( Secure.LOCATION_PROVIDERS_ALLOWED); currentVersion = 194; } // vXXX: Add new settings above this point. if (currentVersion != newVersion) { Loading