yashsingh1/xdaforums huggingface dataset:
[Galaxy Note 4 Unified Development] TheLoneWolf20:
Alright, I have to make a version for that.
[Galaxy Note 4 Unified Development] alm1ghty:
Any plans to port to AEL kernel?
[Galaxy Note 4 Unified Development] unibomber:
5 hours and it's gone down 2%. I'd say it's working. I'll update a gun when you update the emotion kernel.

Thanks again
[Galaxy Note 4 Unified Development] TheLoneWolf20:
Yes really soon. I am waiting for feedback on this in the meantime before I make more versions.
[Galaxy Note 4 Unified Development] sefrcoko:
Just downloaded and will test over the next few days here. Great work, looking forward to this!
[Galaxy Note 4 Unified Development] unibomber:
10% gone in 14 hours. Mod is a success!!!
[Galaxy Note 4 Unified Development] TheLoneWolf20:
Keep testing it out and see where it shuts down. Hopefully its on target at or near 1%.
[Galaxy Note 4 Unified Development] haricari:
on the sprint variant and sadly i couldn't connect to sprint's network. :(
[Galaxy Note 4 Unified Development] sefrcoko:
Isn't this kernel based on t-mobile though? Maybe TheLoneWolf20 can port for your variant once this gets passed the beta testing.

---------- Post added at 12:20 PM ---------- Previous post was at 12:18 PM ----------

Installed and testing has begun. Thought my ZL was fully charged before flashing the modified kernel but apparently not lol. Love how I can tell that my phone is charging once I go above the standard 100% limit though...Currently at 197% (as per the app) and still charging strong :). Will report back after a full charge, app calibration, and a few days of testing.
[Galaxy Note 4 Unified Development] haricari:
I know it was t mobile based, but I wanted to test it out. Just reporting my findings.
[Galaxy Note 4 Unified Development] sefrcoko:
Ok no problem, just clarifying :)
[Galaxy Note 4 Unified Development] TheLoneWolf20:
I will make more kernel versions of the mod but I am trying to get the string value to save to the file so when you turn off your phone and turn it on, it stays on that last value.
[Galaxy Note 4 Unified Development] BeauSmith:
I have the app installed without flashing the zip, will the app alone correctly apply the fix? I am able to start the monitoring service, and have set the battery to full after a full charge.
[Galaxy Note 4 Unified Development] sefrcoko:
A few quick questions :)... Should I press the "Start full charge" button whenever I am going to charge it to full (regardless of the current battery level), or should I only press it when I'm charging to full from a low battery level? Also, I assume I only need to use it once to calibrate charging rather than every time I charge to 100%?
[Galaxy Note 4 Unified Development] TheLoneWolf20:
You should press Start full charge when your phone shuts off and you are recharging it. Really, you don't have to use the Start full charge yet as you can calibrate it when the phone says Full and the green LED Light is illuminated. And you can go into configuration and choose (Set Battery Full) so it automatically calibrates when the phone is fully charged. The charge up percentage isn't accurate yet as it charges faster than what it is exposed to.
[Galaxy Note 4 Unified Development] TheLoneWolf20:
I will try to get the emotion Kernel done tonight but don't count on it because I am going to be having some bad tropical weather moving into the area soon.
[Galaxy Note 4 Unified Development] alm1ghty:
I installed the bioshock kernel for COD6 - it worked successfully, wifi calling included. When I installed fuel gauge, it installed successfully, but wifi calling stopped working.
[Galaxy Note 4 Unified Development] sefrcoko:
Working great so far! Been running down from a full charge since yesterday (uptime just over 20 hrs). SOT of 1.5hrs and my battery level is only at 91%. :) Will report back once I run this battery down.
[Galaxy Note 4 Unified Development] sefrcoko:
One thing I noticed is that I have the fast charging notification appearing even though my charger is not connected. Not a big deal, just mentioning it...
[Galaxy Note 4 Unified Development] TheLoneWolf20:
Yeah, I am not sure about that either but it shows up with me also
[Galaxy Note 4 Unified Development] sefrcoko:
Ok sounds good. Thanks for confirming.
[Galaxy Note 4 Unified Development] TheLoneWolf20:
I think it has to do with a setting in the Power_Supply files. That's why I want to get a few things worked out before I make more versions of it.
[Galaxy Note 4 Unified Development] unibomber:
If I install a new rom, will the fuel gage calibrate to what its at or will it be a random number. I did notice that when I rebooted, it lost it's stats in the power section on tw
[Galaxy Note 4 Unified Development] TheLoneWolf20:
If you update the rom, then all you have to do is reflash the kernel, but if you install a fresh rom, and install the kernel, yes you will need to recalibrate it again.
[Galaxy Note 4 Unified Development] TheLoneWolf20:
I appreciate the feedback guys. I know it's not a perfect mod but I am still trying to correct the little issues that are there. If you have ANY suggestion please don't hesitate to post.
[Galaxy Note 4 Unified Development] unibomber:
Update...my phone died with 30% on the meter. It was totally dead. Gonna try again and see how it goes..
[Galaxy Note 4 Unified Development] TheLoneWolf20:
Thanks for the feedback that let's me know that the battery really isn't the posted mAh so it must be around 8800 mAh
[Galaxy Note 4 Unified Development] unibomber:
Talk about false advertisement
[Galaxy Note 4 Unified Development] TheLoneWolf20:
lol I am still testing it so let me see where it turns off at.
[Galaxy Note 4 Unified Development] TheLoneWolf20:
Yeah they're some things that I need to further work on with it. But I think the real capacity of the battery is around 9100mAH or 8900mAH. Something around that area.
[Galaxy Note 4 Unified Development] HiddenKnight:
Would love to see this slip over to the sprint variant.
[Galaxy Note 4 Unified Development] JDevil:
If this battery is truly 9100/ 8800mah I'm going back to my hyperion that reads better and makes the audio sound better. Great work!
[Galaxy Note 4 Unified Development] BeauSmith:
LoneWolf, I'm having excellent results using your Fuel Gauge App with the Firekat ROM and the AEL kernel. I didn't let it drain down much further before I got it on the charger. Thank you for the hard work!

