yashsingh1/xdaforums huggingface dataset:
[Nexus 5 Q&A, Help & Troubleshooting] legendnexus:
Dear Fellow XDAers,

After years of abandoning my lovely nexus 5, I am back and want to use it as my MAIN phone. But before I wanted to get your overall opinions for some questions I have in my mind...

I happened to find some archived photos of my screen shots where I saw I was getting around 4 hours of SOT (maybe even more!) with KitKat with various roms (both stock and custom) and sometimes with Xposed. Over the years I have replaced batteries ( I always tried to buy the originals, hopefully I wasnt fooled on Ebay) of course none of the batteries last forever.

Long story short, I am on stock latest marshmallow rom as of now with a 2-month old battery, but SOT barely goes over 2 hours. So my questions to you:

1. Any rom and/or kernel suggestions with good battery life. I dont really mind the android version, I am okay from lollipop through Nougat, as long as it performs a solid SOT.​

2. I bought batteries online, which again might be a problem. I would like to know if you know any good source for getting a decent battery.​

I do appreciate all of you for the amazing, continuous Nexus 5 spirit.
[Nexus 5 Q&A, Help & Troubleshooting] VALRCIEL:
battery life i think many factor, like wakelock, kernel, brightness, radio and etc

i'm now dirty unicorn 6.0.1 DU

and using kernel bluspark
[Nexus 5 Q&A, Help & Troubleshooting] krusic22:
I have 2 Nexus 5's... One is normal with CM14.1

Max 4 hours of normal use (screen on time).

And the secound one is modified with a additional battery that I got for 3€ from a friend (Thx Slonek).

https://imgur.com/a/1y3NP

Ill add a picture of the mod later. :)

Edit #1: The modified one is running PureNexus with the blu_spark kernel. Also that was the SOT at 100% brightness.

Edit #2: Updated the gallery with pictures of the device.
[Nexus 5 Q&A, Help & Troubleshooting] luke8800gts:
I am also switching back to my nexus 5. From what I have read in the forum people like the stability and battery life. That will suite me. If someone has a better suggestion let me know! :)

What about the rom? A button in the quick options to switch 2g/3g would help saving battery
[Moto G 2015 General] umo4u:
Hello.i am writing this post after testing many roms so thought i will share my experience.i tested rr cm etc even volte patch but all have bugs so i suggest all to stick with stock as it is stable :highfive:
[Galaxy Note 8.0 (Tablet) General] gooberdude:
Note... the info below is old hat... I have made a breakthrough to breaking the 10 hr barrier of continual usage. Right now it is still in testing phase, will the latest Google Services and Play Store. Will post my final addition next week or so. Stay tuned!

Yes, I just figured out what is needed to get the most out of stock 4.4.2 with the latest google services as of Jan 15th.

The key is blocking a select set of services within play store and play services.

As of recent, Google has disclosed that more integration and services will be added to the upcoming update. So i aso included disabling auto system updates.

So my list of blocked services will include everything needed to keep your device from creating more battery drain and issues later.

Posted an attached file for a disable service. The config file is to restore, and use to auto block your Google Services. Since it covers a lot of apps, it will take some time depending on how many apps you have that are in the list.

Yes, I included within the configuration file, is disabled un needed services in popular apps. They do not break or create errors. Only a few apps may loose sync or notification functionality, but can be undone within disable service by opening the apps services list and selecting the disabled service to enable it.
[Galaxy Note 8.0 (Tablet) General] gooberdude:
Known issues with apps.

Peel smart remote for S5, and for Tab, both have update info pushed to notifications. They no longer do the push through notification, which many users complain about.

Google Geofence service is disabled... no longer are you able to setup a parameter around you to set actions when leaving and entering. Also Maps and other apps that require geofence will not be able to search around your location for active people around you. Though location works just fine, so maps works pretty much like the old way of placing you where you are at, and populating the map with POI Info.

Google Network Location is disabled. Both Google Geofence and Network Location eat up bits of bandwidth and 2% of battery power per hour, no matter if they are used or not. No longer network location will assist in tracking you. Google will rely on GPS only.

Widgets on Google and stock apps, most may not function. I personally dislike widgets as they eat resources, and I can do most anything I need without widgets, and most of the time just as fast.

Google Fileapkintentoperation service, reporting, and measurement service all have been disabled. Don't report any usage back to Google. Does not break paid apps, or play store usage.

Google Sync, on every thing but Calender. Though it does not disable the ability to manually sync google apps. Just because you turn off sync manually, it still is running in background, so removing the sync services keeps things clean.

Google backup services. No need since I use Ti Backup pro

Google package verification, restore, and reschedule services have been disabled in play store. No more pushing of system updates and apk monitoring. I use norton for scanning downloaded apk files.

Some streaming apps may not remember past usage. Blocked some services that track you.

