New software bugs drain smartphone batteries while not in use

   Jun 14, 11:18 am

Washington, June 14 (ANI): Researchers, including two of Indian origin, have proposed a method to automatically detect a new class of software glitches in smartphones called "no-sleep energy bugs", which can entirely drain batteries while the phones are not in use.

"These energy bugs are a silent battery killer," Y. Charlie Hu, a Purdue University professor of electrical and computer engineering, said.

"A fully charged phone battery can be drained in as little as five hours," Hu said.

He said that since conserving battery power is critical for smartphones, the industry has adopted "an aggressive sleep policy".

"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," Hu said.

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 said.

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 said.

"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," he said.

Foe the study, 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 completed.

Smartphone users, meanwhile, don't know that their phones have the bugs.

"You don't see any difference.

"You put it in your pocket and you think everything is fine. You take it out, and your battery is dead," he said.

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," Samuel Midkiff, a Purdue professor of electrical and computer engineering, said.

The Purdue 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 said.

The findings of the study will be presented during the 10th International Conference on Mobile Systems, Applications and Services, or MobiSys 2012, June 25-29 in the United Kingdom. (ANI)

Appin Security emerging as support structure to reduce information security deficit May 22, 3:01 pm
New Delhi, May 22 (ANI): The shift away from paper records and the overt dependence on computers to boost proficiency has created new challenges for both the government and private companies, as they defend intellectual property, scrutinise fraud, and guard their reputations from external threats.
Full Story »
Microsoft launches 'all-in-one home entertainment system' Xbox One May 22, 12:59 pm
London, May 22 (ANI): Microsoft has unveiled its latest video gaming console 'Xbox One' which is believed to transform games, TV and entertainment for the 21st century living room.
Full Story »
Facebook considered 'social burden' by teens: Study May 22, 12:59 pm
Washington, May 22(ANI): Facebook is considered more a social burden than a loved networking site by its young users, a recent study has found.
Full Story »
Apple accused of billion-dollar tax evading scheme May 21, 5:25 pm
London, May 21(ANI): Apple has been accused of evading taxes in UK by creating offshore entities that are not tax resident anywhere, a Senate committee has alleged.
Full Story »
Comments

LATEST STORIES
TOP VIDEO STORIES
PHOTO GALLERY