[App][4.1+] Charger Extras (Out of beta ! ) - Android Apps and Games

Hi Guys.
I need help for testing a new app I've been working on.
It's an app that's truely "set and forget", that makes your smartphone even smarter.
When you're tired and just wants to sleep, plug in your phone to the charger and BAM the clock app is there, ready for you to set the alarm.
It will do various tasks when you plug in a charger, eg:
Open an app you define
Activate daydream (Screensaver) after a certain interval
Enable silent mode
Enable flightmode (Requires root)
Reboot phone after certain interval (Requires root)
Go to homescreen when charger is unplugged
Play sound when charger plugged/unplugged
Sound when charger plugged/unplugged
The reboot functionality is especially useful if you (like me) forget to reboot your phone sometimes. All Android phones run low on memory over time, and a reboot is the most effective way to avoid this.
This app won't run unless the phone is in charger = Next to none impact on battery life.
Reasons for app permissions:
MODIFY_AUDIO_SETTINGS - To be able to set silent mode
BIND_DREAM_SERVICE - To be able to start DayDream (On Android 5.0+)
RECEIVE_BOOT_COMPLETED - To know when the app rebooted the device (and act accordingly)
What do you think guys? Anything you will use?
If you have any suggestions/feature requests please don't hesitate to mail me at [email protected] or put an answer below- I'm fully open to new suggestions and they are very welcome.. :victory:
Installation
Install the app from Google Play
Thanks! :victory: :laugh: :highfive:
XDA:DevDB Information
Charger Extras, App for all devices (see above for details)
Contributors
dthomasen
Version Information
Status: Alpha
Current Stable Version: This is an app is tr
Created 2015-06-26
Last Updated 2015-06-26

Testing. Suggestions:
1. Optional notification sound/vibration when plugged/unplugged.
2. Optional notification sound/vibration when: a) full charged; b) unplugged and bellow certain battery level.
3. I think it must have a timer to activate the airplane mode (not all the times we charge that it should be enabled..., perhaps only at night).

Technical said:
Testing. Suggestions:
1. Optional notification sound/vibration when plugged/unplugged.
2. Optional notification sound/vibration when: a) full charged; b) unplugged and bellow certain battery level.
3. I think it must have a timer to activate the airplane mode (not all the times we charge that it should be enabled..., perhaps only at night).
Click to expand...
Click to collapse
Thanks, I'll add them to my upcomming feature list..

I just pushed a new release to Google Play
Changelog:
Declare superuser permission in manifest
Dialog boxes for root settings
Timer for flightmode
Sound when charger plugged/unplugged

I've approved the app for production.
Installation is now only to install from Google Play..
Enjoy guys

Thanks, but the airplane mode is (yet) to be more flexible.
If some other features come, I'll be able to uninstall other apps that has "similar" functionality, for instance:
1. Battery temperature on notification.
2. Options for not warning sound while headphones are connected, or while in call.
Seems a promising app. Thanks.

Technical said:
Thanks, but the airplane mode is (yet) to be more flexible.
If some other features come, I'll be able to uninstall other apps that has "similar" functionality, for instance:
1. Battery temperature on notification.
2. Options for not warning sound while headphones are connected, or while in call.
Seems a promising app. Thanks.
Click to expand...
Click to collapse
What more flexibility do you want in the airplane mode?
You're thinking battery temperature when charging only? Or all the time?

dthomasen said:
What more flexibility do you want in the airplane mode?
Click to expand...
Click to collapse
I want to start airplane mode only when charging overnight. If any charge starts the airplane mode, I'll lose calls and messages in the middle of the day. I'm an intensive user of the phone. I need to charge frequently, not only overnight. You've add the option (timer) to start airplane mode after some seconds, but it would be good, imho, if we have a period (from time to time) where the airplane mode is started. Charging outside of this period won't trigger the airplane mode.
dthomasen said:
You're thinking battery temperature when charging only? Or all the time?
Click to expand...
Click to collapse
The more configurability the better: if the user can chose for a permanent notification, it will help to keep the app alive.
I myself would like to set a temperature level when it reaches a predefined temperature.

Technical said:
I want to start airplane mode only when charging overnight. If any charge starts the airplane mode, I'll lose calls and messages in the middle of the day. I'm an intensive user of the phone. I need to charge frequently, not only overnight. You've add the option (timer) to start airplane mode after some seconds, but it would be good, imho, if we have a period (from time to time) where the airplane mode is started. Charging outside of this period won't trigger the airplane mode.
The more configurability the better: if the user can chose for a permanent notification, it will help to keep the app alive.
I myself would like to set a temperature level when it reaches a predefined temperature.
Click to expand...
Click to collapse
Ahh like that.. I'll add it to the upcomming feature list.
Expect an update sometime next week.
Thanks. :highfive:

New version submitted to Google Play..
Should show up in a couple of hours
Changelog:
- Restructured with material UI drawer
- Soft reboot type implemented
- Set when app should be active (Time of day)
- Flurry integrated

New version submitted.
Changelog:
- Fixed time activation when using times on opposite sides of midnight
- Ability to set independent sound for plug and unplugging
- Added feature to set minimum screen brightness when charging
- Added feature to launch app when unplugging (Useful for morning news reading )
Enjoy

Just submitted a new version - With a very requested feature
Changelog:
- Activate based on charger type:
- Wireless
- USB
- AC
Enjoy.

Related

Favorite Tasker Profiles

