yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy S8 Guides, News, & Discussion] the1stSecond:
Settings? Well, not a lot of user interface toggles/freezes/disables if that is what you are looking for.

Mostly root level deletion of all non-essential, to me, apks/frameworks (ie Samsung Pay). Also, charging while in upload mode several cycles until "90%" is displayed is where I saw my biggest jump in SOT.
[Samsung Galaxy S8 Guides, News, & Discussion] elliwigy:
the permissive boot.img, abl, devcfg and recovery are all from a combo firm lol
[Samsung Galaxy S8 Guides, News, & Discussion] DeejayBaca:
Is there any chance to get the Dex patch compiled into a kernel we could flash or does having a locked bootloader ruin all of my custom dreams?
[Samsung Galaxy S8 Guides, News, & Discussion] partcyborg:
After extensive googling the latest (only?) Version I can find is:

G950USQU1AQC9

Is there a newer version somewhere? I would like to see if a more modern kernel will help with some of the issues ive had with battery and whatnot, especially with the later releases as the divide between kernel & system grows wider
[Samsung Galaxy S8 Guides, News, & Discussion] nickman529:
Wait so has anyone actually fixed the 80 percent charge or are we sol
[Samsung Galaxy S8 Guides, News, & Discussion] partcyborg:
Yes it's fixed, we are just keeping it secret.

Lol of course it's not fixed otherwise it would be all over the op, XDA news, Reddit, you name it.

Next time you wonder ask yourself this: how long did we have root before it was everywhere? (Thanks crew for that!)
[Samsung Galaxy S8 Guides, News, & Discussion] nickman529:
True. Lol I guess I was just going off the "sometimes op didn't get updated" thing. Seems to happen more often now hah. I tried the info in op earlier. Doesn't seem to do anything. I took a look at other files in /sys/devices/class/power_supply/battery hoping for maybe a hit off file names but didn't get too far
[Samsung Galaxy S8 Guides, News, & Discussion] MrSteelX:
init.class_main.sh has Something with faking battery.

Allow persistent faking of bms

# User needs to set fake bms charge in persist.bms.fake_batt_capacity

#

fake_batt_capacity=`getprop persist.bms.fake_batt_capacity`

case "$fake_batt_capacity" in

"") ;; #Do nothing here

* )

echo "$fake_batt_capacity" > /sys/class/power_supply/battery/capacity
[Samsung Galaxy S8 Guides, News, & Discussion] partcyborg:
But that prop isn't set, and setting that capacity sys gets immediately changed back on a device

I think it's for tests
[Samsung Galaxy S8 Guides, News, & Discussion] MrSteelX:
/sys/module/pm8921 is were all the magic happens with the battery

Also, wildermjs8 that file is what android reads to show you your battery %
[Samsung Galaxy S8 Guides, News, & Discussion] AlBaraa98:
if you want this method persistent you have to change the value in this file /efs/battery/max_batt_capacity lol
[Samsung Galaxy S8 Guides, News, & Discussion] Flashman2000:
Can't we just look at how the stock kernel processes an manages battery and implement it into the root files?
[Samsung Galaxy S8 Guides, News, & Discussion] elliwigy:
no

if that were possible we'd simply use the stock boot.img

any modifications to our boot.img will cause secure check fail, anything useful in stock boot.img would need to be changed in our boot.img since all of its properties are loaded on each boot most of which is loaded into ram so it wouldnt take effect until a reboot anyways which is useless
[Samsung Galaxy S8 Guides, News, & Discussion] partcyborg:
And everything in the / filesystem (rootfs in mount) is part of that boot.img so we can edit after boot but we lose the changes when we reboot, and the really good stuff you can't change once booted
[Samsung Galaxy S8 Guides, News, & Discussion] elliwigy:
well whatever is loaded into ram you can change it but it wont take effect until a reboot which the boot.img will repopulate it.. so anything useful cannot be changed during runtime

if u were to look in the logs for the boot then u will see theres a lot more to it then a simple edit to a sys file lol
[Samsung Galaxy S8 Guides, News, & Discussion] partcyborg:
I know and I actually just did today after twiddling so many logging props I trashed performance for a bit lol. I was dramatically simplifying for the noob as I find if people understand some of the why they remember better and re-ask less :)
[Samsung Galaxy S8 Guides, News, & Discussion] the1stSecond:
Haven't reread the thread, not sure if this has been posted.

