Switch to Mulch

This commit is contained in:
matt1432 2023-03-08 16:39:34 -05:00
parent b01e07783a
commit 303da5da66
9 changed files with 31 additions and 25 deletions

View file

@ -14,24 +14,34 @@
# limitations under the License.
#
# Install the prebuilt 'Bromite' webview apk.
# see https://www.bromite.org/
# Install the prebuilt webview apk.
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_OVERRIDES_PACKAGES := webview
LOCAL_MODULE := BromiteWebview
LOCAL_MODULE := MulchWebview
LOCAL_MODULE_CLASS := APPS
LOCAL_CERTIFICATE := PRESIGNED
LOCAL_PRODUCT_MODULE := true
LOCAL_MULTILIB := both
LOCAL_REQUIRED_MODULES := \
libwebviewchromium_loader \
libwebviewchromium_plat_support
LOCAL_MODULE_TARGET_ARCH := arm arm64 x86
LOCAL_SRC_FILES := BromiteWebview.apk
LOCAL_MODULE_TARGET_ARCH := arm arm64 x86 x86_64
my_src_arch := $(call get-prebuilt-src-arch,$(LOCAL_MODULE_TARGET_ARCH))
LOCAL_SRC_FILES := prebuilt/$(my_src_arch)/MulchWebview.apk
# Don't sign our arm* builds for out-of-band distribution
ifneq ( ,$(filter $(my_src_arch), arm arm64))
LOCAL_CERTIFICATE := PRESIGNED
else
LOCAL_CERTIFICATE := $(DEFAULT_SYSTEM_DEV_CERTIFICATE)
endif
LOCAL_PREBUILT_JNI_LIBS_arm := @lib/armeabi-v7a/libwebviewchromium.so
LOCAL_PREBUILT_JNI_LIBS_arm64 := @lib/arm64-v8a/libwebviewchromium.so
LOCAL_PREBUILT_JNI_LIBS_x86 := @lib/x86/libwebviewchromium.so
LOCAL_PREBUILT_JNI_LIBS_x86_64 := @lib/x86_64/libwebviewchromium.so
include $(BUILD_PREBUILT)

View file

@ -45,8 +45,7 @@
#$(call add-clean-step, rm -rf $(PRODUCT_OUT)/data/*)
$(call add-clean-step, rm -rf $(PRODUCT_OUT)/system/lib/libwebviewchromium.so)
$(call add-clean-step, rm -rf $(PRODUCT_OUT)/system/lib64/libwebviewchromium.so)
$(call add-clean-step, rm -rf $(PRODUCT_OUT)/system/app/bromite-webview)
$(call add-clean-step, rm -rf $(PRODUCT_OUT)/system/app/webview)
$(call add-clean-step, rm -rf $(PRODUCT_OUT)/system/app/MulchWebview)
# ******************************************************************
# NEWER CLEAN STEPS MUST BE AT THE END OF THE LIST ABOVE THIS BANNER

View file

@ -1,5 +1,5 @@
include $(call first-makefiles-under,$(LOCAL_PATH))
PRODUCT_PACKAGES += \
BromiteWebview \
BromiteWebviewOverlay
MulchWebview \
MulchWebviewOverlay

View file

@ -1,7 +1,7 @@
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE_TAGS := optional
LOCAL_PACKAGE_NAME := BromiteWebviewOverlay
LOCAL_PACKAGE_NAME := MulchWebviewOverlay
LOCAL_MODULE_PATH := $(TARGET_OUT_PRODUCT)/overlay
LOCAL_IS_RUNTIME_RESOURCE_OVERLAY := true
LOCAL_PRIVATE_PLATFORM_APIS := true

View file

@ -1,10 +1,10 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.Bromite.WebviewOverlay"
package="org.Mulch.WebviewOverlay"
android:versionCode="1"
android:versionName="1.0">
<overlay android:targetPackage="android"
android:priority="9999"
android:isStatic="true" />
<application android:label="Bromite Webview Overlay"/>
<application android:label="Mulch Webview Overlay"/>
</manifest>

View file

