yashsingh1/xdaforums huggingface dataset:
[Moto G Original Android Development] elrod16:
Test it some more at lower values. I think there is a bug with the android "fuel gage" at higher numbers. I've had the charge jump from the mid 90's up to 100 like that before I even made maxlife.

---------------------------------------------------

Please thank if my software has helped you and please leave logs and descriptions of problems if my software did not work for you.
[Moto G Original Android Development] ronyscomparim:
I give up .... I tried all ways, changing various values ​​and installing various veses, I could not make it work!
[Moto G Original Android Development] ronyscomparim:
I am using these permissions to these values, what's wrong?

Sent fron my Moto X Play - RR - XDA P 5
[Moto G Original Android Development] elrod16:
You shouldn't need to do anything to that file. Simply flash it, reboot, and use the built in settings editor described in the first post. The built in settings editor was added specifically because people were corrupting the 91bms file when saving. After flashing it again, don't edit any files directly.

The reason it is not working the way you are trying is because most text editors on android save text files in the MS-DOS/Windows format, but init.d files have to be saved in UNIX formatting to work. MaxLife's built in editor bypasses this problem.

---------------------------------------------------

Please thank if my software has helped you and please leave logs and descriptions of problems if my software did not work for you.
[Moto G Original Android Development] ronyscomparim:
I already installed it without editing anything and yet the load is 100%

Sent fron my Moto X Play - RR - XDA P 5
[Moto G Original Android Development] elrod16:
Do you have busy box and init.d support?

---------------------------------------------------

Please thank if my software has helped you and please leave logs and descriptions of problems if my software did not work for you.
[Moto G Original Android Development] hemantkarandikar:
I can manually execute maxlife in su mode and find the process in with ps | grep maxlife

I can also execute maxlife set 95 normal in su mode.

But on boot I find the process missing. Checked permissions of 91bms in init.d director and maxlife and in bin directory- they have all executables in all access levels.

What should be done to get this working?

maxlife 1.0.6 , device Moto G Falcon on CM 13 official nightly
[Moto G Original Android Development] matthias1976:
Moto G peregrine cm13 nighlies cant get it to work too.
[Moto G Original Android Development] elrod16:
That means you don't have init.d support (or broken init.d), you can try something like Universal init.d, but I cannot guarantee that will work. This is for both posters above.

It is important to check the prerequisites in the OP first.

---------------------------------------------------

Please thank if my software has helped you and please leave logs and descriptions of problems if my software did not work for you.
[Moto G Original Android Development] hemantkarandikar:
Thanks for this information. Had read the OP and some posts too. My phone has init.d directory. I searched on internet about init.d support for CM 13 - couldn't find anything either saying that it is there or it isn't there.

So tried flashing.

Anyway good to learn that CM doesn't support init.d
[Moto G Original Android Development] elrod16:
Some people have used SManager to substitute for init.d, the most important thing to remember when using SManager is to set 91bms for "on boot" and "SU"/"superuser"/whatever current term they are using for run as root is active too.

---------------------------------------------------

Please thank if my software has helped you and please leave logs and descriptions of problems if my software did not work for you.
[Moto G Original Android Development] elrod16:
[MENTION=7111881]wald0rf[/MENTION] I moved the charge delay back to 15 minutes in this newest version now that I had time to improve the wake lock code. Let me know if you think that is more ideal, anyone and everyone else input is welcome as well.

---------------------------------------------------

Please thank if my software has helped you and please leave logs and descriptions of problems if my software did not work for you.
[Moto G Original Android Development] wald0rf:
[MENTION=6190802]elrod16[/MENTION], I tried to charge the battery overnight and indeed the percentage this time stopped at 95 (maxlife set 95 normal). I started the script with SManager to be safe at boot . This night will try again , restarting the phone to see what happens.

Tested maxlife version 1.07

Android 5.1 stock rooted.
[Moto G Original Android Development] elrod16:
Cool, thanks for the feedback. Does the return to the 15 minute charge restart delay seem more appropriate to you?

---------------------------------------------------

Please thank if my software has helped you and please leave logs and descriptions of problems if my software did not work for you.
[Moto G Original Android Development] dingermtb:
Thanks for this MOD. Works perfect on OnePlus X.

Sent from Outside the 9 using my Exodus Zombiefied OnyX
[Moto G Original Android Development] wald0rf:
Last night failed again, the battery charged up to 100%

[MENTION=2214429]tapatalk[/MENTION]
[Moto G Original Android Development] elrod16:
What value were you testing with? Could you tty a lower one like85%? Because there is a documented problem with the android fuel gage jumping to 100 when the charge is in the upper 90's

---------------------------------------------------

Please thank if my software has helped you and please leave logs and descriptions of problems if my software did not work for you.
[Moto G Original Android Development] happytab999:
Hi, I dont know what I am doing wrong but this doesnt seem to be working for me on Oneplue One running Marshmallow on Broken OS.

