Hi all
I'm working on an academic project and I need to measure how much energy is consumed by my application.
But my requirements are annoying and I have not found anything that cover all my requirements.
I like to know if you know anything that can help me.
My requirements:
1-I need to calculate energy consumption per sensor/device for my application. For example I need to see how much energy is used by GPS or Wifi in my app.
2-I need to results in mAh. Percent results are somehow ambiguous for my tests(they may be good in normal usage to see what has spent most of your energy,but not in my case).
3-I want to get these work on Galaxy S5. Then Android 4.4.2 and its limitations.
4-I don't want to use rooted device.
I have tried powertutor(even though I'm not sure if it works correctly in android 4.4.2). Rather than this tool do you know anything else?
I thought if there is any app that can run another app in an isolated environment to calculate its energy consumption.
Because I'm writing my target app, even I can add additional codes in it for calculating energy costs.
I have seen several papers for calculating energy cost in various journals, but I prefer a simpler approach.
Any idea if it is possible to do so at all?
Regards
Related
As we know, Current Widget doesn't work with Samsung phones due to a driver issue so does anyone know of another app that offers a proper mhA battery usage level, rather than merely an estimate?
Cheers.
Sent from my Commodore Vic 20
Battery monitor widget does. I'm not sure if it's a true reading though.
I don't think it is -- I have a suspicion it's based upon use over the previous xx amount of minutes rather than a true reading at the time it's refreshed. Someone feel free to correct me if I'm wrong.
So here is an interesting one. So I still have me trusty X10 that I used for testing and backup. I also have a sim that floats from the X10 for testing to a Streak7 for play, with all my other off contract old school priced ATT services. With all of the extra devices traveling with the family, I am thinking of using the X10 as a dedicated hotspot of sorts, being that it would be significantly cheaper than a dedicated one, has unlimited data, and won't trip off the must have tethering features if I used a unlocked novatel.
SO my question you ask? Any suggestions on maybe optimizing a build for more specialized use? It would be interesting to even build a HotspotOS that would consist of the core Android with zero services other than those needed for the hostspot to run. Let it run fullscreen autostart, and you have yourself an Android Hotspot Appliance...
I will settle for some safe to remove that may eat battery hints. I believe hard throttling the cpu very low with setcpu would gain a good bit, but may impact throughput.
Hi, I'm looking for a very low resource way of measuring power draw over a time interval. I'm looking to measure the power draw as various pictures and videos are displayed on the screen to get an idea of how much power the various components of the phone draw. I've done some looking and I've found this: http://developer.android.com/reference/android/os/BatteryManager.html. Particularly, I noticed Charge_Counter, Current_Average, and Energy_Counter. My issue is that while I have a bit of a programming background (more like a hobby), I have no idea where to start with this. I have some background in Python, Labview, linux scripting, and very little C and .NET, so I understand some of the basic concepts of programming, but anything beyond that is something I would have to pick up. I have virtually no experience in Android programming (other than a few Cyanogenmod compiles from source - as anyone who has been around long enough has ).
I wouldn't need a gui for this, so something like a script would work great. It can (maybe should) be able to be executed via ADB, and needs to be universal - working across modern devices. The app/script I'm envisioning would perhaps poll the battery for a power level, wait a specified time - 2 min, 5 min, 10 min, 1 hour, something like that - then poll it a second time, get the delta, and divide by time to get an average power. Other than those two polls, I would want the app/script to have no interactions with the processor. The greater the accuracy, the better, and if no root is possible, that would be my choice. I would prefer to keep the phones as stock as possible.
My questions are:
- Is something absolutely universal (or mostly universal among newer devices - say 1 yr old or less) possible (no root)?
- Since it needs to be universal, would Java be a good choice of programming language? Or perhaps this can be accessed via the command line (script)?
- How accurate would a method like this be? How do the phones know the instantaneous current, power level, etc? Is it basically a shunt resistor, measuring the V across?
- How much time would it take (generally) for a noob with no Android experience to get a working demo? Days, weeks, months?
Thank you for your time.
I would also mention, this doesn't have to be "polished" for an audience...just simply looking for a down and dirty method that works - mostly for myself.
I have a Galaxy S5 but I think this is a general question. I've modded and tweaked my cell phones for several years, but I know next to nothing about what I'm doing. That's why I do a LOT of research BEFORE doing anything. There's a lot of bloatware and unnecessary stuff floating around in the android system. I'm trying to reduce battery drain and speed up boot and processing speed.
The first problem I run into is trying to find anything about different software, components, and processes. I don't want to remove something and brick my phone or make it worse.
I'm running ROM Toolbox Lite using the Auto Start Manager.
Question: What is the relationship of app receivers and processing speed and battery life?
I'm considering turning off all receivers that start with bootup on programs I seldom use and don't want active until I start them.
1. Will those receivers ALL turn on when I decide to start a specific app? (That's what I'm hoping for)
2. How will this affect my speed, memory usage, and boot time?
From others experiences is it worth getting the PRO version?
I barely understand what this means, however I have discovered that by going through tutorials, that one could do things like improve sd card performance, improve battery life, and many other things. Of course this interests me, but as I said I am new to android and I barely understand what this really means. I have hacked a lot of gaming consoles in the past and jailbroken many iphones, but that is about it. Definitely very new to all of this.
My device is the UMIDIGI A3X. Would it be possible to flash stock Android 10 onto this device (once I learn how to do this safely, still have to learn this) and then simply follow tutorials on kernel tweaks for the desired changes I want, without really truly understanding this kind of programming on a real level? In another words just going through the steps for the desired performance changes I seek.
Or am I way out of my depth here?
IMO SD-card performance basically has nothing to do with Android OS itself - but of course you can change relevant Android's cache size setting what probably doesn't result in any measureable results. Also you've to distinguish SD-card's IO read / write speed what depends on both the type of data bus the Android device supports and the SD-card's speed-class ( 2 - 10 ).
And battery life doesn't depend on Android OS: it solely depends on how the device - read: its CPU/GPU - is used/stressed and - most important - whether battery is always correctly charged ( never less than 30%, never more than 80% ).