[MODULE] fakestore2playstore - microG with License Verification + In-App-Purchases

Search This thread

sn00x

Senior Member
Oct 9, 2006
153
80
Xiaomi Poco F3
Google Pixel 7 Pro
microG works great until a paid app tries to verify the license or when it comes to in app purchases. Using existing tools like NanoDroid and microG Installer Revived has disadvantages (see Readme below). That's why I created a Magisk module that replaces FakeStore with a patched version of the PlayStore. After installing the module, licenses can be verified and even in-app-purchases are possible with microG.

Visit on Github or download v0.1 directly.

Readme:

FakeStore 2 PlayStore​

This is a Magisk module that replaces FakeStore with the patched Play Store by Nanolx and is mainly intended to be used with LineageOS for microG, which already ships with microG and FakeStore. I only tested it on LineageOS 18.1 for microG. Use at your own risk, if you are on a different ROM.

The module uses fixed permissions settings from nift4's microG Installer Revived. Additionally it adds the Nanolx's NanoDroid companion F-Droid repository to F-Droid for automatic updates of the patched Play Store.

Why you want to use it​

You want to have License Verification and In-App-Purchases with microG and already have a system with microG + FakeStore (like LineageOS for microG)

Installation​

Important: Do NOT flash in TWRP, you need to use the Magisk app and have an active internet connection for downloading the patched PlayStore.

NanoDroid or microG Installer Revived already do the job, don't they?​

Yes and no. After several tries with combinations of LineageOS 18.1, Lineage OS 18.1 for microG, NanoDroid and microG Installer Revived, I always ended up with either an unbootable system or with configurations that don't survive OTA upates or that would render microG upgrades useless or install too much.

  • NanoDroid's patcher (currently?) isn't able to successfully patch signature spoofing into LOS 18.1 and I didn't want to fiddle around with deodexing. My intention was to have a ready-to-use solution for LineageOS that survives OTAs. So I had to use LOS for microG, which already has the signature spoofing patch. However installing the patched PlayStore in LOS 18.1 for microG using NanoDroid always resulted in an unbootable system - even when disabling every other feature in .nanodroid-setup and hiding FakeStore with .nanodroid-overlay.
  • Though microG Installer Revived does a better job (the system was bootable after installing the patched PlayStore :), it isn't able to hide FakeStore on it's own. So I had to still hide FakeStore somehow. Additionally microG Installer Revived installs DroidGuard as a system app, which is not what I wanted. Furthermore, it overwrites GmsCore with it's own version and therefor any OTA updates by LineageOS for microG would've been overwritten by the Installer's version.
That said, it's possible to use NanoDroid's .nanodroid-overlay feature to hide FakeStore in combination with microG Installer Revived to install the patched PlayStore and live with the DroidGuard and OTA issues. But I decided to make a Magisk module that does no more than replacing FakeStore with a patched version of PlayStore. Here it is.

Build​

Linux, BSD, macOS, Android​

Requires wget.

wget -O META-INF/com/google/android/update-binary https://raw.githubusercontent.com/topjohnwu/Magisk/master/scripts/module_installer.sh && zip fakestore2playstore.zip -9r *

Other​

Download this and put it into META-INF/com/google/android/update-binary. And ZIP it.

Credits​

  • Nanolx for the PlayStore patch.
  • nift4 for microG Installer Revived
 
wait does this still use the google play in-app purchase dialogue or are in-app purchases just free now?
Negative, nothing is for free! Otherwise it'd be considered warez! This means, this modificated Google Play Store allows you to make the same purchases like the "normal" play store despite the lack of Google Play Services and the use of µG.
 

klaasklever

Member
Nov 22, 2011
9
1
now this is helpful - thank you for releasing this!
for me only worked the one to download directly (1.0). generating or updating the zip like described led to "unzipping failed" message in magisk. i don't know, where the pitfall could be, just mentioning this here.
 
  • Like
Reactions: sn00x

sn00x

Senior Member
Oct 9, 2006
153
80
Xiaomi Poco F3
Google Pixel 7 Pro
now this is helpful - thank you for releasing this!
for me only worked the one to download directly (1.0). generating or updating the zip like described led to "unzipping failed" message in magisk. i don't know, where the pitfall could be, just mentioning this here.
Thanks for reporting. However, I double checked the build steps and ended up with the same file as the released one. I guess it doesn't have to do anything with fakestore2playstore, but may be due to your "zip" executable. In fact, Magisk also complains about the unzipping progress itself. Anyway, I'm happy you find this module helpful!
 

TaZeR369

Senior Member
Aug 28, 2016
199
57
You should check out https://github.com/FriendlyNeighborhoodShane/MinMicroG_releases they already include the same PatchedPhonesky along with a minimal microG setup similar to the revived version from the Magisk repo, all in one package.

