#!/bin/sh set -e dir=bromite version=96.0.4664.54 rm -rf "$dir" mkdir -p "$dir" cat > "$dir/module.prop" << EOF id=bromite name=Bromite SystemWebView version=$version versionCode=1 author=me description= EOF cat > "$dir/customize.sh" << EOF REPLACE=" /system/product/app/webview " EOF install -D apk/arm64_SystemWebView-$version.apk \ "$dir/system/app/webview/webview.apk" unzip -d "$dir" apk/arm64_SystemWebView-$version.apk 'lib/*' install -D "$dir/lib/armeabi-v7a/libwebviewchromium.so" \ "$dir/system/app/webview/lib/arm/libwebviewchromium.so" install -D "$dir/lib/arm64-v8a/libwebviewchromium.so" \ "$dir/system/app/webview/lib/arm64/libwebviewchromium.so" rm -rf "$dir/lib" ./package.sh "$dir" rm -rf "$dir"