Fix setupwizard patch and change the default accent color system wide

This commit is contained in:
Tad 2017-10-18 11:59:50 -04:00
parent f810d0691d
commit ffe640b21d
3 changed files with 80 additions and 5 deletions

View File

@ -0,0 +1,36 @@
From 389daad51a6e77c1908f2fde082e0fe0e8f27878 Mon Sep 17 00:00:00 2001
From: Tad <tad@spotco.us>
Date: Wed, 18 Oct 2017 10:40:06 -0400
Subject: [PATCH] Tweak accent colors
Change-Id: Ie531c7b7c91678bef0743c403286b17518cc794d
---
core/res/res/values/colors_material.xml | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/core/res/res/values/colors_material.xml b/core/res/res/values/colors_material.xml
index 4e4b88d4b97..27d08fa537b 100644
--- a/core/res/res/values/colors_material.xml
+++ b/core/res/res/values/colors_material.xml
@@ -86,12 +86,12 @@
<color name="material_grey_100">#fff5f5f5</color>
<color name="material_grey_50">#fffafafa</color>
- <color name="material_deep_teal_50">#ffe0f2f1</color>
- <color name="material_deep_teal_100">#ffb2dfdb</color>
- <color name="material_deep_teal_200">#ff80cbc4</color>
- <color name="material_deep_teal_300">#ff4db6ac</color>
- <color name="material_deep_teal_500">#ff009688</color>
- <color name="material_deep_teal_700">#ff00796b</color>
+ <color name="material_deep_teal_50">#ffFFD54F</color>
+ <color name="material_deep_teal_100">#ffFFCA28</color>
+ <color name="material_deep_teal_200">#ffFFA726</color>
+ <color name="material_deep_teal_300">#ffFF9800</color>
+ <color name="material_deep_teal_500">#ffFF5722</color>
+ <color name="material_deep_teal_700">#ffE64A19</color>
<color name="material_blue_grey_200">#ffb0bec5</color>
<color name="material_blue_grey_700">#ff455a64</color>
--
2.14.2

View File

@ -1,14 +1,15 @@
From 04dc166ba80b5364f71d15b617083e772a1e35ac Mon Sep 17 00:00:00 2001
From 2d5570d86d6eb950247a5b4792840c1626eaea94 Mon Sep 17 00:00:00 2001
From: Tad <tad@spotco.us>
Date: Wed, 18 Oct 2017 07:40:33 -0400
Subject: [PATCH] Remove CMStats
Date: Wed, 18 Oct 2017 11:54:48 -0400
Subject: [PATCH] Remove analytics
Change-Id: I5aeb0bf59e9d7e64831ecaec7b917dfc3b5386df
Change-Id: I044dd6b137b8a1d4a6dde3a63c0aaa454309341f
---
res/layout/setup_lineage_settings.xml | 36 ----------------------
.../cyanogenmod/setupwizard/FinishActivity.java | 12 --------
.../setupwizard/LineageSettingsActivity.java | 35 ---------------------
.../cyanogenmod/setupwizard/SetupWizardApp.java | 1 -
3 files changed, 72 deletions(-)
4 files changed, 84 deletions(-)
diff --git a/res/layout/setup_lineage_settings.xml b/res/layout/setup_lineage_settings.xml
index 42b4c2d..5792c06 100644
@ -57,6 +58,43 @@ index 42b4c2d..5792c06 100644
<!-- Checkbox for using on-screen nav keys -->
<LinearLayout
android:id="@+id/nav_keys"
diff --git a/src/com/cyanogenmod/setupwizard/FinishActivity.java b/src/com/cyanogenmod/setupwizard/FinishActivity.java
index cd25811..f927f46 100644
--- a/src/com/cyanogenmod/setupwizard/FinishActivity.java
+++ b/src/com/cyanogenmod/setupwizard/FinishActivity.java
@@ -21,7 +21,6 @@ import static com.cyanogenmod.setupwizard.SetupWizardApp.DISABLE_NAV_KEYS;
import static com.cyanogenmod.setupwizard.SetupWizardApp.KEY_APPLY_DEFAULT_THEME;
import static com.cyanogenmod.setupwizard.SetupWizardApp.KEY_BUTTON_BACKLIGHT;
import static com.cyanogenmod.setupwizard.SetupWizardApp.KEY_PRIVACY_GUARD;
-import static com.cyanogenmod.setupwizard.SetupWizardApp.KEY_SEND_METRICS;
import static com.cyanogenmod.setupwizard.SetupWizardApp.LOGV;
import android.animation.Animator;
@@ -174,7 +173,6 @@ public class FinishActivity extends BaseSetupWizardActivity {
mEnableAccessibilityController.onDestroy();
}
handlePrivacyGuard(mSetupWizardApp);
- handleEnableMetrics(mSetupWizardApp);
handleNavKeys(mSetupWizardApp);
final WallpaperManager wallpaperManager =
WallpaperManager.getInstance(mSetupWizardApp);
@@ -185,16 +183,6 @@ public class FinishActivity extends BaseSetupWizardActivity {
startActivityForResult(intent, NEXT_REQUEST);
}
- private static void handleEnableMetrics(SetupWizardApp setupWizardApp) {
- Bundle privacyData = setupWizardApp.getSettingsBundle();
- if (privacyData != null
- && privacyData.containsKey(KEY_SEND_METRICS)) {
- CMSettings.Secure.putInt(setupWizardApp.getContentResolver(),
- CMSettings.Secure.STATS_COLLECTION, privacyData.getBoolean(KEY_SEND_METRICS)
- ? 1 : 0);
- }
- }
-
private static void handlePrivacyGuard(SetupWizardApp setupWizardApp) {
Bundle mPrivacyData = setupWizardApp.getSettingsBundle();
if (mPrivacyData != null && mPrivacyData.containsKey(KEY_PRIVACY_GUARD)) {
diff --git a/src/com/cyanogenmod/setupwizard/LineageSettingsActivity.java b/src/com/cyanogenmod/setupwizard/LineageSettingsActivity.java
index b222c72..5bf8d9f 100644
--- a/src/com/cyanogenmod/setupwizard/LineageSettingsActivity.java

View File

@ -96,6 +96,7 @@ git fetch https://review.lineageos.org/LineageOS/android_frameworks_base refs/ch
sed -i 's/DEFAULT_MAX_FILES = 1000;/DEFAULT_MAX_FILES = 0;/' services/core/java/com/android/server/DropBoxManagerService.java; #Disable DropBox
sed -i '0,/wifi,cell,battery/s/wifi,cell,battery,dnd,flashlight,rotation,bt,airplane/wifi,cell,bt,dnd,flashlight,rotation,battery,profiles,location,airplane,saver,hotspot,nfc/' packages/SystemUI/res/values/config.xml;
sed -i 's/ScaleSetting = 1.0f;/ScaleSetting = 0.5f;/' services/core/java/com/android/server/wm/WindowManagerService.java; #Speedup animation scale
patch -p1 < $patches"android_frameworks_base/0001-Accent_Colors.patch" #Change accent from teal to orange
patch -p1 < $patches"android_frameworks_base/0003-Signature_Spoofing.patch" #Allow packages to spoof their signature (MicroG)
patch -p1 < $patches"android_frameworks_base/0005-Harden_Sig_Spoofing.patch" #Restrict signature spoofing to system apps signed with the platform key
rm -rf packages/PrintRecommendationService; #App that just creates popups to install proprietary print apps