http://imgur.com/42jd6IU
[Galaxy Note 4 Unified Development] lodevandoren:
[MENTION=4637837]BeauSmith[/MENTION], I'm trying to get this work on a 910F. Which versions of Firekat and AEL are you using?
[Galaxy Note 4 Unified Development] unibomber:
The zip installs bioshock kernel and app. Ael isn't supported AFAIK.

Wolf, the fuel chip prog shuts down randomly and I need to reboot to get it to read properly. I don't know if this has any effects on the % reading outcome.
[Galaxy Note 4 Unified Development] TheLoneWolf20:
You are saying the fuel gauge app shut down?
[Galaxy Note 4 Unified Development] unibomber:
Yes sir. It's random. I can't recreate what makes it shut down
[Galaxy Note 4 Unified Development] TheLoneWolf20:
Ugh I have to look into that. I am trying to make it do that myself.
[Galaxy Note 4 Unified Development] lodevandoren:
Tried to install the kernel+app on 910F (SimplRom). Looks like it's working (101% while booting = OK, monitor = up and running) but guess since kernel = t-mobile, no radio / unknown baseband... If you need tester for 910F (emotion kernel/ any kernel for that matter), let me know please.
[Galaxy Note 4 Unified Development] BeauSmith:
I use the latest AEL kitkat on the 910F/G

http://www.echoerom.com/custom-page/?id=15

and the latest firekat.

http://xdaforums.com/note-4-tmobile/development/firekatn4v1-4-4-4-tw-anj7-extremely-t2916463

