Drain impossible to fix - Xperia Z3 Compact Q&A, Help & Troubleshooting

Hello,
After many weeks trying to solve Google Play Services, I still have this boring issue.
I'm using Slimm Rom 3.8 with Locked Bootloader
- GPS, Wifi and NFC always off
- Stamina always on
- Brightness under 25%
I don't use much the phone (No facebook, less than 30min on internet, no Youtube, no Music)
I tried :
- to disable SystemUpdateService from Google Play Services and Google Framework with the App "Disable Servces"
- Uninstall updates of Google Play Services and reinstall in both way (Play Store / with APK)
- Using Amplify, AppOpsXposed, Greenify, PowerNap (from this link : https://forum.xda-developers.com/android/general/guide-extreme-battery-life-t3095884) and Force Doze
- Disable all Xposed modules (for now I'm using Android N-ify, BootManager, Greenify, Hide Emergency Button & Marshmallow SD Fix)
- Factory reset / flash KitKat .ftf file / Root again / Flash Slimm Rom
I also tried with other Rom like eXistenZ Marshmallow v5.6.5 and AOXP 1.5.7 ROM but I till have the issue.
I took some screenshots so maybe it can help you find what is causing drain.
Thank you in advance for your help

i use slimm and sometimes the battery percentage is going for example from 65% to 59% ,etc, and not only; i had xperience rom from marillia, cm12, existenz, and some - resulty is same. Next time my friend, dont buy SONY!!! ) that i said to myself. Anyway, what i saw from ur picture, google play services drain a lot of battery; also ur signal is very poor.
Try to set ur network to gsm only (not lte./edge) for normal use, and see that guide...maybe will help u. Also that

I've been fighting with Google Play Service for months because of the battery drain problem. In the end (tired of changing rom ecc..) I founded the solution on the last Xperia Concept Rom without root. Now the drain is totally gone, and I get 2 days battery life with ~5/6h screen time (using greenify only for aggressive doze, and having FB, Messenger, WA, telegram, gmail ecc..). Before, on others rom I couldn't get more than 4h screen time lately, so I'm super happy

op3n said:
i use slimm and sometimes the battery percentage is going for example from 65% to 59% ,etc, and not only; i had xperience rom from marillia, cm12, existenz, and some - resulty is same. Next time my friend, dont buy SONY!!! ) that i said to myself. Anyway, what i saw from ur picture, google play services drain a lot of battery; also ur signal is very poor.
Try to set ur network to gsm only (not lte./edge) for normal use, and see that guide...maybe will help u. Also that
Click to expand...
Click to collapse
Thank you for all your information but sadly I already tried all of that without success =/
I think that my next phone will not be Sony, even if I like them the camera isn't as good as they annonce.

Matteo Mazzu said:
I've been fighting with Google Play Service for months because of the battery drain problem. In the end (tired of changing rom ecc..) I founded the solution on the last Xperia Concept Rom without root. Now the drain is totally gone, and I get 2 days battery life with ~5/6h screen time (using greenify only for aggressive doze, and having FB, Messenger, WA, telegram, gmail ecc..). Before, on others rom I couldn't get more than 4h screen time lately, so I'm super happy
Click to expand...
Click to collapse
I was thinking about installing stock rom without root but I really don't like all the pre-installed apps. It is a big dilema in my head ^^

slutman said:
I was thinking about installing stock rom without root but I really don't like all the pre-installed apps. It is a big dilema in my head ^^
Click to expand...
Click to collapse
I know the feeling! But consider that on concept you don't have any, and the few Google apps I don't use are disabled. The only real thing I missed was double tap lock screen off, but I managed with Power Toggle :good:

