Purdue researchers add ‘wakelock’ cleanup to phone power research
Fixing the ‘no-sleep’ bug
The Purdue University team which in March published a paper identifying how rogue apps and user-tracking can sap Android batteries has followed up with research into detecting and fixing the “wakelock” bugs.
The new study is to be presented at the MobiSys conference in the UK later this month. The researchers have extended their profiling to cover 187 apps, and found that 42 of them – more than 22 percent – had some kind of wakelock bug.
The problem is simple, says Purdue professor of electrical engineering Charlie Hu: programmers are human, and make mistakes. In juggling the various APIs they need to access to wake the phone up – for example, to receive an incoming call when the phone is asleep, or to check e-mail – they can leave the phone awake after the activity and drain the battery.
The Purdue group’s previous research identified bugs in newsreader apps, advertising tracking, and even the free version of Angry Birds (which devoted one-third of its unnecessary power consumption to GPS tracking). As noted at the time, I/O is a power hog and is often badly-handled by app developers.
Hu’s group uses a modified compiler to identify no-sleep bugs in software, and claims they can identify most, if not all, such bugs. ®
Re: "a substantial part of the MS marketing plan"
Now far be it from me to be an MS apologist, but you're attributing to Malice what is actually the product of Incompletence (and common to pretty much everyone in the industry).
Bloat is solely the result of lazy, incompetent programming; why be efficient, when computers get so much more capable every year? Awful UI decisions are the result of stupid people thinking they know best. Everything else... well, that's all pretty malicious.
How would you use a modified compiler to investigate binary code? Or does "modified compiler" actually mean disassembler/decompiler?
Substitute apps that fill up disk space and slow down your processor and you have a substantial part of the MS marketing plan.
It's worked for decades. Why change a good thing (for them).