The admin of a manged device can take a number actions that will be listed in the "Changes made by your organization's admin" section of Settings. If the admin has not taken any such actions, the section will be empty and should be hidden. This is accomplished by having a PreferenceController for the section that observes the state of the PreferenceControllers inside it. Bug: 35912953 Test: m RunSettingsRoboTests Merged-in: Ia95754493ee6c5a19b4aa9731fd56fd558e61849 Change-Id: I82ca00b757001390f9a517b0c07057bdc49dab20
94 lines
5.5 KiB
XML
94 lines
5.5 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- Copyright (C) 2016 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="enterprise_privacy_settings"
|
|
android:title="@string/enterprise_privacy_settings">
|
|
|
|
<!-- Header -->
|
|
<Preference
|
|
android:icon="@drawable/ic_info_outline_24dp"
|
|
android:summary="@string/enterprise_privacy_header"
|
|
android:selectable="false"/>
|
|
|
|
<PreferenceCategory android:title="@string/enterprise_privacy_exposure_category"
|
|
android:contentDescription="@string/enterprise_privacy_exposure_category">
|
|
<Preference android:layout_height="wrap_content"
|
|
android:title="@string/enterprise_privacy_enterprise_data"
|
|
android:selectable="false"/>
|
|
<Preference android:title="@string/enterprise_privacy_installed_packages"
|
|
android:selectable="false"/>
|
|
<Preference android:title="@string/enterprise_privacy_usage_stats"
|
|
android:selectable="false"/>
|
|
<Preference android:key="network_logs"
|
|
android:title="@string/enterprise_privacy_network_logs"
|
|
android:selectable="false"/>
|
|
<Preference android:key="bug_reports"
|
|
android:title="@string/enterprise_privacy_bug_reports"
|
|
android:selectable="false"/>
|
|
<Preference android:key="security_logs"
|
|
android:title="@string/enterprise_privacy_security_logs"
|
|
android:selectable="false"/>
|
|
</PreferenceCategory>
|
|
|
|
<PreferenceCategory android:title="@string/enterprise_privacy_exposure_changes_category"
|
|
android:key="exposure_changes_category">
|
|
<Preference android:fragment="com.android.settings.enterprise.ApplicationListFragment$EnterpriseInstalledPackages"
|
|
android:key="number_enterprise_installed_packages"
|
|
android:title="@string/enterprise_privacy_enterprise_installed_packages"/>
|
|
<Preference android:fragment="com.android.settings.enterprise.ApplicationListFragment$AdminGrantedPermissionLocation"
|
|
android:key="enterprise_privacy_number_location_access_packages"
|
|
android:title="@string/enterprise_privacy_location_access"/>
|
|
<Preference android:fragment="com.android.settings.enterprise.ApplicationListFragment$AdminGrantedPermissionMicrophone"
|
|
android:key="enterprise_privacy_number_microphone_access_packages"
|
|
android:title="@string/enterprise_privacy_microphone_access"/>
|
|
<Preference android:fragment="com.android.settings.enterprise.ApplicationListFragment$AdminGrantedPermissionCamera"
|
|
android:key="enterprise_privacy_number_camera_access_packages"
|
|
android:title="@string/enterprise_privacy_camera_access"/>
|
|
<Preference android:fragment="com.android.settings.enterprise.EnterpriseSetDefaultAppsListFragment"
|
|
android:key="number_enterprise_set_default_apps"
|
|
android:title="@string/enterprise_privacy_enterprise_set_default_apps"/>
|
|
<Preference android:key="always_on_vpn_primary_user"
|
|
android:selectable="false"/>
|
|
<Preference android:key="always_on_vpn_managed_profile"
|
|
android:title="@string/enterprise_privacy_always_on_vpn_work"
|
|
android:selectable="false"/>
|
|
<Preference android:key="input_method"
|
|
android:title="@string/enterprise_privacy_input_method"
|
|
android:selectable="false"/>
|
|
<Preference android:key="global_http_proxy"
|
|
android:title="@string/enterprise_privacy_global_http_proxy"
|
|
android:selectable="false"/>
|
|
<Preference android:key="ca_certs"
|
|
android:title="@string/enterprise_privacy_ca_certs"
|
|
android:selectable="false"/>
|
|
</PreferenceCategory>
|
|
|
|
<PreferenceCategory android:title="@string/enterprise_privacy_device_access_category">
|
|
<Preference android:title="@string/enterprise_privacy_lock_device"
|
|
android:selectable="false"/>
|
|
<Preference android:title="@string/enterprise_privacy_wipe_device"
|
|
android:selectable="false"/>
|
|
<Preference android:key="failed_password_wipe_current_user"
|
|
android:title="@string/enterprise_privacy_failed_password_wipe_device"
|
|
android:selectable="false"/>
|
|
<Preference android:key="failed_password_wipe_managed_profile"
|
|
android:title="@string/enterprise_privacy_failed_password_wipe_work"
|
|
android:selectable="false"/>
|
|
</PreferenceCategory>
|
|
</PreferenceScreen>
|