Pulled the link from [MENTION=763587]Neo3D[/MENTION]'s thread over in Note 8 Guides/Info.

Thought I'd drop it here. I believe it's been mentioned before, but "straight from the horse's mouth" and all that;

http://techlife.samsung.com/tips-keep-smartphone-charged-1059.html
[Samsung Galaxy S8 Guides, News, & Discussion] MrSteelX:
would a soft reboot work like killing zygote. I forget if that preserve ram or not.
[Samsung Galaxy S8 Guides, News, & Discussion] Zer0b1ade:
I'll just add alittle more info for sake of longer battery (not use time) for lithium ions. Start charging at 20% if you wanna push it the 15% and then unplug at 80 like that article said. You battery will thankyou. Esp when theres no way we can easyily replace our batts. Keep them happy and we will be to.

P.s. this comes from a guy who got the sgs5 hot enough to warp the motherboard. Lol

And a warm battery is a good battery. Hot battery makes it discharge faster....cold battery.....well it will keep the charge longer....

Atleast...
[Samsung Galaxy S8 Guides, News, & Discussion] okashiraa:
This does appear to work as the OP suggested. Changing my setting from stock of 990 to, say 900, causes the batt % to increase (thus it would decrease except...)

It doesn't work for the S8+ :(((((

Why?

it appears the setting maxes out at 1000! Anything I set over 1,000 gets reverted to 1000. So at best I go from stock of 990 to 1000 which is 1% gain, lol.

Any way to get it to take a value over 1000?

For those of you who think the 80% is really 100% and just bug of SamPWND, it's not. I verified the charging voltages and it's really charging to about 80%.

It stops at about 4.17V when 100% is 4.3-4.35V.
[Samsung Galaxy S8 Guides, News, & Discussion] jamus28:
I think you're definitely on to something here. Or at least looking in the right place. My max capacity is at 1000 and also doesn't increase past that number. There are tons of other file settings in the power_supply folder, I wonder if any of them can be used to set the max amphours/voltage
[Samsung Galaxy S8 Guides, News, & Discussion] partcyborg:
I did a ton of testing on this and it's in the secure boot module (or contolled by it). You can move every piece of firmware back to stock and you will be stuck at 80% until you flash "abl.elf" in which case it instantly starts charging to 100%

This could be a ghetto charge method (flash stock abl, charge in bootloop or d/l or recovery, flash combo back when when done and phone works fine) that would be faster as it won't trickle charge like it does in upload mode. After like 10-15m of tjnkering with a crashed system under stock abl I had 87% battery
[Samsung Galaxy S8 Guides, News, & Discussion] Velaar.Felps:
So if I understand correctly there is a near-zero chance to ever hack it into 100% charging.

Unless there is a way of unlocking the stock BL. USB-C -> UART comes to mind but it is unlikely that it allows easy unlock either. Anyone experimented with UART on S8/S8+?

It seems the FW lock is managed by MdtpVerifyFwlock in DREAMQLTE_USA_SINGLE/android/bootable/bootloader/edk2/QcomModulePkg/Library/SamsungLib/BoardInfo.c it is all Qcom/EDK2 related and I don't have the knowledge to try to dig into the asm here. And as we don't have SamsungLib sources we cant do much about it.

Update//correction:

I was able to find the sources for MdtpVerifyFwlock in publicly available QcomModulePkg/Drivers/MdtpDxe/MdtpVerify.c. And MdtpDxe is definitely a part of abl.elf

Unfortunately it seems that the bootloader lock is managed by eFuses, so it is unlikely that we can ever unlock the BL.
[Samsung Galaxy S8 Guides, News, & Discussion] jamus28:
This is great to know and also a little saddening. So I'm guessing in your testing, you didn't find any other values that could be used as a different post-boot workaround for increasing battery capacity?
[Samsung Galaxy S8 Guides, News, & Discussion] partcyborg:
Just the efs/sys answer that gets you to 1000, which was like 6% for me lol
[Samsung Galaxy S8 Guides, News, & Discussion] AngelIsL33T:
1000? Link the battery bro
[Samsung Galaxy S8 Guides, News, & Discussion] partcyborg:
I don't understand what you mean. English please
[Samsung Galaxy S8 Guides, News, & Discussion] AngelIsL33T:
It was a joke lol
[Samsung Galaxy S8 Guides, News, & Discussion] RypeDub:
This does not work.