What are some of your guys's favorite Tasker profiles for your GS3?
aaronfuhrer said:
What are some of your guys's favorite Tasker profiles for your GS3?
Click to expand...
Click to collapse
One of my more useful ones is a set of Bluetooth controls. It has 3 core profiles and any number of time profiles that will turn Bluetooth on at a specified time and disable it after so many minutes with a few different conditions to handle active connections and such. This keep Bluetooth off for most of the day and only turns it on when I normally need it the most.
Profile Name: Bluetooth Noon
(I have three of these. One for the morning drive to work, one for lunch time and one for the drive home after work)
Contexts:
Time - 11:45
Days - Mon, Tue, Wed, Thu or Fri
Tasks:
Enter Task
1.) Bluetooth - Set On
2.) Variable Set - Name %BTSchedActive To yes
3.) Wait - MS 0 Seconds 0 Minutes 30 Hours 1
4.) Variable Set - Name %BTSchedActive to no
5.) Profile Status - Name Bluetooth Countdown Set On
Profile Name: Bluetooth Connected
Contexts:
Bluetooth Connected - *, *
Tasks:
Enter Task
1.) Variable Set - Name %BTConnActive To yes
Exit Task
1.) Variable Set - Name %BTConnActive To no
2.) Profile Status - Name Bluetooth Countdown Set On
Profile Name: Bluetooth Countdown
Contexts:
Variable Value - %BTConnActive Matches no
Variable Value - %BTSchedActive Matches no
Tasks:
Enter Task
1.) Profile Status - Name Auto Off Unpaired Bluetooth Set On
Profile Name: Auto Off Unpaired Bluetooth
Contexts:
NOT Bluetooth Connected - *, *
Variable Value - %BLUE Matches on
Tasks:
Enter Task
1.) Variable Set - Name %TIMCOUNTER To %TIME + 900
2.) Wait - MS 0 Seconds 0 Minutes 1 Hours 0 Until %TIMES > %TIMCOUNTER
3.) Bluetooth - Set Off If %PACTIVE ~ *Auto Off Unpaired Bluetooth*
Edit: I've attached the XML files for ease of import. Just rename them from .txt to .xml after you download them.
Would anyone be able to create a tasker profile to disable the LED notification during certain hours (for TouchWiz)? Example, turn off all LED notifications at 11pm, turn back on at 7am.
s197 said:
Would anyone be able to create a tasker profile to disable the LED notification during certain hours (for TouchWiz)? Example, turn off all LED notifications at 11pm, turn back on at 7am.
Click to expand...
Click to collapse
Try these out. The Disable Sync at night has the time component and prevents email and other Google sync items from being sync during that time frame (I have to leave my phone off silent for On-Call pages, but hate getting email notifications and such at 2am). With the below, from 11:30pm to 6:20am Sync is disabled. As a result, any notifications that do come in will trigger the other two profiles to get ride of the notification light. On handles the initial notification received the other turns the light back off if you turn the screen on the off again (normally the notification is reset and it would flash if we didn't add this extra step. The two that issue commands require Root. It would be best to manually run them once to ensure Tasker has the permissions it needs.
If you don't want sync disabled, then change the profile Active attribute in 'Disable Notify Light @night' to a Time range. Hope this helps.
Profile Name: Disable Notify Light @night
Contexts:
Notification - *, *
Profile Active - Disable Sync At Night
Tasks:
Enter Task
1.) Run Shell - Command echo 0 > /sys/devices/virtual/sec/led/led_pattern Use Root
Profile Name: Disable Notify Light
Contexts:
Display State - Off
Profile Active - Disable Disable Notify Light @night
Tasks:
Enter Task
1.) Run Shell - Command echo 0 > /sys/devices/virtual/sec/led/led_pattern Use Root
Profile Name: Disable Sync At Night
Contexts:
From - 23:30 Till 06:20
Power - Any
Tasks:
Enter Task
1.) Auto Sync - Set Off
Edit: I've attached the XML files for ease of import. Just rename them from .txt to .xml after you download them.
Will try this out tonight, really appreciate your help and quick response!
Thanks for those great profiles, ViperRacer. I hope you don't mind if I ask you a quick question. You don't need to go to the time to make one out if you don't want to, but I've been trying to make a profile to disable the lock screen when I'm at home. I have it set to disable when I'm on my Wi-Fi, but it only seems to work 50% of the time. It'll be off for a while, then randomly turn on again. Any help would be appreciated! Thanks again!
aaronfuhrer said:
Thanks for those great profiles, ViperRacer. I hope you don't mind if I ask you a quick question. You don't need to go to the time to make one out if you don't want to, but I've been trying to make a profile to disable the lock screen when I'm at home. I have it set to disable when I'm on my Wi-Fi, but it only seems to work 50% of the time. It'll be off for a while, then randomly turn on again. Any help would be appreciated! Thanks again!
Click to expand...
Click to collapse
I'd be curious to know what your Advanced Wi-Fi Settings were, specifically the 'Keep Wi-Fi on during sleep'. If it is set to 'Never' or 'Only when plugged in' it will turn off the Wi-Fi at some point while the phone screen is off, thus causing the tasker profile to stop running until the phone is woken up again which would happen second to you turning on the phone and being presented with the unwanted lock screen.
I would suggest setting that option to 'Always' and see if it yields better results.
ViperRacer said:
Try these out. The Disable Sync at night has the time component and prevents email and other Google sync items from being sync during that time frame (I have to leave my phone off silent for On-Call pages, but hate getting email notifications and such at 2am). With the below, from 11:30pm to 6:20am Sync is disabled. As a result, any notifications that do come in will trigger the other two profiles to get ride of the notification light. On handles the initial notification received the other turns the light back off if you turn the screen on the off again (normally the notification is reset and it would flash if we didn't add this extra step. The two that issue commands require Root. It would be best to manually run them once to ensure Tasker has the permissions it needs.
Click to expand...
Click to collapse
I tried the profiles last night and unfortunately it didn't work. The auto-sync didn't shut off and the LED notification stayed on. I did run it manually to allow root so I don't think that was the issue. Any idea why it didn't work?
s197 said:
I tried the profiles last night and unfortunately it didn't work. The auto-sync didn't shut off and the LED notification stayed on. I did run it manually to allow root so I don't think that was the issue. Any idea why it didn't work?
Click to expand...
Click to collapse
That's rather strange. The disable auto sync is one of the simpler profiles and should have worked. I hate to ask, but is the profile enabled (green check mark)? All three should be enabled at all times. Try modifying the profile and set the time range to be something that would force it to activate now and plug it into a power source. If you don't want the power source requirement (which is another possibility) just remove that context. I personally keep it in case I'm out late with friends so I continue to get email even if it is past the hour.
s197 said:
I tried the profiles last night and unfortunately it didn't work. The auto-sync didn't shut off and the LED notification stayed on. I did run it manually to allow root so I don't think that was the issue. Any idea why it didn't work?
Click to expand...
Click to collapse
I also ran this last night.
In order for the profile to kick in it needs to be during the time specified and plugged in.
Once I plugged in my phone my sync turned off.
My red battery charge light did come on. Not sure if this stayed on the whole time or not. Later at night when I woke up I did not see the green charged light on.
At the specified time in the morning, while still plugged in my sync turned back on and I received my email messages.
So for me this worked well, but I will need to check to see why the red light stayed on. I would have expected the profile to kill this light too.
Thanks for these profiles they worked pretty good for me.
Austin808 said:
...My red battery charge light did come on. Not sure if this stayed on the whole time or not. Later at night when I woke up I did not see the green charged light on...
Click to expand...
Click to collapse
I had turned my charging light off within the first day of getting the phone so I've never actually tested that part. I would take a guess that there is no notification occurring, thus the profile isn't triggered killing the LED for charging. The Green LED is killed because we do get a notification in the bar for a full charge. One solution is to maybe add another couple of tasks in the Disable Sync At Night profile that waits for 10 seconds and then issue the command there to kill off that light. But thats only a guess. I'll play around with it and see if that would fix it.
Update:
I tested out this and it worked. Screen was off and within 10 seconds the led was shutoff.
Profile Name: Disable Sync At Night
Contexts:
From - 23:30 Till 06:20
Power - Any
Tasks:
Enter Task
1.) Auto Sync - Set Off
2.) Wait - Seconds10
3.) Run Shell - Command echo 0 > /sys/devices/virtual/sec/led/led_pattern Use Root
This will take care of the initial red charging light. As a note, the light in theory would come back if the screen was turned back on and off but the other profile triggered at display off will handle that condition. Adjust the 10 second wait as needed if your screen timeout is longer. May not be much of an issue though as the other profile should kick in in the event the screen stays on long enough.
ViperRacer said:
That's rather strange. The disable auto sync is one of the simpler profiles and should have worked. I hate to ask, but is the profile enabled (green check mark)? All three should be enabled at all times. Try modifying the profile and set the time range to be something that would force it to activate now and plug it into a power source. If you don't want the power source requirement (which is another possibility) just remove that context. I personally keep it in case I'm out late with friends so I continue to get email even if it is past the hour.
Click to expand...
Click to collapse
Doh! I was testing it without it being plugged in. I bet that was the problem, thanks I'll adjust to remove that feature and see if it works.
Edit: Works!
ViperRacer said:
Update:
I tested out this and it worked. Screen was off and within 10 seconds the led was shutoff.
Profile Name: Disable Sync At Night
Contexts:
From - 23:30 Till 06:20
Power - Any
Tasks:
Enter Task
1.) Auto Sync - Set Off
2.) Wait - Seconds10
3.) Run Shell - Command echo 0 > /sys/devices/virtual/sec/led/led_pattern Use Root
This will take care of the initial red charging light. As a note, the light in theory would come back if the screen was turned back on and off but the other profile triggered at display off will handle that condition. Adjust the 10 second wait as needed if your screen timeout is longer. May not be much of an issue though as the other profile should kick in in the event the screen stays on long enough.
Click to expand...
Click to collapse
Thanks, this information helped me to find a solution that works for me.
I added the Wait 10 seconds to the task Notify Light Off.
Added Notify Light Off task to the Disable Sync At Night profile
Changed profile Disable Notify Light, change the Profile Active to Disable Sync At Night (if I did not do this if I turn on the screen then back off again the light would stay on)
I think this is working perfectly for me now. Thanks again.
I have these (no order) I can think of:
1. power plug: turn keyguard off, keep screen on
2. wifi off at 10:30 pm in case I forget to turn it off (battery savings)
3. sync off 10:30-6am so I do not get emails and such while I sleep
4. on sunday's from 9-10:15 it mutes the phone while I am in church
5. from 11:45pm until 5:30am it goes into airplane mode (battery savings)
6. when Navi app is run, GPS is turned on, screen brightness is turned up, keyguard is turned off, screen stays on
7. BT turns off at 9pm (battery savings)
8. whenever BT initially syncs, a tone is played to tell me the phone is connected and ready
Hmm, that keep Wi-Fi on during sleep option didn't seem to help. Not sure what else it would be. Thanks for trying anyways!
aaronfuhrer said:
Hmm, that keep Wi-Fi on during sleep option didn't seem to help. Not sure what else it would be. Thanks for trying anyways!
Click to expand...
Click to collapse
There is a little known bug/feature of the S3. I found and saved this tip a while back. Needs to be done every time you reboot though.
WiFi Powersave
Using the phone dialer, dial *#0011# then press the menu key, then from the popup menu, select WiFi. You will see a button to turn off the power save mode. It will stay off until the phone is restarted, and this should allow control by Tasker to be more consistent. Press the back button repeatedly to get out of these screens.
Thanks for tips I was wondering why I couldn't get the lock screen profiles to work either. What if they were tied to cell towers near home?
Sent from my SCH-I535 using Tapatalk 2
aaronfuhrer said:
Hmm, that keep Wi-Fi on during sleep option didn't seem to help. Not sure what else it would be. Thanks for trying anyways!
Click to expand...
Click to collapse
My lock screen has randomly appeard on me as well.
Profiles:
Wi-fi on when in range of certain towers
lock screen off when connected to router
I seem to get the random unexpected lock screens after a rebooting, and thought I had it narrowed down to cycling tasker on and off a few times. I just started using tasker a couple days ago, will keep tinkering with it, let me know if this helps you at all.
I just started using tasker and I'm trying to create a (what should be) very simple profile.
I want to have my display brightness normally set to 36% on battery and 75% when plugged in.
It works very well, except that if I reboot my phone while plugged in, it will not go back down in brightness once i unplug it.
I simply set a "task" to set the brighness at level 165 when power source is AC. I don't see a selection for battery, just "any, AC or USB".
How do I get it to check if it's not plugged in to set the display brighness?
modmandan said:
I just started using tasker and I'm trying to create a (what should be) very simple profile.
I want to have my display brightness normally set to 36% on battery and 75% when plugged in.
It works very well, except that if I reboot my phone while plugged in, it will not go back down in brightness once i unplug it.
I simply set a "task" to set the brighness at level 165 when power source is AC. I don't see a selection for battery, just "any, AC or USB".
How do I get it to check if it's not plugged in to set the display brighness?
Click to expand...
Click to collapse
Try using the Invert option with Both AC/USB. It should fire when power is not provided by either of those sources.