@ -1,9 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<webviewproviders>
<webviewprovider description="Mulch WebView" packageName="us.spotco.mulch_wv" availableByDefault="true">
<signature>MIIJdzCCBV+gAwIBAgIEDNgMsTANBgkqhkiG9w0BAQsFADBsMRAwDgYDVQQGEwdVbmtub3duMRAwDgYDVQQIEwdVbmtub3duMRAwDgYDVQQHEwdVbmtub3duMRAwDgYDVQQKEwdVbmtub3duMRAwDgYDVQQLEwdVbmtub3duMRAwDgYDVQQDEwdVbmtub3duMB4XDTE1MTAyNDEwMzM1NloXDTQzM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iXbsW8FHukGeTRfE//bL4rPx7IaQIIzDaXR14bBbo+qEvYwjxYTvBMG4cGNgJ/M0C3Rv9u8vn949Qp+aHY1n+eumTxnEbg2PbjJaRIeRnM6wpKymBARsUvlPUKtV2la61ar0jJTGg7e3mnInP7yTVCkHd20L44a1LLlyMspB/NjcGpAyOxQJv2ikB47gUA2mc3dICYLH79NfMGgQRspngcfhJmlkKohH8hgWgfRLVe9D7rFEuJTsEDHMwNakzipRbRvrhi+g+Lu8ijPZ8/UjbowugxwqCmyzhr/nErxMUvdWa/Rcelc1A1Bb6OW6JeE973jcnSXei0X4rmZ8aFpN/uvEKrN+HQMXSnvH71GqYwZIrDYpYiuYaJgk2E58FQxQqeOMmYGBebLvNKDeuWejYM652l3XodsCs/6cYlIFk9uiyFDJX/JQogIN4kUjTbjqwhtFfFCxUMC6IXeHdNKcMWev3Krm3gRlD26Ah9sTmJ4BdJmBN5ucTdi998PkTU2C8FfBTi3IY24u97HVyg+L5xyc5oqlvrSxtRrR8tyu7QHU9av7DYZeiWD9UQXa5LAEps89lyRWoQbNWNZjlFNVBpr8Ro7pOlh9D9fGycMJbm0HcTkW9ziD1C45SFfCxbiHoyV9IT/s/vz1qaDqYSRO+yo2IBrwng0bqRrVYEl4X4S6aOZHkeT2CteKf9axYQYlmqID8rgJ9GIiL0wod5wDx0krcjtXWlxSOZ6G8nCOsqHHdG/KQujZHz2d1iM4nXVG9qyMkW59tgkqtWFYQbCJxB7EkkmlgTgQkl5S1NGIB8APNSmsiGr/zlVpQlp14ajIMccRcXpbMNGBQ0J/WYHPmxdp7anMcD</signature>
</webviewprovider>
<webviewprovider description="AOSP WebView" packageName="com.android.webview" availableByDefault="true" />
<webviewprovider description="Brave" packageName="com.brave.browser" availableByDefault="true" />
<webviewprovider description="Brave Beta" packageName="com.brave.browser_beta" availableByDefault="true" />
<webviewprovider description="Brave Nightly" packageName="com.brave.browser_nightly" availableByDefault="true" />
<webviewprovider description="Google WebView" packageName="com.google.android.webview" availableByDef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G/Nf4aGOndXegSQNRH54M05sRHLoeRycPrY7xQlEwGikNFR76+5UdwFBQI3Gn22g6puJnVukQm/wXQ+ajoiS4QclrNlixoDQsZ4STLH4+Wju2wIWKFFArIhVEIlbamq+p6BghuzH3aIz/Fy0YTQKi7SA+0fuNeCaqlSm5pYSt6p5CH89y1Fr+wFc5r3iLRnUwRcy08ESC7bZJnxV3d/YQ5valTxBbzku/dQbXVj/xg69H8l8M=</signature>
</webviewprovider>

View file

@ -37,10 +37,6 @@ def update_if_needed(module: str, release: ApkRelease):
print('{} up to date.'.format(module))
fdroid_main_repo = 'https://www.f-droid.org/repo'
fdroid_microg_repo = 'https://microg.org/fdroid/repo'
fdroid_bromite_repo = 'https://fdroid.bromite.org/fdroid/repo'
fdroid_divestos_repo = 'https://divestos.org/fdroid/official'
update_if_needed('BromiteWebview', fdroid_recommended_release(fdroid_bromite_repo, 'org.bromite.webview'))
#update_if_needed('FakeStore', fdroid_recommended_release(fdroid_microg_repo, 'com.android.vending'))
#update_if_needed('FDroid', fdroid_recommended_release(fdroid_main_repo, 'org.fdroid.fdroid'))
update_if_needed('MulchWebview', fdroid_recommended_release(fdroid_divestos_repo, 'us.spotco.mulch_wv'))