https://forum.xda-developers.com/z3-compact/development/rom-slimm-t3359831/post69260867#post69260867
Didgesteve said:
I have posted several times in this thread ways to fix the Google battery drain. It's now such a long thread that some people may have missed my previous posts, so to summarise : (this is not guaranteed to fix your phone, I am just trying to help)
Method 1
Factory reset, restart to recovery, flash full Slim rom(nothing else) . Restart. Log in to Google from scratch, leave the phone for some time before installing any mods. Let Google phone home and set the phone up before installing Xposed, amplify, firewall etc etc.
Restore apps with Titanium Backup, but just apps+data, NO system apps, NO Google apps. I realise a full factory reset is beyond most users compression, but this is really the best way and will fix 90% of the problems I see posted on the thread.
Method 2
The lazy 'I don't believe I need to do a factory reset' method
Disable all Xposed modules, go into airplane mode, no wifi.
Reboot phone.
Delete your Google account.
Use Titanium Backup to delete the data on the following apps:
Google account manager
Google backup transport
Google play services
Google play store
Gmail
Google calendar sync
Google contacts sync
Google bookmarks sync
Google services framework
Download manager
(it will get more & more difficult to do this as once you remove the Google account, Google. gms, keeps FCing)
Reboot to recovery, wipe cache & dalvik, reboot phone.
Enable network.
Add Google account, leave it with 'synchronise accounts' for some time, let Google do its thing before enabling Xposed or any other system mods(important)
Enabling a firewall or excessive privacy control (like trying to mask your IMEI or account) will just piss GPS off and it will try even harder to phone home, causing huge battery drain. The more you try and block the various Google services the more they try get out.
I don't believe that the battery drain is connected to this rom specifically. I know the Dev has made some tweaks to try and help, but if you take the time to read the Google forums, this problem effects most makes of phone and all firmware versions.
Edit: You should always do a recovery backup before making any changes to your phone, I am not responsible blah blah blah
Click to expand...
Click to collapse

Related

[Q] Google Services wakelock kills battery

Google Services is killing my battery with its incessant wakelocks! How do I get rid of this?
I flashed my phone a few days ago... from ICS to JB 4.1.2.... I also loaded NOPE kernel and overclocked to 850 MHz. I thought it was the overclocking that was killing my battery but it looks like it's some of the google services.... they keep cpu wakelocking the phone while it should be sleeping. I mean come on, 6444 wakes in 15hrs?
I see that it's a common issue but there doesn't seem to be an easy fix. Can anyone walk me through what they did to solve? attached are my battery/wakelock stats for reference
You can always greenify it (play store -> greenify). Mind it does restart quite often, so it is a real pain, but most of the google apps depend on it. You could also go to google settings on the phone, and in the location section disable location reporting and location history. This is the main battery killer in google services.
P.S. What's the rom you're using on the pictures?
I read that turning off both GPS and network location services will help fix this.... but then all my apps become dumb. I'm looking at the Google Services screen in Wakelock Detector (image first post) and I can see the wake count for different functions or programs. e.g. NetworkLocationLocator woke 206 times, but GTALK_CONN woke 1668. Is there any way to disable certain aspects of the Google Services app or is it an all or none scenario?
P.S. What's the rom you're using on the pictures?
Click to expand...
Click to collapse
It's Speed Droid by addictz10 with the Samsung S5 skin (it's called CM11 CM10.2 TouchWiz 5.0 theme in the Store). The first green pic is using Wakelock Detector and the other 2 are the OS Battery screen.
Well, as for gps, you can turn it off, because it is rarely needed for your phone to have that precise information on your whereabouts. As for network location service, don't turn it off, just turn location reporting and location history in google settings (not phone settings). As for gtalk, well, you'll have to uninstall hangouts and to disable/remove google talk to stop that behavior. I don't think that there is a way of stopping certain wakelocks, and I agree that it would be great if it could be done...

Massive battery drain by google service with fresh install of CM11 nightly

After a fresh install, i experienced massive battery drain (50%+ over night).
the culprit was google service, easily identified in the battery overview.
It prevents the phone from going to sleep mode.
i searched for the problem and found
http://forum.cyanogenmod.org/topic/...ce-wakelock-on-cm11-m7-massive-battery-drain/
"it's a new ota update service that was added in a recent Google Play Services update."
Solution:
http://forum.xda-developers.com/showpost.php?p=53739230&postcount=5031
quote:
Finally I was able to block the SystemUpdateService wakelock, using this app:
https://play.google.com/store/apps/details?id=com.rs.autorun (Autorun Manager)
go to settings, enable the option to show system entries
(refresh services)
find google play services and disable:
SystemUpdateService$Receiver
SystemUpdateService$ActiveReceiver
SystemUpdateService$SecretCodeReceiver
done... no more wakelock and it didn't break anything, syncs all work ok
I know this app doesn't look the best, but I tried others like "Android Tuner Free", "Disable Services", "Gemini App Manager", etc, but they allowed me to only disable the main service and didn't show the other receivers that had to be disabled.
Click to expand...
Click to collapse
One thing to add: If you clicked too much in Autorun Manager, it stops working and says "only changing of 10 entries allowed in the free version".
I wont give tipps to bypass this behaviour, so first think, then click.
the app can reset your services status from the menu, if you misclicked.
well, im not sure if this worked out well..
after 6 hrs, still google service takes a huge chunk of my battery. will report tomorrow.
installed latest nightly over this one, flashed google apps zip again, did not wipe anything, did not deactivate any google apps nor services, problem gone.

