WebViewChanger/cromite_action.sh
2025-01-07 13:08:56 +00:00

12 lines
421 B
Bash

#!/system/bin/sh
echo "Downloading Update..."
curl --dns-servers 1.1.1.1,1.0.0.1 -L -o /data/local/tmp/CromiteWebView.apk https://github.com/uazo/cromite/releases/latest/download/arm64_SystemWebView64.apk
sleep 1
echo "Installing Update..."
su -c pm install --install-location 1 /data/local/tmp/CromiteWebView.apk
sleep 1
echo "Cleaning Up..."
su -c rm -rf /data/local/tmp/CromiteWebView.apk
sleep 1
echo "Update Done!"