nift4 / microg_installer_revived

Install microG GmsCore, GsfProxy, FakeStore (or Play Store if you want so) and MapsV1 to /system/
GNU General Public License v3.0
783 stars 44 forks source link

Play Store Issues (for android 10+) #167

Open Uosx09 opened 2 months ago

Uosx09 commented 2 months ago

Context

First let me provide some context on how my microg installation look like, i basically used a mixture of the guide here for the magisk/lsposed/xposed steps and the old read.me on the github page (when 3.4.4 was still the latest version) for info about troubleshooting and the PS installation.

  1. This my very first time sharing my input directly to a developer, apologies in advance if i say something stupid or offending.

  2. The reason i mentioned these issues happen on android 10+ is because i had all of them while i was trying out different custom roms for my current daily driver (which is sm-g900f), i started with android 14 till android 10 which i settled with, even though its the same device but i assume these issues exists for other ones because i had them on all the android versions mentioned earlier.

  3. The microg services app itself works flawlessly in every install/use case (will talk about the weird interaction i had later on).

  4. The PS apk versions i used were 42.2.28, 42.3.28, 42.4.22, 42.4.25, 42.5.16, and 42.6.22 and as mentioned in the your read.me post they are unbundled apks from apkmirror when installing the real store (by placing them in /data/adb before flashing), and i faced the issues described with every single one of them since i was moving to the newest one on each update.

  5. I currently have Microg installed and working with no issues on the following devices: SM-G310HN (android 4.4.2), SM-G900F (android 10), SM-G935F (android 14), SM-T210 (android 4.4.2), and SM-P3110 (android 7), each of them are running their respective most stable custom roms with the cleanest install possible (The process worked for the other devices too).

  6. I have the latest available magisk (stable v27 and v21.4) & lsposed & xposed-magisk properly installed and fully working.

  7. The fake gapps apk was installed and activated properly as instructed before installing the microg module.

  8. On my current device i installed this kernel, i flashed it before magisk to avoid any issues.

Microg 3.4.4

With all that being said lets dive into the PS issues, ill first explain the installation/post installation ones by describing each case in detail:

  1. Fake store only: Without adding any PS apk in /data/adb, then install the magisk module which installs the companion app by default, then reboot then try to install the play store apk and it crash (Google Play Store stopped working) when i try to open it (gave it all permissions before opening, and also clearing data and cache of both the companion app before installing the play store and after installing it with no results).

  2. With real store (PS installed but still crashes): I add a PS apk in /data/adb, then install the magisk module which installs the PS this time as a system app (from what i can tell at least), then reboot, the play store app crashes (Google Play Store stopped working) when trying to open it (in this case too i gave it all permissions before opening, as well as clearing it data and cache but no luck).

Wordaround/Fix (for the 2nd case only which is my current one): Open the app info of the play store then uninstall updates (from the 3 dots on the top right corner) > Force Close the app > Go to permissions and give it Storage permission only > Open the PS app (should open normally now however you cant install any app it will give you an error) > leave the app > install the same apk you copied to /data/adb (it must be the same version) > reopen the PS app (installing apps should work now without any error).

As for the issues after a reboot, there was only one tbh which is that the PS keeps crashing before even opening it up and afterwards too, to fix it simply uninstall the updates then reinstall the same apk version and it should work again without any issue, this must be repeated after every reboot though which can be lil annoying.

Microg 4.0.2

Since these versions came out literally like 2 days ago, i didnt have to do much tinkering around with them nor did they let me, on the get go i couldnt even update to them because the playstore was still installed as a system app, and instead of playing around i decided to remove the microg module 3.4.4 itself and reboot before installing the new update (tried directly 4.0.2).

After reading a bit about the new process i grabbed a fresh apk of the latest microg version as well as the fakestore/companion apk (and i already had the PS apks), the installation and post installation results were ironically exactly the same even the workaround/fix was still needed to be done the very same way for the PS to work properly (open and be able to install apps)

As for the process itself here is how i did it: Installed the Microg and Fake Store (Case 1 - fail) / Play Store ( - success with workaround) apps like any normal user app > Flashed the 4.0.2.zip > reboot > did the workaround to fix PS.

