📜 ⬆️ ⬇️

The Android Energy Management API can cause increased consumption

Researchers at Purdue University who are involved in the energy efficiency of Android applications (they recently showed that up to 75% of the application’s energy consumption is related to ad display processes) found that many applications incorrectly use the wakelock API.

The Android Wakelock API was created for applications that need to run processes even while the phone is in standby mode. For example, an email program needs to automatically connect to the server to check for updates.

However, Professor I. Charlie Hu noted that "programmers are only human, and when they make mistakes when using this API, the battery can run out in just a few hours." Scientists called this the “no-sleep energy bugs” - in fact, it does not allow the device to go to sleep and leaves it all the time on.
')
“You don't see any difference,” says the professor. “You put the phone in your pocket and think that everything is fine. You take it out and the battery is already dead. ”

During the study, they checked 187 applications and found such an error in 42 programs. This is less than a quarter, but each of them can cause significant problems with the power consumption of a smartphone.

Since the team of scientists is American, not British, they not only pointed out the problem, but also suggested a solution — they modified the compiler so that it can determine if there is such an error in the code. He will be presented at the MobiSys 2012 conference, which will be held in late June.

Source: https://habr.com/ru/post/146086/


All Articles