mirror of
https://github.com/Divested-Mobile/DivestOS-Build.git
synced 2025-08-24 13:59:43 -04:00
Robustness improvements
Signed-off-by: Tad <tad@spotco.us>
This commit is contained in:
parent
6ba784ac33
commit
5d0ab40f0b
23 changed files with 276 additions and 316 deletions
|
@ -103,7 +103,7 @@ export -f buildAll;
|
|||
|
||||
patchWorkspace() {
|
||||
umask 0022;
|
||||
cd "$DOS_BUILD_BASE$1";
|
||||
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;
|
||||
verifyAllPlatformTags;
|
||||
|
@ -133,7 +133,7 @@ patchWorkspace() {
|
|||
export -f patchWorkspace;
|
||||
|
||||
enableDexPreOpt() {
|
||||
cd "$DOS_BUILD_BASE$1";
|
||||
cd "$DOS_BUILD_BASE/$1";
|
||||
if [ -f BoardConfig.mk ]; then
|
||||
echo "WITH_DEXPREOPT := true" >> BoardConfig.mk;
|
||||
echo "WITH_DEXPREOPT_DEBUG_INFO := false" >> BoardConfig.mk;
|
||||
|
@ -151,8 +151,8 @@ enableDexPreOpt() {
|
|||
export -f enableDexPreOpt;
|
||||
|
||||
enableLowRam() {
|
||||
if [ -d "$DOS_BUILD_BASE$1" ]; then
|
||||
cd "$DOS_BUILD_BASE$1";
|
||||
if [ -d "$DOS_BUILD_BASE/$1" ]; then
|
||||
cd "$DOS_BUILD_BASE/$1";
|
||||
if [ -f lineage_$2.mk ]; then echo -e '\n$(call inherit-product, vendor/divested/build/target/product/lowram.mk)' >> lineage_$2.mk; fi;
|
||||
echo "Enabled lowram for $1";
|
||||
cd "$DOS_BUILD_BASE";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue