diff --git a/conf/defconf-minimal.txt b/conf/defconf-minimal.txt index 2a8c1db..4abf399 100644 --- a/conf/defconf-minimal.txt +++ b/conf/defconf-minimal.txt @@ -146,17 +146,13 @@ service='#!/system/bin/sh # MinMicroG bootup script { sleep 30; -dg="$(find /system -name MicroGDroidGuard.apk -type f | head -n1)"; +gms="$(find /system -name MicroGGMSCore.apk -type f | head -n1)"; for i in 1 2 3; do - # Fixes wrong signature for Phonesky in self-check - /system/bin/pm grant com.android.vending android.permission.FAKE_PACKAGE_SIGNATURE; + # Fixes GMS permission troubles + /system/bin/pm install -r "$gms"; sleep 5; - # Fixes GroidGuard crash on safetynet check - /system/bin/pm install -r "$dg"; - sleep 5; - # Fixes the motherfuckery caused by MagicGApps - rm -rf "/magisk/.core/service.d/MagicGApps.sh" "/sbin/.core/img/.core/service.d/MagicGApps.sh"; - pm enable "com.google.android.gms"; + # Grant permissions + npem; sleep 5; done; } diff --git a/conf/defconf-minimaliap.txt b/conf/defconf-minimaliap.txt index 68c010a..862f256 100644 --- a/conf/defconf-minimaliap.txt +++ b/conf/defconf-minimaliap.txt @@ -146,17 +146,13 @@ service='#!/system/bin/sh # MinMicroG bootup script { sleep 30; -dg="$(find /system -name MicroGDroidGuard.apk -type f | head -n1)"; +gms="$(find /system -name MicroGGMSCore.apk -type f | head -n1)"; for i in 1 2 3; do - # Fixes wrong signature for Phonesky in self-check - /system/bin/pm grant com.android.vending android.permission.FAKE_PACKAGE_SIGNATURE; + # Fixes GMS permission troubles + /system/bin/pm install -r "$gms"; sleep 5; - # Fixes GroidGuard crash on safetynet check - /system/bin/pm install -r "$dg"; - sleep 5; - # Fixes the motherfuckery caused by MagicGApps - rm -rf "/magisk/.core/service.d/MagicGApps.sh" "/sbin/.core/img/.core/service.d/MagicGApps.sh"; - pm enable "com.google.android.gms"; + # Grant permissions + npem; sleep 5; done; } diff --git a/conf/defconf-nogoolag.txt b/conf/defconf-nogoolag.txt index c09022e..4b92aa7 100644 --- a/conf/defconf-nogoolag.txt +++ b/conf/defconf-nogoolag.txt @@ -155,17 +155,13 @@ service='#!/system/bin/sh # MinMicroG bootup script { sleep 30; -dg="$(find /system -name MicroGDroidGuard.apk -type f | head -n1)"; +gms="$(find /system -name MicroGGMSCore.apk -type f | head -n1)"; for i in 1 2 3; do - # Fixes wrong signature for Phonesky in self-check - /system/bin/pm grant com.android.vending android.permission.FAKE_PACKAGE_SIGNATURE; + # Fixes GMS permission troubles + /system/bin/pm install -r "$gms"; sleep 5; - # Fixes GroidGuard crash on safetynet check - /system/bin/pm install -r "$dg"; - sleep 5; - # Fixes the motherfuckery caused by MagicGApps - rm -rf "/magisk/.core/service.d/MagicGApps.sh" "/sbin/.core/img/.core/service.d/MagicGApps.sh"; - pm enable "com.google.android.gms"; + # Grant permissions + npem; sleep 5; done; } diff --git a/conf/defconf-standard.txt b/conf/defconf-standard.txt index 9e48b09..dd02e36 100644 --- a/conf/defconf-standard.txt +++ b/conf/defconf-standard.txt @@ -161,17 +161,13 @@ service='#!/system/bin/sh # MinMicroG bootup script { sleep 30; -dg="$(find /system -name MicroGDroidGuard.apk -type f | head -n1)"; +gms="$(find /system -name MicroGGMSCore.apk -type f | head -n1)"; for i in 1 2 3; do - # Fixes wrong signature for Phonesky in self-check - /system/bin/pm grant com.android.vending android.permission.FAKE_PACKAGE_SIGNATURE; + # Fixes GMS permission troubles + /system/bin/pm install -r "$gms"; sleep 5; - # Fixes GroidGuard crash on safetynet check - /system/bin/pm install -r "$dg"; - sleep 5; - # Fixes the motherfuckery caused by MagicGApps - rm -rf "/magisk/.core/service.d/MagicGApps.sh" "/sbin/.core/img/.core/service.d/MagicGApps.sh"; - pm enable "com.google.android.gms"; + # Grant permissions + npem; sleep 5; done; }