Show the real battery level - MTCB Android Head Units General

Hello,
I've installed the launcher Agama on it and it's really usefull.
I saw I can show the battery level but it's locked at 50%, it never change.
I was wondering how could I really have the battery level of my car.
I already have a battery indicator which I bought 1€ on Aliexpress and it works.
Maybe the same indicator exist with an usb ? It would be nice if Android could use this value as it's own battery level.
Is a thing like this is exist ? If not, can it be developed relatively easily ?
Thanks in advance !
Erimen
PS: I have access to developer mode and 2 usb ports

Is it an mtcb device?

Related

HTC Diamond battery dies without warning

I’ve get a HTC diamond from a friend and am having problems with the battery. I’m trying to figure out the best thing to do.
Generally I’ve found the battery is a bit low in capacity (as others have mentioned on the forum). But more recently I’ve found that the phone will suddenly die, without an battery warnings. The battery suddenly seems to be fully discharged.
I’m wondering if this is a problem with the battery (or more worringly) with the phone. Is there any battery monitoring software that might be informative? Or should I just buy a new battery and keep my fingers crossed?
chrisgeller said:
I’ve get a HTC diamond from a friend and am having problems with the battery. I’m trying to figure out the best thing to do.
Generally I’ve found the battery is a bit low in capacity (as others have mentioned on the forum). But more recently I’ve found that the phone will suddenly die, without an battery warnings. The battery suddenly seems to be fully discharged.
I’m wondering if this is a problem with the battery (or more worringly) with the phone. Is there any battery monitoring software that might be informative? Or should I just buy a new battery and keep my fingers crossed?
Click to expand...
Click to collapse
You could try this for testing the battery:
http://www.spbsoftwarehouse.com/products/benchmark/
You may need to check it against someone elses benchmark to get an idea of a problem or not. I think the battery test is a long one though as it has to run it down completely after a full charge.
You could try disabling any programs that automatically connect to the internet (eg. email) and I think there is a cab somewhere that will disconnect gprs/3g/hsdpa when there is no activity. If I find it I'll post it here.
I found that the Auto Adjust Backlight used up more battery than needed so just set it to the second marker on left (start > settings > system > power > backlight). I'm sure there are many more options to save battery power that are mentioned in other posts but I guess you have already been through them.
I found that a full discharge then a full charge while the phone is switched off completely (not in standby) helped a bit but not much.
There has also been some problems with peoples battery monitor not being accurate. Like it saying there is 25% battery when there is really 75% of power left. But this problem has been few and far between.
You can also go into your settings/notifications and set a notification to let you know when your battery is about to peter out on you.

[Q] Disable charging while connected to USB

Hi
Is it possible to do? In a ZTE Blade there is an option in Settings to do this.
Thanks
HaDeSz
Why you would want to do that And i dont think its possible...
maybe he wants to use the phone while doing some battery calibration or is afraid of too many loading cycles
Android supports it...
hard to monitor battery drain

Battery drains fast!

