yashsingh1/xdaforums huggingface dataset:
[Galaxy Note 4 Accessories] TheLoneWolf20:
It may, but for right now I am just going to work on the app considering its the only thing right now that seems to work well right now. I am trying to destroy the 30 second polling interval that the Kernel does to communicate the Percentage to the power_supply/capacity file. Once I do that, I can basically set my very own battery percentage which would allow the Software fuel gauge app to poll that file instead of the IC Chip.
[Galaxy Note 4 Accessories] TheLoneWolf20:
Just another day of testing. I still haven't found the string that controls the polling of the fuel gauge chip to the (/sys/class/power_supply/battery/capacity) yet. I do know that it polls battery statistics to that file every 30 seconds when on battery and every 10 seconds when charging. Right now I am redirecting the fuel gauge app calculated data to another file in the power_supply folder which is being transferred to the capacity file by a white true bash loop init.d script. I made the sleep polling time to 0.005 seconds to keep usage down as well as keeping the phone from getting warm like before (And yes it does make a difference), but it is enough to overcome the polling of the fuel gauge done by the kernel. Once I turn off the kernel fuel gauge driver polling, then I will be able to do away with the init.d script and tell the Fuel Gauge app to go directly to the capacity file. The only other issue I face right now is in the app itself where I am trying to get the app to set the initial capacity of the battery to 10,000 mAH. Anytime I go over 5,000 mAH, it defaults back to 1,500 mAH, but I should be able to fix that soon. Nevertheless, I may release a Alpha version of this with the init.d script running once I fix the initial 10,000 mAH capacity issue. Installation should be fairly easy. I will put the init.d with the BioShock kernel which you will need to flash in order for the mod to work with the app. As for the App itself, I won't put it in with the Kernel just yet as I am still testing it, and it will make it easier to update going the regular update method.
[Galaxy Note 4 Accessories] sivartd:
I have to agree with you on this. I have purchased this extended battery and the longer I have thought about it, the madder I bexome. To use this battery properly, the way they say to charge and discharge it, you will become a slave to the battery until the 4-5 full charges and discharges.

What I mean is, I have to use this phone for my work, and to fully discharge, they want you to drain it down to 1%. At 1 %, you cannot really use the phone. And so on and so on. Then, you have to plug in for a full 12 hours. Without using it while you are charging.

Who has the time to do all this? I guess if your stuck at home for weeks or so, and have a backup phone to use, this battery is for you.
[Galaxy Note 4 Accessories] TheLoneWolf20:
If you read previous posts, we already know the problems of the battery and the problems of following their instructions and how inaccurate they are. It isn't really anything new. There are enough people that have cried and complained about the problem, we don't need anymore of that because WE ALREADY KNOW. That's why I am taking my time to come up with an alternative solution for those who (Despite the dilemmas) still like the extended battery and doesn't want their money to go to waste. Anyone can continue to cry about it, but only a select few can cry about it and also sop up the tears and come up with a solution to a problem, or just use the stock battery. And what do you expect from a 10,000 mAH battery when it comes to recharging it from Zero? It to take 4 Hours? It has to recharge the full 10,000 mAH so its going to take time. That's why you are supposed to use a 2.1 amp charger. It would take at least 9 Hours to fully charge with a 1.5 Amp Charger, longer if you use your phone while charging, so that's basically common sense. But you wouldn't have to charge the thing all the way to achieve the same usage as a stock battery. Even if you charge up the battery half way, you have over a stock battery and a half of charge.

But the point is that we already know that the battery has issues and going back and forth about how bad it is isn't really worth posting because its been posted before.
[Galaxy Note 4 Accessories] sivartd:
I get it, it seems as though I'm belly achin' and cryin' and whining but i take full responsibility for my actions. I bought it, thinking I could get that 2 1/2 to 3 day charge, but I didn't want to put in the effort on my part, and let's be honest, I wanted a quick fix and big bad battery.

