# Mulch System Webview This is a repositery hosting the make files and apk to successfully implement DivestOS's Mulch System Webview in an ARM64/ARMv8 android device ROM. It uses an overlay, adds the app to the system and removes AOSP's webview to do so. I recommend using [lineageos4microg/docker-lineage-cicd](https://github.com/lineageos4microg/docker-lineage-cicd) to build it. ## Implementation To do this, add a repo manifest file to include this repository like so : ```xml ``` ### With [lineageos4microg/docker-lineage-cicd](https://github.com/lineageos4microg/docker-lineage-cicd) ### \#1 Simply add `MulchWebview MulchWebviewOverlay` in the `CUSTOM_PACKAGES` environment variable in your docker-compose.yml file. ### \#2 If you don't want to make your `CUSTOM_PACKAGES` variable too long, you can make a `before.sh` script in the `/srv/userscripts` [folder](https://github.com/lineageos4microg/docker-lineage-cicd#volumes) and add this line in it : ```yml sed -i "1s;^;\$(call inherit-product-if-exists, vendor/mulch/mulch.mk)\n\n;" "/srv/src/LINEAGE_19_1/vendor/lineage/config/common.mk" ``` ### Without [lineageos4microg/docker-lineage-cicd](https://github.com/lineageos4microg/docker-lineage-cicd) You need to edit the "vendor/lineage/config/common.mk" file by adding : ```yml $(call inherit-product-if-exists, vendor/mulch/mulch.mk) ``` # Credits * [Mulch](https://gitlab.com/divested-mobile/mulch) * [Bromite](https://github.com/bromite/bromite) for older builds * [Magisk-Module/open_webview](https://github.com/Magisk-Modules-Alt-Repo/open_webview) for overlay's AndroidManifest.xml * [arovlad/bromite-webview-overlay](https://github.com/arovlad/bromite-webview-overlay) for inspiration and examples I used