I also use prevent running to keep memory usage low, and keep background apps from running when closed.

Will post a system battery level snap shot and developer system stats to show how things are running, once my battery level hits 5%
[Galaxy Note 8.0 (Tablet) General] gooberdude:
7.5 hrs and 19% battery left

Ok, I can assume with certainly, I can get 9.5hrs of continuous battery time from a single charge.

I tested with screen brightness set at auto, 1 hr of Miracast play back of a 720p video, 1.5 hrs of Miracast playback of two streamed shows from channel apps, 1 download of a 1.2gb torrent file, 1 movie download using vpn and channel app. Used Chrome Dev, Outlook and a few minor instances of other apps. Along with a 10 minute test on sleeping and a 10 minute hibernation, to verify no issues popped up with services disabled.

Here is my 7.5hr battery stats and developer apps stats...
[Galaxy Note 8.0 (Tablet) General] gooberdude:
12.5 hours always on moderate use

Yep, I get 8% battery use per hour with an mix of light app use. Mind you, most all apps I run are not memory resident. As Google and internet pros have led end users into believing that cached and background apps save on power and speed up multi tasking. Bah!

I did not have the time to run my device a full 9.5 hours in my test initially. So i had to cut short and use data to extrapolate that shutting down background un used services and killing cached and background apps have made an 8 hr device into a performance monster that does not eat battery power to do so.

Since then I have recharged and will try a test run with minimal screen time off and random sparatic app use. My calculations are 12.5 hrs max. Given the 8% per hour discharge with screen in auto brightness mode, power may increase as the environment brightens up.

I assume if using power save mode, having blocking mode on, and with grey scale enabled, my device could achieve 15 hrs always on run time. The only real way to break the 15 hrs always on run time would be to go into airplane mode or and have the display turn off when waiting, but never sleep.

This is all based on a 1% every 10 minutes discharge rate to be able to keep above 15 hrs constantly on run time.
[Galaxy Note 8.0 (Tablet) General] gooberdude:
Oops! Forgot to add

I don't reboot much, but realized some may shut down or reboot time to time. If a reboot is done one key component resets time to time on a reboot. Just go back into disable service and open google play services and search for injector. You will see two, but one may be disabled. Just disable the active one and It will take care of the Google services that had started in background. If both are active, something got reset in play services that helps re enable the injector service. You can restore the disable service backup and it should clear up any reset services. Though it will change what services you changed in apps that you needed a service to run. So be sure once you make a change, to back up, so if you need to re apply my play services settings after a restart, it won't undo any of your changes.
[Galaxy Note 8.0 (Tablet) General] gooberdude:
As an update... I do get 1 hr of use per every 8% of battery. It took a few discharges and full recharges to have the device recalibrate after doing my disable service setup to kill services not needed and Google play services that eat battery and performance.

I have done a few changes, but they seem to make a minor significance. Once I am done playing around with some tweaks and verifying, I my post an updated config backup, if they turn out to be improvements.
[Galaxy Note 8.0 (Tablet) General] gooberdude:
DELETED

======#Deleted#======
[Galaxy Note 8.0 (Tablet) General] gooberdude:
Update... 12 to 10 hours continual use on a single charge!

Yep I was board with Saturday Daytona rain... so what better to test my latest tweaks with the latest Play Store and Play Services.

Had to do a bit of digging, as there are many more services that I don't need but may come in handy later... like Google Pay, Ha! ? what a joke! Well actually with every freaking iteration of Google's services and Play Store, one hopes they don't muck up the mess by fixing, or hosing something you expect to run smoothly and efficiently. There is more to it than just way too many services running in background. It's about how the services run cleanly and not become a load when not used.

Well here it is... over 54 services killed in my list! With only one issue... Maps when promptly closed will error, but it is a visual annoyance if anything. So, don't close Maps before it runs for 30 seconds, or you will error closing.

Also don't try and send error reports or debug info, as they are not going to happen!

For the most part manual syncing within google and tied in apps are intact, but most all auto syncing is disabled.

Will post my latest and greatest DisableService backup config for everyone's use, once I go over a few test runs with reboots and other what nots.

Remember to kill History Injection Service manually after each reboot or wait for the reapplication of the backup config to complete.

Finally I see all the speed and battery improvements that KK once touted as major improvements over JP. It was a crying joke that lasted till now.

Only if Google and Samsung would make a tablet work as a tool not a smart phone, then the benefits of using a tablet for intensive tasks will out weigh getting by with ones pocket phone. This is what students need for their devices to be a 100% duty cycle device under high demands during a days use. No tablet can match that while being forced waist battery and resources for Google analytics, tracking, and social media tie in. Tablets are tools not some monkey device that most peeps have in their pocket!
[Galaxy Note 8.0 (Tablet) General] gooberdude:
Almost done!