I hope someone will learn from my experience.
[Galaxy Note 4 Accessories] TheLoneWolf20:
More progress, I have successfully turned off the 10 sec (charge) / 30 sec (battery) Polling to the power_supply/capacity file done by the Fuel Gauge chip by trial and error and setting a couple of values in the sec_battery.c file in the kernel to true instead of false. I re-directed the app to go directly to the power_supply/capacity file and the app finally accepts the changes and is using the app as the fuel gauge chip driver which eliminates me using the "while true" loop. I am still testing stability on this. Only thing I need to work on is making the last percentage value made by the App stick on the power_supply/capacity file so when you do a reboot or shutdown, it doesn't jump to 100% and then adjust. Once I get that done, I may let some of you guys test this out.
[Galaxy Note 4 Accessories] TheLoneWolf20:
Some images. I still need to make the app calculate up to a 10,000 mAH battery, it currently goes to 5,000 mAH but I have compensated the drain values for a more accurate calculation. I also want to change the Units to mAh from uAh. I understand why the use of uAH instead of mAH when it comes to setting the values for a more accurate drain calculation. Its only 3 zeroes added after the mAH. So if you have a drain of 55 mAh, the uAh value will show 55000 or 55,000. But I think that's minor.
[Galaxy Note 4 Accessories] 901-Memphis:
That's a pretty sweet battery, i am looking at getting a new phone and sometimes choose what i want based on what batteries or accessories are available.
[Galaxy Note 4 Accessories] JOSHSKORN:
You really need to do your research as I and others found out the hard way, extended batteries seem to require root to function properly, not something you're gonna get on the AT&T and Verizon Retail Note 4s due to a locked bootloader. Look into DE phones.
[Galaxy Note 4 Accessories] ConorCulhane:
Haha yes!! I bought the zero lemon for my note 4 and while I love the performance and battery life, the phone is literally a brick in my pocket! :o
[Galaxy Note 4 Accessories] TheLoneWolf20:
Or T-mobile Phones

---------- Post added 8th June 2015 at 12:00 AM ---------- Previous post was 7th June 2015 at 11:57 PM ----------

But yes, you would need root for this fix to work since you are flashing a kernel.
[Galaxy Note 4 Accessories] TheLoneWolf20:
Looks like the modified app is working well. I need to go into code again and do some tweaking.
[Galaxy Note 4 Accessories] Exxodium:
I assume this isn't going to work on CyanogenMod, is it? Seeing as all I've seen are TW screencaps so far.

Been running my ZL on CM12.1 and everything works great but sitting at 1% forever with no indication as to when the phone is actually going to kick the bucket is a little annoying.
[Galaxy Note 4 Accessories] TheLoneWolf20:
As for CM ROMS, the App will work, but I would need to change the battery file in the AOSP Kernel for the app to forward the values which I can do once I get everything stable on the TW first. I am just sticking to TW for now since I don't want to flash to CM just yet. But don't worry, I haven't forgotten about CM users.
[Galaxy Note 4 Accessories] Exxodium:
Awesome. You're a legend for giving us ZL users a fix!
[Galaxy Note 4 Accessories] jayden485:
If you need any testers, don't be afraid to ask me!

EDIT: Just a quick question, from what I understood, you got it to calculate the percentage remaining, by monitoring the usage in mA? Will this be accurate though?
[Galaxy Note 4 Accessories] unibomber:
Anything will be more accurate than what the phone shows now lol
[Galaxy Note 4 Accessories] jacob808:
You only have to recharge from 2% back to full for 12 hours only on the very first charge after having depleted to 2%. You don't have to do it for the first 5 charge cycles. The 2nd full charge cycle you can just keep it on the charger until the full charge green light comes on which takes about 4-5 hours to fully recharge, so you can do it when you go to bed and have a full charge when you wake up. You don't even have to do a 3rd, 4th, or even 5th charge cycle, that's optional as the battery has already calibrated on the first and most likely the 2ND cycle.

As far as the battery being the same as stock before having to do a battery pull, no way! The zerolemon last for a full day of MASSIVE use and you still won't bring it down to 50% before bed time. Try making video calls with Tango and playing virtual reality with the Gear VR on stock battery. You'll have to recharge after half an hour. Not with the zerolemon.

After 3 hours of constant gps bike trail recording, Tango video call with my girlfriend, and half hour of virtual reality my zerolemon is still at 83% and I'm confident enough that I didn't bring my charger with me on my bike adventure, because all I have to do is pull the battery at about 50% and it'll jump back up to 85% giving me another 3 to 5 hours of HEAVY use effectively giving me plenty of juice for my trek home where then I can charge with all plenty of remainder power left in the battery!

Also the case of zerolemon is way better than MYRE in my opinion just because of the plastic skeleton which is crucial for protection with the added bulk mass of the extended battery.

