Google Play Services keeps crashing - Android Q&A, Help & Troubleshooting

I have tried all the fixes I've seen in the forums. Nothing is working.
I have: Verizon HTC One M9, s-off, rooted, CM 13 (07/12/16). I put on this morning and all seems fine. Then I tried flashing the GApps nano package from https://wiki.cyanogenmod.org/w/Install_CM_for_himawl, which told me to go to: http://opengapps.org/?api=6.0&variant=nano. I first tried the ARM but it would not install so I tried the ARM-64. It Did install and Gapps seems to be working fine technically...but it keeps crashing (Meaning play store works). I keep getting an error that says "Unfortunately Google Play Services has stopped" and if I look at the dump it starts with "java.lang.securityexception" and location provider requires ACCESS_FINE_LOCATION permission, on the file com.google.android.gms.
Of course I tried enabling not just location but all the permissions and it has no effect.
Does anyone know how to fix this? Thank you very much.
Joe

FIXED:
What I did: First, I introduced a bunch of new variables at once which is not the best thing to do normally but I needed to get it done if possible. The basic theory was just "reinstall everything with a tweak."
1.) Use this to put TWRP and CM back on (ie. pretend like you're starting from scratch). Use the latest build of CM so it doesn't have to update.
2.) Every time you get a chance, delete the DVLIK cache and regular cache.
3.) As soon as CM is done installing, install the Gapps package right over top of it without rebooting. Kill the caches again. And yes I used the 64bit ARM version for the "HTC One M9 Verizon."
Reboot...and you should get the Google assistant. It seems like CM wanted that package at first-run possibly.

Related

[Q] HELP! Flashed CM 9 and GAPPS but STORE NOT WORKING

Hi,
I am new to the forum and new to rooting/flashing mods as well. I have the AT&T version of the Galaxy S2. I just recently rooted and flashed the most recent CM9 nightly on my phone and everything worked great except a, what i hope to be, minor issue. When I first rebooted my phone after the flash, everything looked great but It was apparent my GAPPS zip had not installed correctly as I couldn't see my e-mail or the Play Store (obviously I'm needing to recover things). I re-flashed GAPPS, rebooted, and I saw the Play Store and my e-mail. My problem is when I opened the Play Store, it got stuck on the sign-in. It eventually signed in, I guess (my account has a check by it if I select "manage accounts"). SO, i'm signed in but nothing is loading. I cannot do any searches or retrieve apps. Baiscally, I can't use the Play Store. My phone works fine, otherwise, and it seems the rom flashed cleanly. I followed every instruction very carefully. Please help! I need to retrieve my backup from Titanium and use the market. Don't even have my wi-fi at this point! Thank you in advance if someone can respond quickly.
-Kevin / elevation
Post in Q/A subforum next time.
Try Settings -> Applications -> Google Play Store -> click both clear cache and clear data. If that doesn't work you could always try reflashing.
Now it's having trouble upgrading from "market" to "Play Store". When I go to settings > apps > running, it appears and disappears and I cannot edit anything in it =\. I just re-flashed and I did so without wiping data, is this correct? Should I move this to the sub-forum, or can you just help me out?
I would think a reflash without wipe should be okay, but who knows. I would say close the app manually, try clearing data and cache again, launch once, sign in when prompted and let it load the home page. Then exit the app and don't touch the app for a few mins. I've found that letting it settle by not touching it for a few mins as it tries to update will allow it to update correctly, you'll see the icon change to the play store. Again, if that doesn't work, then do a full wipe and flash again.
P.S. I'm no expert on this subject, just suggesting things to try.

[Q] ArchiDroid 2.2.4 cannot install GMaps anymore

Hello,
atfer i updated from ArchiDroid 2.2.3 to 2.2.4 i saw that GMaps wasnt shown in the Launcher anymore, so i checked and it isnt even installed on my device.
When i try to install it from the Play Store i get the Error Code: Incompatible with other applications(s) using the same shared user ID
So i tried to flash the latest GApps package for CM but still GMaps isnt showing up.
Does anybody know how i can fix this problem?
Regards,
Fixi
Same Problem
Have got exactly the same problem using ArchiDroid V1.7.3, issue was mentioned in the Develpoment section but the only solution offered was to wait a few hours until Google Play recognises the phone.
The rom been installed for several days now & I'm still unable to install G Maps from the store due to the ID issue, short of reinstalling the rom has anybody got any thoughts?
Thanks...
Hey.
You can download inverted GMAPS directly from my github -> https://github.com/JustArchi/ArchiD...system/app/com.google.android.apps.maps-1.apk then put into /system/app. Otherwise make sure that there's no uninstalled junk left in /system/app and /data/app directories. You can also clear google store's data. Eventually if everything fails you can full wipe and make sure to UNTICK google maps in aroma (if you don't want inverted version), it's unticked in the default configuration.
Let me know if you have further problems.
Have fun with ArchiDroid.
All Done
Many thanks for the info Archi, worked perfectly. Love the Rom, super smooth... :victory:

Force closing of Google Play Services and connected apps

Hi,
I'm on XtreStoLite 2.4 5.1.1 on my S6 edge for months now. All was working perfectly. Recently, GPS started crashing randomly, but except for the error, services and sync seemed to be working fine. Now ytdy armageddon started and now Google apps connected to GPS (search, keep, music, but not play store for example) will not run and get killed instantly.
What I did based on what ive found:
- deactivated play services, uninstalled updates and restored the account, GPS 9.0.83 (240-121911109)
- wiped cache/dalvik which helped for couple of minutes
appreciate any help!
I've had problems too with the latest play services on LG G4 H815 6.0 v20d. Google Play Services crashes non boot and Google Chrome crash after a few seconds of opening.
Uninstalling updates fixed it but I'm told by many apps that I need the latest version. I didn't wipe cache though.
htr5 said:
I've had problems too with the latest play services on LG G4 H815 6.0 v20d. Google Play Services crashes non boot and Google Chrome crash after a few seconds of opening.
Uninstalling updates fixed it but I'm told by many apps that I need the latest version. I didn't wipe cache though.
Click to expand...
Click to collapse
True, stopped the apps from crashing, but made them unusable, even Inbox which worked just fined on the corrupted (?) version.
filip.lysikowski said:
True, stopped the apps from crashing, but made them unusable, even Inbox which worked just fined on the corrupted (?) version.
Click to expand...
Click to collapse
Got a fix. Google apps working. No force closes/errors. Root needed to prevent auto-update to latest version.
i) Get to the May 7th (or earlier) Play Services from here: http://www.apkmirror.com/apk/google-inc/google-play-services/
Look at the notes at the top to see which version you need arm or 64 ect.
In you're case, it's '240' so arm64 + arm android 5.0+ version. Direct download for you link: http://www.apkmirror.com/apk/google...s-9-0-81-240-121617224-android-apk-download//​ii) Enable airplane mode to prevent updates
iii) Then just install the apk on top of your rolled back version. Apks only install if version is newer.
iv) Using a root-enabled file manager like ES File Explorer, open \data\app and create two new, empty folders titled com.google.android.gms-1.apk and com.google.android.gms-2.apk. This tricks Google into causing auto updating of your GPS to fail.
v) Reboot (important)
Optional) Set Google Play Services as a device administrator again under security settings for Device Manager features.
If you get an error during install, then follow this guide to install: http://forum.xda-developers.com/android/help/delete-disable-downgrade-prevent-update-t3091832
htr5 said:
Got a fix. Google apps working. No force closes/errors. Root needed to prevent auto-update to latest version.
i) Get to the May 7th (or earlier) Play Services from here: http://www.apkmirror.com/apk/google-inc/google-play-services/
Look at the notes at the top to see which version you need arm or 64 ect.
In you're case, it's '240' so arm64 + arm android 5.0+ version. Direct download for you link: http://www.apkmirror.com/apk/google...s-9-0-81-240-121617224-android-apk-download//​ii) Enable airplane mode to prevent updates
iii) Then just install the apk on top of your rolled back version. Apks only install if version is newer.
iv) Using a root-enabled file manager like ES File Explorer, open \data\app and create two new, empty folders titled com.google.android.gms-1.apk and com.google.android.gms-2.apk. This tricks Google into causing auto updating of your GPS to fail.
v) Reboot (important)
Optional) Set Google Play Services as a device administrator again under security settings for Device Manager features.
If you get an error during install, then follow this guide to install: http://forum.xda-developers.com/android/help/delete-disable-downgrade-prevent-update-t3091832
Click to expand...
Click to collapse
Many thanks for trying, but it didn't change a thing
filip.lysikowski said:
Many thanks for trying, but it didn't change a thing
Click to expand...
Click to collapse
Edit: yep. Same here. When I turn internet back on, it updates to latest version. Try installing an older version.
I'll try and find another way to stop auto updates.
Same problem here, uninstalled services by titanium then installed back by apk and flashed open gapps, worked for me
None of those worked for me. Well, I used the opportunity to update XtreStoLite to MM, and problem disappeared, obviously
However, come to think of it, it could have sth to do with Amplify killing processes. Thing is, I didn't manipulate with anything there recently, but after activating xposed module on updated ROM i saw some crashes again. Anyway, I disabled it in any case now, want to see how the battery will last on the updated ROM, but it could be connected
filip.lysikowski said:
None of those worked for me. Well, I used the opportunity to update XtreStoLite to MM, and problem disappeared, obviously
However, come to think of it, it could have sth to do with Amplify killing processes. Thing is, I didn't manipulate with anything there recently, but after activating xposed module on updated ROM i saw some crashes again. Anyway, I disabled it in any case now, want to see how the battery will last on the updated ROM, but it could be connected
Click to expand...
Click to collapse
Were you by any chance changing your phones emojis? I was and rebooted and noticed the GPS crash. Undoing emoji changes didn't fit it.
htr5 said:
Were you by any chance changing your phones emojis? I was and rebooted and noticed the GPS crash. Undoing emoji changes didn't fit it.
Click to expand...
Click to collapse
Nope, never!

