Simple magisk modules
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
889 B

#!/bin/sh
set -e
dir=fdroid
version_fdroid=1014050
version_priv=2130
version="$version_priv-$version_fdroid"
rm -rf "$dir"
mkdir -p "$dir"
cat > "$dir/module.prop" << EOF
id=fdroid
name=FDroid with Privileged Extension
version=$version
versionCode=1
author=me
description=
EOF
install -D apk/android_vendor_partner_gms/FDroid/org.fdroid.fdroid_$version_fdroid.apk \
"$dir/system/app/FDroid/FDroid.apk"
install -D apk/android_vendor_partner_gms/FDroidPrivilegedExtension/org.fdroid.fdroid.privileged_$version_priv.apk \
"$dir/system/priv-app/FDroidPrivilegedExtension/FDroidPrivilegedExtension.apk"
install -D apk/android_vendor_partner_gms/FDroidPrivilegedExtension/privapp-permissions-org.fdroid.fdroid.privileged.xml \
"$dir/system/etc/permissions/privapp-permissions-org.fdroid.fdroid.privileged.xml"
./package.sh "$dir"
mv "$dir/package.zip" fdroid.zip
rm -rf "$dir"