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 #358.
  • Loading branch information
Lanchon committed Aug 2, 2023
1 parent 4420cb1 commit d436725
Show file tree
Hide file tree
Showing 2 changed files with 8 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
5 changes: 5 additions & 0 deletions src/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,11 @@ 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
if [ "$WITH_MICROG" = true ]; then
echo '$(call inherit-product, vendor/partner_gms/products/gms.mk)' > "vendor/$vendor/config/partner_gms.mk"
fi

# 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 d436725

Please sign in to comment.