mid-kid
3 years ago
commit
6ef44db996
4 changed files with 127 additions and 0 deletions
@ -0,0 +1,13 @@ |
|||
#!/bin/sh |
|||
set -e |
|||
|
|||
dir="${1:-.}" |
|||
|
|||
if [ ! -f module_installer.sh ]; then |
|||
wget -c https://raw.githubusercontent.com/topjohnwu/Magisk/master/scripts/module_installer.sh |
|||
fi |
|||
|
|||
mkdir -p "$dir/META-INF/com/google/android" |
|||
cat module_installer.sh > "$dir/META-INF/com/google/android/update-binary" |
|||
echo "#MAGISK" > "$dir/META-INF/com/google/android/updater-script" |
|||
( cd "$dir" ; zip -9r package.zip . ) |
@ -0,0 +1,37 @@ |
|||
#!/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" |
|||
mv "$dir/package.zip" bromite.zip |
|||
rm -rf "$dir" |
@ -0,0 +1,31 @@ |
|||
#!/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" |
@ -0,0 +1,46 @@ |
|||
#!/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" |
Loading…
Reference in new issue