After entering the command to change the max value, exit the terminal, run the command to check the battery maximum again: it reverted.

I even decided to lock the permissions after changing the value: however, that file acts like runnung config for a network switch.

No matter how much you edit the file, it immideatly reverts any changes because the file we are manipulating is actually a file inside the bootloader partiton.

Since we can't access that partition, we can't actually modify the file hence why modifying that file in the running config never actually sticks when we change it.

To top it off: the fact that you have the word SamPWND in your title is ridicluios.

We all know how users think. MOST people who are reading this thread, are messaging that developer for support, when he has 0% to do with this snake oil.

Mods: please either delete this thread, or lock it and update the OP to state that this does not work and there currently is no fix because we need an unlocked bootloader in order to fix our battery charge amount.

NO ONE here likes false information floating around.

Lastly: the ONLY test you need to do to find out this is a load of foo:

Run the command to modify the battery charge maximum.

Right after, read the file again. It will not show the changes you made. If it does: exit your terminal session, then start a new one and read the file. No changes made.

Another test: charge your battery 80%, use CPUz or CPUx to read your remaining charge in mV. Use a root explorer to directly modify the file. Lock the permissions to ONLY read, do NOT allow any writes. Plug your charger in at 80%: it'll still say discharging, it will not charge over your mV that we noted from the 1st step.

For me, my 80% charge is 4107, and no matter what I did, I never got higher than 4114, 7 more mV, which was literally minutes differencr, not ~2 hours, so it's NORMAL fluctuation at that 80% cap, it does not mean I gained any more charge after 80%.

I don't like incorrect information and I don't like when people don't test throughly enough.

You can hate me, but if you do the PROPER testing, then you'll see even if you thought it worked: it was placebo.
[Samsung Galaxy S8 Guides, News, & Discussion] reocej:
What is the value of your fg_fullcapnom file located in your battery folder?
[Samsung Galaxy S8 Guides, News, & Discussion] seandop:
Mine currently says 1632, for what that's worth.
[Samsung Galaxy S8 Guides, News, & Discussion] reocej:
I have rooted note 8 and mine says 1632 as well. My daughter's non-rooted S8 has a value around 3200. It seems to be related/correspond with the overall nominal capacity of the battery which is exactly half to the value of the csid_fullcaprep_max file. Are you able to change the value of this particular file and have it stick? I've tried various methods but none of the values stick on any of the files mentioned. May be something. May be nothing.
[Samsung Galaxy S8 Guides, News, & Discussion] nm1557:
Try the following commands to change the value and have it stick until reboot:

setsid su
su
echo 3200 > csid_fullcaprep_max
[Samsung Galaxy S8 Guides, News, & Discussion] thatsupnow:
Not only this that's flawed but the root method is entirely flawed. Having an 80% cap is just stupid. But there's always those people who swear by it regardless, they could be capped at 50% and they'd still love it!!
[Samsung Galaxy S8 Guides, News, & Discussion] reocej:
I've tried that but the value doesn't seem to change or stick. But I was unable to change the batt_capacity_max value as well. Doesn't seem to stick for me. Have you tried to change the fg_fullcapnom value and if so did it stick for you?
[Samsung Galaxy S8 Guides, News, & Discussion] nm1557:
I'm not sure, normally I do this:

1. plug phone into comp

2. adb shell

3.

setsid su
echo 950 > batt_capacity_max

4. Wait until I'm at 80% capacity

5.

echo 830 > batt_capacity_max
exit

6. Unplug Phone
[Samsung Galaxy S8 Guides, News, & Discussion] seandop:
All that this would do is display 100%, but you've really only charged the phone to 80%. In order to charge to 100%, you would need to set the capacity to a value of 1250. Why, oh why, has this thread not been closed and deleted by now? :eek:
[Samsung Galaxy S8 Guides, News, & Discussion] RypeDub:
Yeah I wondered that too, because at 80% my level was reported 990, so I should have used 1325 personally. But again: the MOMENT you modify that file IT REVERTS because its a RUNNING config, which means it gets its config from ANOTHER file, that is in the bootloader, which we can't modify, so this is fake.
[Samsung Galaxy S8 Guides, News, & Discussion] geoff5093:
Why is this thread still open? It's very deceiving...
[Samsung Galaxy S8 Guides, News, & Discussion] nm1557:
Look, I am just trying to help you guys. This works for me. Not entirely sure why.

