diff --git a/Patches/LineageOS-14.1/android_frameworks_base/0001-Accent_Colors.patch b/Patches/LineageOS-14.1/android_frameworks_base/0001-Accent_Colors.patch deleted file mode 100644 index fa3d20ff..00000000 --- a/Patches/LineageOS-14.1/android_frameworks_base/0001-Accent_Colors.patch +++ /dev/null @@ -1,36 +0,0 @@ -From 389daad51a6e77c1908f2fde082e0fe0e8f27878 Mon Sep 17 00:00:00 2001 -From: Tad -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 @@ - #fff5f5f5 - #fffafafa - -- #ffe0f2f1 -- #ffb2dfdb -- #ff80cbc4 -- #ff4db6ac -- #ff009688 -- #ff00796b -+ #ffFFD54F -+ #ffFFCA28 -+ #ffFFA726 -+ #ffFF9800 -+ #ffFF5722 -+ #ffE64A19 - - #ffb0bec5 - #ff455a64 --- -2.14.2 - diff --git a/Scripts/LAOS-14.1_Patches.sh b/Scripts/LAOS-14.1_Patches.sh index 9501573f..c8a57f21 100755 --- a/Scripts/LAOS-14.1_Patches.sh +++ b/Scripts/LAOS-14.1_Patches.sh @@ -5,7 +5,7 @@ #repo forall -c 'git add -A && git reset --hard' && rm -rf packages/apps/{FDroid,GmsCore,Silence} out #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! #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 '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 diff --git a/Scripts/Theme-14.1.sh b/Scripts/Theme-14.1.sh new file mode 100644 index 00000000..7fbb4407 --- /dev/null +++ b/Scripts/Theme-14.1.sh @@ -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!"