I just searched the fuel gauge mod using a file explorer and installed the .apk. I didn't flash the zip.
[Galaxy Note 4 Unified Development] lodevandoren:
[MENTION=4637837]BeauSmith[/MENTION]

Does the battery indicator work for you (101%), or do you just rely on the readings from the app?
[Galaxy Note 4 Unified Development] gamester_47:
Looking forward to testing this on my Sprint Note 4. Keep up the good work.
[Galaxy Note 4 Unified Development] BeauSmith:
I rely on the battery indicator, although I haven't seen the 101% yet on a full charge.
[Galaxy Note 4 Unified Development] TheLoneWolf20:
I haven't given up on this guys so just because I have stayed quiet over the last couple of days doesn't mean I forgot about you guys. I am working on a more stable method which requires NO App. I am just getting another laptop that will be used for nothing but Linux.
[Galaxy Note 4 Unified Development] unibomber:
The first method is a great first attempt. Since I started testing, I've charged the battery twice since your release. Can't wait to see what you cook up next.

Thanks again.
[Galaxy Note 4 Unified Development] f4z-vinz:
N910C

Hello TheLoneWolf20,

Thanks for working on the Note 4 Zerolemon problem!

I live in Austria and recently purchased a Note 4 N910C. All Note 4s in my area are the Europe only version (N910F iirc), so the N910C is is an imported one; it seems to be the better option.

Yesterday my Zerolemon case arrived after a few weeks of shipping. Unfortunately it was only after ordering the ZL that I found out it has serious issues with battery readout and premature shutdown. Disassembling the case every time just to get the battery working is unacceptable.

Obviously I would like to start using my ZL, but only with the required modifications. I haven't flashed an Android device with a custom ROM yet and still do not know what is available for the Note 4 (a ROM with as many black pixels as possible in the UI should help conserve power).

Are you going to release kernels for the N910C that work with most / all international carriers? Do I need to pay attention to this same thing when choosing a custom ROM?

When I can get this running I will provide feedback to help you improve your solution for everyone's benefit. I am looking forward to your next releases.

Thanks,

vinz
[Galaxy Note 4 Unified Development] TheLoneWolf20:
Yes, I will release for any kernel necessary. I will even make a second post with the kernel file modifications so that the kernel developers can make different variations of their Kernels for future updates. I just got my laptop setup so I should be getting stuff done faster.
[Galaxy Note 4 Unified Development] unibomber:
Second charge update...shut down at 29%. Powered off.
[Galaxy Note 4 Unified Development] TheLoneWolf20:
I am still working on the second fix for the Battery, I am just doing some more testing on it. I appreciate you guys for the kind support and replies as well as the patience. If you guys want to donate, I have a page setup for that. The page is really for my Hurricane Tracking page so any funds donated will go towards more than just one thing. Thank you guys for the support.

http://www.gofundme.com/DGCHTC
[Galaxy Note 4 Unified Development] anderroid:
Looks pretty good, but can't get the notification icon to disappear.

Also, getting the "unauthorized actions have been detected error", no doubt b/c of kernel change.
[Galaxy Note 4 Unified Development] TheLoneWolf20:
Hold down your left Soft key button until a menu shows up and go into Configurations and Notifications. This is hopefully temporary. I am working on another method that doesn't need a app.
[Galaxy Note 4 Unified Development] anderroid:
So the issue was that even with selecting the option, the icon would not hide. But after a reboot, it is.

I am still getting the unauthorized actions have been detected error.
[Galaxy Note 4 Unified Development] TheLoneWolf20:
What I am currently working with right now. I am trying to come up with a balance between the 2 SOC values. One is VF_SOC and the other is AV_SOC. These values work better and have a better knowledge on where the battery is on charge than READ_SOC (Or normal SOC Read)
[Galaxy Note 4 Unified Development] TheLoneWolf20:
I am about ready to release another version of this mod that is indeed app less. I will also try to get 2 kernels on this working also. Emotion and BioShock and 1 AOSP Kernel (Per User request) to let you guys test this one out. Just to let you know, to let your kernel qualify, the original kernel creator must have the Kernel Source Code files available.
[Galaxy Note 4 Unified Development] donkeyboy912:
Look forward to trying her out on my sprint.
[Galaxy Note 4 Unified Development] Warnahly:
My battery arrived

