UPI en Español  |   UPI Asia  |   About UPI  |   My Account
Search:
Go

Software bug can drain cellphone batteries

|
 
Published: June 13, 2012 at 7:46 PM

WEST LAFAYETTE, Ind., June 13 (UPI) -- A new type of software glitch in smartphones called "no-sleep energy bugs" can entirely drain batteries while the phones are not in use, U.S. researchers say.

Because conserving battery power is critical for smartphones, the industry has adopted "an aggressive sleep policy," Y. Charlie Hu, a Purdue University professor of electrical and computer engineering, says.

Such aggressive strategies can backfire, he said.

Because various background operations need to be performed while the phone is idle or "sleeping" -- such as automatically updating e-mail by checking with the remote server -- smartphone manufacturers make application programming interfaces, or APIs, available to app developers.

The developers include the APIs in their apps to instruct the phone to stay awake long enough to perform necessary operations.

"Unfortunately, programmers are only human," Hu said. "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."

The researchers studied 187 Android applications using APIs that control power, and 42 were found to contain errors -- or bugs -- in their coding use of the APIs.

"You don't see any difference," Hu said. "You put it in your pocket and you think everything is fine. You take it out, and your battery is dead."

The researchers say they've developed a software tool that can examine apps to determine where no-sleep bugs might exist and will present it at a mobile technology conference in Britain later this month, a Purdue release said.

© 2012 United Press International, Inc. All Rights Reserved. Any reproduction, republication, redistribution and/or modification of any UPI content is expressly prohibited without UPI's prior written consent.

Order reprints
Join the conversation
Most Popular Collections
'Star Trek Into Darkness' screening NBC upfronts Met Ball 2013
'Great Gatsby' premieres in New York Spire raised on top of One WTC 2013: Celebrity break ups and divorces
Additional Technology Stories
1 of 16
Flags-In Ceremony at Arlington National Cemetery
View Caption
Staff Sgt. Jeffrey Roskos with the 3rd U.S. Infantry Regiment, "The Old Guard," participates in the annual Flags-In ceremony, May 23, 2013, at Arlington National Cemetery in Arlington, Virginia. Soldiers place American flags in front of more than 260,000 gravestones in the cemetery in honor of Memorial Day. UPI/Kevin Dietsch
fark
Are we there yet? No. Are we there yet? No. Are we there yet? No. Are we there yet? Are we there...
America F' yeah -- buy this guy a cigar and a whiskey ... yeah ... at 107 this old dude can probably...
Photoshop this man and his magnificent mask
How to fill out that Taco Bell job application like a BOSS
An abandoned runway in the French countryside, a daring Frenchman sits astride his home built bicycle....
Moore, OK to well-wishers: Please, no more socks and underwear, we have enough to last 20 lifetimes....