Hi!
Since last year, I got the problem that my P990 is discharging very fast. Commonly the battery needed to be charged once a day, but now it's twice, at least!
Of course, the first thing I did was to buy a new battery. It's an original LG battery, but nothing changed. I also tried one of these big batteries with 2800mAh, but even that didn't change much.
I tried several CFWs and Kernels, at the moment the phone's running on [4.4.4][P990][AOSPA] ParanoidAndroid 4.6, 2.6.39.4-Kowalski-Stable-M1 Kernel.
The strange thing is, the battery's even draining, when the phone's turned off. If it's charged to 100% and then turned off, the next day, the battery is below 1%, the phone can't be turned on due to the low charge.
I'm not sure, if it's really a software problem, there are no special apps installed, it's just the ParanoidAndroid without anything special installed.
Anyone who could help me, please?
I also suffer battery drain in "doing nothing" mode - deep sleep mostly. I even switch off mobile data. It is not normal the battery to be drained completely for about two days when the phone just stays on the table in deep sleep with mobile data switched off. Anyone could help us?
tonyp final build cm-11-20150703-final-bcmdhd-3.1-p990, firtecy kernel 3.1 exp-5 32MB RH
vanko11595 said:
I also suffer battery drain in "doing nothing" mode - deep sleep mostly. I even switch off mobile data. It is not normal the battery to be drained completely for about two days when the phone just stays on the table in deep sleep with mobile data switched off. Anyone could help us?
tonyp final build cm-11-20150703-final-bcmdhd-3.1-p990, firtecy kernel 3.1 exp-5 32MB RH
Click to expand...
Click to collapse
This phone had the longest stand-by life with temasek CM 7.1, I could go 12 hours and lose only 1-2% which is impossible with current android versions, not my SG4 or my galaxy tab 4 7" do that, they lose 3% idle in just 1 hour.
Also by this time your battery is already over 2 years. Its current capacity may be well half what it used to be when brand new. Buying a new one won't help that much because it might be at around 70-80% capacity at best because of time. Then again 2 batteries are better than 1.
if you can you should get a new phone, they are better in every way and only $150 dollars which is more than what our optimus 2x is worth now-a-days. I use it 24 hours on hooked at the back of my TV as an android TV :silly:
Justray said:
I use it 24 hours on hooked at the back of my TV as an android TV :silly:
Click to expand...
Click to collapse
i was thinking about doing this as well... can you pm me how did you hook it (which rom - i presume some of the older cm's since hdmi doesn't work on newer ones, how do you control it etc...) - thanks in advance
or maybe even better - opening a new thread in general section here and explaining all the things for everyone to see
60nine said:
i was thinking about doing this as well... can you pm me how did you hook it (which rom - i presume some of the older cm's since hdmi doesn't work on newer ones, how do you control it etc...) - thanks in advance
or maybe even better - opening a new thread in general section here and explaining all the things for everyone to see
Click to expand...
Click to collapse
Pretty simple, any stock based rom works great, old GB has HDMI with quality selector, ICS has only HDMI output at 1080i/720p.
I stuck it inside a project box and I screw it behind my TV, used the USB port on the TV to keep it powered all the time but just remember to take out the battery or it will die (puff). Charge the battery to 100% then store.
Caution, not all USB ports form TVs are friendly so do like me and cut the data lines and use only the red/black wires (outer pins in the USB).
Lastly a mini keyboard with touch pad is what I use to control it... and a iPega gamepad for gaming. Doesn't work in GB stock roms so you got to use ICS/CM roms for it to work.
P.M. If you got any doubts
Justray said:
Pretty simple, any stock based rom works great, old GB has HDMI with quality selector, ICS has only HDMI output at 1080i/720p.
I stuck it inside a project box and I screw it behind my TV, used the USB port on the TV to keep it powered all the time but just remember to take out the battery or it will die (puff). Charge the battery to 100% then store.
Caution, not all USB ports form TVs are friendly so do like me and cut the data lines and use only the red/black wires (outer pins in the USB).
Lastly a mini keyboard with touch pad is what I use to control it... and a iPega gamepad for gaming. Doesn't work in GB stock roms so you got to use ICS/CM roms for it to work.
P.M. If you got any doubts
Click to expand...
Click to collapse
good... i'll play with this when i catch some free time... thanks :good:
Which rom exactly did you use? Just need full HDMI Support and stable rom. i dont care about gaming performance or something like this.
Battery problem is such a disaster for android users I have found this nice Best portable chargers and power banks review page here check out before buying one !!!

Limit Battey Charge % Android 11