Here is where that weird Microg encounter happen, after like 3-4 reboots the Microg Services app itself just kept crashing when i try to open it so i kinda panicked and removed > reboot > reinstalled it but the issue persisted so i removed microg altogether again and went to the issues page and found the recent comments on issue #161 where you shared a gms removal zip, i followed the mini steps post you sent to someone there and it worked again, had like 3-5 more reboots after the issue was long gone thankfully.

Microg 4.1.0

This should be the latest version released today, and sadly i had an issue with this one too XD, so i tried updating it through magisk directly which went without any issue, however after rebooting, the PS app for whatever reason was no longer a system app (it was converted to a normal app again) and was spam crashing before i even unlock the phone screen.

I think i have an idea of the culprit here this time, its the gms removal zip, while having that module installed, for v3.4.4 (even after removing microg > reboot > reinstall) the PS app ALWAYS stays as a normal app and crashes, and also having the gms removal installed as a module breaks the workaround/fix i mentioned above and it no longer fix the PS app (it cant even open).

I have not tried to reinstall v4.1.0 without the gms removal zip because i wanted to wait till you read about the issues i have above first incase i did something wrong installation wise or messed up on my end somewhere, for now i reverted back to 3.4.4 with the workaround till another notice.

And yes it did come into my mind that all of this might be me approaching PS installation the wrong way by going for the latest versions, for that youll have to excuse me because i had my fair share of old apks hunting when i was testing (downloading & installing) every single version of some other apps (brave, keyboards, dialers and so on) for the other devices that i mentioned above and it was a living hell tbh.

On top of that the 42.5.16 is still working properly on the SM-P3110 so ill respectfully pass on the play store, also these issues might be device specific only or due to me not following installation steps properly in which case please do point it out.

Thank you very much for your work and your time hopefully you find this helpful, let me know if any more info is needed!

nift4 commented 2 months ago

