Science & Technology - Posted by Emil Venere-Purdue on Friday, June 15, 2012 9:30 - 6 Comments    
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

Tool detects smartphone ‘no-sleep bugs’

A new tool is the first to automatically detect a class of software glitches in smartphones that are hidden from users. "You don't see any difference. You put it in your pocket and you think everything is fine," says Y. Charlie Hu. "You take it out, and your battery is dead." (Credit: The Master Shake Signal/Flickr)

PURDUE (US) — Researchers have found a way to automatically detect a new class of software glitches in smartphones called “no-sleep energy bugs,” which can entirely drain batteries while the phone is not in use.


“These energy bugs are a silent battery killer,” says Y. Charlie Hu, professor of electrical and computer engineering at Purdue University. “A fully charged phone battery can be drained in as little as five hours.”

Because conserving battery power is critical for smartphones, the industry has adopted “an aggressive sleep policy,” he says.

Straight from the Source

Read the original study

“What this means is that smartphones are always in a sleep mode, by default. When there are no active user interactions such as screen touches, every component, including the central processor, stays off unless an app instructs the operating system to keep it on.”

Various background operations need to be performed while the phone is idle.  “For example, a mailer may need to automatically update email by checking with the remote server,” Hu says.

To prevent the phone from going to sleep during such operations, smartphone manufacturers make application programming interfaces, or APIs, available to app developers. The developers insert the APIs into apps to instruct the phone to stay awake long enough to perform necessary operations.

“App developers have to explicitly juggle different power control APIs that are exported from the operating systems of the smartphones,” Hu says. “Unfortunately, programmers are only human. They make mistakes when using these APIs, which leads to software bugs that mishandle power control, preventing the phone from engaging the sleep mode. As a result, the phone stays awake and drains the battery.”

Findings are detailed in a research paper that will be presented during the 10th International Conference on Mobile Systems, Applications and Services, or MobiSys 2012, June 25-29 in the United Kingdom. The paper was written by doctoral students Abhinav Pathak and Abhilash Jindal, Hu, and Samuel Midkiff, a Purdue professor of electrical and computer engineering.

The researchers have completed the first systematic study of the no-sleep bugs and have proposed a method for automatically detecting them.

“We’ve had anecdotal evidence concerning these no-sleep energy bugs, but there has not been any systematic study of them until now,” Midkiff says.

The researchers studied 187 Android applications that were found to contain Android’s explicit power control APIs, called “wakelocks.” Of the 187 apps, 42 were found to contain errors—or bugs—in their wakelock code. Findings showed the new tool accurately detected all 12 previously known instances of no-sleep energy bugs and found 30 new bugs in the apps.

The glitch has been found in interactive apps, such as phone applications and services for telephony on Android that must work even though the user isn’t touching the phone. The app may fail to engage the sleep mode after the interactive session is complete.

Smartphone users, meanwhile, don’t know that their phones have the bugs. “You don’t see any difference,” Hu says. “You put it in your pocket and you think everything is fine. You take it out, and your battery is dead.”

To detect bugs in the applications, the researchers modified a tool called a compiler, which translates code written in computer languages into the binary code that computers understand. The tool they developed adds new functionality to the compiler so that it can determine where no-sleep bugs might exist.

“The tool analyzes the binary code and automatically and accurately detects the presence of the no-sleep bugs,” Midkiff says.

The researchers have coined the term “power-encumbered programming” to describe the smartphone energy bugs. Researchers concentrated on the Android smartphone, but the same types of bugs appear to affect other brands, Hu says.

The research has been funded in part by the National Science Foundation. Pathak is supported by an Intel Ph.D. fellowship.

More news from Purdue University: http://www.purdue.edu/newsroom/

Please wait

6 Comments

You can follow any responses to this entry through the RSS 2.0 feed. You can skip to the end and leave a response. Pinging is currently not allowed.

r.
Jun 15, 2012 11:53

there is already a long tradition of dehumanzation in our culture; we see that the past is very much alive in some quarters – and using material technologies where once it was the fashion to use non-human, non-sapient forms of life.

CCh
Jun 15, 2012 13:24

Why showing an iPhone picture as the study result is for androphones ?

Tony P
Jun 15, 2012 17:30

The biggest energy consumers on my Samsung SCH-R910 are the screen which sucks about 74% of the battery even when in very dim mode, and the background data function which I keep switched off most of the time.

IT support Birmingham company
Sep 12, 2012 0:21

It is really a smart phone…really effective….

consumer complaints uk
Oct 3, 2012 9:16

I’m using Samsung smart phone but not satisfied with battery life. But its understood that smart phones consumes extra battery.

r.
Oct 3, 2012 9:25

i find it personally quite ludicrous to be attached to a computer (e.g. a smartphone) 24 hours a day like that. thank goodness i don’t have one. tends to keep the discourse about them far away from me.

hopefully, you realize that your personal intelligence is not in any way embodied in a piece of material technology like a smartphone (or any sort of cellular technology as such).

Leave a Comment

Comment

Research news from leading universities

Daily E-News


Follow Futurity

RSS feedsFacebookTwitter

Week's Most Discussed

  • Loading...

Media Partners

Alltop logo EarthSky logo Pulse logo Flipboard logo The Conversation logo

Browse By School