Cycle charge #1 it was draining faster than initial use

It was 47% wanted to change my sim

So i removed battery and afterwarda it became 70%

What to do now guys ?
[Galaxy Note 4 Unified Development] TheLoneWolf20:
Emotion UI?
[Galaxy Note 4 Unified Development] TheLoneWolf20:
I have a question for you guys. I have two versions of the mod that I can make.

One version Goes to 0% before the cut off voltage. You still are able to get around 3 days on normal full brightness but it shuts off the phone at around 3.5 to 3.6 volts instead of 3.2 to 3.4 volts. The POSITIVE from this is that it makes the battery cycle life last a little longer as it makes the battery stop at around 3-5% Remaining capacity which keeps from straining the cells. Another positive is that you can still access your recovery and download menus. The NEGATIVE is that well it stops at 3-5% (3-5 REAL capacity percent, not 3-5 last 1-2 more days percent). This stopping at 3-5% equals around 1-3 Hours extra of battery usage. That would be the only negative I can think of from that.

The Second version stays at 1 or 2% for the remaining 1-3 Hours (Depending on Settings or whenever it reaches 3.4 volts) and turns the phone off once it reaches the cut off voltage Again, you are still able to get the 3 days at Normal or Full brightness, but the phones cut off voltage for the battery forces the battery to shut off at the 3.2 to 3.4 voltage mark. The POSITIVE from this is of course, you get 1-3 Extra hours of usage (Depending on settings). The NEGATIVE is that well when you let your battery get to 4.2 to 4.4 volts (or a full discharge) it weakens the cells of the battery gradually. Another negative is that as a protection feature in the phone, once the phone's battery reaches a low voltage point, the phone will NOT turn on until it is plugged into a Charger and it charges to a appropriate voltage.

These are the two versions that I have setup. I personally like the first one because I always say, if I am going somewhere I am pretty sure I (or other people) would charge their phone to full prior and most likely wouldn't let it go down to 1% anyways. Or maybe you guys would prefer it to stay at 1% until it cuts off. But I am always open to feedback to what you think.

This mod also Auto-Calibrates, so when you let your phone sleep for around 10-15 Minutes, the actual percentage may go up.
[Galaxy Note 4 Unified Development] unibomber:
#1
[Galaxy Note 4 Unified Development] f4z-vinz:
@ TheLoneWolf20

#1 sounds good to me. I'm happy if I can get 95 - 97 % out of the battery every time and in case of a battery draining system crash the battery will not go down to it's lowest value (or can it still happen?).