the device you have the issue on, or rather the specific ROM you are testing, did it ship with Play Services + Store by default? (If not, don't install gms_delete.zip)

Uosx09 commented 2 months ago

it didnt ship with neither, yea v3.4.4 works normally again when i dont install it, i only actually installed the zip due to the weird microg issue then and kept it installed till 4.1.0 got released

im using CrDroid

nift4 commented 2 months ago

Hi, can you try

  1. delete all microg related stuff and delete gms_delete.zip from magisk manager
  2. reboot, and make sure settings > apps doesn't contain microg (if it does, uninstall & reboot again)
  3. install microg and play store apk
  4. flash microg installer revived 4.1.0
  5. reboot

and let me know what happens? thanks

Uosx09 commented 2 months ago

Heya, just got back home sorry, im already planning on re-installing the rom itself (was removing some system apps with adb and i think it messed some stuff up), would it be alright to do it from a clean install of the rom (since im gonna have the same issues anyways), or you need results from the current system ?

Edit - imma try it out rn lemme redownload the apks and microg zip for good measure, though should i use the fake store or a normal play store apk ? also i did not install gms_delete.zip since i just normally installed v3.4.4 like usual with the workaround.

Uosx09 commented 2 months ago

@nift4 Tried what you suggested and the play store is still crashing and a normal/user app (failed to or didnt even get converted to system app), something i just noticed was that even the microg services app is a normal/user app too (though its working normally but its missing the battery optimization checkmark), looks like we gonna have some timezone issues on our interactions, anyhow will reply as soon as i can (will be prolly asleep when u reply to me)

nift4 commented 2 months ago

would it be alright to do it from a clean install of the rom

Yes

the play store is still crashing and a normal/user app (failed to or didnt even get converted to system app), something i just noticed was that even the microg services app is a normal/user app too

please run the following in some terminal or adb shell: ls -alh /system/priv-app/GmsCore /system/priv-app/microG /system/priv-app/Phonesky /product/priv-app/GmsCore /product/priv-app/Phonesky and send the output here

Uosx09 commented 2 months ago

would it be alright to do it from a clean install of the rom

Yes

the play store is still crashing and a normal/user app (failed to or didnt even get converted to system app), something i just noticed was that even the microg services app is a normal/user app too

please run the following in some terminal or adb shell: ls -alh /system/priv-app/GmsCore /system/priv-app/microG /system/priv-app/Phonesky /product/priv-app/GmsCore /product/priv-app/Phonesky and send the output here

im afraid i already swapped roms completely and still writing a bit of a large update post if possible can ya read it first before we carry on

Uosx09 commented 2 months ago

Status update - Interesting results

Rom update

Since i know talking about this is quite off topic so this will be the last time ill mention it apologies in advance, although CrDroid (with android 10) is actually be the fastest and smoothest rom for the device but its certainly not the most stable one not even decently stable, the speed kinda covers how unstable the rom is which did trick me too. Microg wise after your suggestion failed i ended up re-clean installing the rom again and it still failed even in it bare bones state, so i decided to try again LineageOS roms (android 10, 11, 12, 13, and 14) and i had no luck in neither of them.

Ill just point this out as im completely certain after all the testing ive done over the past 3 months, the roms themselves are not the issue nor are they bad or unusable, its just the memory management (after adding your personal apps and data on the phone) is just horrible on android 12, 13, and 14, with android 10 being the best and android 11 being 2nd best, but that is to be expected for how old the device is, Microg wise it was working properly on all the roms with no exception (v3.4.4 that is).

As for what im using right now and will be using till i get a better phone is RR 8.7.3 with the Adreno Drivers here to fix rom related glitches, this was the last rom on my list to test/use mainly due to all the criticism i seen on reddit and xda comments from other devices using this Rom series, however for sm-g900f its all lies the memory management is insanely good, not like fastest like CrDroid but very close but its stable AF, you can actually feel how well built of a rom it is.

Microg update

Ngl nothing much changed over here, yesterday i decided to retest every case possible, so i grabbed a fresh copy of all the files related to microg (Fake gapps apk, microg services apk, fake store apk, microg zips v3.4.4 & 4.0.2 & 4.1.0), of course this is all after setting up the rom and installing magisk and lsposed properly, apart from the play store which i will talk about below in a separate part, microg worked and was installed a system app and did not disappear or get uninstalled only with v3.4.4 and v.4.0.2.

The v4.1.0 is just a hot mess sorry XD, yesterday i thought that it functionality was still intact even if microg was still a user app but it wasn't the case, apps kept giving me that google play services is required to run notification and i couldn't add my google account at all so yeah pretty sure this is the part where you might need some actual logs so just lmk what should i do if needed.

Play Store update

This might seem like it no big deal on the surface but its an actual break through for me although i prolly was just dumb not even notice or test it, anyhow i managed to have a properly working play store like post microg zip install though there is a bit of a small process to ensure it wont give any issues, its easier and straight forward with 3.4.4 but with 4.0.2 you need to do the workaround i mentioned in my post above sadly (for working install function only tho, the play store does open with no issues).

Before the process first and most importantly i found out that the issues were because of the apk version but not the way you would think let me explain why, in apkmirror and specifically for the play store app the apk files are split into 3 major versions, one for android 6+, one for android 10+, and one for android 12+, you can prolly see where im going with this.

In all my previous tests i only used either android 10+ or 12+ apks for roms with android 10-14, so yesterday i thought why not just try the android 6+ apk (latest version 42.6.22) and IT FKING WORKED like a charm, i literally re-flashed the rom and microg like 4 times after just to make sure i wasnt tripping so its safe to say that the correct apk part is fixed.

But this also means that if and when the play store apks no longer support android 6+ (in other words gets discontinued), the latest version then would be the last issue free working version with microg, unless something can be done coding wise with the other versions which i do hope there is tbh.

Now lets talk about the installation process of the play store, ill explain it for each microg version that it worked with separately, and keep in mind in both cases the rom was still in bare bones state and i only installed microg

For v3.4.4: renamed the play store apk to Phonesky.apk then placed it in /data/adb > flashed the v3.4.4 zip in magisk > reboot > dont open the app go to app info and give it Storage permission only > if you open it now and check for app updates you will see a something went wrong error to fix it close the app > go to app info and remove storage permission and give it to it again > reopen the app and now it should be working perfectly. The app survived multiple reboots without the workaround with the install function intact.

For v4.0.2: installed microg services apk then play store apk (android 6+ version ofc) > flashed the v4.0.2 zip in magisk > reboot > workaround to fix PS, then it worked until you reboot then youll have to do the followup to the workaround to fix the play store again. This should be repeated after each reboot too (pretty much like the android 10+ and 12+ apks case).

That should be pretty much it, since i already set up the device i can now retest with microg 4.1.0 and provide logs if needed (unless the android 6+ apk somehow works this time XD), also sorry for the very lengthy post time zones are looking like a big issue too in our interactions as i mentioned before so i tried to put everything in one post (as i will do in the future) since i pretty much got to wait almost a whole day before seeing your replies (which i do not mind as long as you dont).

Thank you again for your time ill be waiting for your reply

bphd commented 2 months ago

Personally I get Play Store loop crashing and Termux closing sessions randomly. logcat have so much errors, it's difficult to catch something relevant, even more when it's loop crashing

Uosx09 commented 2 months ago

Personally I get Play Store loop crashing and Termux closing sessions randomly. logcat have to much errors, it's difficult to catch something relevant, even more when it's loop crashing

after we finish with the play store issue ill try termux too incase i have the same issues aswell

do try the workaround and it follow up i mentioned in my first post if you need to restore PS functionality, also id recommend staying on v3.4.4 until everything is fixed with v4+ versions

bphd commented 2 months ago

Personally I get Play Store loop crashing and Termux closing sessions randomly. logcat have to much errors, it's difficult to catch something relevant, even more when it's loop crashing

after we finish with the play store issue ill try termux too incase i have the same issues aswell

do try the workaround and it follow up i mentioned in my first post if you need to restore PS functionality, also id recommend staying on v3.4.4 until everything is fixed with v4+ versions

Using A6+ version of PS?

Uosx09 commented 2 months ago

Personally I get Play Store loop crashing and Termux closing sessions randomly. logcat have to much errors, it's difficult to catch something relevant, even more when it's loop crashing

after we finish with the play store issue ill try termux too incase i have the same issues aswell do try the workaround and it follow up i mentioned in my first post if you need to restore PS functionality, also id recommend staying on v3.4.4 until everything is fixed with v4+ versions

Using A6+ version of PS?

42.6.22 tho i just checked earlier apparently a new version should be available soon (not uploaded yet in apkmirror but should be at the end of today or tomorrow)

i linked the android 6+ apkmirror page where you can regularly check for the newest version though always use the unbundled version (not the split apk ones)

bphd commented 2 months ago

Personally I get Play Store loop crashing and Termux closing sessions randomly. logcat have to much errors, it's difficult to catch something relevant, even more when it's loop crashing

after we finish with the play store issue ill try termux too incase i have the same issues aswell do try the workaround and it follow up i mentioned in my first post if you need to restore PS functionality, also id recommend staying on v3.4.4 until everything is fixed with v4+ versions

Using A6+ version of PS?

42.6.22 tho i just checked earlier apparently a new version should be available soon (not uploaded yet in apkmirror but should be at the end of today or tomorrow)

i linked the android 6+ apkmirror page where you can regularly check for the newest version though always use the unbundled version (not the split apk ones)

I tried to install https://apkpure.com/google-play-store/com.android.vending/downloading Google Play Store_42.6.22-23 [0] [PR] 670642294_APKPure.apk md5 d749ba87f8f05b5bba4f39fde7bed0d2 but it refused because local one was version 42.6.22-31 [0] [PR] 670642294 com.android.vending, more recent

What is md5sum of the working one you installed?

nift4 commented 2 months ago

so i grabbed a fresh copy of all the files related to microg (Fake gapps apk, microg services apk, fake store apk, microg zips v3.4.4 & 4.0.2 & 4.1.0)

Let's focus on 4.x only for now (the recent changes were done to fix many old bugs and I don't think it's a good idea to constantly jump between versions while debugging).

i thought that it functionality was still intact even if microg was still a user app but it wasn't the case, apps kept giving me that google play services is required to run notification and i couldn't add my google account at all

That's just because it's a user app

Thank you again for your time ill be waiting for your reply

no problem :)