Anyone found a consistent way to limit battery charge % on Android 11? The custom settings I used with Battery Charge Limit app on 10 work intermittently on 11. Often times I'd wake up to 100% charge.
Currently I'm using Advanced Charging Controller magisk module with it's accompanying AccA app but often AccA gets killed in the background even after not optimizing it in battery optimization. The only workaround I've found is to create a macro that opens AccA every time I plug in the charger. With that step it's consistent but I'd like to find something not so hacky.
I've been running A11 for about a week and did not encounter any issues with Battery Charge Limit. Maybe make sure that it's not battery optimized? I have it "not optimized" because I'm paranoid about it, rather than having direct problems.
jljtgr said:
I've been running A11 for about a week and did not encounter any issues with Battery Charge Limit. Maybe make sure that it's not battery optimized? I have it "not optimized" because I'm paranoid about it, rather than having direct problems.
Click to expand...
Click to collapse
I made sure battery charge limit wasn't optimized. You're using the same custom setting from android 10? Maybe I'll try it again
This the settings you have?
Path Data: /sys/class/power_supply/charger/charge_disable
Enable Value: 0
Disabled Value: 1
hawkswind1 said:
I made sure battery charge limit wasn't optimized. You're using the same custom setting from android 10? Maybe I'll try it again
Click to expand...
Click to collapse
I didn't change anything at all... and honestly with all of the other A11 problems I've been having... I didn't even think to check that it was working. It just has been. I also double-checked with AccuBattery and the history never shows above my limit.
This is my control file settings as seen on the main screen:
Code:
/sys/class/power_supply/charger/charge_disable, 0, 1
jljtgr said:
I didn't change anything at all... and honestly with all of the other A11 problems I've been having... I didn't even think to check that it was working. It just has been. I also double-checked with AccuBattery and the history never shows above my limit.
This is my control file settings as seen on the main screen:
Code:
/sys/class/power_supply/charger/charge_disable, 0, 1
Click to expand...
Click to collapse
I think that's the custom setting probably restored from your Google backup. Same one I was using. I'm gonna try it again though, thanks
hawkswind1 said:
Anyone found a consistent way to limit battery charge % on Android 11? The custom settings I used with Battery Charge Limit app on 10 work intermittently on 11. Often times I'd wake up to 100% charge. Currently I'm using Advanced Charging Controller magisk module with it's accompanying AccA app but often AccA gets killed in the background even after not optimizing it in battery optimization. The only workaround I've found is to create a macro that opens AccA every time I plug in the charger. With that step it's consistent but I'd like to find something not so hacky.
Click to expand...
Click to collapse
Have you tried Accubattery? Along with charge limiting it has other useful features, including reporting battery capacity vs. new (under health).
v12xke said:
Have you tried Accubattery? Along with charge limiting it has other useful features, including reporting battery capacity vs. new (under health).
Click to expand...
Click to collapse
Accubattery is fine and all for reporting and giving an idea of where you want to stop charging... but it has no ability to limit charging. The only thing it can do is nag you to take the phone off the charger. This thread is about root applications actually blocking the phone from charging past a certain level without making the user do anything or even notifying the user about what's being done.
I realize this is a couple of months old. but I just got a new OnePlus 8T, now rooted, and I'm trying to use Battery Charge Limit on it. I can't quite figure out the settings to have it work consistently. Let's say the phone is already at 100% when I plug it in. Battery Charge Limit starts, but then it flip-flops between Charging and Not Charging, starting and restarting. The phone woke me up last night because it was making a ding every time Battery Charge Limit flipped between charging and not charging. One would think that if the phone was at 100% Battery Charge Limit would turn off charging and let it drop down to my 85% limit and then back up to 91%, but never got above 91%. Thoughts? Thanks.
rcbjr2 said:
I realize this is a couple of months old. but I just got a new OnePlus 8T, now rooted, and I'm trying to use Battery Charge Limit on it. I can't quite figure out the settings to have it work consistently. Let's say the phone is already at 100% when I plug it in. Battery Charge Limit starts, but then it flip-flops between Charging and Not Charging, starting and restarting. The phone woke me up last night because it was making a ding every time Battery Charge Limit flipped between charging and not charging. One would think that if the phone was at 100% Battery Charge Limit would turn off charging and let it drop down to my 85% limit and then back up to 91%, but never got above 91%. Thoughts? Thanks.
Click to expand...
Click to collapse
It's possible it's not configured correctly for your phone. You can also just disable that notification channel, since mostly it's just annoying. It constantly fliping might mean that there's more than one control file for your phone type and it's using an ineffectual one that the OS is overriding immediately. For example, the default one it detects for Pixel 4's is not the one it should use.
jljtgr said:
It's possible it's not configured correctly for your phone. You can also just disable that notification channel, since mostly it's just annoying. It constantly fliping might mean that there's more than one control file for your phone type and it's using an ineffectual one that the OS is overriding immediately. For example, the default one it detects for Pixel 4's is not the one it should use.
Click to expand...
Click to collapse
Thanks for the reply. The problem is that I use the notification to trigger Tasker profiles, so I was hoping to figure out a way to get it to stop flipping back and forth while also retaining the notification. I think it's just the standard control file since it's a OnePlus phone, but I'm not sure I can figure out otherwise. When I first start using BCL, I found the control file and was able to manipulate it with a SQL editor and Shell commands in Tasker, but I haven't poked around the OnePlus 8T that much yet.
Just as a PSA, I think Adaptive Charging from the January update can conflict with this. On days where I set a morning alarm, I found that my battery was more full than it should be. I suspect that Adaptive Charging does something that Battery Charge Limit cannot block. I won't know for a few days if turning this off in settings fixes things 100% or the January update just really screws with this.
Battery Charge Limit settings for pixel 3
Hi all, I like the app, Battery Charge Limit (root required), but was wondering how to set the control file. I works fine with Xperia (with/without Lineage), but doesn't work with Pixel 3 stock firmware (Android 10). And finally found how to...
forum.xda-developers.com
Well, as a root method it does seem to work. Depending on your taste, it might be cleaner than an app toggling a different variable. Of course you need an app to set the file back to 100 when you want it. Some Tasker widgets work for my purposes... could probably make it a QuickSettings toggle in the shade, actually.
Bottom of that thread, I was wondering specifically if there might be way to force an unrooted device to think it met one of these conditions, so it only charges to 80%.
Specific post link:
Battery Charge Limit settings for pixel 3
Hi all, I like the app, Battery Charge Limit (root required), but was wondering how to set the control file. I works fine with Xperia (with/without Lineage), but doesn't work with Pixel 3 stock firmware (Android 10). And finally found how to...
forum.xda-developers.com
i.e.
... your phone automatically limits charging to about 80% under certain conditions:
Continuous charging under high battery drain conditions, like game play.
Continuous charging for four days or more.
I've done very little research on this, but I expect the ways to fool the phone into thinking those things are happening is even more complicated than using that root file control. Meaning also requiring root but manipulating other control files.
I suppose you could have a case and a ribbon USBC connector that fools the charging logic into thinking it is constantly connected to a hardware charger even though it's still at a net negative power. After 4 days of having the case on, it might work. I don't know why anyone would have already built something like that, however.
I would root my phone but, as my daily driver, I need things like banking apps to work. They (at least some) detect rooted phones and refuse to load as a security measure (which is probably a good thing) :-(
Banking apps are usually just a frontend to their website used API. They have no problem with you using a browser on a rooted phone or Linux PC, etc. Any app that stores sensitive data on your phone and relies 100% on the filesystem being locked down was created wrong and lazily. The only thing about banking apps that might be legitimate is when things like unique CC info is stored for NFC and using a TPM can't be assured. Most banking apps, however, do not store anything sensitive on your phone aside from a login token which all websites also do. (it's called a cookie)
My personal preference is that no app is better for me than being able to root my phone. I don't play mobile games that want to keep you from cheating and I don't even care about Google Pay, which I'm not sure has legitimate need to block root either... they just do it to keep banks happy, which as I suggested, I think they're full of BS.
The only thing more BS than this no-root nonsense from app companies is when carriers do it by locking bootloaders. I try to re-use my phones for as long as possible and without the ability to limit battery charge, the batteries swell and die quickly, every time. It's good news that Google added code where phones plugged in constantly will limit charge automatically... but I doubt there is a way to trick it from the outside. (without root)
Hmmm. Maybe lazy programming, but I'm not ready to change my Bank so I can root my phone
Back to the topic... I don't think I'm ready to trust the /sys/devices/platform/soc/soc:google,charger/charge_stop_level method. Several times I found my phone at low battery and not pulling any current from the USB port, but not losing charge either. It had put itself into a stalemate where it was stuck below 10% for hours. Resetting the value from 60 to 100 allowed charging again. The battery charge limit app never really caused this. So I guess I'm going back to the full app method.
jljtgr said:
Back to the topic... I don't think I'm ready to trust the /sys/devices/platform/soc/soc:google,charger/charge_stop_level method. Several times I found my phone at low battery and not pulling any current from the USB port, but not losing charge either. It had put itself into a stalemate where it was stuck below 10% for hours. Resetting the value from 60 to 100 allowed charging again. The battery charge limit app never really caused this. So I guess I'm going back to the full app method.
Click to expand...
Click to collapse
I would like to definitely solve this problem I have been struggling with for years. What did you do, can you please help me? It seems extremely similar to what you wrote here.
I have been using battery charge limit on my Xiaomi Mi Mix (1st model) since android 7.1 (lineageos) (and I might have messed with a couple files, not sure, can't remember). When updating to android 9 (lineageos) couple years ago I started having the problem you described. Also I notice sometimes I plug the phone at safe levels such as 35% or 60% and it doesn't charge same thing. Also it only charges with certain chargers and not others.
Earlier today it was 11% battery, could not boot android, didn't charge. I got the idea for the first time to try booting in TWRP (on+volume up buttons) and it immediately started charging at full speed. So there's obviously nothing wrong in the hardware, it's software or just config.
I would like to definitely solve this problem, but I don't understand exactly what you did on your side to fix it. Please reply or message me if you have any suggestion Thank you!

Question Charge Separation

Hi, for those who doesn't know what's charge separation, it's a feature that directly pulls the charging power to the screen, limiting the heat on your battery and it will prolonged the battery life.
So I'm just wondering is there any app out there can achieve this "charge separation" for s21 ultra? Can it be done by software or it is something only can be done on hardware?
That is not what charge separation means. It was misused as a marketing term by the RedMagic 6 phone. i think what you're talking about is called bypass charging. AFAIK, it's a feature which has to be built into the phone by the manufacturer. Usually seen in gaming phones where phone is used heavily while plugged in, like the Redmagic, ROG phone, etc. The S21U does not have bypass charging enabled on stock firmware.
Have read some reports online that it can be enabled on some devices with special factory cables or modified kernels, but haven't heard of it being done successfully on a Samsung. Need some developers to comment on this. Maybe @dr.ketan can shed some light.
Found this link claiming a workaround for bypass charging on an unsupported device : https://android.stackexchange.com/q...tery-but-use-connected-power-to-run-the-phone
EDIT: new info updated
It is also called battery idle charging. But it has to be built into the kernel.
Advanced Charging Controller can help you activate it (if the kernel supports it) or give you a functionality that is similar (by heavily limiting the charging current), but you need a rooted phone and a 3rd party kernel that supports it.
Thanks for the info. I think this is a great feature that every smartphone should have implement it.

Categories

Resources