I have a question about #2: When the battery finally cuts off after some time at 1 %, will it be cut off suddenly, or will the OS do a normal shutdown, allowing all programs to save their data?
[Galaxy Note 4 Unified Development] gamester_47:
#1 for me as well. If its getting down to 3-5% I am going to want to charge it anyway.
[Galaxy Note 4 Unified Development] donkeyboy912:
No sir I havent installed emotion yet, maybe I will give her a whirl at work today since we are slow due to the holidays.
[Galaxy Note 4 Unified Development] sefrcoko:
#1 in my opinion. Thank you for all your work :)
[Galaxy Note 4 Unified Development] TheLoneWolf20:
The OS will do a Normal Shutdown like a normal power off.
[Galaxy Note 4 Unified Development] gamester_47:
This sounds like the better and safer option then.:good:
[Galaxy Note 4 Unified Development] TheLoneWolf20:
I should be able to release it later today. This will still be the same BioShock Kernel like the old mod so for those who tested this with the app can still test with this. Once you flash this version of the kernel, you can remove or "disable" the Fuel Gauge app. You can disable it the same way you uninstall a app. I am still trying to compile Kernels for emotion Kernel. If everything appears in good working order, I will just release the modified max77843_fuelgauge driver file so that Kernel creators can make different versions.
[Galaxy Note 4 Unified Development] unibomber:
Can't wait!
[Galaxy Note 4 Unified Development] TheLoneWolf20:
Here is the second Test release that is Appless and has a better calculation. Just remember to disable the app and you should be ok. You can flash it on top of the other mod.
[Galaxy Note 4 Unified Development] TheLoneWolf20:
Yeah they both will do a Normal Shutdown, but 1 just won't power on until you put it on a charger.
[Galaxy Note 4 Unified Development] droidblitz:
can i use this with my s4 _ZL 7500mah extended battery?
[Galaxy Note 4 Unified Development] TheLoneWolf20:
Won't work because this Kernel is for the Note 4.
[Galaxy Note 4 Unified Development] TheLoneWolf20:
For those who are currently testing, please report back your findings. For those with other Kernels, Once I get good reports, I will work on getting other kernels loaded and setup to compile. If I can't get them to compile, I will give the file to the Kernel Devs so they can create the version. Thanks.
[Galaxy Note 4 Unified Development] unibomber:
So far so good. I did a full charge and took it off yesterday morning and it went down 7 % as I type this.
[Galaxy Note 4 Unified Development] atrix2:
Will this work on N910C variant?
[Galaxy Note 4 Unified Development] unibomber:
Got down to 16% and 3 days full use. I couldn't check cutoff due to I had to charge my phone for work.

Thanks again. This mod helped me not get rid of this battery!!!
[Galaxy Note 4 Unified Development] TheLoneWolf20:
No problem. Glad that it works. I am having trouble trying to compile for Emotion Kernel so what I will do is release the file so that the kernel devs can incorporate it. I will be getting rid of my Note 4 with the battery in the coming days but I will make sure that this gets fine tuned before.
[Galaxy Note 4 Unified Development] unibomber:
What are you switching to?
[Galaxy Note 4 Unified Development] TheLoneWolf20:
Huawei Ascend Mate 7. Seems like a nice big phone with a good build design. And it has one of the biggest stock batteries on any smartphone. At 4100 mAH
[Galaxy Note 4 Unified Development] pdaddy:
Have you had a chance to try the mod on Sprint? I have the Sprint Emotion r17 installed. Should be receiving my ZL today.
[Galaxy Note 4 Unified Development] TheLoneWolf20:
Not quite. I am having trouble compiling with Emotion Kernel. I may just have to submit the file to them and have the Developer make the custom Kernel.
[Galaxy Note 4 Unified Development] TheLoneWolf20:
Alright I got rid of my Note 4 but I am getting good success rates on the latest mod so I am going to release the modified file on here and give it to the Emotion Kernel devs so that they can make different variants.
[Galaxy Note 4 Unified Development] unibomber:
Let me know when you do so I can start checking that thread. Thanks for your hard work!
[Galaxy Note 4 Unified Development] TheLoneWolf20:
Ok, I got someone looking into the compiling for Emotion Kernels. But for those who have more experience or that know how to compile the kernels, here is the official file. All you have to do is replace the Max77843 file and compile and it should work.
[Galaxy Note 4 Unified Development] Quiksmage:
Thanks so much for the updates. I wish I knew how to compile it myself as I could easily load up a linux vm and attempt it, but i've never compiled from source before.
[Galaxy Note 4 Unified Development] pdaddy:
Kinda off topic, but after my phone learns the battery a little better (after 4-5 charge cycles) can I just save the batterystats.bin in data>system so I can flash a new Rom and add it back to the new Rom so it doesn't have to learn it again?
[Galaxy Note 4 Unified Development] TheLoneWolf20:
Honestly, this mod actually doesn't need calibration as it takes the VFSOC or the 2 voltages 1 at Fully charged and one at when the phone shuts off and just averages them and gives a percentage. You could actually use the stock battery with it. That's why sometimes when you don't use the phone for a while, the battery percentage goes up a little.
[Galaxy Note 4 Unified Development] pdaddy:
I haven't seen a way I can use the mod in its current form, since I am on Sprint. I have been following it since you started it. I was just wondering if using a custom Rom, without this mod, could I transfer the batterystats.bin back and forth as long as I save it before flashing a new Rom. Unless there is a way to use the mod, then that is fine also. Thanks for your work on this.
[Galaxy Note 4 Unified Development] gshadow325:
I'm on dynamic kat. A kit kat rom and i cant get this to boot.