Z1 After Battery Replacement

May I know anyone here with a replaced battery. Did u stick with 5.1.1 or 4.4.4? Any battery drain issue after battery replacement?(4.4.4/5.1.1) Any suggestion? Thank you
HollyZ1 said:
May I know anyone here with a replaced battery. Did u stick with 5.1.1 or 4.4.4? Any battery drain issue after battery replacement?(4.4.4/5.1.1) Any suggestion? Thank you
Click to expand...
Click to collapse
Battery drain has nothing to do with the version of Android you are using. A classic symptom of a dying battery is a sudden drop from let's say 50% to near 0 followed by a shutdown. When I had this symptom, I went back to kitkat and had that too. If your battery is new, the drain is related to the way you use your rom and the apps you have. Number one culprits are rogue apps such as Gapps and social apps (facebook et al). They persist in ram, prevent your phone from sleeping and do their malware/spying activities virtually 24/7. Gapps record everything that is going on with your phone and regularly transmit data to Google. Facebook does the same+ and communicates with facebook servers. Also, any other app that includes Google analytics does the same (communicates with Google and the respective developer).
Lollipop may seem to cause more drain, because these apps are integrated more into Android. It is even worse in Marshmallows. But if you get rid of Gapps/Social Apps and others, your Z1 should last for 2 days with moderate usage: in my case: 2 hours of screen, mail syncing and wifi/data 24/7. If you can't live without facebook and Google, you can still use them the way you do it on your laptop...
Just think about this: do you want this person to have your private life and sell it to everybody? https://images.duckduckgo.com/iu/?u=http%3A%2F%2Fimg.timeinc.net%2Ftime%2F2010%2Fpoy_2010%2Fmark_zuckerberg%2Fmark_zuckerberg_01.jpg&f=1 . In my view, there are similar faces and versions of sociopaths at Google too.
So you mean it's ok to stay lollipop ? i'll disable the Gapps and fb
HollyZ1 said:
So you mean it's ok to stay lollipop ? i'll disable the Gapps and fb
Click to expand...
Click to collapse
Lollipop is OK as of September-November 2015. If you are on stock, you need to debloat it. Another problem with Gapps is that they are in System and have root rights. But generally, if you freeze Gapps and FB, your battery life will significantly improve. Every app that has Android native variant is bad (gmail, fb, hangouts and other garbage). You can use K9mail to access gmail or any other e-mail service and you can use web browser to access social sites.. Turn off location services and set them on only when you need them. Turn off system wide syncing: a good app (like K9mail) has its own syncing. Get Afwall and allow internet to apps you use like mail, browser etc. Why do you need Settings or Camera or Gallery or Keyboard or virtually any System app to have access to the internet? You don't and they all waste data and battery communicating with "home" (google)...
Thanks a lot bro

Sony Stock ROM without Gapps

I've been trying to get the GAPPs off my Z3C one by one. I root the phone, I start removing GAPPS, eventually I remove something that causes a bootloop and I have to restore the system partition and start trying again. Is there any existing ROM for Z3C which is the basic Sony ROM (as in the camera works, etc) but without GAPPS?
Thanks!
I'd also like to know this, without reinstalling or risk of bootloops if possible.
Would actually like to use features of the phone without google calling back home with timestamped records of every network ever connected on, every app used and apps calling back through gapps api so google can squirrel away location and wifi memory to your google identity forever. Maps would be useful.
Theseum said:
I'd also like to know this, without reinstalling or risk of bootloops if possible.
Would actually like to use features of the phone without google calling back home with timestamped records of every network ever connected on, every app used and apps calling back through gapps api so google can squirrel away location and wifi memory to your google identity forever. Maps would be useful.
Click to expand...
Click to collapse
You can disable a lot of this stuff (assuming you have root) using AFWall+ and in the Apps Manager settings, I leave google play services disabled. This mostly works. Where I'm having an issue is that I'd like to install micro gms core https://forum.xda-developers.com/android/apps-games/app-microg-gmscore-floss-play-services-t3217616 as a replacement for some of these things, but to do that I need to get a clean rom without GAPPS.
Another big issue for me is that, like you, I don't really want Google continually phoning home and such. For me, battery life and simply controlling my own network activity is my main motivation. But anyway, I would be almost really happy to live with google play services simply disabled, and then re-enabling it every once in a while when it's useful (a lot like how I use location), but the issue is that if you try to disable google play services then you get "would you like to remove any updates and go back to the default"? If you click "yes", then reenabling that service means that you have to redownload the updates. I'd be equally happy to live with google play services if I could enable and disable them at will without having to reupdate/uninstall updates every cycle. As it stands, I just live with them disabled. Since I have them disabled, I'd love to go ahead and remove them and try a substitute, thus my question in the OP.

