Fix and enable exec_spawning feature

This is the missing puzzle piece :)

Signed-off-by: Tad <tad@spotco.us>
This commit is contained in:
Tad 2022-03-28 21:58:05 -04:00
parent 19b03c9ff4
commit 1bbb6f9b4e
5 changed files with 17 additions and 2 deletions

View file

@ -536,6 +536,15 @@ hardenBootArgs() {
}
export -f hardenBootArgs;
disableEnforceRRO() {
cd "$DOS_BUILD_BASE$1";
awk -i inplace '!/PRODUCT_ENFORCE_RRO_TARGETS .= framework-res/' *.mk &>/dev/null || true;
awk -i inplace '!/PRODUCT_ENFORCE_RRO_TARGETS .= \*/' *.mk &>/dev/null || true;
sed -i '/PRODUCT_ENFORCE_RRO_TARGETS .= \\/,+1 d' *.mk &>/dev/null || true;
cd "$DOS_BUILD_BASE";
}
export -f disableEnforceRRO;
disableAPEX() {
cd "$DOS_BUILD_BASE$1";
awk -i inplace '!/DEXPREOPT_GENERATE_APEX_IMAGE/' *.mk &>/dev/null || true;