[ASUS ZenFone 8] bnsmb:
In this forum entry

https://xdaforums.com/t/magisk-modu...h-a-patched-playstore-from-nanodroid.4456421/

I described how to replace the fake store in the OmniROM with MicroG with a patched Playstore.

The Playstore version contained in the Magisk module PlaySore_for_MicroG.zip mentioned in that forum entry is quite old: 20.9.20-all. It works (at least for my purpose...) but for others it might be to old.

To install a newer version of the Playstore the Magisk module microG-GApps can be used:

The version of the Playstore in this Magisk module is 35.2.19-21.

The Magisk module microG-GApps also contains the necessary MicroG apks for using the Playstore so it can be installed in the OmniROM image without MicroG. in this case be sure to configure the MicroG settings manually before starting the Playstore.

Note that the customizing script in this Magisk module downloads the MicroG packages from the MicroG website so a working internet connection is necessary to install the module

It's also possible to install the Magisk module microG-GApps in the OmniROM with MicroG:

To use the Magisk module microg-GApps in the OmniROM with MicroG it's necessary to disable the fake store from the OmniROM:

This can be done with the Magisk module disable_fake_store.zip.

After installing that module install the Magisk module microG-GApps and reboot the phone to activate both Magisk modules.

The Magisk module microG-GApps will also install additional Google packages and a new version of the MicroG packages (as of 04.06.2023 this is the version 0.2.28.231657) . To remove these optional files either remove them from the ZIP with the Magisk module microG-GApps (and correct the script customize.sh in te ZIP file) or delete the files installed on the phone for these components after installing the module:

The optional files that can be deleted on the phone running the OmniROM with MicroG are:

To remove the additional Google packages delete these files in /data/adb/modules/microG-GApps/system:

./priv-app/GoogleCalendarSyncAdapter

./priv-app/GoogleCalendarSyncAdapter/base.apk

./priv-app/GoogleContactsSyncAdapter

./priv-app/GoogleContactsSyncAdapter/base.apk

./etc/permissions/com.google.android.syncadapters.contacts.xml

./etc/permissions/com.google.android.syncadapters.calendar.xml

To remove the MicroG packages delete these files in /data/adb/modules/microG-GApps/system:

./priv-app/microGServicesCore

./priv-app/microGServicesCore/base.apk

./priv-app/microGServicesFrameworkProxy

./priv-app/microGServicesFrameworkProxy/base.apk

./framework/com.google.android.maps.jar

./etc/permissions/com.google.android.syncadapters.contacts.xml

./etc/permissions/com.google.android.syncadapters.calendar.xml

Before using the Playstore check the output in the Self Check in the MicroG app to make sure everything is still okay. In addition, the "Google Device registration" must be enabled in the MicroG settings.

Trouble Shooting

In case you get the error DF-DFERH-01 after the Google sign in double check the settings in MicroG. If everyhing is ok in the MicroG settings stop the Playstore using "Force stop" in the System application and delete the storage for the Playstore using "Clear storage" in the System application. When done reopen the Playstore.

Update 08.06.2023

If the Playstore does not work after upgrading from the old Magisk Module (e.g. there is no Playstore icon in the menu) execute these commands as user root to fix it:

#
# Update: 07.07.2023 /bs : Remove the echo before the pm install
#
PHONESKY_APK="/system/priv-app/Phonesky/Phonesky.apk"
PKG_SIZE=$( ls -l ${PHONESKY_APK} | awk ' { print $5 }' )
cat "${PHONESKY_APK}" | pm install -S ${PKG_SIZE}