I'm so happy with this battery I want to buy another before they stop making it, although it would be unwise just because batteries have a shelf life.
[Galaxy Note 4 Accessories] TheLoneWolf20:
I am still working on the polling issue. It doesn't affect anything major, but it causes the graph to go up and down like shown in the pic on the left side.
[Galaxy Note 4 Accessories] TheLoneWolf20:
Alright guys, I have officially broken the Polling to the power_supply/capacity file by changing the strings in the sec_battery.c file. Apparently the ANDROID_ALARM_ACTIVATED values handle the polling of the battery. So that issue should be knocked out and you can now be able to set the capacity percentage to whatever you want to and it will stick without defaulting. Right now I can continue with Testing. I also made the app go up to 15,000 mAH battery so you can user adjust it.
[Galaxy Note 4 Accessories] divineazn716:
sounds awesome lonewolf! so how do i go about doing what you did? lol is there an app or something?
[Galaxy Note 4 Accessories] TheLoneWolf20:
Yes there is a app to install but I will include it into a Flashable Kernel ZIP.
[Galaxy Note 4 Accessories] dam90042:
You're awesome brother! I have stopped using my ZL going on 2 weeks. I had the battery since release and finally got fed up with battery pulling. Before updating to Lollipop, a reboot or power off would do just fine to reset the battery reading.

Will your zip work for the Sprint version of the Note 4?

Again, thank you so much for your hard work!!
[Galaxy Note 4 Accessories] TheLoneWolf20:
It would work, but Sprint, Verizon, and AT&T lock down the bootloaders of their phones which prevents you from changing Kernels. Only the T-Mobile and the international versions will work at this time.
[Galaxy Note 4 Accessories] dam90042:
No looked bootloader here

Sent from my SM-N910P using Xparent Green Tapatalk 2
[Galaxy Note 4 Accessories] TheLoneWolf20:
Oh then sure as long as you can Flash Kernels. What Kernel are you using?
[Galaxy Note 4 Accessories] TheLoneWolf20:
Alright, going to see how this test works. The polling fix isn't perfect, but it only causes problems when charging which only messes up the graph. It's not a really big deal right now but its better than before. Also, I have gone into the app and found the string that was limiting the app from going past 5,000 mAh. So now you can set it up-to 15,000 mAH although I have limited the seek bar that controls the different mAH temporarily. I should be releasing some Beta versions soon. Also, you can close the app and it will run in the background as a Monitoring service. Of course, I didn't change the units so just remember that uA/h is just the mAh + 3 Zeroes and uA is just mAh + 2 Zeroes.
[Galaxy Note 4 Accessories] jayden485:
Is it possible that this could lead to overcharging the battery? And what values are you relying on to calculate the battery %.

---------- Post added at 01:02 AM ---------- Previous post was at 12:48 AM ----------

Sorry for the double post, but when I charge this, will it fully charge it without taking the battery out and resetting it? e.g. It says fully charged but when I pull the battery and put it back in, it only says 58% or something, or does it actually fully charge, so when I pull the battery and put it back in, it says 100%? Or does it actually continue to charge even when it says 100% because it isn't actually charged?

Sorry if these are hard to understand.
[Galaxy Note 4 Accessories] TheLoneWolf20:
This mod won't overcharge the battery as the circuitry in the phone won't let the battery charge past 4.60 Volts. Also, this mod works apart from the Fuel gauge driver. The fuel gauge driver will still be working to give temperature, and voltage for the charger as they read accurately already. The fuel gauge IC chip accesses the current battery and processes the data to forward it to the sys/class/power_supply/battery folder. We call this forwarding of data "polling". It is in that folder where different files containsl your voltages, percent capacity of the battery etc. What this mod does is it stops the polling of the capacity file from the Fuel gauge IC which gives you the percentage of battery life and instead gets the value from the Extended Battery app which will give a more accurate readout.

