From 70fdecc16d35b2d5e3083925561adfbff0f56362 Mon Sep 17 00:00:00 2001 From: Aayush Gupta Date: Wed, 2 Jun 2021 05:47:08 +0200 Subject: [PATCH 01/13] LineageParts: Change references to /e/ OS in Trust ASB dialog Signed-off-by: Aayush Gupta --- res/values/strings.xml | 1 + src/org/lineageos/lineageparts/trust/TrustPreferences.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/res/values/strings.xml b/res/values/strings.xml index 02a53169..54225cac 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -651,6 +651,7 @@ Out of date Security patches are released monthly by Google in cooperation with SoC vendors to address flaws which could be exploited by malicious apps to bypass security restrictions and cause permanent damage to your device. Patches made available by Google are applied every month on all supported devices, but patches to proprietary code can only be applied by your device\'s manufacturer. To keep your device safe make sure your LineageOS build is always up-to-date, and (if applicable) ensure your vendor image is updated to the latest one recommended by LineageOS. + Security patches are released monthly by Google in cooperation with SoC vendors to address flaws which could be exploited by malicious apps to bypass security restrictions and cause permanent damage to your device. Patches made available by Google are applied every month on all supported devices, but patches to proprietary code can only be applied by your device\'s manufacturer. To keep your device safe make sure your /e/ OS build is always up-to-date, and (if applicable) ensure your vendor image is updated to the latest one recommended by /e/ OS. Encryption Enabled Needs a secure lock screen diff --git a/src/org/lineageos/lineageparts/trust/TrustPreferences.java b/src/org/lineageos/lineageparts/trust/TrustPreferences.java index a38b395b..f889ee3a 100644 --- a/src/org/lineageos/lineageparts/trust/TrustPreferences.java +++ b/src/org/lineageos/lineageparts/trust/TrustPreferences.java @@ -71,7 +71,7 @@ public class TrustPreferences extends SettingsPreferenceFragment { mSELinuxPref.setOnPreferenceClickListener(p -> showInfo(R.string.trust_feature_selinux_explain)); mSecurityPatchesPref.setOnPreferenceClickListener(p -> - showInfo(R.string.trust_feature_security_patches_explain)); + showInfo(R.string.trust_feature_security_patches_explain_e)); mEncryptionPref.setOnPreferenceClickListener(p -> showInfo(R.string.trust_feature_encryption_explain)); mSmsLimitPref.setOnPreferenceChangeListener((p, v) -> -- GitLab From fa567862b9b6ab9b14b33382106105f75ba0f167 Mon Sep 17 00:00:00 2001 From: TheScarastic Date: Thu, 16 Jun 2022 06:03:51 +0000 Subject: [PATCH 02/13] Revert "Remove weather related leftovers" This reverts commit 77ca6d8bfc874bd53846d7ab09117c25a834ffb3. Revert "LineageParts: Remove weather related code" This reverts commit 44d90535c51f0a1ebc7e5baaf5ede7c221038972. Change-Id: I676082613117e5642b8dfe5c06d58ec6d8e940dd --- AndroidManifest.xml | 11 + res/drawable-hdpi/nav_divider.png | Bin 0 -> 320 bytes res/drawable-mdpi/nav_divider.png | Bin 0 -> 311 bytes res/drawable-xhdpi/nav_divider.png | Bin 0 -> 332 bytes res/drawable/ic_gear.xml | 26 + res/drawable/ic_settings_weather.xml | 30 ++ res/layout/empty_weather_state.xml | 54 ++ .../weather_service_provider_info_row.xml | 80 +++ res/values-af/strings.xml | 14 + res/values-ar/strings.xml | 14 + res/values-ast-rES/strings.xml | 14 + res/values-az/strings.xml | 14 + res/values-be/strings.xml | 7 + res/values-bg/strings.xml | 14 + res/values-ca/strings.xml | 14 + res/values-cs/strings.xml | 14 + res/values-cy/strings.xml | 14 + res/values-da/strings.xml | 14 + res/values-de/strings.xml | 14 + res/values-el/strings.xml | 14 + res/values-en-rAU/strings.xml | 14 + res/values-en-rCA/strings.xml | 14 + res/values-en-rGB/strings.xml | 14 + res/values-en-rIN/strings.xml | 14 + res/values-es-rUS/strings.xml | 14 + res/values-es/strings.xml | 14 + res/values-et/strings.xml | 14 + res/values-eu/strings.xml | 14 + res/values-fi/strings.xml | 14 + res/values-fr/strings.xml | 14 + res/values-fy-rNL/strings.xml | 14 + res/values-gd/strings.xml | 14 + res/values-gl/strings.xml | 14 + res/values-hr/strings.xml | 14 + res/values-hu/strings.xml | 14 + res/values-in/strings.xml | 14 + res/values-it/strings.xml | 14 + res/values-iw/strings.xml | 14 + res/values-ja/strings.xml | 14 + res/values-kn/strings.xml | 14 + res/values-ko/strings.xml | 14 + res/values-mk/strings.xml | 14 + res/values-nb/strings.xml | 14 + res/values-nl/strings.xml | 14 + res/values-pl/strings.xml | 14 + res/values-pt-rBR/strings.xml | 14 + res/values-pt-rPT/strings.xml | 14 + res/values-ro/strings.xml | 14 + res/values-ru/strings.xml | 14 + res/values-sc-rIT/strings.xml | 1 + res/values-sk/strings.xml | 14 + res/values-sl/strings.xml | 14 + res/values-sq/strings.xml | 14 + res/values-sr/strings.xml | 14 + res/values-sv/strings.xml | 9 + res/values-th/strings.xml | 14 + res/values-tr/strings.xml | 14 + res/values-uk/strings.xml | 14 + res/values-vi/strings.xml | 14 + res/values-zh-rCN/strings.xml | 14 + res/values-zh-rTW/strings.xml | 14 + res/values/arrays.xml | 11 + res/values/colors.xml | 2 + res/values/config.xml | 3 + res/values/strings.xml | 17 + res/xml/parts_catalog.xml | 5 + res/xml/weather_settings.xml | 40 ++ .../weather/WeatherServiceSettings.java | 485 ++++++++++++++++++ 68 files changed, 1481 insertions(+) create mode 100644 res/drawable-hdpi/nav_divider.png create mode 100644 res/drawable-mdpi/nav_divider.png create mode 100644 res/drawable-xhdpi/nav_divider.png create mode 100644 res/drawable/ic_gear.xml create mode 100644 res/drawable/ic_settings_weather.xml create mode 100644 res/layout/empty_weather_state.xml create mode 100644 res/layout/weather_service_provider_info_row.xml create mode 100644 res/xml/weather_settings.xml create mode 100644 src/org/lineageos/lineageparts/weather/WeatherServiceSettings.java diff --git a/AndroidManifest.xml b/AndroidManifest.xml index 19bbbb88..87a5beee 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -250,6 +250,17 @@ android:enabled="true" android:exported="false" /> + + + + + + + + diff --git a/res/drawable-hdpi/nav_divider.png b/res/drawable-hdpi/nav_divider.png new file mode 100644 index 0000000000000000000000000000000000000000..b1f035c93d93eb3d9767fa9e266ab62a46ff8b9b GIT binary patch literal 320 zcmeAS@N?(olHy`uVBq!ia0y~yVBlb2U@+idVPIfr)Bk*cfq{W3$=lt9;eUJonf(k5 z44efXk;M!Q+(IDCcKfnz#MFN4}~&gl#c3@V;3jv*T7lT!kc6A}`B{O@aQ z4D4uZY;5dgW zGzg!NbeDmFK^3GRC9x#cDjB3ImBGls&_LI~QrE~N#L&RX(9FufOxM8N%D~|6w|%xK z8glbfGSez?Ygn_It&xF&K?Y<)aDG}zd16s2gJVj5QmTSmW>IQ+eo=O@f^)EG;nv4y Q3=9kmp00i_>zopr046qCIRF3v literal 0 HcmV?d00001 diff --git a/res/drawable-mdpi/nav_divider.png b/res/drawable-mdpi/nav_divider.png new file mode 100644 index 0000000000000000000000000000000000000000..f7ed6dff8ecf1393296142e701ec454f7a44286a GIT binary patch literal 311 zcmeAS@N?(olHy`uVBq!ia0y~yU|?lnU{K&-VPIe=V6S@3z`($i-_Rg@LegCZ z1_o7-f|SIPRI6l=s#FFe149E{14~^alMq7#D?>9Y12bI%b1MUbyWjTNqG-s?PsvQH z#I0e?YPLoO1_l|B4Z-KhsA8ybX9NV?0wz@Q3Jkdj!EYLyI9mC9gbU}&goV61Cs7Gh{-WngAyYM^Ui zZe?JgxvE7MMMG|WN@iLmZVeINZ6-1>Fvx&x2+mI{DNig)WpGT%PfAsA%PdMQ&o9a@ ZR&WkBE!_IpjDdlH!PC{xWt~$(69A4GVV(d0 literal 0 HcmV?d00001 diff --git a/res/drawable/ic_gear.xml b/res/drawable/ic_gear.xml new file mode 100644 index 00000000..9562ea15 --- /dev/null +++ b/res/drawable/ic_gear.xml @@ -0,0 +1,26 @@ + + + + + + diff --git a/res/drawable/ic_settings_weather.xml b/res/drawable/ic_settings_weather.xml new file mode 100644 index 00000000..1a5a8a92 --- /dev/null +++ b/res/drawable/ic_settings_weather.xml @@ -0,0 +1,30 @@ + + + + + + \ No newline at end of file diff --git a/res/layout/empty_weather_state.xml b/res/layout/empty_weather_state.xml new file mode 100644 index 00000000..ce9e7490 --- /dev/null +++ b/res/layout/empty_weather_state.xml @@ -0,0 +1,54 @@ + + + + + + + +