Tips for Better Standby Time?

Hey everyone,
I know i've been asking questions ALL over the forum lately, but as a phone I have to use as a daily driver for some time, I wanted to hear some of your suggestions for ways to increase standby time when the phone is not in use. It's weird, because as I used some Nougat ROMS and a Sense ROM for some time now, my results were mixed bag and my phone was still eating battery even though I wasn't using anything.
Right now I do got the GPE firmware flashed, and atm using a sense ROM to see where battery life will take me the most. Any apps you people recommend so I can make the most of my device?
There is one thing what brought me the most juice of my battery back as if i had a new battery... Dont use gapps, use microG. If you configure it correct you will have the same functions as if you use gapps but without the waste of battery. There is a magisk module called nanomod microG since this exist its realy easy to use microG even for beginners. You dont need the full nanomod package, only microG and the patcher. You will have full access to play store also with paid apps, you will have contacts and calender synch, cloud messaging and location services by mozilla. The only thing that doesnt work is streaming to chromecast devices with apps that doesnt have it build in like youtube and spotify, those need gapps for streaming to other devices.
saturday_night said:
There is one thing what brought me the most juice of my battery back as if i had a new battery... Dont use gapps, use microG. If you configure it correct you will have the same functions as if you use gapps but without the waste of battery. There is a magisk module called nanomod microG since this exist its realy easy to use microG even for beginners. You dont need the full nanomod package, only microG and the patcher. You will have full access to play store also with paid apps, you will have contacts and calender synch, cloud messaging and location services by mozilla. The only thing that doesnt work is streaming to chromecast devices with apps that doesnt have it build in like youtube and spotify, those need gapps for streaming to other devices.
Click to expand...
Click to collapse
Interesting. So with MicroG I can't use YouTube? Even by itself? And will you help me set it up?
1) Use an android 5.x rom (e.g. NuSenSeveN )
2) Install Xposed (Probably using the Xposed Installer app)
3) Install Power Nap
4) Consider also installing Amplify
5) Consider using the "Battery -> Power saver -> Data connection" setting in sense.
6) Enjoy your new battery life
Doing these things has gotten me through 4 days on 1 charge with minimal use. Albeit, you'll still go through the battery very quickly if you use something like Google Maps. Something else to keep in mind is that your battery life is heavily dependent on your cell reception. If I don't turn airplane mode on before going into a basement, for instance, the phone will kill itself in a few hours trying to find reception.
With Power Nap and Amplify it doesn't matter whether you have google apps and facebook - these xposed apps will block other apps from touching your CPU while the screen is off.
zeeBomb said:
Interesting. So with MicroG I can't use YouTube? Even by itself? And will you help me set it up?
Click to expand...
Click to collapse
You can use all apps on the device itself, just streaming to TV doesnt work. And yes i can help you with the setup.
1. Flash Rom of your choice
2. Flash Custom Kernel if you want
3. Flash Magisk
4. Flash nanomod microG
5. Boot into system (dont setup anything)
6. Reboot into recovery
7. Flash nanomod patcher (takes a few minutes)
8. Boot into system and open microG settings
9. Activate Device Registration, cloud messaging, saftynet and grant permission to deactivate Battery optimization
10. Tap on "UnifiedNLP Settings" in microG settings app and activate both (grant permissions as system ask)
11. Go into system settings and activate Location "high acuracy"
12. Go into microG settings and check if everything works
13. Setup your Google Account like allways on every Rom
There are some Roms like AIM Rom which support "Signature Spoofing", on those Roms you dont need to flash the patcher. On those Roms you need to grant a special permission for the play store app. Go into system settings, go into apps, tap an Google Play Store, tap on Permissions and grant permission for Signature Spoofing.
Sometimes you need to restart your device after Setup everything. That is just necessary if Play Store shows an error during first start.
saturday_night said:
You can use all apps on the device itself, just streaming to TV doesnt work. And yes i can help you with the setup.
1. Flash Rom of your choice
2. Flash Custom Kernel if you want
3. Flash Magisk
4. Flash nanomod microG
5. Boot into system (dont setup anything)
6. Reboot into recovery
7. Flash nanomod patcher (takes a few minutes)
8. Boot into system and open microG settings
9. Activate Device Registration, cloud messaging, saftynet and grant permission to deactivate Battery optimization
10. Tap on "UnifiedNLP Settings" in microG settings app and activate both (grant permissions as system ask)
11. Go into system settings and activate Location "high acuracy"
12. Go into microG settings and check if everything works
13. Setup your Google Account like allways on every Rom
There are some Roms like AIM Rom which support "Signature Spoofing", on those Roms you dont need to flash the patcher. On those Roms you need to grant a special permission for the play store app. Go into system settings, go into apps, tap an Google Play Store, tap on Permissions and grant permission for Signature Spoofing.
Sometimes you need to restart your device after Setup everything. That is just necessary if Play Store shows an error during first start.
Click to expand...
Click to collapse
This would work on apps like smapchat too? How much extra SOT do you think I'll gain from this?
zeeBomb said:
Hey everyone,
I know i've been asking questions ALL over the forum lately, but as a phone I have to use as a daily driver for some time, I wanted to hear some of your suggestions for ways to increase standby time when the phone is not in use. It's weird, because as I used some Nougat ROMS and a Sense ROM for some time now, my results were mixed bag and my phone was still eating battery even though I wasn't using anything.
Right now I do got the GPE firmware flashed, and atm using a sense ROM to see where battery life will take me the most. Any apps you people recommend so I can make the most of my device?
Click to expand...
Click to collapse
Me personally, I use greenify with root on my device. I kill much of application that run on background ( mostly FB and FBM) but would kill battery due to YouTube background playback. But while phone sits, it helps out a lot on my end
zeeBomb said:
This would work on apps like smapchat too? How much extra SOT do you think I'll gain from this?
Click to expand...
Click to collapse
All apps are working no matter which app. What i said was ONLY related to streaming to TVs. I cant tell you hom much sot you will get but play services suck about 10-15% of your battery and microG is about 1-3%.
saturday_night said:
All apps are working no matter which app. What i said was ONLY related to streaming to TVs. I cant tell you hom much sot you will get but play services suck about 10-15% of your battery and microG is about 1-3%.
Click to expand...
Click to collapse
That is truly amazing. Thank you for helping me out...does AICP support signature spoofing too?
zeeBomb said:
That is truly amazing. Thank you for helping me out...does AICP support signature spoofing too?
Click to expand...
Click to collapse
AICP doesnt support it, you need to flash the patch there. But i would recommend not to update every nightly only if there are some heavy changes. Because some apps like whatsapp need to register for cloud messaging and you need to clean install those apps everytime you flashed an update+microG. And espacily whatsapp doesnt notice that the registration for cloud messaging is gone after an update of the rom. Also you need to flash microG with every rom update and setup everything in microG again.
saturday_night said:
AICP doesnt support it, you need to flash the patch there. But i would recommend not to update every nightly only if there are some heavy changes. Because some apps like whatsapp need to register for cloud messaging and you need to clean install those apps everytime you flashed an update+microG. And espacily whatsapp doesnt notice that the registration for cloud messaging is gone after an update of the rom. Also you need to flash microG with every rom update and setup everything in microG again.
Click to expand...
Click to collapse
Okay, I got everything to work but my "system grants signature spoofing permission" and "UnifiedNlp do not have Location to test Geocoder" is off. How to fix
zeeBomb said:
Okay, I got everything to work but my "system grants signature spoofing permission" and "UnifiedNlp do not have Location to test Geocoder" is off. How to fix
Click to expand...
Click to collapse
Hmm, wait a few minutes until it finds your location
saturday_night said:
Hmm, wait a few minutes until it finds your location
Click to expand...
Click to collapse
Okay. Is it normal to have the WIFI to turn on and off repeatedly? Do I need to have location set on high 24/7?
zeeBomb said:
Okay. Is it normal to have the WIFI to turn on and off repeatedly? Do I need to have location set on high 24/7?
Click to expand...
Click to collapse
Wifi isnt related to google services or microG. And no you dont need to have location active all the time, if you dont need it just disable it.
Hello Everyone. It's been a week since i first tried out MicroG, and all is well! Battery life is improved as I don't drain as much as 20% on light usage throughout my days when I'm busy. Definitely a great way to get the best out of the aging M7. Thank you @saturday_night for helping me set this up, and @Watercycle for helping with some additional stuff!

Categories

Resources