mirror of
https://github.com/Divested-Mobile/DivestOS-Build.git
synced 2025-05-02 06:26:20 -04:00
Hard fail on error
Signed-off-by: Tad <tad@spotco.us>
This commit is contained in:
parent
a5cdb9ab58
commit
256b1db98b
29 changed files with 105 additions and 65 deletions
|
@ -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";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue