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.

47 lines
1.7 KiB

3 years ago
#!/bin/sh
set -e
dir=microg
version_gms=214816046
version_vending=22
version_gsf=8
version_nlp_ichnaea=20033
version_nlp_nominatim=20042
version="$version_gms"
rm -rf "$dir"
mkdir -p "$dir"
cat > "$dir/module.prop" << EOF
id=microg
name=microG services
version=$version
versionCode=1
author=me
description=
EOF
install -D apk/android_vendor_partner_gms/GmsCore/com.google.android.gms-$version_gms.apk \
"$dir/system/priv-app/GmsCore/GmsCore.apk"
install -D apk/android_vendor_partner_gms/GmsCore/privapp-permissions-com.google.android.gms.xml \
"$dir/system/etc/permissions/privapp-permissions-com.google.android.gms.xml"
install -D apk/android_vendor_partner_gms/GmsCore/sysconfig-com.google.android.gms.xml \
"$dir/system/etc/sysconfig/sysconfig-com.google.android.gms.xml"
install -D apk/android_vendor_partner_gms/FakeStore/com.android.vending-$version_vending.apk \
"$dir/system/priv-app/FakeStore/FakeStore.apk"
install -D apk/android_vendor_partner_gms/FakeStore/privapp-permissions-com.android.vending.xml \
"$dir/system/etc/permissions/privapp-permissions-com.android.vending.xml"
install -D apk/android_vendor_partner_gms/GsfProxy/com.google.android.gsf-$version_gsf.apk \
"$dir/system/app/GsfProxy/GsfProxy.apk"
install -D apk/android_vendor_partner_gms/MozillaNlpBackend/org.microg.nlp.backend.ichnaea_$version_nlp_ichnaea.apk \
"$dir/system/app/MozillaNlpBackend/MozillaNlpBackend.apk"
install -D apk/android_vendor_partner_gms/NominatimNlpBackend/org.microg.nlp.backend.nominatim_$version_nlp_nominatim.apk \
"$dir/system/app/NominatimNlpBackend/NominatimNlpBackend.apk"
./package.sh "$dir"
mv "$dir/package.zip" microg.zip
rm -rf "$dir"