[MENTION=1164979]unibomber[/MENTION] how did you get this to boot up?
[Galaxy Note 4 Unified Development] sefrcoko:
Because this kernel is built off the Lollipop kernel, not kitkat ;). Should work if you install DynamicPop though (i.e. the Lollipop version of your rom).
[Galaxy Note 4 Unified Development] gshadow325:
And someone said they used s kit kat rom and very it to work a few posts up.
[Galaxy Note 4 Unified Development] TheLoneWolf20:
The file I provided you should work for either KitKat or Lollipop kernels. You have to compile the kernel with this replacement file for the mod to work.
[Galaxy Note 4 Unified Development] kavi:
Thanks for the fix

Running on TEKHD managed to get it started with about 15 UI crashes on start. Email is not working too.

But the battery is working perfect.

Waiting for the emotion kernel :)
[Galaxy Note 4 Unified Development] sefrcoko:
Yeah i thought you were asking about the kernel version that was posted here originally, not the file posted by thelonewolf20 to be included when compiling the kernel. All good :)
[Galaxy Note 4 Unified Development] trafficontrolr:
The appless version 2 of this mod seems near flawless, I can't say thanks enough. I'm going to teach myself how to compile this for CM 12.1 and this phone will then be perfect!
[Galaxy Note 4 Unified Development] PhillyTorr:
Hi thanks for the mod!

Im running DynamicPop on AELKernel with the canadian Note 4.

Is the mod safe to flash for me?
[Galaxy Note 4 Unified Development] trafficontrolr:
You're basically flashing a kernel, so make a backup and try it out, if it doesn't work you can restore. The latest file can be added to a kernel (if you know how to compile one).
[Galaxy Note 4 Unified Development] TheLoneWolf20:
Sorry guys for slow responses and sorta "Leaving you hanging", just getting stuff for school setup. Yes you can just flash the kernel and try it out. But remember to make a backup first and if I were you, remove any fingerprint data BEFORE backing up to prevent issues.
[Galaxy Note 4 Unified Development] unibomber:
Anyone get the emotion kernel compiled?
[Galaxy Note 4 Unified Development] unibomber:
The latest emotion kernel was compiled with the fix. R18 I think it was.

Thanks again lonewolf!
[Galaxy Note 4 Unified Development] pdaddy:
Only problem is it doesn't appear to be working on Sprint. I'd upload a screenshot but Tapatalk keeps crashing.
[Galaxy Note 4 Unified Development] Flashvetrin:
Delete

Flashvetrin
[Galaxy Note 4 Unified Development] unibomber:
The latest fix doesn't use the app. It's appless. I disabled the app
[Galaxy Note 4 Unified Development] Quiksmage:
I flashed the r18RC2 emotion kernel and it appears to be working. I'm on sprint. I'll test some more and see how accurate it is.

edit: so far it appears to be working perfectly. I see it go from 92% to 91% and then 1-2 minutes later it goes back up to 92%. I'll see how it works as I go through a full discharge.
[Galaxy Note 4 Unified Development] trafficontrolr:
Any way someone could add this fix to the stock cm 12.1 kernel? Not a fan of the TW roms.