explicit toggle to be enabled through Settings via Apps -> Advanced Apps. Added new and refactored an old xml to define the UX for two new Preferences in Advanced Settings. Modified the existing AdvancedAppSettings to add control flow for two new settings. Also enriched ManageApplications to handle these cases. Added additional strings in xml/values/strings.xml to support these settings. Also defined new classes to handle these the toggle of these permissions per app. Refactored codes from AppStateUsageBridge to a generic AppStateAppOpsBridge so that future usages related to AppOps can inherit from this class. Change-Id: I43b81282a063e05844c7805556a6d05cfc02bcdb
76 lines
3.0 KiB
XML
76 lines
3.0 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- Copyright (C) 2015 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/com.android.settings"
|
|
android:key="applications_settings">
|
|
|
|
<PreferenceScreen
|
|
android:key="manage_perms"
|
|
android:title="@string/app_permissions"
|
|
settings:keywords="@string/keywords_app_permissions" />
|
|
|
|
<PreferenceScreen
|
|
android:key="domain_urls"
|
|
android:title="@string/domain_urls_title"
|
|
android:fragment="com.android.settings.applications.ManageApplications">
|
|
<extra
|
|
android:name="classname"
|
|
android:value="com.android.settings.Settings$DomainsURLsAppListActivity" />
|
|
</PreferenceScreen>
|
|
|
|
<PreferenceCategory
|
|
android:title="@string/advanced_apps" />
|
|
|
|
<PreferenceScreen
|
|
android:key="default_apps"
|
|
android:fragment="com.android.settings.applications.ManageDefaultApps"
|
|
android:title="@string/default_apps_title"
|
|
settings:keywords="@string/keywords_default_apps" />
|
|
|
|
<PreferenceScreen
|
|
android:key="system_alert_window"
|
|
android:title="@string/system_alert_window_settings"
|
|
android:fragment="com.android.settings.applications.ManageApplications"
|
|
settings:keywords="@string/keywords_system_alert_window">
|
|
<extra
|
|
android:name="classname"
|
|
android:value="com.android.settings.Settings$OverlaySettingsActivity" />
|
|
</PreferenceScreen>
|
|
|
|
<PreferenceScreen
|
|
android:key="write_settings_apps"
|
|
android:title="@string/write_settings"
|
|
android:fragment="com.android.settings.applications.ManageApplications"
|
|
settings:keywords="@string/keywords_write_settings">
|
|
<extra
|
|
android:name="classname"
|
|
android:value="com.android.settings.Settings$WriteSettingsActivity" />
|
|
</PreferenceScreen>
|
|
|
|
<PreferenceScreen
|
|
android:key="high_power_apps"
|
|
android:title="@string/high_power_apps"
|
|
android:fragment="com.android.settings.applications.ManageApplications"
|
|
settings:keywords="@string/keywords_ignore_optimizations">
|
|
<extra
|
|
android:name="classname"
|
|
android:value="com.android.settings.Settings$HighPowerApplicationsActivity" />
|
|
</PreferenceScreen>
|
|
|
|
</PreferenceScreen>
|