android_vendor_mulchwebview/README.md

41 lines
1.9 KiB
Markdown
Raw Permalink Normal View History

2023-03-08 21:13:09 -05:00
# Mulch System Webview
2023-03-08 14:38:17 -05:00
2023-03-08 21:13:09 -05:00
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.
2023-03-08 14:38:17 -05:00
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
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
2023-03-08 21:13:09 -05:00
<remote name="gitea" fetch="https://git.nelim.org/" />
<project name="matt1432/android_vendor_mulchwebview" path="vendor/mulch" remote="gitea" revision="main" />
2023-03-08 14:38:17 -05:00
</manifest>
```
### With [lineageos4microg/docker-lineage-cicd](https://github.com/lineageos4microg/docker-lineage-cicd)
### \#1
2023-03-08 21:13:09 -05:00
Simply add `MulchWebview MulchWebviewOverlay` in the `CUSTOM_PACKAGES` environment variable in your docker-compose.yml file.
2023-03-08 14:38:17 -05:00
### \#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
2023-03-08 21:13:09 -05:00
sed -i "1s;^;\$(call inherit-product-if-exists, vendor/mulch/mulch.mk)\n\n;" "/srv/src/LINEAGE_19_1/vendor/lineage/config/common.mk"
2023-03-08 14:38:17 -05:00
```
### 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
2023-03-08 21:13:09 -05:00
$(call inherit-product-if-exists, vendor/mulch/mulch.mk)
2023-03-08 14:38:17 -05:00
```
# Credits
2023-03-08 21:13:09 -05:00
* [Mulch](https://gitlab.com/divested-mobile/mulch)
* [Bromite](https://github.com/bromite/bromite) for older builds
2023-03-08 14:38:17 -05:00
* [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