yashsingh1/xdaforums huggingface dataset:
[Xperia Z5 Compact General] brokich:
Thanks again for the great response. And PC Companion is Sony's default software that comes with their devices and is used to backup/reset/update, etc.

To clarify, I never expected any secret battery options that will solve all my problems. I was rather hoping that it's a well-known problem with a possible non-root solution.

As to rooting, yeah - I would love to do it, but I am afraid your guide won't work for 7.0, would it? I am already using 32.3.A.0.376-R2D. In any case, rooting so soon after buying it (a few months) is not something I am rushing to do.

Also, to add something else - my old Z1, when it was on KitKat 4.4, used to last me 5 days with low usage EASILY. The thing actually drained about 1% per night without having to root it, with the normal stock features and 3G network on all the time. Something just went wrong down the road for many manufacturers and their relationship with the android OS. The battery life became abysmal for me after android 5 and above it.

And then, at work, I have a Nexus 5x on my desk for testing, which lasts 6 days in standby with a battery which is not dramatically bigger, with no root. But it has no SIM card or 3g/4g on at all, only WiFi.

This brings me to believe that you are absolutely right about location services.

And a last question... if I am to root now, from FW 32.3.A.0.376-R2D, what would you say would be the most reliable method? I saw your guide and really liked it, but it seems to require MM to begin with. Seen many other guides, but in each guide there are responses about frozen/bricked devices, or issies with no working camera/finger scanner/etc... It's a bit worrying.
[Xperia Z5 Compact General] --jenana--:
The guide I wrote is actually outdated. I wrote it in the first weeks after MM was released. ;)

IF you want to root, it's actually not that difficult.

0. Prepare your computer, because you need the right drivers and some tools.

