General :: How To Debug Android-System Power Consumption
May 27, 2012
find out which app is draining my battery and if it's really necessary. couldn't find any information on the SDK pages.My Phone seems to be very often Awake while in standby. I can't understand why it has to wake up that often. Am I right, that this "Awake" means, that the cpu is running (not in sleep mode)?
Is there any way to log which software is waking the device up?
I want to develop a peripheral device to connect to an android phone via USB OTG. The OTG specs  says: "A Targeted Host shall provide sufficient power to each peripheral on its TPL in at least one supported configuration". Where do I find those TPL ("Targeted Peripheral List") lists? I searched at Sony Ericsson (because I have a Xperia Mini) and Samsung (as a different manufacturer) but with no luck. Is this an android related list?
On github I found a code fragement  from DooMLoRD. It mentions a OTG whitelist. But it seems to be something like a skeleton.
I do this research because I want to use the peripheral device in high power mode with about 300 mA. I thought I could compare the TPL with devices that also need 300 mA.
There are quite some pit falls that an application developer may hit. In order to simplify life Sony Ericsson Developer world has produced a little guideline called "Android Application Coding Guidelines - Power Save".
I'm the developer of PowerTutor, a power profiling tool for the system. This tool profiles the system power consumption and decomposes power consumption on hardware components (e.g. LCD, Wi-Fi, CPU and etc.). It also assigns power consumption to individual application as the application is running alone in the system. In this way, it could potentially help developers to profile the app and detect energy inefficiency usage behavior in the application.
More details could be found at http://powertutor.org.
Note that PowerTutor is free to download and no advertisement is embedded. I'm posting this here to so that the Android community can be aware of it. Any one who cares about power consumption of their applications will find it useful.
seems like anything using 3g drains my battery. slacker player saps 30% of a 2600mah battery in a single hour. If I were to be conservative, it would be 25% of a 2200mah, accounting for other parts of the phone and possibly a low quality battery. Even then, that's horrible. It didn't used to be this bad. And now I suspect it's a combination of a new radio update that boosts signal by consuming more power, and the fact that 3g coverage is weak where I'm at (though it worked good enough before the update). So if there's any way to downgrade radio without losing froyo or other phone functionality, or directly influence power consumption of the 3g radio, please let me know.
What actually does that mean when you see android system in the battery consumption breakdown page? Like what parts of the phone use comprises android system, like does looking for a signal comprise system and suck like? And what is considered high android system use?
I was using the Google navigation on 3G network with the phone connected to a 500mA car charger. After 1hr, the battery dropped 20%. Anyone knows if a 1000mA car if enough?? Tonight, I was watching a Youtube HD video on 4G network (2/3 bars on 4G) with the phone connected to a 1000mA USB wall charger. After 10min, the battery dropped 2%...Well, even 1000mA cannot compensate the consumption of the battery. The power consumption of this phone is ridiculous. Something must be wrong with the system/circuit design.
The power off menu doesn't come up when I hold down the power button, because the power button is broken. where the power off menu in android system ? and I am currently using the application reboot menu to turn off the phone.
When I navigate away from my application - I don't have an activities open - and my background service has been shut down (validated that service's onDestroy method was called). However my process seems to hand around and the system never seems to get around to killing my process.
Is there any way I can debug why the system is not killing my process.
On froyo, when I get a Link exception while loading a library, it does not give the symbol that it could not find! On eclair, there used to be a helper message saying "cannot locate xyz symbol'. Without, this information, how do I debug this library load error on Froyo? I am using System.load to load libabcjni.so. When I build the testapp, I can see the following line for libabcjni.so: adding: lib/armeabi/libabcjni.so (deflated 75%)Code...
I have a rooted Galaxy S3 with Android 4.1.2, and for some strange reason they've changed the screenshot combination away from the Power+VolDown that other Androids use to Power+Home which can't realistically be pressed one-handed. How can I change it back to Power+VolDown?
my phone is karbon A9+ and i wiped the cash,system and data and after that flashed a Custom ROM ! but now the phone just power on in download mode!! how to power on, for recovery or normal power on ! the phone just have the black screen with "Entry QPTS Downloading" Text..i will back to India 5 month later ! can it be fixed or i have to wait for 5 month to come back and send it to service !
I had made changes in S/W as suggested in post : [URL] .....
The device I am working is also having wake up lag about 2 sec.It varies from 1.2sec,0.8sec,1.8sec..etc. I implemented the new wake log to prevent the phone from deep sleep as you have mentioned. Now the time required for wake up from deep sleep is reduced to 0.8s and its quite consistent. Although I have to yet check for battery consumption during deep sleep.
However I have found that now when the phone is reset the battery consumption is more during the power up of the phone. For Ex. from 36% before power up and 24% after powerup.
Checked with another device and its only taking 3% for boot up.
I have only 150mb of internal memory on my phone. These are some items that consume critical amounts of internal memory space. When I download an app, it seems I am downloading an install package. The installed app itself takes up additional space. I believe the install package persists on the internal memory, invisible to the average retail user, and takes up internal space even after the app is moved to the card.
Ex: an anonymous app android market listed size- 3.51mb (this must be the download size of the installer) download and install on internal memory, size listed- 5.73mb move to SD card, size listed- 2mb move back to internal memory, size listed- 5.73mb
1. The install package seems to remain on the internal memory even though the app moves to the card.
2. Beyond the above example, I went through each and every item listed in my settings - applications - storage use - All.
I found 105 total items on internal memory and SD card all together. By adding up the listed "Total" size of each (yes, I went through each and every one), I arrived at approximately 109mb. The phone lists internal memory use at 135mb. I would expect the internal memory use to be LESS than 109mb because some of the apps are on the card. My assumption is that much of this extra internal storage is taken up by all of the installers sitting invisible on the internal memory.
3. Based on observing the change in the Internal Memory usage when I delete app "Data", I believe the app data is being written to the internal memory even if the app is on the SD card.
Why isn't the install package deleted after the app is successfully installed? Is there an app for that?If I uninstall the app while it sits on internal memory, does it also delete the install package?If I uninstall the app without first moving it back to the internal memory, does it delete the uninstall package? How can I reclaim this internal memory space for actual use??
I own a (quite old now) Google Nexus One and I recently upgraded from Google Maps v6.9.0 to Google Maps v6.10.0
And I was quite surprised to see my user memory decrease a lot while the install apk is quite the same between both versions.
My Nexus One is rooted and running stock Android 2.3.6 (GB, not ICS)So I investigated and here is what I found about this new version of Google Maps.First, you must know that the memory available to the user to install new applications is mounted by the android system as '/data'.By running a 'du' command, I discovered that the following folder:
Code: /data/data/com.google.android.apps.maps/app_ takes 11.9 Mo, which is a lot.[code].....
My nexus one phone crashed a week ago, I reseted the factory settings, and since then I can't find the power control system(wifi, gps, Bluetooth and screen brightness) widget which I had on my home page when I first bought the phone.
Recently bought a Polaroid PMID701C tablet. I was looking for that battery consumption graph that is on most android phones/tablets. The one where it shows which apps and hardware are consuming the most power. i couldn't find it and gave up. until one day when a low battery warning appeared on the screen. usually i cancel it, but this one time i clicked OK and it brought me to the battery consumption graph i was looking for.
seems to be the only way i can access it. i understand that this tablet is entry level, but shouldn't i be able to get to this without having to wait for a low battery warning?
In Ubuntu, I have double checked the udev rules. They all look perfect. (I cross checked using another phone too). The USB debug mode doesn't show up no matter what. And I have the adb_usb.ini in the right place. I have tried running all possible combinations of running adb, adb start-server as root. But
adb devices shows no devices at all.
However, with the USB debugging option enabled on phone, it worked on Win7 after windows installed a Common handset driver.
If I go back to Ubuntu without disconnecting the cable and do
Code: $ adb devices * daemon not running. starting it now on port 5037 * * daemon started successfully * List of devices attached 1234567890ABCDEFdevice
The product id is 1234567890ABCDEF and I am able to see it and everthing works fine!!But the moment I disconnect the USB cable, its gone.
So I guess it's not the development machine that is at fault. The device seems to be setting a property while in Windows which stays latched till the usb connection goes off.
Btw the Code:
/data/property/persist.service.adb.enable is 1 too.
I accidentally set a screen density at 240, while my phone's original value was 160, so now I can't unlock my lock screen, since the screen is too large. I tried to boot into factory recovery mode to do a hard reset and everything went back to original expected for the screen.
Then the problem now becomes more complicated, I can't check both USB Debug and Install From Unknown Resources and I also lost SU access.The phone that I am using is China phone, running CPU MTK6516.
I'm trying my hand at porting a ROM to my device (S4 HTC One X/XL, Evita) and I've gotten as far as the bootscreen, but it hangs there (with the bootanim still running). I'd like to take a look at what's happened on the device, but I can't seem to use adb with it at this point. I've made sure drivers are installed and used multiple USB ports. ADB works in recovery and fastboot works in fastboot, but adb returns Offline when I run adb devices while the phone is sitting at the bootscreen.
Found this on StackExchange: [URL]......-for-debugging
According to some of the replies, it's possible to use adb at boot, so I'm not sure why adb returns offline. I tried running adb logcat while the phone is off and letting it boot, but adb never establishes a connection to the phone. Not sure why it can't. Hopefully it's not another adb driver issue. I've already spent a ton of time getting adb working with this phone while booted/in recovery.