From 5d86692715535a48160874daa93f2f84487987e3 Mon Sep 17 00:00:00 2001 From: harvey186 Date: Fri, 15 Dec 2023 18:10:47 +0100 Subject: [PATCH] AdvancedPrivacy Change-Id: Ida72ce1fb19f10294a26f43d69e517ed1a75b5a0 --- res/drawable/ic_homepage_advanced_privacy.xml | 41 +++ ...een.xml => ic_illustration_fullscreen.xml} | 0 ..._switch.xml => ic_illustration_switch.xml} | 0 ..._window.xml => ic_illustration_window.xml} | 0 res/drawable/ic_launcher_background.xml | 37 +++ res/values/arrays.xml | 21 ++ res/values/cm_strings.xml | 196 ++++++++++++ res/values/strings.xml | 8 +- .../advanced_privacy_dashboard_settings.xml | 28 ++ res/xml/bubble_notification_settings.xml | 5 +- res/xml/top_level_settings.xml | 10 +- ...ConnectivityCheckPreferenceController.java | 295 ++++++++++++++++++ .../network/NetworkDashboardFragment.java | 3 + .../AdvancedPrivacyDashboardFragment.java | 52 +++ .../android/settings/wifi/WifiStatusTest.java | 4 +- 20 files changed, 692 insertions(+), 477 deletions(-) create mode 100644 res/drawable/ic_homepage_advanced_privacy.xml rename res/drawable/{accessibility_magnification_mode_fullscreen.xml => ic_illustration_fullscreen.xml} (100%) rename res/drawable/{accessibility_magnification_mode_switch.xml => ic_illustration_switch.xml} (100%) rename res/drawable/{accessibility_magnification_mode_window.xml => ic_illustration_window.xml} (100%) create mode 100644 res/drawable/ic_launcher_background.xml create mode 100644 res/values/cm_strings.xml create mode 100644 res/xml/advanced_privacy_dashboard_settings.xml create mode 100644 src/com/android/settings/network/ConnectivityCheckPreferenceController.java create mode 100644 src/com/android/settings/privacy/AdvancedPrivacyDashboardFragment.java diff --git a/res/drawable/ic_homepage_advanced_privacy.xml b/res/drawable/ic_homepage_advanced_privacy.xml new file mode 100644 index 0000000000..3786ebb858 --- /dev/null +++ b/res/drawable/ic_homepage_advanced_privacy.xml @@ -0,0 +1,41 @@ + + + + + + + + + + + diff --git a/res/drawable/accessibility_magnification_mode_fullscreen.xml b/res/drawable/ic_illustration_fullscreen.xml similarity index 100% rename from res/drawable/accessibility_magnification_mode_fullscreen.xml rename to res/drawable/ic_illustration_fullscreen.xml diff --git a/res/drawable/accessibility_magnification_mode_switch.xml b/res/drawable/ic_illustration_switch.xml similarity index 100% rename from res/drawable/accessibility_magnification_mode_switch.xml rename to res/drawable/ic_illustration_switch.xml diff --git a/res/drawable/accessibility_magnification_mode_window.xml b/res/drawable/ic_illustration_window.xml similarity index 100% rename from res/drawable/accessibility_magnification_mode_window.xml rename to res/drawable/ic_illustration_window.xml diff --git a/res/drawable/ic_launcher_background.xml b/res/drawable/ic_launcher_background.xml new file mode 100644 index 0000000000..b91ae32786 --- /dev/null +++ b/res/drawable/ic_launcher_background.xml @@ -0,0 +1,37 @@ + + + + + + + + + + + + diff --git a/res/values/arrays.xml b/res/values/arrays.xml index 1ab9876720..169a7bfb21 100644 --- a/res/values/arrays.xml +++ b/res/values/arrays.xml @@ -82,6 +82,27 @@ 10 minutes 30 minutes + + + Disabled + DivestOS (US) + Kuketz (DE) [default] + openSUSE (DE) + Ubuntu (UK) + Graphene (US) + Kuketz (DE) + + + + 0 + 1 + 2 + 3 + 4 + 5 + 6 + + diff --git a/res/values/cm_strings.xml b/res/values/cm_strings.xml new file mode 100644 index 0000000000..4da3fdca8c --- /dev/null +++ b/res/values/cm_strings.xml @@ -0,0 +1,196 @@ + + + + + Cloudflare DNS + + 9.9.9.9 + + + Extras + Advanced settings + + + Rooted debugging + Allow running Android debugging as root + + + Change backup provider + Select backup provider + + + Pure black + Pure black background for dark theme + + + LineageOS legal + + + Tap to show info + + + + You are now %1$d step away from enabling development settings. + You are now %1$d steps away from enabling development settings. + + + You have enabled development settings! + + No need, you have already enabled development settings. + + + Automatically raises the refresh rate from 60 to %1$d Hz for some content. Increases battery usage. + + + Tap to sleep + Double-tap on the status bar or lockscreen to turn off the display + + + High touch polling rate + Increase touchscreen polling rate + + + Heads-up + Display priority notifications in a small floating window + + + High touch sensitivity + Increase touchscreen sensitivity so it can be used while wearing gloves + + + Allow clients to use VPNs + Permit hotspot clients to use this device\u2019s VPN connections for upstream connectivity + + + Increasing ring volume + Start volume + Ramp-up time + + + Display media cover art + + + 3 \u00d7 3 + 4 \u00d7 4 + 5 \u00d7 5 + 6 \u00d7 6 + Choose a pattern size + + Show pattern error + + Show pattern dots + + + Peak refresh rate + + + Minimum refresh rate + + + Locate the fingerprint sensor on the front of your tablet. + Locate the fingerprint sensor on the front of your device. + Locate the fingerprint sensor on the front of your phone. + Locate the fingerprint sensor on the back of your tablet. + Locate the fingerprint sensor on the back of your device. + Locate the fingerprint sensor on the back of your phone. + Locate the fingerprint sensor on the side of your tablet. + Locate the fingerprint sensor on the side of your device. + Locate the fingerprint sensor on the side of your phone. + + + Touch the sensor on the front of your tablet. + Touch the sensor on the front of your device. + Touch the sensor on the front of your phone. + Touch the sensor on the back of your tablet. + Touch the sensor on the back of your device. + Touch the sensor on the back of your phone. + Touch the sensor on the side of your tablet. + Touch the sensor on the side of your device. + Touch the sensor on the side of your phone. + + + Navigation hint + Show navigation hint bar at the bottom of the screen + + + Minimum time between notification sounds + Allow sounds or vibration no more than once every %1$s + No restriction + 10 seconds + 30 seconds + 1 minute + 5 minutes + 10 minutes + 30 minutes + + + One shot auto-brightness + Brightness adjustment will only occur at the moment the screen is turned on + + + Allow network access + Enable network usage + Mobile data + Enable usage of mobile data + VPN data + Enable usage of VPN data + Wi\u2011Fi data + Enable usage of Wi\u2011Fi data + + + Scramble layout + Scramble PIN layout when unlocking device + + + Prevent accidental wake-up + Check the proximity sensor prior to waking up screen + + + Touchscreen gestures + Perform various touchscreen gestures for quick actions + + + Touchscreen hovering + Allows you to hover the screen like a mouse in web browsers, remote desktops, etc + + + Wake on plug + Turn the screen on when connecting or disconnecting a power source + + + Fast charging + Disable to reduce the heat produced by the device while charging or to extend the lifespan of the battery + + + Long press on fingerprint sensor to unlock phone + + Long press on fingerprint sensor to unlock tablet + + Long press on fingerprint sensor to unlock device + + To wake up your screen and unlock, long press your under-display fingerprint sensor. + + + Warning: This option may not work properly or lead to data loss and is therefore not recommended! + + + Download satellite assistance data from the internet which can greatly improve the GPS startup performance. For emergency calls, assisted GPS is always allowed. + + + Advanced Privacy + Manage trackers, fake location, hide IP address + diff --git a/res/values/strings.xml b/res/values/strings.xml index b5e993fe84..69a03bd4f9 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -639,6 +639,9 @@ App security, device lock, permissions + + + Screen lock, app security @@ -2314,7 +2317,7 @@ Learn more about Private DNS features - On + Off Activate Wi\u2011Fi Calling @@ -12314,4 +12317,7 @@ "This app can only be opened in 1 window" + Internet connectivity check + HTTP endpoints to use for performing internet connectivity checks. + diff --git a/res/xml/advanced_privacy_dashboard_settings.xml b/res/xml/advanced_privacy_dashboard_settings.xml new file mode 100644 index 0000000000..8433a4402a --- /dev/null +++ b/res/xml/advanced_privacy_dashboard_settings.xml @@ -0,0 +1,28 @@ + + + + + + + + + diff --git a/res/xml/bubble_notification_settings.xml b/res/xml/bubble_notification_settings.xml index 3e137d7001..82a89a3249 100644 --- a/res/xml/bubble_notification_settings.xml +++ b/res/xml/bubble_notification_settings.xml @@ -26,10 +26,7 @@ + app:lottie_rawRes="@raw/lottie_bubbles"/> @@ -155,6 +155,14 @@ settings:highlightableMenuKey="@string/menu_key_privacy" settings:controller="com.android.settings.privacy.TopLevelPrivacyEntryPreferenceController"/> + +