New software bugs drain smartphone batteries while not in use

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)

  • Ford Ecosport: A closer look
  • Hyosung GV650 Aquila Pro

    Hyosung GV650 Aquila Pro

    Wed 15 May, 2013
    Hyosung GV650 Aquila Pro

    Cruiser motorcycles might not be very popular in India, but there is still a segment of buyers who prefer to buy these body style of bikes. While there is little option at the lower end of the segment, at high price brackets there are quite a few alternatives. Earlier this year, DSK Motowheels launched the Hyosung GV650 Aquila Pro, which offers quite a lot to the cruiser enthusiast. Priced at Rs. 5.46 lakhs (Mumbai), the GV650 is significant value.

  • India's top 10 best selling SUVs

    India's top 10 best selling SUVs

    Wed 15 May, 2013
    India's top 10 best selling SUVs

    SUVs have become the most favoured body style in the world. So which are the hottest SUVs available in India?

  • Narendra Modi

    Narendra Modi

    Yahoo! India News - Fri 23 Nov, 2012
    Narendra Modi

    From shaking up the very foundations of the Indian government to stirring up unseemly controversies, from showing incredible courage in the face of extreme adversities to losing a reputation built over years of hard work in just a blink of an eye, from setting the electoral hustings afire with golden speeches to getting into trouble for not speaking at all, there were many 'newsmakers' in 2012 who caught the common man's imagination. Some made it for stellar reasons, others for all there is wrong with the society. Here are 12 'newsmakers' that deserve a mention.

  • Arvind Kejriwal

    Yahoo! India News - Fri 23 Nov, 2012

    From shaking up the very foundations of the Indian government to stirring up unseemly controversies, from showing incredible courage in the face of extreme adversities to losing a reputation built over years of hard work in just a blink of an eye, from setting the electoral hustings afire with golden speeches to getting into trouble for not speaking at all, there were many 'newsmakers' in 2012 who caught the common man's imagination. Some made it for stellar reasons, others for all there is wrong with the society. Here are 12 'newsmakers' that deserve a mention.

  • Malala Yousafzai

    Malala Yousafzai

    Yahoo! India News - Fri 23 Nov, 2012
    Malala Yousafzai

    From shaking up the very foundations of the Indian government to stirring up unseemly controversies, from showing incredible courage in the face of extreme adversities to losing a reputation built over years of hard work in just a blink of an eye, from setting the electoral hustings afire with golden speeches to getting into trouble for not speaking at all, there were many 'newsmakers' in 2012 who caught the common man's imagination. Some made it for stellar reasons, others for all there is wrong with the society. Here are 12 'newsmakers' that deserve a mention.

  • Saudi cleric says using air-conditioners by women 'immoral'

    Washington, May 22 (ANI): A self-proclaimed Saudi cleric said that if women turn on air-conditioners at home in their husband's absence could lead to moral depravities.

  • NRI teen invents 30-second phone charger

    Indian-American teen invents gadget that can charge phone in 30 seconds

  • Sahara pulls out of IPL, not to renew BCCI sponsorship

    New Delhi, May 21 (IANS) Pune Warriors India, owned by Sahara India Pariwar, pulled out of the already scandal-hit Indian Premier League (IPL) Tuesday and announced that they will not renew their sponsorship of the Indian cricket team after the present contract expires in December 2013.

  • Sanjay Dutt shifted to Pune jail

    Mumbai, May 22 (IANS) In a surprise move, Bollywood actor Sanjay Dutt was secretly shifted from a Mumbai prison to a Pune jail early Wednesday, official sources said.

  • Manmohan vs Sonia: Policitical ambitions clash
    Manmohan vs Sonia: Policitical ambitions clash

    After nine years in Government, the political ambitions of Manmohan and Sonia are at clash point. The trust deficit is widening. With the Lok Sabha elections fast approaching, both sides are positioning themselves-Manmohan for a dignified exit, if not a third term, and Sonia for a clean slate for son Rahul Gandhi. Manmohan and Sonia are locked in an uncomfortable embrace. The tensions are bound to simmer even if the endgame unfolds months later. Unfortunately, the Congress can no longer blame

  • Sreesanth says did not indulge in spot-fixing
    Sreesanth says did not indulge in spot-fixing

    By Amlan Chakraborty NEW DELHI (Reuters) - Cricketer Shanthakumaran Sreesanth has insisted he is innocent of any wrongdoing in the ongoing spot-fixing scandal and is confident of emerging from the "tough period" with his dignity intact. The 30-year-old bowler was one of three players, along with 11 bookmakers, arrested last week on suspicion of spot-fixing in the Indian Premier League (IPL) Twenty20 competition, the allegations also earning him an immediate suspension from the cricket board. "I

  • Galaxy S3 to get S4's features via Android 4.2.2 update
    Galaxy S3 to get S4's features via Android 4.2.2 update

    Samsung Galaxy S3 owners will be able to enjoy a few of the software features in the Galaxy S4 through an upcoming Android 4.2.2 Jelly Bean update.

Related Videos

Yahoo! Cricket

Loading...