1. If it's the first time you unlock your bootloader, you might want to backup your TA-partition. I leave the details to other people, there are great guides about it in this subforum. As far as I know, to do this, you need to go back to marshmellow. I've never done this, because I unlocked my bootloader before there where any tools or any knowledge available about how to do this. So my original TA partition is gone forever (and I've never missed it).

2. Flash Nougat. This is really simple. You only have to download a (large) file, click a few buttons in flashtool, drink a coffee, and it's done.

3. Make a kernel with Rootkernel. It's basically like following a recipe, and in the end you have a file (the kernel) which you can install with the tools on your computer. In this step, you made root access and TWRP-recovery.

4. Reboot

Personally (and I know not everybody will agree), I wouldn't bother with backup of the TA partition. So *I* would just unlock the bootloader and move on. :) But your first step should be: make yourself familiar with basic adb commands and with how to make and restore a (full) backup. I really don't know why it causes so much problems for some people. It's true, sometimes you run into unexpected behavior. But then you have 2 options. Go back to last TWRP-backup or get your **** together and start from scratch.

By the way, if I was you (with your priorities), I wouldn't upgrade to Nougat. There are much more tools available to optimize marshmallow. Install some of them, get familiar with them, and in a few days you have a reliable and battery-friendly system.
[Xperia Z5 Compact General] brokich:
Hm, these are some fair points.

Thanks for that little root guide - but why would you skip backing up the TA partition? Wouldn't that break some core functionalities? At least that's what I've read (cause I did go through most of the root guides for MM in this section).

I guess people have problems because the guides are sometimes incomplete, or people themselves are not following them properly. I would not expect myself to mess-up instructions, and whenever I have problems with guides, it's usually some kind of disparity between my side and their side. Or the guide is wrong, or something is missing. Many things can go wrong, yeah.

It's not that I am not willing to take risks, it's more that I might end up getting the overheat issue at some point - and at that point I would like to use my warranty. If I mess up anything, the warranty will be lost too soon.

Furthermore, I believe Nougat is far superior to MM, and I am willing to wait unofficial development to continue for at least another year. Perhaps in that time the z5c will have stopped receiving official updates, and we can all settle on some rooted, stable and working version of (probably) 7.1 or smth a bit after it, with working Xposed framework as well. At that point I would like to root and truly make the device shine in terms of battery life.

But for now, I'll have to limit myself with a factory reset at MOST.

I am doing an experiment now, after charging the phone completely. Turned location services off, and google services to "battery saving mode". I've turned wi-fi to off and am just going to be using a constant LTE connection. Auto sync is on.

I'd like to see how the phone handles this configuration without further intervention. So far, after 30 minutes post-charge, it's still sitting at 100%. But I'll have to check the overnight drain to verify any actual improvement. In any case, my 100% charged phone predicts 3 days of standby in the battery settings.

edit: looks good after 1 hour (https://drive.google.com/open?id=0Bwg-0GLG0gP9Wmt1ekZCTFNnS3c)
[Xperia Z5 Compact General] --jenana--:
Mwa, yes and no.

Yes 1: By unlocking bootloader you break your TA partition and loose functionality.

Yes 2: If you ever want to go back to a phone which is unrooted and locked with all functionality, you need that backup.

No 1: There are DRM-fixes. Rootkernel (and the entire 2nd or 3rd step in my other comment) will fix DRM-keys too. And about every modified kernel you'll find over here has that DRM-fix + a few tweaks, so you don't have to worry, you won't miss anything.

I guess there are two kind of people. Some people say "You never know if you ever gonna need it, so you would be stupid not to back it up. After you click that button it will be gone. Forever." They are right. Some people say "Why bother, it's too much work, in the end you'll loose that backup, and actually you won't ever use it. And if it doesn't go smooth, it will give you unnecessary stress". They are right too. I'm in the second group. ;) And I don't want to convince you that what I say is anything better than what others say, I'm just explaining my view...

Also, a lot of tools we use to experiment and tweak the sh#t out of our Z5C are highly experimental and not debugged. I don't care because partially it's a fun way to play around with it and I don't rely on my phone. If it doesn't work tonight, I'll find a way to make it work tomorrow. Again, that's my view...

By the way, I had to send my phone back to sony with a problem (unrelated hardware issue), and my warranty wasn't void.
[Xperia Z5 Compact General] brokich:
Ha, that's very interesting. Perhaps they didn't bother to check for root at all, or they did and did not care. Maybe it's really hit and miss...

Overall, I am not extremely worried about it, as the device has actually been acting good so far, with no sign of hardware problems.

Also, I am not really going to gain that much by rooting Android 7, and I have no desire to have to stay on 6. When Xposed is well-developed and reliable on nougat, I'll probably go through the most promising method I can find and do the modifications that are required.

And yeah, I get your point about having fun, and I agree completely. But this device is important to me and I can't really risk it at the moment.

Anyways, the device is at 98% after 3 hours + of idle, which doesn't look too bad. I think perhaps adding the Greenify app might improve it a bit more, making it quite strong as a result, without the need of any root.
[Xperia Z5 Compact General] --jenana--:
On more thing. Actually battery life on Nougat seems to excellent.

I did 4 things (not much work):

1) Edit doze settings more aggressively Doze Settings Editor, with the built-in "GeraldRudi"-preset. It should work on non-root too, but with slightly less aggressive settings.

2) Greenify, of course without the XPosed settings, and without aggressive doze. I think this didn't have any impact on battery performance/deep sleep, because Doze Settings was much more aggressive.

3) Tasker-module to put auto-sync off at night.

4) Kernel Adiutor to set governor to interactive. Obviously at night there was about no load on the CPU at all, but I did it to reduce heat.

All the rest is pretty standard. A lot of Google Apps are installed, messengers (FB messenger, WhatsApp) and social media, I even have a weather widget installed; all working normally.

Overnight it didn't use any power:

0,0% drain per hour

; 0% over a 10h period of time. -->> battery stats
[Xperia Z5 Compact General] Bobzee:
That's insane!!!! Big ups :P

I will absolutely try the Doze editor.

Sadly, no tasker with no root, but I might as well turn off auto-sync manually at night.

The kernel editor, I'm guessing, is also off-limits for me with no root.

What I did was to just turn off location and use greenify. My current idle draw is 0.66%.

But your is perfect. That's exactly what I want to achieve. Close to 0% draw when idle. That's how it should be.

Do you think it will be possible to achieve similar results with just the doze settings from step 1? (+turning auto sync off at night)
[Xperia Z5 Compact General] --jenana--:
Your idle time doesn't look bad at all. Without something like that Better Battery Stats it's hard to guess if some apps use CPU/power/... or cause unnecessary wakelocks, but if you use 6-7% over 10h idle time, it's not that bad.

As far as I know, changing governor without root is a no-go. Not possible, only the system has the right permissions. By the way, this should affect idle time that much, it mostly affects your phone while you use it.

