Skip to content

Commit

Permalink
Add 'WITH_MICROG' setting
Browse files Browse the repository at this point in the history
Introduce 'WITH_MICROG' to replace use of 'WITH_GMS'. Fixes lineageos4microg#358.
  • Loading branch information
Lanchon authored Aug 2, 2023
1 parent 4420cb1 commit a66bbc9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@ ENV ZIP_SUBDIR true
# Write the verbose logs to $LOGS_DIR/$codename instead of $LOGS_DIR/
ENV LOGS_SUBDIR true

# Include microG's components in the ROM
ENV WITH_MICROG false

# Apply the MicroG's signature spoofing patch
# Valid values are "no", "yes" (for the original MicroG's patch) and
# "restricted" (to grant the permission only to the system privileged apps).
Expand Down
4 changes: 4 additions & 0 deletions src/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,10 @@ 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 needed, include microG's components
#sed -i 's/$(WITH_GMS)/$(WITH_GMS)$(WITH_MICROG)/g' "vendor/$vendor/config/partner_gms.mk"
sed -i 's/ifeq ($(WITH_GMS),true)/ifneq ($(filter true,$(WITH_GMS) $(WITH_MICROG)),)/g' "vendor/$vendor/config/partner_gms.mk"

# 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
Expand Down

0 comments on commit a66bbc9

Please sign in to comment.