As for signature spoofing and all that if your ROM doesn't support it the easiest way is to use f0mey's Smali Patcher:
 
Last edited:
Dec 9, 2021
7
2
Thank you a big bunch. Very easy to install, and works pretty good. Some paid apps can't be installed for some reaaon, but you can install them with means, and the licence verification later works! Which is the main point.
 

Leroy_Sparks

Senior Member
Jun 12, 2018
103
25
I've been using this on 3 phones running gappless + microG. All with different custom ROMs and it appears to work wonderfully for license verification on the few apps I have paid for - except one (titanium backup). FWIW 2 are running A10 and one A11.

Thank's to the developer for this useful app!
 

thegreekfreak

New member
May 30, 2018
2
0
It used to work for me, but after I reset my phone a few days ago and tried to install the module again I get error message "download failed and installation failed". I use /e/os (a fork of Lineage OS 18.1) on a Galaxy S10+ and Magisk 24.3. Any ideas?
 

sn00x

Senior Member
Oct 9, 2006
153
80
Xiaomi Poco F3
Google Pixel 7 Pro
It used to work for me, but after I reset my phone a few days ago and tried to install the module again I get error message "download failed and installation failed". I use /e/os (a fork of Lineage OS 18.1) on a Galaxy S10+ and Magisk 24.3. Any ideas?
Fixed in fakestore2playstore-0.2.zip

The wget version that ships with the busybox provided by Magisk 24 somehow can't download the patched playstore from Nanolx's repository. The server closes the connection because of a tls error. Now the patched playstore is included in this module and a download isn't required any more.

By the way: I'm on Android 12 now, but the Playstore doesn't work properly. Seems like some permissions/settings are missing. Unfortunately I'm quite busy currently and can't look into this deeper right now. Hope to find some sparetime soon.
 
Dec 9, 2021
7
2
Fixed in fakestore2playstore-0.2.zip

The wget version that ships with the busybox provided by Magisk 24 somehow can't download the patched playstore from Nanolx's repository. The server closes the connection because of a tls error. Now the patched playstore is included in this module and a download isn't required any more.

By the way: I'm on Android 12 now, but the Playstore doesn't work properly. Seems like some permissions/settings are missing. Unfortunately I'm quite busy currently and can't look into this deeper right now. Hope to find some sparetime soon.
Please fix Android 12 issue! Please!
 
  • Like
Reactions: TurkeyPro
Dec 9, 2021
7
2
Well, doesn't work on Android 12+... Any chance for an update ? This was really a neat module :/
I made it work again, but can't really remember how... first thing is enable network access for playstore in app-setting, it was disabled by default. also, try microG_Installer_Revived-Revived_3.0.0. and mess around with it, somehow it turns out ok ...
 
  • Like
Reactions: lPolarisl

lPolarisl

Senior Member
Dec 25, 2018
83
14
Nvidia Shield
Fairphone
I made it work again, but can't really remember how... first thing is enable network access for playstore in app-setting, it was disabled by default. also, try microG_Installer_Revived-Revived_3.0.0. and mess around with it, somehow it turns out ok ...
It works... Can't believe I missed that, that was all, network access was disabled x(
Thanks a lot, I had completely given up on this !
 

lPolarisl

Senior Member
Dec 25, 2018
83
14
Nvidia Shield
Fairphone
@sn00x In case you're still around... I now have trouble with your module, for some reason, it installs fine and the Play Store's there on the first reboot, but after the second reboot, it still shows up as active in the Magisk module list, but no Play Store app to be found, only FakeStore...
IodéOS, Android 12
 

Duke64

New member
Apr 11, 2012
2
3
Berlin
Hi.
I tried again and again to install the NanoDroid PlayStore myself after much trouble. Until it ran once, hours passed and I could not reproduce the installation. Sporadically after a few months, the PlayStore and the licenses crash. Then I try by trial and error and sometimes it works again after a while. Very very annoying.

Currently, I'm back to the problem that nothing works with the licensing and the PlayStore goes crazy.
Now you come around the corner with the module. I installed it and everything runs immediately. No 2min it took.

Thank you very much. My first beer I raise today on you!

OnePlus One
Lineage 18.1 with MicroG (0.2.28)
 
Last edited:

borisSweden