I flashed the zip file in recovery, went into Terminal Emulator and ran su then 'maxlife set 90 normal' but when I type ps | grep maxlife nothing comes up. I have attached screenshots FYI.

I'm sure this is user error but any guidance you can give would be greatly appreciated.
[Moto G Original Android Development] elrod16:
That means you don't have init.d support, which is a prerequisite. Some people have used SManager to run 91bms as root on boot to work around not having init.d.

---------------------------------------------------

Please thank if my software has helped you and please leave logs and descriptions of problems if my software did not work for you.
[Moto G Original Android Development] happytab999:
But I run Broken Rom which has a comprehensive list of Init.d options! My Init.d folder has about 20 files in it. I'm confused.
[Moto G Original Android Development] elrod16:
Well please try the fix I described. If you're able to set the maxlife options (which you did), the same executable is the actual mod, so we know it runs, only leaving broken init.d as the possible option. Some kernels or ROMS just have broken init.d.

---------------------------------------------------

Please thank if my software has helped you and please leave logs and descriptions of problems if my software did not work for you.
[Moto G Original Android Development] happytab999:
Sorry mate, I am obviously being thick here, I have downloaded Smanager but I don't know what script to run. I tried to run the Init.d file for 91bms but it said 'operation not permitted' I am running root on Smanager so that can't be it.

Sorry to be a pain but this program does exactly what I do manually every day and would it would be so cool to get it working.

Thanks again for your time.
[Moto G Original Android Development] elrod16:
In SManager there are options that you need to set to have the script run as root, it won't do it unless you manually activate that option for the script

---------------------------------------------------

Please thank if my software has helped you and please leave logs and descriptions of problems if my software did not work for you.
[Moto G Original Android Development] elrod16:
I'm releasing an add on later today for people who have init.d problems. I've already made it (its a simple Tasker AppFactory creation) and am just testing it throughout the day til releasing it this evening.

---------------------------------------------------

Please thank if my software has helped you and please leave logs and descriptions of problems if my software did not work for you.
[Moto G Original Android Development] wilberfan:
For whatever reason, this mod doesn't seem to work on my d2spr (Sprint Galaxy S3) running the latest Vanir custom ROM. Is it a kernel issue, or....?

Never got a response to the grep command, and battery charging went right past 90% (which I had manually set it for). Any thoughts?
[Moto G Original Android Development] elrod16:
That means your init.d isn't running it, I'll be releasing an experimental add on for this later today for people with broken init.d

---------------------------------------------------

Please thank if my software has helped you and please leave logs and descriptions of problems if my software did not work for you.
[Moto G Original Android Development] elrod16:
OK the experimental fix for people with init.d trouble is up. It is under the normal download in the OP. It installs a service to your system apps that should hopefully start maxlife on boot. Works on my device. There wont be an icon for said app though, it'll only be visible in your list of apps in settings. [MENTION=3442866]wilberfan[/MENTION] [MENTION=6220686]happytab999[/MENTION] [MENTION=3335876]ronyscomparim[/MENTION]

See if this works for you. You just need to install the experimental package, not it and the nornal one, but it will work installing over a previous install.

---------------------------------------------------

Please thank if my software has helped you and please leave logs and descriptions of problems if my software did not work for you.
[Moto G Original Android Development] wilberfan:
Just flashed the experimental fix. Upon boot I got a request for root (something I hadn't seen before). The ps | grep command gave me a response this time. The odd thing is that there's nothing in /System/etc/init.d having anything to do with MaxLife, so I'm not sure where to check my settings...
[Moto G Original Android Development] elrod16:
You use the built in settings editor discussed in the OP, and the 91bms file isn't used in the experimental fix version

---------------------------------------------------

Please thank if my software has helped you and please leave logs and descriptions of problems if my software did not work for you.
[Moto G Original Android Development] hemantkarandikar:
Just flashed maxlife latest version for broken init.d

After flashing in recovery and booting to system. I could see maxlife running by ps |grep maxlife. I could also set parameters to 95% and normal.

Hoever after exiting root mode and closing terminal i continued to get # in status bar and now my phone has become unresponsive

Will report further

update: found it impossible to use phone. Couldn't even delete files in /system. I had to boot into recovery, wipe system partition etc. and reflash nightly etc. (Moto G Falcon, on CM 13 official nightly channel)
[Moto G Original Android Development] wilberfan:
Good to know. The 91bms file was not playing nicely with another mod I had installed, so this could be a positive. :) Charging now (following a "maxlife set normal 85" command), so we'll see how that goes...

---------- Post added at 09:45 PM ---------- Previous post was at 09:03 PM ----------