OpenGapps crashing phone when connecting Google account

Hi there XDA!
I am running ResurrectionRemix v 5.7.3 (android 6.0.1) on my Moto G3 2GB. The phone works great without Google apps, but once I flash openGapps 6.0 for ARM, I get the usual google play services has stopped working and setup wizard has stopped working errors. I manage to get both these errors away by applying the usual fix of giving it the right permissions in the settings menu. However, after a while it again shows the google play services has stopped working error, and when I try to log in to my google account, my phone crashes completely and reboots. It also crashes randomly even when it is on the home screen. When the phone is in airplane mode and I disable play services, there is no issue, I do notice that the play store will not open. I only get a white screen that pops up and goes down again instantly.
I have tried the following things to solve it:
-Wiping dalvik cache and cache before installing Gapps
- Simultaneously flashing gapps and custom rom together ( again the phone crashes once i am prompted to add my google account in the setup wizard)
- Installing google apps using 'google installer' apk (this installs everything fine, but i get a google services framework error, and I am unable to access the play store)
- Removing my Micro SD card after flashing Gapps ( I saw this was a fix in another thread, but no cigar)
This is proving to be very difficult, and I have not got a clue where to continue from here on! It would be great to get some advice for any solutions to this.
Many thanks in advance

Reason - solution surrounding "Unfortunately, google " " has stopped working

Reason - solution surrounding "Unfortunately, google " " has stopped working
Found the reason and the solution for Samsung GT-P5113
Reason: TWRP backup corrupts\removes\deletes the Google Play services and Google Play after the successful backup.
Solution: Don't use TWRP for backup at least not for this Samsung.
Backup was performed after a ROM flash and a GAPPS flash. Everything worked perfectly till I wanted to do a simple basic no frills backup using TWRP.
After reboot, as soon as I log in I start getting the "Unfortunately, ..." errors.
2 1/2 days of trying to get around this and no one on any site giving any solutions that worked for the last 3+ years. I noticed that a TWRP backup even before the GAPPS flash left me with a initial ROM flash that needed to go thru the setup all over again. That is when I started to look closer after TWRP backup and for those apps.
Both Google Play and Google Play services are no longer under APPS. They are now gone, at least for my tablet.
After seeing and associating this with TWRP backup, I purposely performed 3 clean flash\TWRP backups to test this theory. Sure enough. Every time after a TWRP back, reboot and login, the errors start coming and why..? Because the apps are no longer in APPs.
Yes I have the correct ROM (Beanstalk), GAPPS and TWRP! I also got this error with Marshmallow but will not go back and test. Spent way too much time on this. The chances are good this is the problem for that ROM and at least this tablet.
This custom ROM and TWRP has been out for how long and at least for this one tablet, not identified?
Attention: If you are getting these errors after a TWRP backup, go look to see if Google Play Services and Google Play are listed there under APPS after a shutdown\reboot.
lsd

Categories

Resources