Small changes

- Disable generation of unused OTA to reduce compile time
- 17.1+: Disable APEX, breaks signing, and is also useless since no Play Store.
- 18.1: Fixup signing
This commit is contained in:
Tad 2021-03-29 17:09:12 -04:00
parent 398f663e47
commit 9db9215d6b
8 changed files with 50 additions and 10 deletions

View file

@ -157,7 +157,6 @@ processRelease() {
local RELEASETOOLS_PREFIX="build/tools/releasetools/"; #XXX: FIXME 18REBASE
if [[ "$DOS_VERSION" == "LineageOS-18.1" ]]; then
local RELEASETOOLS_PREFIX="";
make otatools;
fi;
echo -e "\e[0;32mProcessing release for $DEVICE\e[0m";
@ -518,6 +517,14 @@ hardenBootArgs() {
}
export -f hardenBootArgs;
disableAPEX() {
cd "$DOS_BUILD_BASE$1";
awk -i inplace '!/DEXPREOPT_GENERATE_APEX_IMAGE/' *.mk &>/dev/null || true;
awk -i inplace '!/updatable_apex.mk/' *.mk &>/dev/null || true;
cd "$DOS_BUILD_BASE";
}
export -f disableAPEX;
enableStrongEncryption() {
cd "$DOS_BUILD_BASE$1";
if [ -f BoardConfig.mk ]; then