Replace theming patch with script

This commit is contained in:
Tad 2017-10-18 12:11:10 -04:00
parent ffe640b21d
commit 8168ab2db7
3 changed files with 24 additions and 38 deletions

View File

@ -1,36 +0,0 @@
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

@ -5,7 +5,7 @@
#repo forall -c 'git add -A && git reset --hard' && rm -rf packages/apps/{FDroid,GmsCore,Silence} out #repo forall -c 'git add -A && git reset --hard' && rm -rf packages/apps/{FDroid,GmsCore,Silence} out
#Prepare a build #Prepare a build
#repo sync -j20 --force-sync && sh ../../Scripts/LAOS-14.1_Patches.sh && source ../../Scripts/Rebrand-14.1.sh && source ../../Scripts/Generic_Deblob.sh && source build/envsetup.sh && export ANDROID_HOME="/home/$USER/Android/Sdk" && export ANDROID_JACK_VM_ARGS="-Xmx6144m -Xms512m -Dfile.encoding=UTF-8 -XX:+TieredCompilation" && export JACK_SERVER_VM_ARGUMENTS="${ANDROID_JACK_VM_ARGS}" && GRADLE_OPTS=-Xmx2048m && export KBUILD_BUILD_USER=emy && export KBUILD_BUILD_HOST=dosbm #repo sync -j20 --force-sync && sh ../../Scripts/LAOS-14.1_Patches.sh && source ../../Scripts/Rebrand-14.1.sh && source ../../Scripts/Theme-14.1.sh && source ../../Scripts/Generic_Deblob.sh && source build/envsetup.sh && export ANDROID_HOME="/home/$USER/Android/Sdk" && export ANDROID_JACK_VM_ARGS="-Xmx6144m -Xms512m -Dfile.encoding=UTF-8 -XX:+TieredCompilation" && export JACK_SERVER_VM_ARGUMENTS="${ANDROID_JACK_VM_ARGS}" && GRADLE_OPTS=-Xmx2048m && export KBUILD_BUILD_USER=emy && export KBUILD_BUILD_HOST=dosbm
#Build! #Build!
#brunch lineage_mako-user && export OTA_PACKAGE_SIGNING_KEY=../../Signing_Keys/releasekey && export SIGNING_KEY_DIR=../../Signing_Keys && brunch lineage_clark-user && brunch lineage_bacon-user && brunch lineage_thor-userdebug && brunch lineage_angler-user && brunch lineage_bullhead-user && brunch lineage_ether-user && brunch lineage_flounder-user && brunch lineage_flo-user && brunch lineage_hammerhead-user && brunch lineage_marlin-user && brunch lineage_sailfish-user && brunch lineage_n5110-user && brunch lineage_osprey-user && brunch lineage_shamu-user && brunch lineage_Z00T-user #brunch lineage_mako-user && export OTA_PACKAGE_SIGNING_KEY=../../Signing_Keys/releasekey && export SIGNING_KEY_DIR=../../Signing_Keys && brunch lineage_clark-user && brunch lineage_bacon-user && brunch lineage_thor-userdebug && brunch lineage_angler-user && brunch lineage_bullhead-user && brunch lineage_ether-user && brunch lineage_flounder-user && brunch lineage_flo-user && brunch lineage_hammerhead-user && brunch lineage_marlin-user && brunch lineage_sailfish-user && brunch lineage_n5110-user && brunch lineage_osprey-user && brunch lineage_shamu-user && brunch lineage_Z00T-user
@ -96,7 +96,6 @@ 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 '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 '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 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/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 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 rm -rf packages/PrintRecommendationService; #App that just creates popups to install proprietary print apps

23
Scripts/Theme-14.1.sh Normal file
View File

@ -0,0 +1,23 @@
#!/bin/bash
#Copyright (c) 2015-2017 Spot Communications, Inc.
#Replaces teal accents with orange ones
base="/mnt/Drive-1/Development/Other/Android_ROMs/Build/LineageOS-14.1/"
echo "Applying theme..."
cd $base"frameworks/base"
sed -i 's/#ffe0f2f1/#ffffd54f/' core/res/res/values/colors_material.xml
sed -i 's/#ffb2dfdb/#ffffca28/' core/res/res/values/colors_material.xml
sed -i 's/#ff80cbc4/#ffffa726/' core/res/res/values/colors_material.xml
sed -i 's/#ff4db6ac/#ffff9800/' core/res/res/values/colors_material.xml
sed -i 's/#ff009688/#ffff5722/' core/res/res/values/colors_material.xml
sed -i 's/#ff00796b/#ffe64a19/' core/res/res/values/colors_material.xml
cd $base"packages/apps/GmsCore/"
sed -i 's/#ff009688/#ffff5722/' microg-ui-tools/src/main/res/values/colors.xml
sed -i 's/#ff7fcac3/#ff4db6ac/' microg-ui-tools/src/main/res/values/colors.xml
cd $base
echo "Applied theme!"