Add patches for many Linux CVEs, and overhaul script paths

This commit is contained in:
Tad 2017-10-29 01:48:53 -04:00
parent 8c8dc284c9
commit 75099b9404
801 changed files with 123220 additions and 16 deletions

View file

@ -0,0 +1,21 @@
#!/bin/bash
#Sets settings used by all other scripts
base="/mnt/Drive-1/Development/Other/Android_ROMs/Build/LineageOS-14.1/";
export base;
patches="/mnt/Drive-1/Development/Other/Android_ROMs/Patches/LineageOS-14.1/";
export patches;
cvePatches="/mnt/Drive-1/Development/Other/Android_ROMs/Patches/Linux_CVEs/";
export cvePatches;
scripts="/mnt/Drive-1/Development/Other/Android_ROMs/Scripts/LineageOS-14.1/";
export scripts;
cveScripts=$scripts"CVE_Patchers/";
export cveScripts;
ANDROID_HOME="/home/$USER/Android/Sdk";
export ANDROID_HOME;

View file

@ -10,9 +10,6 @@
#
#Functioning as Expected: bacon, clark, mako, marlin, sailfish, thor
base="/mnt/Drive-1/Development/Other/Android_ROMs/Build/LineageOS-14.1/";
export base;
echo "Deblobbing..."
#

View file

@ -3,8 +3,6 @@
#Attempts to increase performance and battery life
base="/mnt/Drive-1/Development/Other/Android_ROMs/Build/LineageOS-14.1/"
echo "Optimizing..."
cd $base"frameworks/base"

View file

@ -4,8 +4,11 @@
#Delete Everything
#repo forall -c 'git add -A && git reset --hard' && rm -rf packages/apps/{FDroid,GmsCore,Silence} out
#Initialize some variables
#sh ../../Scripts/LineageOS-14.1/00init.sh
#Prepare a build
#repo sync -j20 --force-sync && sh ../../Scripts/LAOS-14.1_Patches.sh && source ../../Scripts/LAOS-14.1_Optimize.sh && source ../../Scripts/LAOS-14.1_Rebrand.sh && source ../../Scripts/LAOS-14.1_Theme.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/Patch.sh && source $scripts/Optimize.sh && source $scripts/Rebrand.sh && source $scripts/Theme.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_FP2-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
@ -16,11 +19,6 @@
#
#START OF PREPRATION
#
#Set some variables for use later on
base="/mnt/Drive-1/Development/Other/Android_ROMs/Build/LineageOS-14.1/"
patches="/mnt/Drive-1/Development/Other/Android_ROMs/Patches/LineageOS-14.1/"
ANDROID_HOME="/home/$USER/Android/Sdk"
#Download some (non-executable) out-of-tree files for use later on
mkdir /tmp/ar
cd /tmp/ar
@ -235,7 +233,7 @@ patch -p1 < $patches"android_kernel_oneplus_msm8974/0001-OverUnderClock-EXTREME.
enter "device/lge/mako"
disableDexPreOpt #bootloops
#patch -p1 < $patches"android_device_lge_mako/0001-Enable_LTE.patch" #Enable LTE support (Requires LTE hybrid modem to be flashed) XXX: Doesn't seem to work under 7.x
patch -p1 < $patches"android_device_lge_mako/0001-Enable_LTE.patch" #Enable LTE support (Requires LTE hybrid modem to be flashed) XXX: Doesn't seem to work under 7.x
enter "kernel/lge/hammerhead"
patch -p1 < $patches"android_kernel_lge_hammerhead/0001-OverUnderClock.patch" #2.26Ghz -> 2.95Ghz =+2.76Ghz

View file

@ -0,0 +1,10 @@
#!/bin/bash
#Copyright (c) 2015-2017 Spot Communications, Inc.
#Attempts to patch kernels to be more secure
echo "Patching CVEs..."
cd $base
echo "Patched CVEs!"

View file

@ -3,8 +3,6 @@
#Updates select user facing strings
base="/mnt/Drive-1/Development/Other/Android_ROMs/Build/LineageOS-14.1/"
echo "Rebranding..."
cd $base"build"

View file

@ -3,8 +3,6 @@
#Replaces teal accents with orange/yellow ones
base="/mnt/Drive-1/Development/Other/Android_ROMs/Build/LineageOS-14.1/"
echo "Applying theme..."
export themeOverride50="FFCA28" #Amber 400