Senior Member
May 10, 2021
293
30
OnePlus 7T
OP, this app helped with some streaming services but could you bump the version is that Play Integrity check actually works? The API is to old and the app crashes all the time in the background.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 2
    I don't have any skin in this game anymore. I'm currently on GrapheneOS and enjoy their Sandboxed Play Services approach.
    So not sure if or when I'll be using a microG device again and can work on and in particular test new releases of fakestore2playstore.
  • 6
    microG works great until a paid app tries to verify the license or when it comes to in app purchases. Using existing tools like NanoDroid and microG Installer Revived has disadvantages (see Readme below). That's why I created a Magisk module that replaces FakeStore with a patched version of the PlayStore. After installing the module, licenses can be verified and even in-app-purchases are possible with microG.

    Visit on Github or download v0.1 directly.

    Readme:

    FakeStore 2 PlayStore​

    This is a Magisk module that replaces FakeStore with the patched Play Store by Nanolx and is mainly intended to be used with LineageOS for microG, which already ships with microG and FakeStore. I only tested it on LineageOS 18.1 for microG. Use at your own risk, if you are on a different ROM.

    The module uses fixed permissions settings from nift4's microG Installer Revived. Additionally it adds the Nanolx's NanoDroid companion F-Droid repository to F-Droid for automatic updates of the patched Play Store.

    Why you want to use it​

    You want to have License Verification and In-App-Purchases with microG and already have a system with microG + FakeStore (like LineageOS for microG)

    Installation​

    Important: Do NOT flash in TWRP, you need to use the Magisk app and have an active internet connection for downloading the patched PlayStore.

    NanoDroid or microG Installer Revived already do the job, don't they?​

    Yes and no. After several tries with combinations of LineageOS 18.1, Lineage OS 18.1 for microG, NanoDroid and microG Installer Revived, I always ended up with either an unbootable system or with configurations that don't survive OTA upates or that would render microG upgrades useless or install too much.

    • NanoDroid's patcher (currently?) isn't able to successfully patch signature spoofing into LOS 18.1 and I didn't want to fiddle around with deodexing. My intention was to have a ready-to-use solution for LineageOS that survives OTAs. So I had to use LOS for microG, which already has the signature spoofing patch. However installing the patched PlayStore in LOS 18.1 for microG using NanoDroid always resulted in an unbootable system - even when disabling every other feature in .nanodroid-setup and hiding FakeStore with .nanodroid-overlay.
    • Though microG Installer Revived does a better job (the system was bootable after installing the patched PlayStore :), it isn't able to hide FakeStore on it's own. So I had to still hide FakeStore somehow. Additionally microG Installer Revived installs DroidGuard as a system app, which is not what I wanted. Furthermore, it overwrites GmsCore with it's own version and therefor any OTA updates by LineageOS for microG would've been overwritten by the Installer's version.
    That said, it's possible to use NanoDroid's .nanodroid-overlay feature to hide FakeStore in combination with microG Installer Revived to install the patched PlayStore and live with the DroidGuard and OTA issues. But I decided to make a Magisk module that does no more than replacing FakeStore with a patched version of PlayStore. Here it is.

    Build​

    Linux, BSD, macOS, Android​

    Requires wget.

    wget -O META-INF/com/google/android/update-binary https://raw.githubusercontent.com/topjohnwu/Magisk/master/scripts/module_installer.sh && zip fakestore2playstore.zip -9r *

    Other​

    Download this and put it into META-INF/com/google/android/update-binary. And ZIP it.

    Credits​

    • Nanolx for the PlayStore patch.
    • nift4 for microG Installer Revived
    3
    Hi.
    I tried again and again to install the NanoDroid PlayStore myself after much trouble. Until it ran once, hours passed and I could not reproduce the installation. Sporadically after a few months, the PlayStore and the licenses crash. Then I try by trial and error and sometimes it works again after a while. Very very annoying.

    Currently, I'm back to the problem that nothing works with the licensing and the PlayStore goes crazy.
    Now you come around the corner with the module. I installed it and everything runs immediately. No 2min it took.

    Thank you very much. My first beer I raise today on you!

    OnePlus One
    Lineage 18.1 with MicroG (0.2.28)
    2
    I don't have any skin in this game anymore. I'm currently on GrapheneOS and enjoy their Sandboxed Play Services approach.
    So not sure if or when I'll be using a microG device again and can work on and in particular test new releases of fakestore2playstore.
    2
    It used to work for me, but after I reset my phone a few days ago and tried to install the module again I get error message "download failed and installation failed". I use /e/os (a fork of Lineage OS 18.1) on a Galaxy S10+ and Magisk 24.3. Any ideas?
    Fixed in fakestore2playstore-0.2.zip

    The wget version that ships with the busybox provided by Magisk 24 somehow can't download the patched playstore from Nanolx's repository. The server closes the connection because of a tls error. Now the patched playstore is included in this module and a download isn't required any more.

    By the way: I'm on Android 12 now, but the Playstore doesn't work properly. Seems like some permissions/settings are missing. Unfortunately I'm quite busy currently and can't look into this deeper right now. Hope to find some sparetime soon.
    1
    Negative, nothing is for free! Otherwise it'd be considered warez! This means, this modificated Google Play Store allows you to make the same purchases like the "normal" play store despite the lack of Google Play Services and the use of µG.
    cool. works great. vouch