...okay, how about this:

  1. Remove all microG related stuff
  2. Reboot
  3. Install microG and Play Store A10+ APK (yes A10+ not A6+)
  4. Install 4.0.2
  5. Reboot
  6. Grant all permissions to Play Store in settings

If you do that without(!) any workarounds, what happens?

Uosx09 commented 2 months ago

Personally I get Play Store loop crashing and Termux closing sessions randomly. logcat have to much errors, it's difficult to catch something relevant, even more when it's loop crashing

after we finish with the play store issue ill try termux too incase i have the same issues aswell do try the workaround and it follow up i mentioned in my first post if you need to restore PS functionality, also id recommend staying on v3.4.4 until everything is fixed with v4+ versions

Using A6+ version of PS?

42.6.22 tho i just checked earlier apparently a new version should be available soon (not uploaded yet in apkmirror but should be at the end of today or tomorrow) i linked the android 6+ apkmirror page where you can regularly check for the newest version though always use the unbundled version (not the split apk ones)

I tried to install https://apkpure.com/google-play-store/com.android.vending/downloading Google Play Store_42.6.22-23 [0] [PR] 670642294_APKPure.apk md5 d749ba87f8f05b5bba4f39fde7bed0d2 but it refused because local one was version 42.6.22-31 [0] [PR] 670642294 com.android.vending, more recent