Doze Editor should make a difference, because it speeds up the time after you turn off your device to put it in deep sleep. Out-of-the-box, that takes a long time (I don't know how long, but it's suggested to be about 30 minutes). Standard settings in Doze Editor, which you can use with adb and without root, bring that back to 3 minutes. It's fully explained in that Doze Settings-thread.
[Xperia Z5 Compact General] Bobzee:
Thanks for the info :)

I tried Greenify since last night and it seemed to actually slow my device down. I could literally sense lag in the OS and nothing else could explain it. There was also a delay with every hit of the power button before the screen comes on. This, to me, was more bad than good, so I uninstalled this app. Perhaps it truly is a bit useless, or even detrimental to performance without root.

These Doze settings is what I will be trying out tonight, but I fear it might be a similar story to Greenify and not help me much without having root, or even potentially slow the device down?

Furthermore, I uninstalled all Google Play services updates and re-installed it. It used to take ~450mb of space, now it's back to ~150mb.

Hopefully, this will improve the Google services battery drain, because right now it is on the top of the list:

79% battery left, 2d 16h remaining:

25% google play services

15% phone idle

15% screen

12% cell standby

So, play services is still hogging too much battery, even with location off.

I re-installed it, so I have yet to see if this has any positive effect.
[Xperia Z5 Compact General] roycol:
Z4 tablet problem too

I'm getting high battery drain on idle on my Z4 tablet, haven't attempted any fix yet.
[Xperia Z5 Compact General] alpadolmeri:
My experience is a very big battery drain even if a clean install. I used MyAndroidTools to stop all unnecessary Google Play Services , with Kernel Audiutor I selected interactive governor CPU, with Doze I used GeraldRudi presetting. Switching off LTE, wifi, bluetooth and data , in less than 3 hours I loose 30% of battery, can not arrive to evening with a charge. I am back on 6.0.1 and I am able to recharge my Z5C every two days !
[Xperia Z5 Compact General] brokich:
That definitely sounds like you have one of those problematic units, with overheating and extreme battery drain, or perhaps it was due to a bug in the 7.0 ROM you used.

I am still able to get 2 days of my phone with 7.0 and no root, but that to me seems very unsatisfactory. Such a battery should easily last you a week with a single charge with LTE on, if you keep it idle most of the time. In my case, that's up to 3 days. If you see jenana's battery stats, it is possible to achieve almost 0.0% drain per hour at the cost of some performance. In those conditions, with ULTRA stamina on, your phone should last about a full month in idle mode with active network signal reception during that full period of time (but not LTE and other extras).

6.0.1 should be even better due to the Xposed framework, but I don't think that more than a month is a realistic with any OS and the current batteries.