11.5 hrs is currently obtainable on continuous use on a single charge, without Tasker, any battery apps, and greenify. With overlay disabled and forced GPU acceleration. Both are battery draining options, that nobody will enable when going for extending battery times.

I am trying my best to keep PlayServices down to 15% at device idle. It seems that the kernel with play framework will use 5% no matter what I do. Right now the bottle neck to obtain 12 hrs is what version of PlayServices you use.

I am not going to mess with testing each iteration of play services to get 12 hrs of continuous battery use on a full charge.

To obtain the best battery consumption, one may want to tweak their network by use of a sysctl.config file or shell script to run in init.d or smanager. I find ports waiting to end or close will eat at the battery by how the network or should i say by PlayService's active polling.

I find terminating after 45 seconds of waiting instead of 15 minutes more beneficial to longer battery time. As a wee cpu hit, it is not bad, but it compounds cpu hits by making throttling push the cpu at higher levels than without the polling of closed port termination.

You can watch what i explain when watching cpu performance, by turning on block background data while running a few apps, and comparing to the same apps while block background data is disabled. CPU stats will level off faster and be less prone to hit higher speeds when throttling.

As with my original statement, you will need to kill the locationhistoryinjector service as Google PlayServices will enable it at every boot. It Is a key component to find my mobile and device manager.

My config files disable device manager and find my mobile, along with tracking and Google background data.

What you end up with is a cleaner android that is mostly disconnected from Google, yet able to function better and use paid for play apps without issues, outside of some options tied to google services.

I included my app ops config along with my other updated configs. You will need to remove the .txt extension from the prevent.list and move it in the sdcard/android location for the piebridge app files folder.
[Galaxy Note 8.0 (Tablet) General] gooberdude:
Done

I removed all previous attachments on my config backups and posted the latest config backups that kill most of Google's chimera functions within android without breaking play store. All services in regards to NFC, Google Security, network location, automatic background sync, and system usage monitoring have been either disabled or hindered, to eliminate performance degradation and battery consumption.

What you get is a sleek fast running OS, that rivals any custom kernel. Believe me, I used what's available here for mods, and found through trial and error, the best method in keeping overall functionality is to slim things down by using the three apps I have configured.

Most feel what is the point to all this... well disabling features in settings, does not stop google from running the services in background. They run and are tied into other services you may use. Once manually disabled, you may find a service you use fail because it relied on the background service google uses to track and monitor. It is not a matter of killing your favorite app, it is a matter of using an app that does what you need privately and without need of so many background services hogging up resources. Google apps are not the best, just give you options in one package, which some like as to being simpler than having to switch between apps.

I may not be as fast as a custom kerneled device running at 1920mhz or throttled down to 100mhz with profiles enabled, but in all aspects to smoothness and overhead generated by kernel manager apps, greenify, Tasker, and amplify... what gains with customization are lost, compared to what you find in my simple yet very effective method to free your device from Google's constraints.

To be secure in apk installation I use Norton, by unfreezing it before installing apps. Then freezing when done.

For device security, I recommend what ever 3rd party apk meets your needs. As you cannot trust google or samsung with device management. You may find a paid app to perform the job, as most free ones will tie into Google's management or location api system, and fail to function. They must use their own set of services, to hook to existing features not Google's services api.

As for NFC this device has none, so it is a mute issue. Syncing of tied in Google services for social and messaging apps, deal with it... your phone should be primary for syncing. It only takes a quick pull down to sync if you are busy within an app or multi tasking.
[Galaxy Note 8.0 (Tablet) General] gooberdude:
One last update

I removed another set of backup configs.. luckily nobody got to them as they were intentionally placed a few replies previously. I do such things to keep peeps on their toes as to know what they are doing by actually reading first!

So... what prompted my change was my error log on certain functions and booting.

Made a wee change to clean up errors without loosing performance or battery gains from my weeding out services and background processes.

Also somewhere in my configs a while back locstionhistoryinjector stays disabled. So this Is a set it and forget it deal, no searching for the blasted service to disable after each reboot.

Alright here are my backup config files along with my frozen apps in screen shots. Missing are... ringtonesbackup and a number of widgets that were permanently removed. Also I have included other side loaded apps that are not part of our stock firmware.

Here is a wee trick nobody talks about... when you shut down or reboot, turn on airplane mode before you do so. Reason being, when the device starts up, it will only take 3 minutes from boot to home screen to fully recover into system idle. Once system is in idle, turn off airplane mode. It helps with less lag and a few apps from trying to gain network access during boot, and slowing down system boot tasks. Once network is operational from disabling airplane mode, the apps in my prevent run list will not wake for network access, until launched. Pretty cool beans, aye!

Also as another trick, because play store sends data when removing apps, I recommend using TouchWiz app removal in the app drawer to remove apps, as it does not send data to do so. Ti Backup does good as well, but depending on its settings may communicate with play store to update play store info.