What is md5sum of the working one you installed?

i previously tried apkcombo and apkpure versions and those for some reason do not work i recommend sticking to apkmirror here are the md5sums

image

Uosx09 commented 2 months ago

so i grabbed a fresh copy of all the files related to microg (Fake gapps apk, microg services apk, fake store apk, microg zips v3.4.4 & 4.0.2 & 4.1.0)

Let's focus on 4.x only for now (the recent changes were done to fix many old bugs and I don't think it's a good idea to constantly jump between versions while debugging).

i thought that it functionality was still intact even if microg was still a user app but it wasn't the case, apps kept giving me that google play services is required to run notification and i couldn't add my google account at all

That's just because it's a user app

Thank you again for your time ill be waiting for your reply

no problem :)

...okay, how about this:

  1. Remove all microG related stuff
  2. Reboot
  3. Install microG and Play Store A10+ APK (yes A10+ not A6+)
  4. Install 4.0.2
  5. Reboot
  6. Grant all permissions to Play Store in settings

If you do that without(!) any workarounds, what happens?

i havent tried that with this current rom since i stayed with A6+ ver but i did try it multiple times with CrDroid and LineageOS roms and every time the play store still crashes when i open it and wont work until i do the workaround i mentioned above, i can retry it again idm lemme grab the a10+ apk real quick

Uosx09 commented 2 months ago

Quote reply Reference in

forgot to ask are you reinstalling microg from scratch or just installing over your old one, cause you going to need a working xposed/lsposed and activate the fake gapps app recommended in the code page before installing the v3.4.4

NVM looks like i dont need to ask that glad it working for ya

Uosx09 commented 2 months ago

so i grabbed a fresh copy of all the files related to microg (Fake gapps apk, microg services apk, fake store apk, microg zips v3.4.4 & 4.0.2 & 4.1.0)

Let's focus on 4.x only for now (the recent changes were done to fix many old bugs and I don't think it's a good idea to constantly jump between versions while debugging).

i thought that it functionality was still intact even if microg was still a user app but it wasn't the case, apps kept giving me that google play services is required to run notification and i couldn't add my google account at all

That's just because it's a user app

Thank you again for your time ill be waiting for your reply

no problem :) ...okay, how about this:

  1. Remove all microG related stuff
  2. Reboot
  3. Install microG and Play Store A10+ APK (yes A10+ not A6+)
  4. Install 4.0.2
  5. Reboot
  6. Grant all permissions to Play Store in settings

If you do that without(!) any workarounds, what happens?

i havent tried that with this current rom since i stayed with A6+ ver but i did try it multiple times with CrDroid and LineageOS roms and every time the play store still crashes when i open it and wont work until i do the workaround i mentioned above, i can retry it again idm lemme grab the a10+ apk real quick

@nift4 sorry waiting on a reply on this before i carry on should i retest anyway ?

also by Remove all microG related stuff, does that mean just the magisk module then reboot or the apps that using it too ? ill be chilling over here while having lunch tyt chief