Surely, 2 days is ridiculous. I don't use my phone much some days and the drain seems to be flat. It should be ALMOST 0% per hour. I assure you, even auto-syncing should be fully usable at all times without any kind of insane battery drain.
[Xperia Z5 Compact General] panecondoin:
Seems I am in the same boat as you :( I really was enjoying Nougat, but I cannot live with half a day of charge. Last thing to try unrooted nougat and phh's superuser. Maybe this can resolve the massive drain. It is sad, really. I will report back with my findings...

I would appreciate any hint on to overcome this issue.

Cheers everyone!
[Xperia Z5 Compact General] novahob:
Poor for me. I can get a day's worth out with about 3 to 4 hrs SOT but usually now my battery is less than 10% when I put it on charge. Marshmallow I was easily getting 4hrs SOT and down around 20 to 30% battery left. I love nougat but battery life is really poor. I have a mate who had x compact and 2 hrs SOT only uses about 25% battery. I just don't get it, so must be Sony with a poor ROM and not tested correctly or nougat not designed for this phone.
[Xperia Z5 Compact General] roadrunner00:
Hey, I can not understand it when people say the battery runs better than never before. I updated to 32.3.A.0.378, Sony has put the CPU on the best performance "performance". So with me runs the Z5C on the settings max. 10 hours. In the plaintext, I need root to convert this as it did at Marshmallow "interactive".
[Xperia Z5 Compact General] panecondoin:
For everybody that experiences battery drain and heat problems: try rooting the phone with phh superuser instead of superSu. I couldn't get through a single day with superSu. Now, the phone is cool and endurance of battery is back to normal.
[Xperia Z5 Compact General] brokich:
phh superuser or supersu are not programs that you can root with, they are root managers. The rooting process is not that easy. :rolleyes:
[Xperia Z5 Compact General] panecondoin:
[MENTION=5685051]brokich[/MENTION] that is absolutely true. I created the patched kernel with phh`s superuser zip instead of the good ol' SuperSU zip by Chainfire. The latest rootkernel supports that. And that aleviated my heating and battery drain issues. It is worth a try for everybody with the drain and heat issues. Hope that is somewhat clearer now. No one roots with just the app manager apps ;)
[Xperia Z5 Compact General] pep086:
could you provide the kernel for .378 ? i dk how to patch it myself, thanks.
[Xperia Z5 Compact General] panecondoin:
[MENTION=4979537]pep086[/MENTION] Here you go -> flashable and patched boot.img . It was created by following the instructions in the rootkernel thread and is based on the extracted kernel of .378 with phh's superuser instead of SuperSU.

As usual, use at your own risk. So make sure you have a way back in case something goes wrong ;).
[Xperia Z5 Compact General] smardu:
Is it working with encrypted phone? I got out of date binaries after encryption.
[Xperia Z5 Compact General] bajus86:
I do a clean install, using repair tool in Sony phone companion. And my z5c goes normal.
[Xperia Z5 Compact General] WildBit:
I think we´ve lost the point of this thread. It seems strange to me about root managers can impact a handset performance to the level. It´s very interesting though... not sure if I have the will to upgrade again. Facts are that my Z5P running 6.01 performs one standard, same exact config in 7.0 and the problems begin. It´s a shame because it is fast and I love it! The reason why I´m skeptical about the supersu is due to the fact that during my many attempts to upgrade in every possible scenario, one included not rooting , full stock, problem persisted.

If someone can confirm this it will be great :)
[Xperia Z5 Compact General] inexkecible:
My battery is draining like a waterfall, from 7am (100% )till now (11:50) with normal use, remains 55%!

My Z5C is unrooted, installed whatsapp, linkedIn, trucaller, bet365 and greenify that closes everything except whatsapp and truecaller.

I don't know whats happening!!!! And my OTG doesn't work also, well not even on MM. its strange.

And I already Factory "reset'ed" it, but still the same drainage.
[Xperia Z5 Compact General] WWeltmeister:
Also experienced massive battery drainage. SOT <2 hours and als draining in standby.

For me, this was completely fixed after a factory reset, rooting with phh's superuser and using Rootkernel (yes: DM-Verity, Sony-RIC, DRM-fix & TWRP):

https://superuser.phh.me/

https://xdaforums.com/xperia-z5/development/root-automatic-repack-stock-kernel-dm-t3301605

Let me know if you want me to share the boot.img for .378, there are already some being shared I believe...
[Xperia Z5 Compact General] NeoBeum:
I disabled everything I could and restricted almost everything that wouldn't cause Settings to crash

[IMG="Batt R E"]http://i.imgur.com/vhLdFrlm.png[/IMG]
[Xperia Z5 Compact General] Bobzee:
It is likely that Sony did indeed pack up many services or elements in the "Phone Idle". I am no longer concerned about it as much as I am about google play services and wakelock drains.

BTW how much screen time did you have when you took that screen?
[Xperia Z5 Compact General] NeoBeum:
I can't remember from memory, but it was marked as 7%.

Adaptive Brightness was set at around 20%ish - was just using the slider.
[Xperia Z5 Compact General] dario2510:
IMHO battery life is worse with N than MM.

I've done a clean update and root with supersu. I've heard that this might cause drain and i tried using superuser, but after flashing kernel it says thant there were no root permissions.
[Xperia Z5 Compact General] WWeltmeister:
Make sure you download the phh's Superuser app from the play store!

1. Clear system, Flash FTF

2. Flash boot.img

3. Flash superuser.zip

4. Download PHH's superuser app https://play.google.com/store/apps/details?id=me.phh.superuser&hl=en

If you still have problems with the root permissions check your boot.img file
[Xperia Z5 Compact General] NeoBeum:
I had a look at my log and restricted a few more Sony and google apps, I have about 190 hours standby now
[Xperia Z5 Compact General] Lethien:
Hello,

I am trying to flash my Z5C with Nougat 7.0 build .378

I've followed the entires steps, in fact, I can root my phone with SuperSU, but it drains so hard my battery, that's why I decided to flash with phh superuser.

Once I've created the boot.img with the instructions. I flash my stock rom, fastboot flash the boot.img and the DK.ftf but when I boot my phone, it seems to be not rooted.

I'll explain better, once i've booted my phone, I've downloaded the Phh users apk and twrp apk. But when I launched the phh apk, nothing special appears, when I launch the twrp apk, I can't allow twrp to take the root, nothing appears.

If anyone have any suggestions,

Thanks,

regards

EDIT : I tried with your boot.img and I don't know why, it worked ! I'm rooted, so thank you again mate
[Xperia Z5 Compact General] Deflow:
Hey,

The first two weeks battery life was +/- average, a bit worse than marshmallow but still usable. Could get easily 3 hours of Screen On Time with mobile data enabled, sometimes even wifi with good signal.. But as of 3 days ago the battery life is terrible, can't get even 2 hours Screen On Time and the phone heats up pretty fast. I have manual brightness, set to about 50%. Not playing any games, the only apps I use is whatsapp, messenger and time to time Chrome/ reddit application.

Screen computer power use 362mAh / Phone idle 180 mAh / Cell standby 87 mAh

Version 7.0 / Build number 32.3.A.0.378

Any tips on how to fix the battery drain?
[Xperia Z5 Compact General] fund94:
at least, all fine!

Thanks so much guy!! i installed the last day the firmware again (.378) with my DRM and your img. Works like a charm, the battery comes again to work well. Of course i installed xTemperature of this topic( https://xdaforums.com/xperia-z5/development/mod-smartemperaturex-best-balanced-s810-t3438890 https://xdaforums.com/xperia-z5/development/mod-smartemperaturex-best-balanced-s810-t3438890), thanks [MENTION=4990132]panecondoin[/MENTION] and of course the creator of the mod [MENTION=5627933]androidexpert35[/MENTION].
[Xperia Z5 Compact General] Lethien:
Hi guys,

like [MENTION=5481719]fund94[/MENTION], I've flashed the boot.img and my drm key. Currently, my phone's battery increase a lot since the battery's drain of SuperSu (ChainFire). Since yesterday, it's much better !

Thanks [MENTION=4990132]panecondoin[/MENTION] and [MENTION=5627933]androidexpert35[/MENTION].

---------- Post added at 11:32 AM ---------- Previous post was at 11:31 AM ----------

Are you rooted ?
[Xperia Z5 Compact General] fund94:
[MENTION=5208211]Lethien[/MENTION] of course, i have rooted the phone and with the bootloader unloocked
[Xperia Z5 Compact General] Lethien:
Many users noticed a huge battery drain with superSu (myself include), after flashing Phh User instead of SUPERSu, I've gained a good amount of battery so I'll suggest you should try this
[Xperia Z5 Compact General] WWeltmeister:
After a week of ok-battery life it's back to being terrible again. I use the DRM fix, because I lost my key. Could that be an issue?
[Xperia Z5 Compact General] Bobzee:
Unfortunately, I've started experiencing very strange drains and overall, my devices feels like it really needs a re-flash or reset at this point.

Last night I left the device with about 45-50% left and plugged it in the cable. In the morning, it wasn't charging and was left with about 20%, which is a huge drain however I look at it. It's quite depressing to have such inconsistent results without much of an explanation, especially without root.

Trying all the hybernation apps like Greenify and Force Doze (both w/o root via adb commands) seems to have actually worsened the drain and who knows what exactly goes on behind the scenes of the OS. It's probably a mess by this point.
[Xperia Z5 Compact General] Deflow:
Uninstalled Facebook and Messenger application as the Messenger had a bug with using cpu for 4 hours straight.. Now trying to using some alternative apps for facebook and messenger and it seems that the drain isn't that huge anymore.. Now it's 1h screen on time = ~20% battery which I think is fine on mobile data.

And I'm not rooted [MENTION=5208211]Lethien[/MENTION]
[Xperia Z5 Compact General] Lethien:
Hey [MENTION=5971538]Deflow[/MENTION], I've never heard problem with Messenger & Facebook application. Maybe you've activate some extra options like "Nearly friends". The app constantly searches your friends near your location. They are some other option like this I think, when you enable this options, you allow the application to consume more and more cpu, more and more battery.

Maybe you should try to disable some authorisation in the app params