mirror of
https://github.com/Divested-Mobile/DivestOS-Build.git
synced 2024-10-01 01:35:54 -04:00
Hard fail on error
Signed-off-by: Tad <tad@spotco.us>
This commit is contained in:
parent
a5cdb9ab58
commit
256b1db98b
@ -14,6 +14,7 @@
|
||||
#
|
||||
#You should have received a copy of the GNU General Public License
|
||||
#along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
set -uo pipefail;
|
||||
|
||||
if [ -d "$DOS_SIGNING_KEYS" ]; then
|
||||
echo "Copying verity/avb public keys to kernels...";
|
||||
@ -104,7 +105,7 @@ cp -v "$DOS_SIGNING_KEYS/vayu/verifiedboot_relkeys.der.x509" "kernel/xiaomi/sm81
|
||||
cp -v "$DOS_SIGNING_KEYS/walleye/verifiedboot_relkeys.der.x509" "kernel/google/wahoo/verifiedboot_walleye_dos_relkeys.der.x509";
|
||||
cp -v "$DOS_SIGNING_KEYS/z2_plus/verifiedboot_relkeys.der.x509" "kernel/zuk/msm8996/verifiedboot_z2_plus_dos_relkeys.der.x509";
|
||||
cp -v "$DOS_SIGNING_KEYS/zenfone3/verifiedboot_relkeys.der.x509" "kernel/asus/msm8953/verifiedboot_zenfone3_dos_relkeys.der.x509";
|
||||
echo "Copied keys to kernels!";
|
||||
echo -e "\e[0;32m[SCRIPT COMPLETE] Copied keys to kernels\e[0m";
|
||||
else
|
||||
echo -e "\e[0;31mSigning keys unavailable, NOT copying public keys to kernels!\e[0m";
|
||||
echo -e "\e[0;31mSigning keys unavailable, NOT copying public keys to kernels\e[0m";
|
||||
fi;
|
||||
|
@ -14,6 +14,7 @@
|
||||
#
|
||||
#You should have received a copy of the GNU General Public License
|
||||
#along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
set -uo pipefail;
|
||||
|
||||
#Goal: Remove as many proprietary blobs without breaking core functionality
|
||||
#Outcome: Increased battery/performance/privacy/security, Decreased ROM size
|
||||
@ -806,4 +807,4 @@ rm -rf vendor/samsung/nodevice;
|
||||
|
||||
cd "$DOS_BUILD_BASE";
|
||||
|
||||
echo "Deblobbing complete!";
|
||||
echo -e "\e[0;32m[SCRIPT COMPLETE] Deblobbing complete\e[0m";
|
||||
|
@ -14,6 +14,7 @@
|
||||
#
|
||||
#You should have received a copy of the GNU General Public License
|
||||
#along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
set -euo pipefail;
|
||||
|
||||
commentPatches() {
|
||||
file="$1";
|
||||
@ -83,3 +84,4 @@ commentPatches android_kernel_yandex_sdm660.sh "CVE-2019-11599" "CVE-2019-14070/
|
||||
commentPatches android_kernel_zte_msm8930.sh "CVE-2015-2922" "CVE-2017-11015/prima";
|
||||
commentPatches android_kernel_zte_msm8996.sh "0001-LinuxIncrementals/3.18/3.18.0098-0099.patch" "CVE-2017-13162" "CVE-2017-15951" "CVE-2017-16939" "CVE-2018-17972" "CVE-2019-2214" "CVE-2019-14070" "CVE-2019-16746" "CVE-2020-0427" "CVE-2020-14381" "CVE-2020-16166";
|
||||
commentPatches android_kernel_zuk_msm8996.sh "0008-Graphene-Kernel_Hardening/4.4/0011.patch" "0008-Graphene-Kernel_Hardening/4.4/0012.patch" "0008-Graphene-Kernel_Hardening/4.4/0014.patch" "CVE-2019-19319" "CVE-2020-1749" "CVE-2020-8992" "CVE-2020-1616";
|
||||
echo -e "\e[0;32m[SCRIPT COMPLETE] Fixed CVE patchers\e[0m";
|
||||
|
@ -14,6 +14,7 @@
|
||||
#
|
||||
#You should have received a copy of the GNU General Public License
|
||||
#along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
set -euo pipefail;
|
||||
|
||||
#Attempts to increase performance and battery life
|
||||
#Last verified: 2018-04-27
|
||||
@ -35,4 +36,4 @@ sed -i "s/#define VM_MAX_READAHEAD\t128/#define VM_MAX_READAHEAD\t512/" ./*/*/in
|
||||
fi;
|
||||
|
||||
cd "$DOS_BUILD_BASE";
|
||||
echo "Optimizing complete!";
|
||||
echo -e "\e[0;32m[SCRIPT COMPLETE] Optimizing complete\e[0m";
|
||||
|
@ -14,6 +14,7 @@
|
||||
#
|
||||
#You should have received a copy of the GNU General Public License
|
||||
#along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
set -uo pipefail;
|
||||
|
||||
#Attempts to patch kernels to be more secure
|
||||
|
||||
@ -37,4 +38,4 @@ for patcher in "$DOS_SCRIPTS_CVES"/*.sh; do
|
||||
done;
|
||||
|
||||
cd "$DOS_BUILD_BASE";
|
||||
echo "Patched CVEs!";
|
||||
echo -e "\e[0;32m[SCRIPT COMPLETE] Patched CVEs\e[0m";
|
||||
|
@ -14,6 +14,7 @@
|
||||
#
|
||||
#You should have received a copy of the GNU General Public License
|
||||
#along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
set -euo pipefail;
|
||||
|
||||
echo "Post tweaks...";
|
||||
|
||||
@ -37,4 +38,4 @@ sed -i 's/static bool slab_nomerge __ro_after_init = !IS_ENABLED(CONFIG_SLAB_MER
|
||||
|
||||
|
||||
cd "$DOS_BUILD_BASE";
|
||||
echo "Post tweaks complete!";
|
||||
echo -e "\e[0;32m[SCRIPT COMPLETE] Post tweaks complete\e[0m";
|
||||
|
@ -14,6 +14,7 @@
|
||||
#
|
||||
#You should have received a copy of the GNU General Public License
|
||||
#along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
set -euo pipefail;
|
||||
|
||||
#Reference (MIT): https://grapheneos.org/build#generating-release-signing-keys
|
||||
|
||||
|
@ -14,6 +14,7 @@
|
||||
#
|
||||
#You should have received a copy of the GNU General Public License
|
||||
#along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
set -euo pipefail;
|
||||
|
||||
#Changes various default settings
|
||||
#Last verified: 2018-04-27
|
||||
@ -56,4 +57,4 @@ sed -i 's/ro.config.alarm_alert=Hassium.ogg/ro.config.alarm_alert=Alarm_Buzzer.o
|
||||
fi;
|
||||
|
||||
cd "$DOS_BUILD_BASE";
|
||||
echo "Default settings changed!";
|
||||
echo -e "\e[0;32m[SCRIPT COMPLETE] Default settings changed\e[0m";
|
||||
|
@ -24,7 +24,7 @@ export -f patchAllKernels;
|
||||
|
||||
resetWorkspace() {
|
||||
umask 0022;
|
||||
repo forall -c 'git add -A && git reset --hard' && rm -rf out && repo sync -j8 --force-sync --detach;
|
||||
repo forall -c 'git add -A && git reset --hard' && rm -rf out DOS_PATCHED_FLAG && repo sync -j8 --force-sync --detach;
|
||||
}
|
||||
export -f resetWorkspace;
|
||||
|
||||
@ -94,6 +94,8 @@ export -f buildAll;
|
||||
|
||||
patchWorkspace() {
|
||||
umask 0022;
|
||||
cd "$DOS_BUILD_BASE$1";
|
||||
touch DOS_PATCHED_FLAG;
|
||||
if [ "$DOS_MALWARE_SCAN_ENABLED" = true ]; then scanForMalware false "$DOS_PREBUILT_APPS $DOS_BUILD_BASE/build $DOS_BUILD_BASE/device $DOS_BUILD_BASE/vendor/cm"; fi;
|
||||
source build/envsetup.sh;
|
||||
#repopick -it bt-sbc-hd-dualchannel-nougat;
|
||||
@ -102,15 +104,15 @@ patchWorkspace() {
|
||||
repopick -it n-asb-2021-10;
|
||||
repopick -it tzdb2021c_N;
|
||||
|
||||
source "$DOS_SCRIPTS/Patch.sh";
|
||||
source "$DOS_SCRIPTS_COMMON/Copy_Keys.sh";
|
||||
source "$DOS_SCRIPTS/Defaults.sh";
|
||||
source "$DOS_SCRIPTS/Rebrand.sh";
|
||||
source "$DOS_SCRIPTS/Theme.sh";
|
||||
source "$DOS_SCRIPTS_COMMON/Optimize.sh";
|
||||
source "$DOS_SCRIPTS_COMMON/Deblob.sh";
|
||||
source "$DOS_SCRIPTS_COMMON/Patch_CVE.sh";
|
||||
source "$DOS_SCRIPTS_COMMON/Post.sh";
|
||||
sh "$DOS_SCRIPTS/Patch.sh";
|
||||
sh "$DOS_SCRIPTS_COMMON/Copy_Keys.sh";
|
||||
sh "$DOS_SCRIPTS/Defaults.sh";
|
||||
sh "$DOS_SCRIPTS/Rebrand.sh";
|
||||
sh "$DOS_SCRIPTS/Theme.sh";
|
||||
sh "$DOS_SCRIPTS_COMMON/Optimize.sh";
|
||||
sh "$DOS_SCRIPTS_COMMON/Deblob.sh";
|
||||
sh "$DOS_SCRIPTS_COMMON/Patch_CVE.sh";
|
||||
sh "$DOS_SCRIPTS_COMMON/Post.sh";
|
||||
source build/envsetup.sh;
|
||||
}
|
||||
export -f patchWorkspace;
|
||||
|
@ -14,6 +14,7 @@
|
||||
#
|
||||
#You should have received a copy of the GNU General Public License
|
||||
#along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
set -euo pipefail;
|
||||
|
||||
#Last verified: 2018-04-27
|
||||
|
||||
@ -430,3 +431,4 @@ sed -i 's/^YYLTYPE yylloc;/extern YYLTYPE yylloc;/' kernel/*/*/scripts/dtc/dtc-l
|
||||
#
|
||||
#END OF DEVICE CHANGES
|
||||
#
|
||||
echo -e "\e[0;32m[SCRIPT COMPLETE] Primary patching finished\e[0m";
|
||||
|
@ -14,6 +14,7 @@
|
||||
#
|
||||
#You should have received a copy of the GNU General Public License
|
||||
#along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
set -euo pipefail;
|
||||
|
||||
#Updates select user facing strings
|
||||
#Last verified: 2018-04-27
|
||||
@ -68,4 +69,4 @@ rm -rf bootanimation;
|
||||
fi;
|
||||
|
||||
cd "$DOS_BUILD_BASE";
|
||||
echo "Rebranding complete!";
|
||||
echo -e "\e[0;32m[SCRIPT COMPLETE] Rebranding complete\e[0m";
|
||||
|
@ -14,6 +14,7 @@
|
||||
#
|
||||
#You should have received a copy of the GNU General Public License
|
||||
#along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
set -euo pipefail;
|
||||
|
||||
#Replaces teal accents with orange/yellow ones
|
||||
#Last verified: 2018-04-27
|
||||
@ -61,4 +62,4 @@ mogrify -format png -fill "#$DOS_THEME_500" -opaque "#26a69a" -fuzz 10% java/res
|
||||
fi;
|
||||
|
||||
cd "$DOS_BUILD_BASE";
|
||||
echo "Applied theme!";
|
||||
echo -e "\e[0;32m[SCRIPT COMPLETE] Applied theme\e[0m";
|
||||
|
@ -14,6 +14,7 @@
|
||||
#
|
||||
#You should have received a copy of the GNU General Public License
|
||||
#along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
set -euo pipefail;
|
||||
|
||||
#Changes various default settings
|
||||
#Last verified: 2018-04-27
|
||||
@ -50,4 +51,4 @@ sed -i 's/ro.config.alarm_alert=Hassium.ogg/ro.config.alarm_alert=Alarm_Buzzer.o
|
||||
fi;
|
||||
|
||||
cd "$DOS_BUILD_BASE";
|
||||
echo "Default settings changed!";
|
||||
echo -e "\e[0;32m[SCRIPT COMPLETE] Default settings changed\e[0m";
|
||||
|
@ -24,7 +24,7 @@ export -f patchAllKernels;
|
||||
|
||||
resetWorkspace() {
|
||||
umask 0022;
|
||||
repo forall -c 'git add -A && git reset --hard' && rm -rf out && repo sync -j8 --force-sync --detach;
|
||||
repo forall -c 'git add -A && git reset --hard' && rm -rf out DOS_PATCHED_FLAG && repo sync -j8 --force-sync --detach;
|
||||
}
|
||||
export -f resetWorkspace;
|
||||
|
||||
@ -83,19 +83,21 @@ export -f buildAll;
|
||||
|
||||
patchWorkspace() {
|
||||
umask 0022;
|
||||
cd "$DOS_BUILD_BASE$1";
|
||||
touch DOS_PATCHED_FLAG;
|
||||
if [ "$DOS_MALWARE_SCAN_ENABLED" = true ]; then scanForMalware false "$DOS_PREBUILT_APPS $DOS_BUILD_BASE/build $DOS_BUILD_BASE/device $DOS_BUILD_BASE/vendor/lineage"; fi;
|
||||
|
||||
source build/envsetup.sh;
|
||||
repopick -it O_asb_2021-10;
|
||||
|
||||
source "$DOS_SCRIPTS/Patch.sh";
|
||||
source "$DOS_SCRIPTS_COMMON/Copy_Keys.sh";
|
||||
source "$DOS_SCRIPTS/Defaults.sh";
|
||||
source "$DOS_SCRIPTS/Rebrand.sh";
|
||||
source "$DOS_SCRIPTS_COMMON/Optimize.sh";
|
||||
source "$DOS_SCRIPTS_COMMON/Deblob.sh";
|
||||
source "$DOS_SCRIPTS_COMMON/Patch_CVE.sh";
|
||||
source "$DOS_SCRIPTS_COMMON/Post.sh";
|
||||
sh "$DOS_SCRIPTS/Patch.sh";
|
||||
sh "$DOS_SCRIPTS_COMMON/Copy_Keys.sh";
|
||||
sh "$DOS_SCRIPTS/Defaults.sh";
|
||||
sh "$DOS_SCRIPTS/Rebrand.sh";
|
||||
sh "$DOS_SCRIPTS_COMMON/Optimize.sh";
|
||||
sh "$DOS_SCRIPTS_COMMON/Deblob.sh";
|
||||
sh "$DOS_SCRIPTS_COMMON/Patch_CVE.sh";
|
||||
sh "$DOS_SCRIPTS_COMMON/Post.sh";
|
||||
source build/envsetup.sh;
|
||||
}
|
||||
export -f patchWorkspace;
|
||||
|
@ -14,6 +14,7 @@
|
||||
#
|
||||
#You should have received a copy of the GNU General Public License
|
||||
#along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
set -euo pipefail;
|
||||
|
||||
#Last verified: 2018-04-27
|
||||
|
||||
@ -321,3 +322,4 @@ rm -v kernel/*/*/drivers/staging/greybus/tools/Android.mk;
|
||||
#
|
||||
#END OF DEVICE CHANGES
|
||||
#
|
||||
echo -e "\e[0;32m[SCRIPT COMPLETE] Primary patching finished\e[0m";
|
||||
|
@ -14,6 +14,7 @@
|
||||
#
|
||||
#You should have received a copy of the GNU General Public License
|
||||
#along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
set -euo pipefail;
|
||||
|
||||
#Updates select user facing strings
|
||||
#Last verified: 2018-04-27
|
||||
@ -23,7 +24,7 @@ echo "Rebranding...";
|
||||
if enter "bootable/recovery"; then
|
||||
git revert --no-edit bc57208dfcd0958d03a00bbcf5345be6ceac9988 6ac3bb48f9d10e604d4b2d6c4152be9d35d17ea0;
|
||||
applyPatch "$DOS_PATCHES/android_bootable_recovery/0001-Remove_Logo.patch"; #Remove logo rendering code
|
||||
rm res*/images/logo_image.png; #Remove logo images
|
||||
rm res*/images/logo_image.png || true; #Remove logo images
|
||||
mogrify -format png -fill "#FF5722" -opaque "#167C80" -fuzz 10% res-*/images/*sel.png; #Recolor icons
|
||||
sed -i 's|grid_h \* 2 / 3|grid_h * 0.25|' screen_ui.cpp; #Center icons
|
||||
sed -i 's|0x16, 0x7c, 0x80|0x03, 0xa9, 0xf4|' screen_ui.cpp; #Recolor text
|
||||
@ -80,4 +81,4 @@ rm -rf bootanimation;
|
||||
fi;
|
||||
|
||||
cd "$DOS_BUILD_BASE";
|
||||
echo "Rebranding complete!";
|
||||
echo -e "\e[0;32m[SCRIPT COMPLETE] Rebranding complete\e[0m";
|
||||
|
@ -14,6 +14,7 @@
|
||||
#
|
||||
#You should have received a copy of the GNU General Public License
|
||||
#along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
set -euo pipefail;
|
||||
|
||||
#Changes various default settings
|
||||
#Last verified: 2019-03-04
|
||||
@ -46,4 +47,4 @@ sed -i 's/ro.config.alarm_alert=Hassium.ogg/ro.config.alarm_alert=Alarm_Buzzer.o
|
||||
fi;
|
||||
|
||||
cd "$DOS_BUILD_BASE";
|
||||
echo "Default settings changed!";
|
||||
echo -e "\e[0;32m[SCRIPT COMPLETE] Default settings changed\e[0m";
|
||||
|
@ -24,7 +24,7 @@ export -f patchAllKernels;
|
||||
|
||||
resetWorkspace() {
|
||||
umask 0022;
|
||||
repo forall -c 'git add -A && git reset --hard' && rm -rf out && repo sync -j8 --force-sync --detach;
|
||||
repo forall -c 'git add -A && git reset --hard' && rm -rf out DOS_PATCHED_FLAG && repo sync -j8 --force-sync --detach;
|
||||
}
|
||||
export -f resetWorkspace;
|
||||
|
||||
@ -71,20 +71,22 @@ export -f buildAll;
|
||||
|
||||
patchWorkspace() {
|
||||
umask 0022;
|
||||
cd "$DOS_BUILD_BASE$1";
|
||||
touch DOS_PATCHED_FLAG;
|
||||
if [ "$DOS_MALWARE_SCAN_ENABLED" = true ]; then scanForMalware false "$DOS_PREBUILT_APPS $DOS_BUILD_BASE/build $DOS_BUILD_BASE/device $DOS_BUILD_BASE/vendor/lineage"; fi;
|
||||
|
||||
source build/envsetup.sh;
|
||||
#repopick -it pie-firewall;
|
||||
repopick -it P_asb_2021-10;
|
||||
|
||||
source "$DOS_SCRIPTS/Patch.sh";
|
||||
source "$DOS_SCRIPTS_COMMON/Copy_Keys.sh";
|
||||
source "$DOS_SCRIPTS/Defaults.sh";
|
||||
source "$DOS_SCRIPTS/Rebrand.sh";
|
||||
source "$DOS_SCRIPTS_COMMON/Optimize.sh";
|
||||
source "$DOS_SCRIPTS_COMMON/Deblob.sh";
|
||||
source "$DOS_SCRIPTS_COMMON/Patch_CVE.sh";
|
||||
source "$DOS_SCRIPTS_COMMON/Post.sh";
|
||||
sh "$DOS_SCRIPTS/Patch.sh";
|
||||
sh "$DOS_SCRIPTS_COMMON/Copy_Keys.sh";
|
||||
sh "$DOS_SCRIPTS/Defaults.sh";
|
||||
sh "$DOS_SCRIPTS/Rebrand.sh";
|
||||
sh "$DOS_SCRIPTS_COMMON/Optimize.sh";
|
||||
sh "$DOS_SCRIPTS_COMMON/Deblob.sh";
|
||||
sh "$DOS_SCRIPTS_COMMON/Patch_CVE.sh";
|
||||
sh "$DOS_SCRIPTS_COMMON/Post.sh";
|
||||
source build/envsetup.sh;
|
||||
}
|
||||
export -f patchWorkspace;
|
||||
|
@ -14,6 +14,7 @@
|
||||
#
|
||||
#You should have received a copy of the GNU General Public License
|
||||
#along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
set -euo pipefail;
|
||||
|
||||
#Last verified: 2019-03-04
|
||||
|
||||
@ -319,3 +320,4 @@ rm -v kernel/*/*/drivers/staging/greybus/tools/Android.mk;
|
||||
#
|
||||
#END OF DEVICE CHANGES
|
||||
#
|
||||
echo -e "\e[0;32m[SCRIPT COMPLETE] Primary patching finished\e[0m";
|
||||
|
@ -14,6 +14,7 @@
|
||||
#
|
||||
#You should have received a copy of the GNU General Public License
|
||||
#along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
set -euo pipefail;
|
||||
|
||||
#Updates select user facing strings
|
||||
#Last verified: 2019-03-04
|
||||
@ -23,7 +24,7 @@ echo "Rebranding...";
|
||||
if enter "bootable/recovery"; then
|
||||
git revert --no-edit c9ab109b6b6c502238ec88badc1fbed2644480f2 cb5b7cc0b04c445dbc189e28575bba50638433b5;
|
||||
applyPatch "$DOS_PATCHES/android_bootable_recovery/0002-Remove_Logo.patch"; #Remove logo rendering code
|
||||
rm res*/images/logo_image.png; #Remove logo images
|
||||
rm res*/images/logo_image.png || true; #Remove logo images
|
||||
mogrify -format png -fill "#FF5722" -opaque "#167C80" -fuzz 10% res-*/images/*sel.png; #Recolor icons
|
||||
sed -i 's|grid_h \* 2 / 3|grid_h * 0.25|' screen_ui.cpp; #Center icons
|
||||
sed -i 's|0x16, 0x7c, 0x80|0x03, 0xa9, 0xf4|' screen_ui.cpp; #Recolor text
|
||||
@ -80,4 +81,4 @@ rm -rf bootanimation;
|
||||
fi;
|
||||
|
||||
cd "$DOS_BUILD_BASE";
|
||||
echo "Rebranding complete!";
|
||||
echo -e "\e[0;32m[SCRIPT COMPLETE] Rebranding complete\e[0m";
|
||||
|
@ -14,6 +14,7 @@
|
||||
#
|
||||
#You should have received a copy of the GNU General Public License
|
||||
#along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
set -euo pipefail;
|
||||
|
||||
#Changes various default settings
|
||||
#Last verified: 2020-04-14
|
||||
@ -46,4 +47,4 @@ sed -i 's/ro.config.alarm_alert=Hassium.ogg/ro.config.alarm_alert=Alarm_Buzzer.o
|
||||
fi;
|
||||
|
||||
cd "$DOS_BUILD_BASE";
|
||||
echo "Default settings changed!";
|
||||
echo -e "\e[0;32m[SCRIPT COMPLETE] Default settings changed\e[0m";
|
||||
|
@ -24,7 +24,7 @@ export -f patchAllKernels;
|
||||
|
||||
resetWorkspace() {
|
||||
umask 0022;
|
||||
repo forall -c 'git add -A && git reset --hard' && rm -rf out && repo sync -j8 --force-sync --detach;
|
||||
repo forall -c 'git add -A && git reset --hard' && rm -rf out DOS_PATCHED_FLAG && repo sync -j8 --force-sync --detach;
|
||||
}
|
||||
export -f resetWorkspace;
|
||||
|
||||
@ -90,20 +90,22 @@ export -f buildAll;
|
||||
|
||||
patchWorkspace() {
|
||||
umask 0022;
|
||||
cd "$DOS_BUILD_BASE$1";
|
||||
touch DOS_PATCHED_FLAG;
|
||||
if [ "$DOS_MALWARE_SCAN_ENABLED" = true ]; then scanForMalware false "$DOS_PREBUILT_APPS $DOS_BUILD_BASE/build $DOS_BUILD_BASE/device $DOS_BUILD_BASE/vendor/lineage"; fi;
|
||||
|
||||
#source build/envsetup.sh;
|
||||
#repopick -it ten-firewall;
|
||||
#repopick -it Q_tzdb2021a1;
|
||||
|
||||
source "$DOS_SCRIPTS/Patch.sh";
|
||||
source "$DOS_SCRIPTS_COMMON/Copy_Keys.sh";
|
||||
source "$DOS_SCRIPTS/Defaults.sh";
|
||||
source "$DOS_SCRIPTS/Rebrand.sh";
|
||||
source "$DOS_SCRIPTS_COMMON/Optimize.sh";
|
||||
source "$DOS_SCRIPTS_COMMON/Deblob.sh";
|
||||
source "$DOS_SCRIPTS_COMMON/Patch_CVE.sh";
|
||||
source "$DOS_SCRIPTS_COMMON/Post.sh";
|
||||
sh "$DOS_SCRIPTS/Patch.sh";
|
||||
sh "$DOS_SCRIPTS_COMMON/Copy_Keys.sh";
|
||||
sh "$DOS_SCRIPTS/Defaults.sh";
|
||||
sh "$DOS_SCRIPTS/Rebrand.sh";
|
||||
sh "$DOS_SCRIPTS_COMMON/Optimize.sh";
|
||||
sh "$DOS_SCRIPTS_COMMON/Deblob.sh";
|
||||
sh "$DOS_SCRIPTS_COMMON/Patch_CVE.sh";
|
||||
sh "$DOS_SCRIPTS_COMMON/Post.sh";
|
||||
source build/envsetup.sh;
|
||||
|
||||
#Deblobbing fixes
|
||||
|
@ -14,6 +14,7 @@
|
||||
#
|
||||
#You should have received a copy of the GNU General Public License
|
||||
#along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
set -euo pipefail;
|
||||
|
||||
#Last verified: 2020-04-14
|
||||
|
||||
@ -382,3 +383,4 @@ rm -v kernel/*/*/drivers/staging/greybus/tools/Android.mk;
|
||||
#
|
||||
#END OF DEVICE CHANGES
|
||||
#
|
||||
echo -e "\e[0;32m[SCRIPT COMPLETE] Primary patching finished\e[0m";
|
||||
|
@ -14,6 +14,7 @@
|
||||
#
|
||||
#You should have received a copy of the GNU General Public License
|
||||
#along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
set -euo pipefail;
|
||||
|
||||
#Updates select user facing strings
|
||||
#Last verified: 2020-04-14
|
||||
@ -87,4 +88,4 @@ rm -rf bootanimation;
|
||||
fi;
|
||||
|
||||
cd "$DOS_BUILD_BASE";
|
||||
echo "Rebranding complete!";
|
||||
echo -e "\e[0;32m[SCRIPT COMPLETE] Rebranding complete\e[0m";
|
||||
|
@ -14,6 +14,7 @@
|
||||
#
|
||||
#You should have received a copy of the GNU General Public License
|
||||
#along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
set -euo pipefail;
|
||||
|
||||
#Changes various default settings
|
||||
#Last verified: 2021-03-22
|
||||
@ -54,4 +55,4 @@ sed -i 's/ro.config.alarm_alert=Hassium.ogg/ro.config.alarm_alert=Alarm_Buzzer.o
|
||||
fi;
|
||||
|
||||
cd "$DOS_BUILD_BASE";
|
||||
echo "Default settings changed!";
|
||||
echo -e "\e[0;32m[SCRIPT COMPLETE] Default settings changed\e[0m";
|
||||
|
@ -24,7 +24,7 @@ export -f patchAllKernels;
|
||||
|
||||
resetWorkspace() {
|
||||
umask 0022;
|
||||
repo forall -c 'git add -A && git reset --hard' && rm -rf out && repo sync -j8 --force-sync --detach;
|
||||
repo forall -c 'git add -A && git reset --hard' && rm -rf out DOS_PATCHED_FLAG && repo sync -j8 --force-sync --detach;
|
||||
}
|
||||
export -f resetWorkspace;
|
||||
|
||||
@ -124,20 +124,22 @@ export -f buildAll;
|
||||
|
||||
patchWorkspace() {
|
||||
umask 0022;
|
||||
cd "$DOS_BUILD_BASE$1";
|
||||
touch DOS_PATCHED_FLAG;
|
||||
if [ "$DOS_MALWARE_SCAN_ENABLED" = true ]; then scanForMalware false "$DOS_PREBUILT_APPS $DOS_BUILD_BASE/build $DOS_BUILD_BASE/device $DOS_BUILD_BASE/vendor/lineage"; fi;
|
||||
|
||||
#source build/envsetup.sh;
|
||||
#repopick -it eleven-firewall;
|
||||
#repopick -it R_tzdb2021a1;
|
||||
|
||||
source "$DOS_SCRIPTS/Patch.sh";
|
||||
source "$DOS_SCRIPTS_COMMON/Copy_Keys.sh";
|
||||
source "$DOS_SCRIPTS/Defaults.sh";
|
||||
source "$DOS_SCRIPTS/Rebrand.sh";
|
||||
source "$DOS_SCRIPTS_COMMON/Optimize.sh";
|
||||
source "$DOS_SCRIPTS_COMMON/Deblob.sh";
|
||||
source "$DOS_SCRIPTS_COMMON/Patch_CVE.sh";
|
||||
source "$DOS_SCRIPTS_COMMON/Post.sh";
|
||||
sh "$DOS_SCRIPTS/Patch.sh";
|
||||
sh "$DOS_SCRIPTS_COMMON/Copy_Keys.sh";
|
||||
sh "$DOS_SCRIPTS/Defaults.sh";
|
||||
sh "$DOS_SCRIPTS/Rebrand.sh";
|
||||
sh "$DOS_SCRIPTS_COMMON/Optimize.sh";
|
||||
sh "$DOS_SCRIPTS_COMMON/Deblob.sh";
|
||||
sh "$DOS_SCRIPTS_COMMON/Patch_CVE.sh";
|
||||
sh "$DOS_SCRIPTS_COMMON/Post.sh";
|
||||
source build/envsetup.sh;
|
||||
|
||||
#Deblobbing fixes
|
||||
|
@ -14,6 +14,7 @@
|
||||
#
|
||||
#You should have received a copy of the GNU General Public License
|
||||
#along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
set -euo pipefail;
|
||||
|
||||
#Last verified: 2021-03-22
|
||||
|
||||
@ -466,3 +467,4 @@ rm -v kernel/*/*/drivers/staging/greybus/tools/Android.mk;
|
||||
#
|
||||
#END OF DEVICE CHANGES
|
||||
#
|
||||
echo -e "\e[0;32m[SCRIPT COMPLETE] Primary patching finished\e[0m";
|
||||
|
@ -14,6 +14,7 @@
|
||||
#
|
||||
#You should have received a copy of the GNU General Public License
|
||||
#along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
set -euo pipefail;
|
||||
|
||||
#Updates select user facing strings
|
||||
#Last verified: 2021-03-22
|
||||
@ -88,4 +89,4 @@ rm -rf bootanimation;
|
||||
fi;
|
||||
|
||||
cd "$DOS_BUILD_BASE";
|
||||
echo "Rebranding complete!";
|
||||
echo -e "\e[0;32m[SCRIPT COMPLETE] Rebranding complete\e[0m";
|
||||
|
@ -32,6 +32,7 @@ export DOS_SIGNING_GPG=$DOS_WORKSPACE_ROOT"Signing_Keys/gnupg";
|
||||
export CCACHE_COMPRESS=1;
|
||||
export CCACHE_COMPRESSLEVEL=1;
|
||||
#export DOS_BINARY_PATCHER="";
|
||||
export DOS_TOR_WRAPPER="";
|
||||
#export DOS_TOR_WRAPPER="torsocks"; #Uncomment to perform select build operations over Tor
|
||||
export DOS_MALWARE_SCAN_ENABLED=true; #Set true to perform a fast scan on patchWorkspace() and a through scan on buildAll()
|
||||
export DOS_MALWARE_SCAN_SETTING="quick"; #buildAll() scan speed. Options: quick, extra, slow, full
|
||||
|
Loading…
Reference in New Issue
Block a user