tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

privacy_security_settings.xml (7913B)


      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!-- This Source Code Form is subject to the terms of the Mozilla Public
      3   - License, v. 2.0. If a copy of the MPL was not distributed with this
      4   - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
      5 <androidx.preference.PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
      6    xmlns:app="http://schemas.android.com/apk/res-auto">
      7    <!--- <Preference
      8        android:layout="@layout/focus_preference"
      9        android:summary="@string/preference_privacy_and_security_description"/> -->
     10 
     11    <org.mozilla.focus.settings.privacy.PreferenceToolTipCompose
     12        android:key="@string/pref_key_tool_tip"
     13        android:layout="@layout/focus_preference_compose_layout"
     14        app:allowDividerBelow="false"
     15        android:selectable="false"/>
     16 
     17    <androidx.preference.PreferenceCategory
     18        android:layout="@layout/preference_section_header_layout"
     19        android:title="@string/preference_category_tracking_protection3">
     20 
     21        <androidx.preference.SwitchPreference
     22            android:defaultValue="true"
     23            android:key="@string/pref_key_privacy_block_ads"
     24            android:layout="@layout/focus_preference_no_icon"
     25            android:summary="@string/preference_privacy_block_ads_summary"
     26            android:title="@string/preference_privacy_block_ads" />
     27 
     28        <androidx.preference.SwitchPreference
     29            android:defaultValue="true"
     30            android:key="@string/pref_key_privacy_block_analytics"
     31            android:layout="@layout/focus_preference_no_icon"
     32            android:summary="@string/preference_privacy_block_analytics_summary"
     33            android:title="@string/preference_privacy_block_analytics" />
     34 
     35        <androidx.preference.SwitchPreference
     36            android:defaultValue="true"
     37            android:key="@string/pref_key_privacy_block_social"
     38            android:layout="@layout/focus_preference_no_icon"
     39            android:summary="@string/preference_privacy_block_social_summary"
     40            android:title="@string/preference_privacy_block_social" />
     41 
     42        <androidx.preference.SwitchPreference
     43            android:defaultValue="false"
     44            android:key="@string/pref_key_privacy_block_other3"
     45            android:layout="@layout/focus_preference_no_icon"
     46            android:summary="@string/preference_privacy_block_content_summary2"
     47            android:title="@string/preference_privacy_block_content" />
     48 
     49    </androidx.preference.PreferenceCategory>
     50 
     51    <androidx.preference.PreferenceCategory
     52        android:layout="@layout/preference_section_header_layout"
     53        android:title="@string/preference_category_web_content">
     54 
     55        <androidx.preference.SwitchPreference
     56            android:defaultValue="false"
     57            android:key="@string/pref_key_performance_block_webfonts"
     58            android:layout="@layout/focus_preference_no_icon"
     59            android:summary="@string/preference_performance_block_webfonts_summary"
     60            android:title="@string/preference_performance_block_webfonts" />
     61 
     62        <androidx.preference.SwitchPreference
     63            android:defaultValue="false"
     64            android:key="@string/pref_key_performance_block_javascript"
     65            android:layout="@layout/focus_preference_no_icon"
     66            android:summary="@string/preference_performance_block_javascript_summary"
     67            android:title="@string/preference_performance_block_javascript" />
     68 
     69        <!-- // Not shipping in v1 (#188)
     70        <SwitchPreference
     71            android:title="@string/preference_performance_block_images"
     72            android:key="@string/pref_key_performance_block_images"
     73            android:defaultValue="@string/preference_performance_block_images" />
     74        -->
     75 
     76    </androidx.preference.PreferenceCategory>
     77 
     78    <androidx.preference.PreferenceCategory
     79        android:layout="@layout/preference_section_header_layout"
     80        android:title="@string/preference_category_cookies">
     81        <androidx.preference.Preference
     82            android:key="@string/pref_key_cookie_banner_settings"
     83            android:layout="@layout/focus_preference_no_icon"
     84            android:title="@string/preferences_cookie_banner" />
     85        <org.mozilla.focus.widget.CookiesPreference
     86            android:entries="@array/cookies_options_entries"
     87            android:entryValues="@array/cookies_options_entry_values"
     88            android:key="@string/pref_key_performance_enable_cookies"
     89            android:defaultValue="@string/preference_privacy_should_block_cookies_cross_site_option"
     90            android:layout="@layout/cookies_preference"
     91            android:title="@string/preference_privacy_category_cookies"
     92            android:negativeButtonText="@string/action_cancel"/>
     93        <androidx.preference.Preference
     94            android:key="@string/pref_key_site_permissions"
     95            android:layout="@layout/focus_preference_no_icon"
     96            android:title="@string/preference_site_permissions" />
     97    </androidx.preference.PreferenceCategory>
     98 
     99    <androidx.preference.PreferenceCategory
    100        android:layout="@layout/focus_preference_category_no_title">
    101        <androidx.preference.Preference
    102            android:key="@string/pref_key_screen_exceptions"
    103            android:layout="@layout/focus_preference_no_icon"
    104            android:title="@string/preference_exceptions" />
    105    </androidx.preference.PreferenceCategory>
    106 
    107    <androidx.preference.PreferenceCategory
    108        android:layout="@layout/preference_section_header_layout"
    109        android:title="@string/preference_category_switching_apps">
    110        <androidx.preference.SwitchPreference
    111            android:defaultValue="false"
    112            android:key="@string/pref_key_biometric"
    113            android:layout="@layout/focus_preference_no_icon"
    114            android:summary="@string/preference_security_biometric_summary2"
    115            android:title="@string/preference_security_biometric" />
    116        <androidx.preference.SwitchPreference
    117            android:defaultValue="false"
    118            android:key="@string/pref_key_secure"
    119            android:layout="@layout/focus_preference_no_icon"
    120            android:summary="@string/preference_privacy_stealth_summary"
    121            android:title="@string/preference_privacy_secure_mode" />
    122    </androidx.preference.PreferenceCategory>
    123 
    124    <androidx.preference.PreferenceCategory
    125        android:key="@string/pref_key_category_security"
    126        android:layout="@layout/preference_section_header_layout"
    127        android:title="@string/preference_category_security">
    128        <org.mozilla.focus.settings.SafeBrowsingSwitchPreference
    129            android:defaultValue="true"
    130            android:key="@string/pref_key_safe_browsing"
    131            android:layout="@layout/focus_preference_no_icon"
    132            android:summary="@string/preference_safe_browsing_summary"
    133            android:title="@string/preference_safe_browsing_title" />
    134        <org.mozilla.focus.settings.HttpsOnlyModePreference
    135            android:defaultValue="true"
    136            android:key="@string/pref_key_https_only"
    137            android:layout="@layout/focus_preference_no_icon"
    138            android:summary="@string/preference_https_only_summary3"
    139            android:title="@string/preference_https_only_title" />
    140    </androidx.preference.PreferenceCategory>
    141 
    142    <androidx.preference.PreferenceCategory
    143        android:layout="@layout/preference_section_header_layout"
    144        android:title="@string/preference_category_data_choices">
    145 
    146        <org.mozilla.focus.widget.DailyUsageReportingSwitchPreference
    147            android:layout="@layout/focus_preference"
    148            android:key="@string/pref_key_daily_usage_ping"
    149            android:summary="@string/preference_daily_usage_ping_description"
    150            android:title="@string/preference_daily_usage_ping_title" />
    151 
    152    </androidx.preference.PreferenceCategory>
    153 
    154 </androidx.preference.PreferenceScreen>