Well, it blew right past 85% -- it's at 92% now--so it's still not working properly. :(
[Moto G Original Android Development] elrod16:
Do you guys have busybox installed?

---------------------------------------------------

Please thank if my software has helped you and please leave logs and descriptions of problems if my software did not work for you.
[Moto G Original Android Development] wilberfan:
I do now! (Retesting)

[edit] Nope. Still went past the set point (90% in this case).
[Moto G Original Android Development] elrod16:
Try having busy box setup and removing the old installation and reinstalling. Or just try deleting the MaxLife data with your settings app and /data/maxlife.cfg and reconfiguring everything.

Because if the init.d workaround app ran without busy box there is a good chance it didn't configure right and got stuck in an infinite loop.

---------------------------------------------------

Please thank if my software has helped you and please leave logs and descriptions of problems if my software did not work for you.
[Moto G Original Android Development] wilberfan:
Turns out I DID have busybox installed during my initial test, so "installing" it again basically just updated it.

Tried a couple of remove-and-reinstalls, and maxlife is still

not

halting the charge at the set limit (86% in this latest test).
[Moto G Original Android Development] FullCycle:
Is doze mode of marshmallow blocking the script? Are you able to mark the app not to be optimised for battery?
[Moto G Original Android Development] wilberfan:
Went to Settings > Battery Optimization > All Apps and clicked on Maxlife. Changed it to "Don't optimize".

# maxlife set normal 90

Plugged into charger, but it's still going past the limit (now at 93%)...
[Moto G Original Android Development] elrod16:
Yeah any kinda app hibernating/wake lock blocking thing will block the app from being able to wakeup when the charge is at the set level.

I would recommend disabling it when charging.

---------------------------------------------------

Please thank if my software has helped you and please leave logs and descriptions of problems if my software did not work for you.
[Moto G Original Android Development] matthias1976:
pls delete......

my fault :(:crying:
[Moto G Original Android Development] elrod16:
That won't prevent it blocking the background process, the actual "worker" process of maxlife runs unconnected to the app visible in settings. I would recommend disabling the battery optimization when charging.

---------------------------------------------------

Please thank if my software has helped you and please leave logs and descriptions of problems if my software did not work for you.
[Moto G Original Android Development] the_poolee:
As per my understanding, doze in Marshmallow doesn't kick in when connected to a charger. But, I think somehow the device goes into doze mode within the charger freeze period when the set level is reached. Some aggressive doze or immediate doze setting is to be blamed, I shall check that out and report later. In case anyone is wondering, I'm also on CM13 (Motog) and facing the same problem. Charging rate commands do work but charging just goes beyond set limit under longer periods.

Here at xda, people hit the Thanks button ? for showing their gratitude. What a strange place! ?
[Moto G Original Android Development] elrod16:
That seems fitting. If that isn't the exact cause, it must be something user configurable since some people on the exact same ROM and device have no troubles while others do.

---------------------------------------------------

Please thank if my software has helped you and please leave logs and descriptions of problems if my software did not work for you.
[Moto G Original Android Development] matthias1976:
it works now.

my problem was missing busybox, each time flash new nightly busybox is gone.

maxlife only work for me when set in terminal.

init.d wont work for me.
[Moto G Original Android Development] elrod16:
Does the experimental version fix that?

---------------------------------------------------

Please thank if my software has helped you and please leave logs and descriptions of problems if my software did not work for you.
[Moto G Original Android Development] the_poolee:
Yep, Aggressive Doze and Automatic Hibernation in Greenify were turned on. I just turned off Automatic Hibernation and checked to find the terminal command setting to last a full night charge session. Lets hope everything works next time as well.:fingers-crossed:
[Moto G Original Android Development] elrod16:
Thanks! Excellent work testing and debugging! Hopefully more people will see and benefit from your report.

---------------------------------------------------

Please thank if my software has helped you and please leave logs and descriptions of problems if my software did not work for you.
[Moto G Original Android Development] the_poolee:
No probs, always glad to be a part of the community... Btw, tried another night charge session and am glad to report everything works as expected.

P. S. : I would sincerely like you to post something in the OP regarding this since there are quite a lot among us who just doesn't go through all the posts. Besides, it'd would solve a lot of questions. [emoji1]

Here at xda, people hit the Thanks button ? for showing their gratitude. What a strange place! ?
[Moto G Original Android Development] elrod16:
I myself am not running an up to date ROM with those features, if you'd be kind enough to leave a detailed post explaining the procedure you did to fix the issue I will add it to the OP and credit you with the solution and debugging work you did.

---------------------------------------------------

Please thank if my software has helped you and please leave logs and descriptions of problems if my software did not work for you.
[Moto G Original Android Development] the_poolee:
Done! Post sent as PM to you [MENTION=6190802]elrod16[/MENTION]

Here at xda, people hit the Thanks button ? for showing their gratitude. What a strange place! ?
[Moto G Original Android Development] phatin:
Looks like it's working good. I plugged my phone into a 1.8A charger and maxlife is limiting the charging current into about

300mA, good job on that one. I am running CM 13 on my phone if you were wondering.
[Moto G Original Android Development] elrod16:
[MENTION=6626737]the_poolee[/MENTION] Added your guide to the OP, thanks!

I installed an xposed backport of an "instant doze" mod and experienced the same issue. I believe all "instant doze" mods just subvert the entire wakelock system.

---------------------------------------------------

Please thank if my software has helped you and please leave logs and descriptions of problems if my software did not work for you.
[Moto G Original Android Development] dhananjay123:
What is broken int.d and do I need to flash both the zip files in the OP ?
[Moto G Original Android Development] elrod16:
No, you only need to flash the broken init.d one if the first one doesn't work or you already know your ROM/kernel doesn't have working init.d

---------------------------------------------------

Please thank if my software has helped you and please leave logs and descriptions of problems if my software did not work for you.
[Moto G Original Android Development] dhananjay123:
I have set the limit to 85 and slow and the charging stopped at 84 % . So I think it is working but how can I check if the slow charging is working or not ?
[Moto G Original Android Development] the_poolee:
Well, its easy. The lockscreen itself shows that you are charging rapidly or slowly (it does in MM). If you are still not convinced, try installing Ampere from Play store. It shows the current amps (mA) being drawn from the charger. :good:
[Moto G Original Android Development] dhananjay123:
I am getting this reading in slow . Is it ok ? :confused:
[Moto G Original Android Development] matthias1976:
Change to turbo and u will see the difference.

200 is slow :good:
[Moto G Original Android Development] dhananjay123:
How is the person in post #107 getting 50mA in slow ?

How to revert back the changes after flashing the broken init.d zip ?
[Moto G Original Android Development] phatin:
I'm guessing you probably flash the ROM file back

Correction. You delete /system/etc/init.d/91bms and /system/bin/maxlife

As the OP said
[Moto G Original Android Development] elrod16:
My bad, with the "broken init" version you can delete /system/priv-app/Maxlife8_src_sign.apk (or something like that) and then just flash the normal version over it, or delete /system/bin/maxlife for a complete uninstall.

---------------------------------------------------

Please thank if my software has helped you and please leave logs and descriptions of problems if my software did not work for you.
[Moto G Original Android Development] matthias1976:
for me big battery drops between 100 and 90

Moto G 4g
[Moto G Original Android Development] elrod16:
That is because this mod prevents the "saturation" stage of charging, which helps capacity, but is a high wear stage on the battery.

Edit: [MENTION=6030671]dhananjay123[/MENTION] sorry I just noticed your question about the 50mA went unanswered. That is the net current, with the in current and the parasitic load of the phone deducted from it. They achieved a current that low using "slow" while also doing something somewhat energy demanding at the same time. Like I'll see that charging on slow while doing a high speed download over WiFi. Sometimes even, the parasitic load can be so high that you're actually not charging on slow mode, so that is something to watch out for. If there is interest in it I could add "dynamic scaling" to adjust the current to match a certain net level considering the in current and the parasitic load.

---------------------------------------------------

Please thank if my software has helped you and please leave logs and descriptions of problems if my software did not work for you.
[Windows 10, 8, 7, XP etc.] Celsius1379:
Hello,

I have been developing in my spare time an app called SteamPaver. It creates Windows 10 tiles for Steam Games.

The idea is based on Win10Tile but optimized for Steam games with simple editing tools.

TH2 update is required.

First it downloads a list of your games using your SteamCommunity ID.

Then it downloads the default game image from Steam and lets you crop it and make a tile from it.

It is using the default Steam url for launching games, but wraps it in a script file so it can use VisualManifest to add a tile image to it.

This is very early release where you can test only it's core functionality.

Since this is just a test run I would like your comments about what to improve :)

Latest release:

https://github.com/mgrman/SteamPaver/releases

Source code is available on SteamPaver's GitHub page:

https://github.com/mgrman/SteamPaver
[Windows 10, 8, 7, XP etc.] PCSE:
I will try this as soon as im home and I'll give you Feedback then.

Gesendet von meinem ALE-L21 mit Tapatalk
[G4 Q&A, Help & Troubleshooting] msacco4:
Hello, something that really bothers me is that if I get a message(whatsapp,fb,etc) and I click on it to open it, I first need to unlock the screen(I use the regular slide unlock) and its really annoying, how can I change that so I wont need to unlock the phone every time I want to open a notification?

Thanks.
[G4 Q&A, Help & Troubleshooting] KoRoZIV:
I know, it's annoying. You can touch the notification and slide down, an option to view will appear, click and will go directly in to it. On nexus I just have to double tap the notification and will do it, much confortable.