Files
packages_apps_Settings/res/xml/location_settings.xml
Arindam Bhattacharjee a69577e4a5 location: Allow to override Mock Location restriction [2/2]
Some apps like PokemonGo & some dating apps uses isFromMockProvider() API to restrict the Mock Location usage.
This change will allow to override the Mock Location usage restriction.

Change-Id: I288f6c0b8f9c0f91f1d1b609eda154b1b7588120
Signed-off-by: Arindam Bhattacharjee <abhattacharjee717@gmail.com>
2025-12-10 00:41:49 +09:00

94 lines
4.3 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2011 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<PreferenceScreen
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:settings="http://schemas.android.com/apk/res-auto"
android:key="location_settings"
android:title="@string/location_settings_title"
settings:keywords="@string/keywords_location">
<PreferenceCategory
android:key="recent_location_access"
android:title="@string/location_category_recent_location_access"
settings:controller=
"com.android.settings.location.RecentLocationAccessPreferenceController"/>
<Preference
android:key="recent_location_access_see_all_button"
android:title="@string/location_recent_location_access_see_all"
android:icon="@drawable/ic_chevron_right_24dp"
android:fragment="com.android.settings.location.RecentLocationAccessSeeAllFragment"
settings:controller="com.android.settings.location.RecentLocationAccessSeeAllButtonPreferenceController"
settings:searchable="false"/>
<SwitchPreferenceCompat
android:key="assisted_gps"
android:title="@string/assisted_gps"
android:summary="@string/assisted_gps_summary"
settings:controller="com.android.settings.location.AgpsPreferenceController"/>
<SwitchPreferenceCompat
android:key="override_mock_location"
android:title="@string/override_mock_location_title"
android:summaryOn="Mock locations are hidden from apps"
android:summaryOff="Apps can detect mock locations"
android:defaultValue="false"
settings:controller="com.android.settings.location.OverrideMockLocationPreferenceController" />
<PreferenceCategory
android:key="location_advanced_settings"
android:layout="@layout/preference_category_no_label">
<!-- This preference gets removed if there is no managed profile -->
<com.android.settingslib.RestrictedSwitchPreference
android:enabled="false"
android:key="managed_profile_location_switch"
android:selectable="true"
android:title="@string/managed_profile_location_switch_title"
settings:controller="com.android.settings.location.LocationForWorkPreferenceController"
settings:forWork="true"
settings:useAdminDisabledSummary="true"/>
<!-- This preference gets removed if there is no private profile -->
<com.android.settingslib.RestrictedSwitchPreference
android:enabled="false"
android:key="private_profile_location_switch"
android:selectable="true"
android:title="@string/private_profile_location_switch_title"
settings:controller="com.android.settings.location.LocationForPrivateProfilePreferenceController"/>
<!-- This preference category gets removed if new_recent_location_ui is disabled -->
<Preference
android:key="app_level_permissions"
android:title="@string/location_app_level_permissions"
settings:controller="com.android.settings.location.AppLocationPermissionPreferenceController"/>
<Preference
android:fragment="com.android.settings.location.LocationServices"
android:key="location_services"
android:title="@string/location_services_preference_title"
settings:controller="com.android.settings.location.LocationServicesPreferenceController"/>
</PreferenceCategory>
<com.android.settingslib.widget.FooterPreference
android:title="@string/location_settings_footer_general"
android:key="location_footer"
settings:searchable="false"
settings:controller="com.android.settings.location.LocationSettingsFooterPreferenceController"/>
</PreferenceScreen>