mirror of
https://github.com/lineageos4microg/docker-lineage-cicd
synced 2024-11-09 10:09:56 +01:00
Make applying patches switchable
This commit is contained in:
parent
8f2815fac2
commit
f9bc6d8125
@ -231,6 +231,7 @@ for branch in ${BRANCH_NAME//,/ }; do
|
||||
los_ver_minor=$(sed -n -e 's/^\s*PRODUCT_VERSION_MINOR = //p' "$makefile_containing_version")
|
||||
los_ver="$los_ver_major.$los_ver_minor"
|
||||
|
||||
if [ "$APPLY_PATCHES" = true ]; then
|
||||
# If needed, apply the microG's signature spoofing patch
|
||||
if [ "$SIGNATURE_SPOOFING" = "yes" ] || [ "$SIGNATURE_SPOOFING" = "restricted" ]; then
|
||||
# Determine which patch should be applied to the current Android source tree
|
||||
@ -266,6 +267,9 @@ for branch in ${BRANCH_NAME//,/ }; do
|
||||
mkdir -p "vendor/$vendor/overlay/microg/frameworks/base/core/res/res/values/"
|
||||
cp /root/signature_spoofing_patches/frameworks_base_config.xml "vendor/$vendor/overlay/microg/frameworks/base/core/res/res/values/config.xml"
|
||||
fi
|
||||
else
|
||||
echo ">> [$(date)] Applying patches disabled"
|
||||
fi
|
||||
|
||||
echo ">> [$(date)] Setting \"$RELEASE_TYPE\" as release type"
|
||||
sed -i "/\$(filter .*\$(${vendor^^}_BUILDTYPE)/,/endif/d" "$makefile_containing_version"
|
||||
|
Loading…
Reference in New Issue
Block a user