Now getting back to charging, The battery isn't fully charged when it says 100% but when it says unplug charger. Also, if you download a battery monitoring app, a full charged ZeroLemon battery has a voltage of 4.3 volts. It peaks at 4.8 volts when charging. A dead or 0% battery is indicated at 3.4 volts. That's when the phone shuts down.
[Galaxy Note 4 Accessories] jayden485:
Alright, Thank you for clearing that up, is it possible for this to be implemented without having to flash a different kernel? The only problem is I have a 910G, and not many people have this. Even if you released a way to implement it into our own kernel, it would be appreciated.
[Galaxy Note 4 Accessories] TheLoneWolf20:
Sadly no. You would need a unlocked bootloader for it to work. 910G what carrier is that phone for?
[Galaxy Note 4 Accessories] TheLoneWolf20:
Doing testing and everything seems alright. And yes I did fully charge this battery.
[Galaxy Note 4 Accessories] dam90042:
I am on the Emotion r 15 kernel
[Galaxy Note 4 Accessories] jayden485:
I'm not sure about bootloader, 910G is the 910F but with one extra LTE band I think. I have it rooted and everything, custom recovery, custom rom, it's just that there is only like 2 kernels for this device, and being able to implement your fix into a custom kernel already made for it would be great. I have the Optus variant if that is needed (which I don't think it really matters).
[Galaxy Note 4 Accessories] TheLoneWolf20:
Oh then it should work. This mod WILL work if you can flash custom kernels and have root.
[Galaxy Note 4 Accessories] dam90042:
That I do! You're awesome brother. I can hardly wait!!

Sent from my SM-N910P using Xparent Green Tapatalk 2
[Galaxy Note 4 Accessories] divineazn716:
hey im on the emotion kernel as well, it wont disable the emotion kernel, will it?
[Galaxy Note 4 Accessories] TheLoneWolf20:
I have tested the mod on the BioShock version so that will be the first to be released. I just got the Source Code for the Emoticon Kernel and that will be next followed by the AOSP version of BioShock. I will try to make another thread about the mods for ease of access. But for now, I probably won't release it tonight, but tomorrow for testing. This won't be a official version but a test, because they're some things that I need to work on and test before release. But making and compiling the kernels isn't a big deal since its just replacing 1 file.
[Galaxy Note 4 Accessories] TheLoneWolf20:
Looks good to me. Who has ever had 95% battery life with only 5 hours of off charger time and 1 Hour of Screen on time with a ZL Battery?
[Galaxy Note 4 Accessories] TheLoneWolf20:
Alright, I have created a new thread for this mod if you want to go ahead and populate that one. http://xdaforums.com/note-4/unified-development/reserved-zerolemon-fuel-gauge-fix-t3131705
[Galaxy Note 4 Accessories] 901-Memphis:
Well i ended up getting a Note 4, and i also have a Mugen Power 6640 mah extended battery on the way, should start testing it this weekend and will probably do a write up here like i did for the HTC One mugen case. It's going to be sweet. I am having a hard time locating a case for this, i think i found one though.

Here's the case i am looking at - http://www.amazon.com/Extended-Hyperion-HoneyComb-Warranty-Packaging/dp/B00QVU144E/

Hoping it fits this battery

https://mugen.co/mugen-power-6640ma...-samsung-galaxy-note-4-with-battery-door.html
[Galaxy Note 4 Accessories] TheLoneWolf20:
Here is the beta release http://xdaforums.com/note-4/unified...on-fuel-gauge-fix-t3131705/page2#post61330944
[Galaxy Note 4 Accessories] Mchi5:
Believe it or not I read through every post on this thread and bought the ZL. I'm very disappointed because I have the AT&T note 4 so cannot root it. So hate how the battery percentage is all messed up.

Because of that and how heavy and bulky it is I have decided to return it to Amazon. I wish mophie or some other Battery case maker would have came out for the note 4
[Galaxy Note 4 Accessories] naimmkassim:
If im not mistake, note 3 ZL does not have the same issue like note 4 ZL..both ZL have tri cell right? So what is the problem here? Lollipop cause the issue??
[Galaxy Note 4 Accessories] Mchi5:
You are correct. I had the ZL on both the Note 3 and LG G3 before and neither of those had the issues the Note 4 has. Both those (note 3 and LG G3) worked perfectly if I remember correctly

Did someone mention it is due to the fast charging of the Note 4 or somethings

else. Whatever the reason it is very annoying. I've used other extended batteries like Anker and Hyperion and they all have the same issues
[Galaxy Note 4 Accessories] naimmkassim:
But i already disable the fast charging since 1st cycle..today is my 3rd cycle..still its annoy like hell..1 % battery last like 10 hours..my note 4 is nearly useless, screen dim unable to use outside, camera also cant be use..[emoji36]
[Galaxy Note 4 Accessories] Mchi5:
Yeah super annoying. Only way around it is to root your note 4 to keepkthe screen from dimming. but if you're like me and onoAT&T I cannot root it.

Another way around the dim screen at 1% is to pull the battery. Wait a few minutes and restart phone. It will magically jump to like 20-30% battery. But still Hella annoying to pull the battery every 2-3 days

I could live with the extra heft and size if it worked correctly. But since it doesn't I can't and am returning it this week
[Galaxy Note 4 Accessories] TheLoneWolf20:
Again if you guys read the last 20 postings about this issue, it has NOTHING to do with the Software or Operating System but the Fuel Gauge Chip. The Note 3 uses a different fuel gauge chip with Dynamic Calculation. The Note 4 uses a Max77843 Fuel Gauge Chip which does Atomic Calculation which doesn't read tri-cell batteries well because of the voltage variations of the different discharging cells, and on top of that, the fuel gauge chip doesn't learn the battery values like the Note 3 does. You guys just need to be happy that the Note 4 Sees and accepts the battery. Again, you guys know what you are expecting when you buy the battery by looking at Reviews on XDA and on Amazon (even I put out a long review about what to expect about the battery), so be prepared for the problems that come with it. I already made a mod for that issue for those who can root and flash different kernels and by some of the reviews I am getting, it works quite well. In my point of view, I rather have a 10,000 mAH battery that doesn't read the correct battery SOC and still maintains stability and gives me 3-5 days on a charge without having to switch batteries or charge it every day under heavy usage.
[Galaxy Note 4 Accessories] dator97:
has anyone had any problems on the second full charge mine seems to be stuck at 99% on charge for 15 hours
[Galaxy Note 4 Accessories] Mchi5:
I personally have not. That is weird. Do you have any of those battery monitoring apps installed? Because I've found some of them stop it from charging past 100% I had to disable third party battery apps or uninstall them completely
[Galaxy Note 4 Accessories] dator97:
no battery apps
[Galaxy Note 4 Accessories] Warnahly:
today received my zerolemon, now please provide instructions that helped you have the full advantage of the battery.

now i installed it and leaving it 12hours charging. now what to do next ?
[Galaxy Note 4 Accessories] dator97:
after charging for 12 hours drian it to empty then recharge it fully do this around 6 times make sure fast charging if off
[Galaxy Note 4 Accessories] JOSHSKORN:
I have to say, after getting my replacement for my ZeroLemon, the case is MUCH better. I disassembled it and I can't figure out why it is, if they gave me a pre-owned case or what but I now have zero problems accidentally pressing the buttons like I did before.

As far as the charging is concerned, though, it's still the same. I was attempting to root my phone, but I got stuck on a step and I'm still waiting for a reply on the appropriate thread.
[Galaxy Note 4 Accessories] dator97:
i found it it takes me 15-15.5 hours to fully charge from a dead batttery does anyone know if this is normal?
[Galaxy Note 4 Accessories] Mchi5:
So the above method you mentioned, fully discharging it and charging it fully 6 times, should condition the battery? Even on a non-rooted note 4?
[Galaxy Note 4 Accessories] dator97:
rooted not rooted not much differnce on battery life from what i understand but im no expert
[Galaxy Note 4 Accessories] Mchi5:
Sounds good. I'm no expert too guess why we all come here. I messed up and removed the battery a few times so now have to recondition it all over again

When you did it did the Note 4 seem to read the battery percentage much better and more accurate? 6 full can take up to two weeks!
[Galaxy Note 4 Accessories] dator97:
idk about that all i know is th chip reading the battery doesnt like tri cell batterys so when it gets down to 1% its really like 20-25 percent or at least for me if you dont wanna see the 1 % for extended period of time remove battery and reinsert it will read rest of the batt life
[Galaxy Note 4 Accessories] Mchi5:
That's what I've been doing. Trying to condition it for 6 full cycles, especially living at 1% battery for like 10 hrs with the damn screen dimmed so low is annoying. May just have to resort to pulling the battery from time to time...
[Galaxy Note 4 Accessories] manbat:
I never pull the battery....just turn your Note 4 off(not reboot), leave it off for a couple of minutes and restart. Battery percentage will jump up. Works for me every time.

Sent from my SM-N910V / VZW Note 4 DE / Factory Bootloader Unlocked / Rooted / Custom Kernel-ed/ TWRP 2.8.7.0.trltevzw
[Galaxy Note 4 Accessories] Mchi5:
That works? . Because I've tried it and it doesn't work for me. How many minutes do you wait till you restart it? And are you on lollipop? Bec I am. Not sure if that makes a difference here
[Galaxy Note 4 Accessories] donkeyboy912:
You dont have to turn if off and leave it off... Turn it off, pop the battery out for 5 seconds, and put it back in, that is all I do, and it works fine.