Skip to content

Commit

Permalink
microG Installer Revived 4.0.2-0
Browse files Browse the repository at this point in the history
  • Loading branch information
nift4 committed Sep 6, 2024
1 parent 8851121 commit 62cfba5
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 10 deletions.
14 changes: 10 additions & 4 deletions customize.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,16 @@ fi
mmm_exec showLoading
ui_print "Collecting information about com.google.android.gms"
# check microG
DUMP_GMS="$(pm dump-package com.google.android.gms)"
DUMP_GMS="$(pm dump com.google.android.gms)"
if [[ $? -gt 0 ]]; then
ui_print "- WARNING: pm dump may have failed?"
fi
ui_print "Checking if com.google.android.gms is installed"
if (echo "$DUMP_GMS" | grep "Unable to find package: com.google.android.gms") >/dev/null; then
abort "- ERROR: You do not have official microG installed."
fi
ui_print "Collecting file path of com.google.android.gms"
GMS_PATH="$(realpath $(echo "$DUMP_GMS" | grep path: | cut -d: -f2))"
GMS_PATH="$(realpath $(echo "$DUMP_GMS" | grep path: | head -n1 | cut -d: -f2))"
ui_print "Checking if file path of com.google.android.gms is on /data"
if [[ "$GMS_PATH" = "${GMS_PATH#/data/}" ]]; then
abort "- ERROR: expected microG install path to be on /data, but it's $GMS_PATH"
Expand All @@ -49,13 +52,16 @@ if [[ "$GMS_VER" -gt "$MAX_VER" ]]; then
fi
# check Vending
ui_print "Collecting information about com.android.vending"
DUMP_VD="$(pm dump-package com.android.vending)"
DUMP_VD="$(pm dump com.android.vending)"
if [[ $? -gt 0 ]]; then
ui_print "- WARNING: pm dump may have failed?"
fi
ui_print "Checking if com.android.vending is installed"
if (echo "$DUMP_VD" | grep "Unable to find package: com.android.vending") >/dev/null; then
abort "- ERROR: You do not have microG Companion or Play Store installed."
fi
ui_print "Collecting file path of com.android.vending"
VD_PATH="$(realpath $(echo "$DUMP_VD" | grep path: | cut -d: -f2))"
VD_PATH="$(realpath $(echo "$DUMP_VD" | grep path: | head -n1 | cut -d: -f2))"
ui_print "Checking if file path of com.android.vending is on /data"
if [[ "$VD_PATH" = "${VD_PATH#/data/}" ]]; then
abort "- ERROR: expected microG Companion / Play Store install path to be on /data, but it's $VD_PATH"
Expand Down
4 changes: 2 additions & 2 deletions module.prop
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
id=microg_installer
name=microG Installer Revived
version=Revived 4.0.1-0
versionCode=40010
version=Revived 4.0.2-0
versionCode=40020
author=nift4
description=Install microG GmsCore, Companion (or Play Store if you want so), GsfProxy and MapsV1 to /system/
updateJson=https://raw.github.com/nift4/microg_installer_revived/master/update.json
Expand Down
8 changes: 4 additions & 4 deletions update.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"version": "Revived 4.0.1-0",
"versionCode": 40010,
"zipUrl": "https://github.com/nift4/microg_installer_revived/releases/download/v4.0.1-0/microG_Installer_Revived.zip",
"changelog": "https://github.com/nift4/microg_installer_revived/raw/v4.0.1-0/CHANGELOG"
"version": "Revived 4.0.2-0",
"versionCode": 40020,
"zipUrl": "https://github.com/nift4/microg_installer_revived/releases/download/v4.0.2-0/microG_Installer_Revived.zip",
"changelog": "https://github.com/nift4/microg_installer_revived/raw/v4.0.2-0/CHANGELOG"
}

0 comments on commit 62cfba5

Please sign in to comment.