I charge to 80%.

Change battery max to keep charging.

Get stuck at 80%.

Change battery max to original value to get back to 100%.

How is everyone so stuck up on this? :confused:
[Samsung Galaxy S8 Guides, News, & Discussion] partcyborg:
If I follow the right procedure (I have it laid out somewhere I'll find it) and change the batt max capacity in efs I can reliably get it to 1000 when my original was like 860. There is literally no reason not to do it given you do it once right and it's permanent and doesn't hurt anything (and I backed up the previous value for if I unroot or we find a bl unlock) so while it's only a few percent why leave money on the table?

The basic procedure is that you have to change the value to 1000 AND charge it to 80% before rebooting, as the value in efs is essentially written as either the old max value (where the misconception that this was one directional came from) or IF the current capacity at the time of reboot (never bothered to check if it was shutdown or startup) is higher than the old value, the CURRENT capacity value is written instead.

And yes, I did prove this conclusively and have screen shots to prove it, so pls no sass kthx I really don't want to have to dig them up
[Samsung Galaxy S8 Guides, News, & Discussion] RypeDub:
So you're saying this works for you?

Use CPU-Z and CPUx and let us know your charge remaining in mV after you've charged your battery to 80%, but really it should be more if you were able to actually change it.

If your mV is the same as ours, then even if you did "modify this file": it did NOT actually give your phone the ability to have more charge over 80% due to a limitation in some part of the root process.

If your mV is substantially higher than ours, and yes it would need to be quite a difference, then this does work, I'll have to kindly ask you to provide some more instruction, I'll redact my frustration, edit my posts and I'll give apologies to you, other users and the OP.

Thank you for understanding my diligence.
[Samsung Galaxy S8 Guides, News, & Discussion] seandop:
My battery max capacity was set to 990 by default. I can reliably get 1000 to stick, so therefore I suppose I *might* be able to recover an extra 1%. This is a far cry from recovering 20%. This thread is very deceiving to many users.
[Samsung Galaxy S8 Guides, News, & Discussion] RypeDub:
Changing that 990/800/1000 number isn't necessarily what your charge is.

1000 does NOT equal 100% charge, as if you listen to the OP, you need to find YOUR 80% charge value, then multiply by 1.2.

My 80% charge value was 990, and that times 1.2 is: 1188.

But, like I was saying, 1188 does NOT equal your charge amount.

PLEASE install CPU-Z by CPUID or CPU X that has a green computer chip for the icon and choose the battery tab and then post here your Remaining Charge value that is in mV.

Stop posting anything else until we get more data please.
[Samsung Galaxy S8 Guides, News, & Discussion] seandop:
I don't disagree with you...

Except that instead of multiplying 990 by 1.2, you should be dividing it by 0.8 to obtain your max capacity at 100% charge (which is equivalent to multiplying by 1.25).
[Samsung Galaxy S8 Guides, News, & Discussion] RypeDub:
You didn't properly respond to my previous message.

PLEASE only post the remaining charge of your battery in mV after you've charged your battery all the way, even though it says 80%, because you were able to properly do this battery thing.

We are trying to figure out weather this is snake oil/placebo or real.
[Samsung Galaxy S8 Guides, News, & Discussion] seandop:
1. I'll post whenever/whatever I damn well please. Thanks.

2. This battery mod thing is fake. I was not "able to properly do this battery thing". No one can, because it does.not.work.

3. Go get your own battery voltages. This is entirely snake oil.

4. Learn math.
[Samsung Galaxy S8 Guides, News, & Discussion] RypeDub:
As long as I get more members to say this works or not I'm satisfied.

Mods?
[Samsung Galaxy S8 Guides, News, & Discussion] seandop:
I don't believe you made this up, but this verbose description of your method is far different than the overly-simplistic description in the OP. And without voltage measurements before and after, I disagree that your evidence is irrefutable.
[Samsung Galaxy S8 Guides, News, & Discussion] partcyborg:
Yea I should have been more clear that I put more work into it to make it stable which could have made it function better. My bad.

I'm happy to do the measurements you would find as conclusive, at the least to make sure im not leaving efs modified for no reason. Can you restate what you would want to see measured (including how) and when? I'm guessing something like: now (or pre touching anything), after resetting efs completely and at 80% again with original values, and after redoing mod and recharging to 80%?

Also, if you wouldn't mind elaborating, what is a scenario you could envision is possible enough to explain my writeup but not have actually resulted in more capacity? It seemed to me that if the battery refused to charge more on a very good wall charger/cable for some time, then looked in all cases I'm immediately aware of to charge for 20m more or so and then stop again back at 80%, that there was no other even remotely likely scenario that would cause all that to happen but the device not actually be charging. Very curious to know your rationale, even if it's just "voltage or it didn't happen"
[Samsung Galaxy S8 Guides, News, & Discussion] seandop:
I think that for me, or is a moot point. My default value in batt_capacity_max was already 990. So increasing it to 1000 would have only minimal benefit, at best. If your value, for whatever reason, was set much lower than this then I could see how it might be more beneficial. Unfortunately, I don't believe that the OP understands what he is doing and thinks that he's actually getting 100% charge, even though it appears he's just charging to 80% and then effectively spoofing the battery indicator to falsely read 100%.
[Samsung Galaxy S8 Guides, News, & Discussion] partcyborg:
I agree that op didn't know what he was doing especially as he got the math wrong lol, but the batt capacity max thing has some truth to it, even if op found it manually and no one has enough window for 1k to be their 100%

If I wanted to get sure, what was the sys entry for battery voltage?
[Samsung Galaxy S8 Guides, News, & Discussion] seandop:
Voltage_avg, I believe. I'm not sure exactly how (frequently) voltage_avg and voltage_now are updated.
[Samsung Galaxy S8 Guides, News, & Discussion] RypeDub:
I would like for you to undo any mods to your battery via these commands or anything else you've done.

Charge your battery all the way, which should be reported by the UI as 80% since our current root situation.

Next, download or open CPU-Z or CPU X (both are free inside of the Google Play Store) and head to the Battery tab, then note down your Remaining Charge, which will be in millivolts, but abbreviated as mV.

This number should be from 4,000 mV to 4,250 mV when charged to 80%.

Now: do everything you can and in any way to modify your battery like we've been discussing here. Make a tutorial of what and how you did so we can replicate and provide more data.

Now charge your battery all the way again. From what you've been posting, it sounds like you've made your UI show 100% and not 80%, but correct me if I'm wrong.

Regardless of what the UI shows for the battery percentage, you've claimed you definitely get more charge. So, if that is true, how we test is by opening CPU-Z or CPU X again, navigate to the Battery tab and note your new Remaining Charge in millivolts, abbreviated in mV.

The apps should report 5,000 to 5,500 mV now if you've actually effected your battery.

I do not trust any of the commands currently.

I do not trust any test descriptions currently.

I do not trust any pictures currently.

I only trust raw details currently.

The raw details are in CPU-Z or CPU-Z X under the Battery tab in the Remaining Charge section.

Thank you for your consideration.

I will no longer participate in this thread until more raw details are shared and methods/optimizations/changes are better and more thoroughly detailed.
[Samsung Galaxy S8 Guides, News, & Discussion] partcyborg:
Sounds good, just a few comments:

1) the modifications I made do not change reported percentage to 100%, nor did I imply anywhere that they did so you must be confusing me with someone else in this thread.

2) I also specifically said that a full charge is not possible as max battery is hard capped at 1000. This is almost certainly going to preclude getting all the way to 5k+ mV. In fact as I stated at the beginning of my claim this buys approximately 6-7% only.

I will run through this once I have the spare cycles to do so, but I'm going to go ahead and mod your requirements a little since they aren't representative of my claim. The net result will almost certainly not be 5k+ mV, but it should be higher than the established baseline measured initially through cpu-z. This means anything higher than my first measurement would deliver on my claim, as I said that it's not 100% but it's higher than default, which is still worth it to try if you have the headroom as it's basically free charge potential
[Samsung Galaxy S8 Guides, News, & Discussion] RypeDub:
Perfection.

Thank you for clarification and I'll be awaiting your instructions.

I'm glad we came to terms, instead of argue back n forth like almost every other thread on this site lo

I'm stoked to get higher than 4180 (which is my personal highest obtained remaining charge/voltage ever obtained after rooting) with your updated method.

I have email notifications enabled, so take your time. So far you're the only user who's responding with some hope that this does something.

I also might have an idea to get a full 100% charge by using parts of your method if it works the way you described.
[Samsung Galaxy S8 Guides, News, & Discussion] elliwigy:
lol value dont stick meaning it doesnt work as advertised lol