Craig's battery saver material design update!

New material design support added for pre lollipop users ( kitkat and lower)
The most powerful battery saver for 2016, it has no popup ads! 4meg service after reboot, it's the most efficient battery saver on the playstore!
*Control via SMS commands simply sending text on/off via sms (Precise Lost/Stolen position (in conjunction with apps like Where's My droid)) so even if you lose or have your ohone stolen, sending on will enable 3g/wifi/bt/gps etc for apps like WMD to get your precise location..
*Double even triple your Battery Life!
*Autostarts manager (simply click on the clean button/clean) to give a like new device!
*Freemem option - simply tick and it will release memory when you turn the screen off
*Faster battery charging!
*Phone runs cooler when not in use!
*Full hardware support 4.4/5/6 Fully supports kitkat/lollipop+ for advanced power management
*Only 4 meg of used memory after reboot
*Uses less resources than DU/Greenify but is more powerful and more energy efficient!
https://play.google.com/store/apps/details?id=saver.battery.craigs.craigsbatterysaver
(The old thread was locked because at the time i made the thread, it was in heavy development and now it does things the original could not and no longer is relevant, thanks mod! )
sorry but, ugly UI
Sorry you're too vain to try it....
It's simple and efficient ! One question, Wich one it's better ? Extreme saver or way more battery ?
Extreme simply means the phone never wakes up from sleep mode, the other 2 options will switch wifi/4g/bt/gps (whatever was on before the screen goes off, it will then wait 15 seconds (enough time for email/facebook/etc notification) then power down...
Inbetween wakes every 30 minutes or so, the other is more like every hour.
So if you enjoy silence (except for sms/calls) extreme will give that
One thing this app has over the majority of them is that this was written ground up, you'll find with the popular battery apps it all comes from the same source code and they all end up with shared underlying bugs...
Probando Craig!
javiergelvez1 said:
Probando Craig!
Click to expand...
Click to collapse
Gracias!
OK - sorted out the task manager, the last build was shutting down the home screen build 83 (causing a 4 second delay from the top most app back to the home screen)
It now keeps it alive and the lag has gone, it was in the name of power saving but i think it was a little over kill, sorry about that, build 84 has it sorted back to full speed even after being put into deep sleep (FreeMem can be used again)
Thanks!
Jellybean fix - clean prevented youtube from running!
Anyone had any problems with this? (I'll be working on the ui soon)
Jelly bean bug sorted, clean was disabling youtube!
Alrighty then, as part of the clean up options (clean! It clears up cache files and an option to restore autostarts)
Next release will be to improve the gui! Material world design!
Material Design Update!
Any problems email me ASAP and i'll sort it out, please remember this saves your battery when screen is off! Eg go bed with 98% wake up with 97%
Any suggestions for what to add next?
How to turn off the sound when locking pphone and locking it. I already unchecked the box yet it still happenes
Sent from my LG-MS323 using Tapatalk
Untick "turn sounds on"
If you did then you never pressed the back key/exited the app/pressed start service... before the screen switches on/off (only when it exits does the settings save/update)
Its working...
I'll have it automatically save the settings with each tick you make next release
After thinking about it, with each settings change it would have to re-launch the main service via an intent, seems wasteful over simply exiting and passing all the saved changes
Which is better? Schedule (eg between 9-10am don't disable anything) or a timer (eg don't disable anything for 60 minutes)
Which is better?
Fixed a bug with keep wifi on when connected option!
New update, it handles a process kill and can distinguish between a kill and stop service command, onDestroy is fired when correctly shutdown, kill however does not do that, to my amazement when an android is shut down, every process is killed! So i had to hook a shutdown intent!
New build - crash/killed detection no more having to re run the app!

[APP][ROOT][4.0+]Battery Charge Limit v1.1.1

Please read the following before installing the app:
This app requires a rooted mobile (Android 4.0 or later)
Before uninstalling the app, disable limit in the app (if forgotten, reboot after uninstalling)
Usage instructions and app details:
Enable limit in the app
Change the limit up to which it should charge (default: 80)
Check which control file suits best for your device, see Q/A section below for hints. In most cases, the pre-selected choice should be the best that's available for your device.
The app only gets kicked in while you connect a charger (or USB), and automatically closes shortly after unplugging charger (or USB) i.e it only runs in the background as long as it is plugged in, and won't affect your battery life.
If your device is not charging even after disabling the limit (which shouldn't happen, just in case), uninstall the app and reboot the device (The changes made by the app don't survive a reboot). Your device should charge normally then.
If the app says "your device is not yet supported"
There are various control files in different devices (due to OEMs), and toggling the values in them (0 and 1) makes it possible to enable and disable charging via software (might not be possible for every device), though the charging cable is still physically connected.
Since we cannot own every device, it is impossible for us to find every file. We can support a lot more devices with information provided by testing possible files on different devices by you, the people in the community.
Hence, for support to be provided to other devices, you need to do some detective work to find the files on the respective devices. Please refer to this file for control files of currently supported devices, so you can know where they are generally present: https://github.com/sriharshaarangi/BatteryChargeLimit/blob/master/app/src/main/res/raw/control_files.json
You can send us a pull request or open an issue on GitHub. If necessary, you can also post the name of the device and the file here.
FAQ
Q) Can you please add support for... (insert arbitrary device name here)?
A) Maybe, but we need your help. Bottom line, this app does nothing but modifying the content of a certain "control file", some more details are given above. If you find such a control file for your device, please let us know (ideally, open a GitHub issue here: https://github.com/sriharshaarangi/BatteryChargeLimit/issues) and we will add support for your device.
Q) I think I observed a bug. Can you fix it?
A) We'll do our best, but we need your help: Please open an issue on GitHub (https://github.com/sriharshaarangi/BatteryChargeLimit/issues) and provide as much information as possible about the problem.
In most cases, we need the "logcat" logs of your device to find out about the exact issue. In order to provide those, you could use aLogcat (https://play.google.com/store/apps/details?id=rs.pedjaapps.alogcatroot.app).
FOR CHARGING-RELATED ISSUES: Select the "Time" format in the preferences of aLogcat, so we can see precise timings, and filter for "(Charging|Power) State" with "Apply as regular expression" ticked.
FOR CRASHES: Please also select the "Time" format and provide unfiltered logcat data that includes the stack trace of the crash.
Q) Why do you want to limit charge to a lower capacity?
A) In short, to prolong battery life in long term usage. For more information, refer this : http://batteryuniversity.com/learn/article/how_to_prolong_lithium_based_batteries
Q) How does this app work? Does it modify something in the ROM/Kernel to stop charging?
A) It writes "0" or "1" to a control file that represents some state of the power supply hardware, as simple as that. The file is normally read-only, so you need root to overwrite it.
The change might be automatically reversed by the OS if the power supply situation changes. Anyway, it should never survive a reboot of the device.
Q) I can select multiple more than one control file in the radio group. Which one should I use?
A) For most devices, battery_charging_enabled or store_mode are preferable. Try those first and see if it works. If you observe any bugs, try another file.
Q) I have a OnePlus device, and the app doesn't work correctly for me. What to do?
A) Check that the control file you selected is NOT battery_charging_enabled! Although it should be preferred in general, there are known issues for this file with OnePlus devices.
Q) I use the store_mode on a Samsung device. My device always stops charging at 70 % (or other specific percentage), no matter what limit I have set.
A) The store_mode implementation differs among the supported (Samsung) devices.
Normally, it freezes the level at the current percentage when store_mode is triggered until the cable is unplugged for some seconds. This is a normal condition due to Samsung's kernel implementation, it's not a bug of this app.
If this is a problem for you, try to switch to another control file (e.g. batt_slate_mode), if supported.
Q) How does the "automatic stats reset" work?
A) The automatic reset should perform a stats reset when your power supply is removed while the battery level is within the desired range. Everything else is wrong behavior.
Q) No matter if I the "automatic stats reset" is enabled or not, my phone is always resetting my battery statistics. Why?
A) Are you using a threshold above 90%? If yes, your ROM will most likely clear the stats when the power is removed. There is nothing we can do about that.
Downloads:
The app is available on Google Play Store
Alternate APK download links:
v1.1.1: https://www.androidfilehost.com/?fid=674106145207486851
v1.1.0: https://www.androidfilehost.com/?fid=817906626617956614
v1.0.4: https://www.androidfilehost.com/?fid=889764386195927297
v1.0.3: https://www.androidfilehost.com/?fid=745425885120755941
v1.0.2: https://www.androidfilehost.com/?fid=889764386195923345
v1.0.1: https://www.androidfilehost.com/?fid=889764386195919111
v1.0.0: https://www.androidfilehost.com/?fid=817550096634789023
v0.11.0: https://www.androidfilehost.com/?fid=961840155545580765
v0.10.0: https://www.androidfilehost.com/?fid=961840155545576298
v0.9.2: https://www.androidfilehost.com/?fid=457095661767160082
v0.8.2: https://www.androidfilehost.com/?fid=673368273298951679
Please uninstall versions < 0.8 before installing this!
Changelog:
1.1.1:
Fix charging status layout issues and misc UI fixes @xdnax
Added switch to disable toasts on service changes @xdnax
Added switch to show temperature in notification @xdnax
Ensuring write permissions on the charging control file @real_milux
Fixed notification sound on limit reach @sriharshaarangi
Fixed a bug causing crash
Added Russian translation
Updated Bengali, German and Brazilian Portuguese translations
Added control file for Amazon Tate (LineageOS 14.1)
1.1.0:
UI & icon redesign @xdnax
Custom control file data support @xdnax
Improved control file lists @real_milux
ICS (Android 4.0, API 14) compatibility @real_milux
Pixel/Pixel 2 support fixes @xdnax
Added control files for Pixel/Pixel 2, Xiaomi Redmi Note 2, Sony XPERIA Mini, Le 1s, Huawei P10 lite, HTC One, Motorola Defy+, Xiaomi Mi A1
Bengali translation @AdroitAdorKhan
Spanish translation @Joseahfer
Lots of bugfixes and minor improvements
1.0.4:
New "always write" setting for devices that modify their control files in a problematic way
Experimental support for Xiaomi MiPad 2, Nexus 5, Nexus 9, Galaxy Nexus (maguro) and Xiaomi Mi6
1.0.3:
Fixed service starting after boot when disabled
1.0.2:
Fixed ignoring "ACTION_POWER_CONNECTED" when service was disabled
Experimental support for Nexus 10, Nvidia Shield and Xiaomi Mi6
1.0.1:
Added preference to disable limit enforcement aka "state fixing"
Added expert preference to enable immediate reaction to power state events (be careful!)
1.0.0:
Tested Magisk 13.x support
Improved UI
Even higher service priority (against being killed by Android)
Online limit change support (limit changeable while service is active)
Settings with control file selection and temperature scale
Fahrenheit temperature info support
Greatly improved "state fixing" with exponentially increasing delay (hopefully fixing GitHub issue #15 aka "rapid cycling")
Greatly improved SU shell speed/performance
German translation
0.11.0:
Improved UI (Using NumberPickers, GitHub issue #13)
Show voltage and temperature in app and notification (GitHub issue #14)
0.10.0:
The recharge threshold can now be customized between 0 and the chosen charging limit
Sending a charging limit of 100 via (broadcast) intent will disable the service.
Sending values between 40 and 99 will enable and start the service if it was previously disabled.
0.9.2:
Fixed crash on some devices that are unrooted or unsupported
0.9.1:
Fixed widget not showing in some devices
0.9:
Added Widget to toggle service
Added scrollable view
0.8.2:
experimental Amazon Fire support
0.8.1:
Bugfixes
0.8:
State check after boot (starting monitoring service as necessary)
Bugfixes
0.7:
Experimental support for Huawei and Nexus 4 devices
Support for external control over charging limit
Bug fixes
0.5
Ability to select recharge limit (Range: 10%)
Automatic file selection
Added store_mode for Samsung devices
Added option to auto reset stats
(Huge code refactoring)
0.3
Updated to support 7.1.1
Auto-select the battery charging file for Samsung, Pixel and Nexus devices
Added clear battery stats button
Auto-whitelisting from Doze mode
XDA:DevDB Information
Battery Charge Limit, App for all devices (see above for details)
Contributors
harsha1397, real_milux
Source Code: https://github.com/sriharshaarangi/BatteryChargeLimit
Version Information
Status: Stable
Current Stable Version: 1.1.1
Stable Release Date: 2018-10-17
Current Beta Version: 1.0.4
Beta Release Date: 2017-09-04
Created 2017-02-15
Last Updated 2020-08-05
Todo:
- Check for charging on device boot
- Widget for quick toggle
- Widget to reset batterystats
- Limit reached alert
- Low battery alert - Needs a service running in the background
- UI overhaul
- on/off switch to enable/disable charging
I can't believe it. You can't imagine how long I was looking for such an app .
Will try it!
I remember this was a feature that some kernels had years ago, and I would limit the charge to 85%. On my laptop I can cap it to 60%, which is great because I leave the charger in often.
Anyway, thank you for making this app!
Freezy202 said:
I can't believe it. You can't imagine how long I was looking for such an app .
Will try it!
Click to expand...
Click to collapse
Ace42 said:
I remember this was a feature that some kernels had years ago, and I would limit the charge to 85%. On my laptop I can cap it to 60%, which is great because I leave the charger in often.
Anyway, thank you for making this app!
Click to expand...
Click to collapse
Did you get a chance to test it? Is it working as expected?
harsha1397 said:
Did you get a chance to test it? Is it working as expected?
Click to expand...
Click to collapse
Unfortunately it does not work as it should :/. It doesn't really limit. Even when I unplug the notification doesn't go away as you mentioned.
I have a HTC One M8, android 6.
Freezy202 said:
Unfortunately it does not work as it should :/. It doesn't really limit. Even when I unplug the notification doesn't go away as you mentioned.
I have a HTC One M8, android 6.
Click to expand...
Click to collapse
Does the battery percentage continue to rise beyond the limit? Regarding notification, it doesn't immediately go away after unplugging. It goes away after the percentage drops 3% below the limit. It is to ensure that the phone again charges to the limit if the phone is still plugged in. If it is not plugged in, then notification closes.
very good idea, thanks for app, was looking for app like this for a long time will report in half hour if app works
thanks!I always was searching such an app cause:
1)I read if u charge your battery till 80% it will last more time..
2)At the end of the day,I always have 40% battery left and I cant trust my phone for the next day without charge.
Thanks again It works on my moto x play!It stopped at 79% but its ok not such a big deal!
ok, so it worked, but first time, when i unpluged and pluged app didn't noticed pluging and continued charging. after that i tried several times and it worked again. so there should be somewhere bug in monitoring pluging charger sometimes is left unnoticed.
Sent from my ONE A2005 using Tapatalk
harsha1397 said:
Did you get a chance to test it? Is it working as expected?
Click to expand...
Click to collapse
Seems to work on my LeEco Pro 3. Charging icon switched to normal battery at 80%.
This is what I have been looking for!
Thank you for the app!
I tried it and its stop charging after 95% ?
Im on xperia z5 Nougat.
But the notification doesnt go away when I unplug the charger's cable from the phone.
Turning off the app but did make the notification disappear.
Another question.
Does it really stop the charger from giving electricity to our phone?
Or does it only change the charging status?
Im scared that the app tells that it stopped charging, but the electricity is still going on.
Gesendet von meinem E6653 mit Tapatalk
Can somebody explain to me, why someone would want to limit the charging current?
chitose_ndy said:
This is what I have been looking for!
Thank you for the app!
I tried it and its stop charging after 95%
Im on xperia z5 Nougat.
But the notification doesnt go away when I unplug the charger's cable from the phone.
Turning off the app but did make the notification disappear.
Another question.
Does it really stop the charger from giving electricity to our phone?
Or does it only change the charging status?
Im scared that the app tells that it stopped charging, but the electricity is still going on.
Gesendet von meinem E6653 mit Tapatalk
Click to expand...
Click to collapse
1. Regarding notification, (I have updated the OP as well):
The app only gets kicked in while you connect a charger (or USB), and automatically closes shortly after unplugging (not immediate, it closes after percentage drops more than 3% below the limit because the app doesn't know whether the cable is physically connected or not, since we disable charging at the limit. So, after it drops below 3% and (a)the charger is still connected, it charges again to the limit, and (b)if it is disconnected, then the notification closes) .
So, it is not a bug.
2. Does it really stop the charger from giving electricity to our phone?
It actually stops charging at the limit. It is in the same way any phone automatically stops charging when the battery reaches 100% capacity.
Freddy1X said:
Can somebody explain to me, why someone would want to limit the charging current?
Click to expand...
Click to collapse
tl;dr : To prolong battery life in long term
For more information: http://batteryuniversity.com/learn/article/how_to_prolong_lithium_based_batteries
harsha1397 said:
Does the battery percentage continue to rise beyond the limit? Regarding notification, it doesn't immediately go away after unplugging. It goes away after the percentage drops 3% below the limit. It is to ensure that the phone again charges to the limit if the phone is still plugged in. If it is not plugged in, then notification closes.
Click to expand...
Click to collapse
Exactly. It continues to charge.
Freezy202 said:
Exactly. It continues to charge.
Click to expand...
Click to collapse
Weird. Seems to work on other devices.
harsha1397 said:
Weird. Seems to work on other devices.
Click to expand...
Click to collapse
Is it possible that some kernels aren't compatible with this, or even certain SoCs? I have a Kindle Fire with a mediatek, so I'll test the app on there later.
harsha1397 said:
Weird. Seems to work on other devices.
Click to expand...
Click to collapse
Maybe I'll try another kernel. Anyway I wanted to change my rom . Actually it's always the other way around. Other people have Bugs except me, this time I have no luck haha.
Ace42 said:
Is it possible that some kernels aren't compatible with this, or even certain SoCs? I have a Kindle Fire with a mediatek, so I'll test the app on there later.
Click to expand...
Click to collapse
I don't know the reason(I don't think this is kernel dependent), but this file is the key: /sys/class/power_supply/battery/charging_enabled
It should be 1 by default. And when it reaches the limit, the value is made 0 by the app.

[APP][4.0+] Ultra Battery Saver Pro

Ultra Battery Saver is an application that design to prolong your battery life by using ADVANCED SYSTEM SETTINGS TWEAK and ARTIFICIAL INTELLIGENCE. The Free version is already functional and powerful, Pro version would unlock more advanced features that required root access.
Link to Google Play:
https://play.google.com/store/apps/details?id=exa.free.ubs
If you want to try the Pro version too (Paid App):
https://play.google.com/store/apps/details?id=exa.pro.ubs.r
HIGHLIGHTED FEATURES:
Auto Pilot:
Enable the application to work in artificial intelligence mode, it will automatically choose the best settings for your system.
No Useless Animation:
Usually, there are a lot of battery saving apps out there, with a lot of useless animation and effect, which is unnecessary and drain battery power. Since our policy is focusing on functionality, there are no such animation or effect in this app.
Privacy Care and No Ads:
Before displaying ads, application would need to download ads content over internet, which will waste bandwidth and battery power, also user data will be collected which in most case a privacy risk to user. Since its violet the policy of this application, we have make sure there are NO ADS in this application, in both free and pro version. Also we make sure data that processed by this application would never leave user's device.
APPLICATION FEATURES:
Smart Wifi:
When this feature is turned on, application would automatically turn off wifi when device's screen turned off, and turn it back on when device's screen is unlocked, user could choose to turn on or turn off wifi only in pro version.
Smart Sync:
This feature is used to minimize the time of sync run on the device. By Default, when this feature is enabled, device would TURN ON SYNC 5 MINUTES FOR EVERY 1 HOUR. User could choose more time duration in pro version.
Smart Brightness:
When this feature is turned on, application would automatically adjust device screen brightness base on the battery level to archive battery saving, user could choose auto mode ,day mode, or night mode in pro version.
Power Charging:
This feature could speed up battery charging by limited some features of device during charging, such as turn off wifi. We recommend only enable this option when you are not using your device during charging. User could choose to which option to apply during charging in pro version.
Wake Lock:
Note: This is not a battery saving feature and should only used when need only.
Wake Lock is a feature that ensure the device screen never turn off automatically when you need to do activity that need the screen to stay on, Example : Using GPS.\n\nBut this feature may drain extra battery power on some condition, so please turn it on only when needed and clear the wake lock after used.
FAQ:
Q1: Why we don't have task killer feature?
A1: Since we know about how android device works, and we even investigate the way of task killer work before, we can't add this feature because it violate our policy. When killing a service using task killer, android system would always automatically restart that service, then task killer will try to terminate that service again, just like a never-ending cat mouse game. Also, restart a service in most case will use more battery than leaving it run in the background, the only way to safely stop a service is using the android built in Force Stop feature, which is ONLY AVAILABLE IN OUR PRO VERSION.
Thanks for reading
Before putting a bad rating at the Play Store if you encountered a bug or problem, you can contact me or leave a post below, so I can see and repair the problem or you
mod edit - thread closed as per OP request
the new thread here
https://forum.xda-developers.com/android/apps-games/app-ultra-battery-saver-solution-to-t3726088

[APP][4.0+] EXA Battery Saver - First solution to save battery using science

Every electronic device in this world required power to stay functional, including Android. However, sometimes battery draining could be too fast. Unused app keep running in the background, wifi keep on while not using, device temperature is too high, etc
Finally here come a live saver.
EXA Battery Saver is the first solution to save battery power by using AI, science and system tweaking
Features mark with # required Root Access.
Features :
Device Tuning :
#ROM Optimize :
ROM optimize is a feature that minimize the writing to storage by using fstrim, and also remounting the file systems with noatime and nodiratime flags to archive battery saving and improve device performance.
#Core Tuning :
Core Tuning is a feature that could set CPU Governor to the mode you need, such as performance, balance, or powersave.
#Lightning Charge :
Lightning Charge could speed up battery charging by set the CPU frequency to minimum value during charging. This could obviously improve the speed of charging but would also temporary decrease the performance of device.
#Application Hibernator :
If you have used app like Greenify before, you might have familiar with this feature. Yes, this feature prevent unused apps from running in background by using Android built in Force-Stop feature (am force-stop).
Service Stopper :
Service stopper is design to view and stop running service by using Android system built-in Force Stop feature, available in both root and non-root mode.
Smart Settings :
#Smart GPS :
When this feature is turned on, application would automatically turn off GPS when device's screen turned off, and turn it back on when device's screen is unlocked.
#Smart Cellular :
When this feature is turned on, application would automatically turn off mobile data when device's screen turned off, and turn it back on when device's screen is unlocked.
*Smart Wifi :
When this feature is turned on, application would automatically turn off wifi when device's screen turned off, and turn it back on when device's screen is unlocked, user can also choose not to turn off wifi when device is connected to an existing wifi router by turn on the Wifi Protection feature.
*Smart Sync :
When this feature is turned on, application would automatically turn on Sync for specified time and turn it off for specified time. By Default, the Application TURN ON SYNC 5 MINUTES FOR EVERY 1 HOUR, user can also set custom time base on their needs.
*Smart Brightness :
When this feature is turned on, application would automatically adjust device screen brightness base on the battery level to archive battery saving.
*Smart Sound :
Note: This feature may not working on some device. When this feature is turned on, the application will mute some unnecessary sound effect that will drain battery without changing the main sound and call volume of device. User could choose the type of sound to mute :
System Sound: Sound for keyboard button, back button, home button, etc.
Notification Sound: Sound when received notification
Charging Optimization :
*Power Charging :
This feature could speed up battery charging by limited some features of device during charging, recommend only enable this option when you are not using your device during charging.
Others :
*Extra optimization :
When this feature is turned on, the application will auto adjust some additional feature to help you save more battery power.
Download Link :
EXA Battery Saver
Important :
1. This application could work in both rooted device and non-rooted device. Application would automatically restrict some features on non-rooted device.
2. Beta and Alpha testing is not available, only stable release are provided.
3. Before posting a bad review at the play store if you encounter an issue, please report the problem in this thread, I will investigate it and solve it as fast as I could
Bug Report and Feature Request :
Bug reported are always welcome.
Note: Not all requested features would be approved.
If the requested features are approved, they would be appear in the In Research Features located below.
In Research Features :
#Automatic Discharge :
Since I have study a lot about battery while making this app, I have found out that charging battery level to 80% is better than 100% . This feature is used to discharge the device when battery level reach selected value, currently I am investigating this code :
Code:
dumpsys battery unplug
Thanks for reading.
XDA:DevDB Information
EXA Battery Saver, App for all devices (see above for details)
Contributors
EXA Lab
Version Information
Status: Stable
Current Stable Version: 1.7.100
Stable Release Date: 2018-02-16
Created 2017-12-27
Last Updated 2018-02-16
The app looks very interesting, thank you! I would be happy if you could explain what you wrote here:
EXA Lab said:
#Automatic Discharge :
Since I have study a lot about battery while making this app, I have found out that charging battery level to 80% is better than 100% .
Click to expand...
Click to collapse
Why is that? Do you have a source?
TheeWolf said:
The app looks very interesting, thank you! I would be happy if you could explain what you wrote here:
Why is that? Do you have a source?
Click to expand...
Click to collapse
Here & here.
mauam said:
Here & here.
Click to expand...
Click to collapse
Yes, thats what I want to say, thanks
Does it required root on Android 7 device...?
DE SEXIEST said:
Does it required root on Android 7 device...?
Click to expand...
Click to collapse
No, it does not require root access to run, but it will be more powerful and functional with root access
The application has been updated to 1.7.000 :
Status: Stable
Current Stable Version: 1.7.000
Stable Release Date: 2018-02-14
Update Info:
The application have been renamed to EXA Battery Saver
This update fix all problem that cause application to crash, improve the stability of application and include a new feature.
New Feature:
*Advanced Settings:
Enable user to tweak advanced function of applications, please use with caution.
Thanks for supporting, more function could be expected soon
EXA Lab said:
The application has been updated to 1.7.000 :
Update Info:
The application have been renamed to EXA Battery Saver
Click to expand...
Click to collapse
welcome back!
been using the old app - never a single problem :highfive:
q: does the hibernator allow push notifications like rooted-greenify?
crullick said:
welcome back!
been using the old app - never a single problem :highfive:
q: does the hibernator allow push notifications like rooted-greenify?
Click to expand...
Click to collapse
Thanks for supporting :fingers-crossed:
a: No it does not, but you have give me a new idea, I would try to investigate it :highfive:
Dont know sometimes its hard to selecting menu..because when i moved tab to tab, sometimes it still showed previous tab
Does this app needs network to work properly?
raymondsanusi said:
Dont know sometimes its hard to selecting menu..because when i moved tab to tab, sometimes it still showed previous tab
Does this app needs network to work properly?
Click to expand...
Click to collapse
Could you please explain what showed previous tab means?
No it does not require network
EXA Lab said:
Could you please explain what showed previous tab means?
No it does not require network
Click to expand...
Click to collapse
This happen a lot when connection is slow or not connected..
raymondsanusi said:
This happen a lot when connection is slow or not connected..
Click to expand...
Click to collapse
Thanks for pointing out this problem, I have publish a new version name 1.7.100 with performance improvement :highfive:

Categories

Resources