Currently you can have up to 15 hrs of continuous run time with wifi and screen on during idle. Though I imagine about 2 days worth of mp3 playback time when screen is left off, as a player only, and no other app like Dolby Audio to tweak compressed audio.
[Galaxy Note 8.0 (Tablet) General] gooberdude:
In my previous reply i found some errors, and removed some attachments.

I have replaced my disable service backup config with a super modified one that give superior operation by removing tap and pay, fit, NFC, proximity, wearable, and allowed some main sources of required services to run, but made the secondary services associated with them disable, to make the primary service ineffective and keep polling down.

I assume either wearable or health have been a major cause to battery drain since KK was introduced. If you look at the txt file, there are about 100 sub services within the play services service that I disabled. 2x as many as I provided before.

Even though some of the services i have tried to combat from effecting the performance and optimizing battery for longer use, the few I had removed being blocked from running, don't seem to have much effect when their codependent services are disabled.

So, what I get is.. OS using 3% to 4%, Android system 2% to 3%, and screen using 94% to 95% of battery power at idle while the screen is on, and waiting for activity.

Though i will have to redo my screen shots for frozen apps, as i had used a testing config for frozen app effectiveness.

Some apps like Google contacts sync must be removed, as It is an evasive sync service. Samsung is not that way with all of its sync services.

What my super modified file does, is unleashes Android 4.4.x power of operation. For the first time with KK, I have eliminated stuttering and multitasking is more like what it should be with background apps or media being ran during tasks. It is the closest thing to running naked KK, but you have full ability to operate paid for apps and apps that require the latest play services.
[Galaxy Note 8.0 (Tablet) General] yweising:
so may i know what are the detailed steps in order to enjoy this battery trick? rooted device with xposed?
[Galaxy Note 8.0 (Tablet) General] gooberdude:
Yep, I had to root my I467 with kingo root with a PC connection and install super su before removing kingo root.

I will post a revision to my settings soon. I found that I over did keeping google services from starting. So my new method is minimized to allow most all newer technology work. The only big things I killed are Chrome cast, as it is huge and really eats up battery. Thank god for Samsung ' s method to make miracast a user enabled service, not a constantly running one. Geofence and geocode as they are always running as well, and have little use for daily activities. I would think virtual gear Wil need it, but i live my life in the real world around me.

Again, I killed system updates, and some automated sync services that run constantly no matter if you have them disabled in the account.

The only drawback is maps will error if you don't wait for location to lock and the app has been running less than 30 seconds. Plus Network location will always be disabled.

I am finding my latest settings to be best all around.

Will post them by the end of the week.
[Galaxy Note 8.0 (Tablet) General] gooberdude:
I have made my disable service less restrictive as the main culprits to battery drainage can be stopped and kept from running without need to add more to the list on google services.

You will not be able to use geo code or geo fence, device manager, nearby services as Samsung's services are better and dont eat battery when not in use, apk ad and anyalitics, self update, chrome cast as it runs and consumes battery even if you dont connect, location history and sharing, network location, place detectioh, and some internal reporting services, along with some sync options in account... but you will still be able to auto sync gmail, photos, drop box, calander, and contacts.

It allows for the most robust google services to still be active, such as fit, wear, notifications, internal messaging system and tap and pay.

You go from over 8 minutes of activity after reboot down to 2 to 3 minutes of cpu activity depending on what apps you run and allow to load in memory.

Just download disable service from the play store, restore the backup file from the internal sdcard and wait for confirmation.

You will need root!

Xposed has two modules that I like to use both backup files are in my previous reply, a few back. I suggest after installing prevent run, to go into the android folder and find the piebridge folder near the bottom and place the backup there, and remove the txt file extension. Once you reboot to activate the xposed module, the app will see and load the backup, before replacing when you change the settings.
[Galaxy Note 8.0 (Tablet) General] gooberdude:
Closest to making google services not eat battery

Here my last option to rid battery consumption.

I blocked most all of the internal services that deal with sending data back to google. A revised plan that started with killing the major services first instead of attacking bleeders as in pruning twigs from a branch. I went after the big branch first. So I was able to do more than before in smoothness and least amount of battery drain.

I think I left all the automatic sync still intact, as the reporting branch was more a problem, along with GMS services. Then intents to enable the services, and some upload syncs to kill off 90% of the reporting all together.

The only reports back are analytics and GCM with some GMS tied in. Google Mail and Maps function, but network location, places and geofence features are broken. Mainly because they leak data all the time.

The reason I had to attack my google services deeper, is because History Channel app needed some anti jitter done, as the new app would show a skip every so many seconds of play back.
[Galaxy Note 8.0 (Tablet) General] yweising:
i managed to flash back to 4.2.2 yesterday, will test it for few days after few cycles of battery charge. might test your backup file if it still cant stand for 6hrs. :)