How To: Expose Battery-Draining Apps on Your Nexus 5 & Deal with Them for Good

How To: Expose Battery-Draining Apps on Your Nexus 5 & Deal with Them for Good
Android uses a set of permissions that apps can request to perform certain actions, and you're notified of these permissions each time you install an app. The problem here is the fact that you aren't given any built-in way to deny apps these permissions (although Danny just showed a workaround for this).One such permission is the dreaded Wakelock. This allows apps to either keep the screen on or just keep the processor running even when the screen is off. It's a necessary evil in some cases, because it allows apps to keep their data synced even when you're not using them. This comes in handy if an app posts notifications, for instance.But this functionality comes at a great expense in terms of battery life. When your phone is off, instead of entering sleep mode, you can have several different apps waking up the CPU intermittently and eating away at your battery.Developer UzumApps has created a great tool for rooted users that can hunt down the most notorious wakelock holders on your Android device so that you can deal with them one way or another—and I'll give you a couple of options after the jump. Please enable JavaScript to watch this video.

Step 1: Install Wakelock DetectorThe root app that allows you to track these wakelock-offenders is fittingly named Wakelock Detector. Search your Play Store app to get it installed, or if you're reading this from your Android device, you can simply tap this link to head directly to the install page. The developer recommends that you charge your phone to at least 90% battery life before running Wakelock Detector for the first time. If you're in a pinch, though, you can simply reboot your phone for the app to gather the data it needs.When you get that part out of the way, go ahead and run WLD for the first time. It'll ask for Superuser privileges, so Grant it those.

Step 2: Identify Problematic AppsWakelock Detector's premise is simple—it identifies apps that have woken your device from sleep mode using their wakelock permission.It presents these apps in the form of a list, which by default, is sorted by amount of time spent holding a wakelock of any kind. There are additional sorting options available at the top of the list if you would like to analyze this data in a different way. To see more wakelock data, you can tap any app and WLD will show you all of the services this app has used to request a wakelock. These items are also sorted by total time spent holding a wakelock. Use this information to figure out which apps have been keeping your device from entering deep sleep the most. When you have identified all of the problematic apps, there are some steps you can take to remedy the situation and help conserve your battery life.
Step 3: Dealing with Problematic AppsThere are several different options for you to consider when it comes time to handle one of these problematic apps. The simplest of all options is to simply uninstall the app in question. If there are alternative apps that perform the same function, try installing one of them to see if they hold fewer wakelocks. If the app has a mobile website that you can use instead (e.g., Facebook/Twitter), that would be the optimum solution.Since wakelock is a permission that apps can acquire, there are root solutions available that can revoke this permission. Be advised, though, that apps may not work as intended without all of their permissions enabled.With the release of KitKat, Google removed the App Ops functionality in Android that allowed for granular permissions management. As Justin explains in this article, there is an Xposed Module to get this feature back, called AppOpsXposed.

Step 4: Install App SettingsA personal favorite of mine in this category of apps is the Xposed module App Settings. In addition to the functionality offered by AppOpsXposed, it allows you to perform other per-app modifications such as forcing "Tablet View" or Immersive Mode. Either way you go, the process is similar—start by choosing the problematic app from the list.

Step 5: Adjust Per-App PermissionsWith App Settings, the next step is to toggle the switch at the top of the screen to On. This will reveal all of the options available for a particular app. The only option you'll need here is right at the bottom—tap Permissions, then you'll be taken to a menu that allows for the revoking of individual permissions. Next, toggle the Revoke Permissions option to On. Scroll through this list until you find the android.permission.WAKE_LOCK. Tap this entry, and you'll see the permission get crossed out. Next, tap OK at the bottom of this window, then hit the Save icon at the top of the next screen. A dialog box will appear asking you if you'd like to restart the app so that the new permissions will become active. Choose OK here. You can repeat this process as needed for any other problematic apps. Now the app should no longer be able to hold a wakelock, thus allowing you to keep using the app without the massive battery drain.The app won't be able to transmit or receive data when your phone is asleep, so be aware that notifications will not work as intended any more for that particular app. But this is a trade-off that you'll have to make to keep juice-sucking apps installed on your device without them constantly draining your battery.What apps held the longest wakelocks on your device? How much battery life are you saving now? Let us know in the comments section below.



Let's Define "Status Bar" First things first. Let's talk about what the Status Bar is. The top of your Android phone's main interface is separated into two defined areas: the Notification Bar and the Status Bar. The former is where all your notifications are housed as they come in, shown simply as icons to let you know there's
How to Make Your Status Bar's Color Auto-Match Current Apps


To use Apple Pay in iOS 8, you had hold your iPhone to the card reader first, and then you could either switch to a different card or pay with your default one. Now, in iOS 9, you can access your Wallet (which replaces Passbook) on the lock screen before you get to the reader. With your card in the
How to Disable the Time-Wasting Lock Screen in - Windows Tips


In addition to the police flashlight reviews, we have also included a handy Flashlight Comparison Guide and many other best flashlight articles, to help you choose the best law enforcement flashlight for you. Using the guide, you can easily sort through the flashlights using certain specifications, such as lumens, battery life, battery type, etc.
Amazon.com: police grade flashlight


The app has multiple ways to verify that your personal communications have not been intercepted. For calls, all of which are made using mobile data or Wi-Fi, Signal displays the same two words on both the screen of the caller and that of the receiver, allowing users to ask their friend/colleague/source to say the words back to them, thereby verifying their identity and confirming that the call
What is a safety number and why do I see that it changed


Instagram is the world of beautiful photos and videos, and it is the responsibility of the social network to protect the uploaded media files by users. Instagram does not allow users to download video, photos and profile pictures in their mobile app, even we can not preview profile pictures on Instagram using our official app.
How to Upload Full-Size Photo/Video to Instagram without


My first HP TOUCHPAD - it will not power up at no matter how long I connected the power to recharge the battery. What do you do in a situation like this? How do I get my HP Touchpad working again? I need it to power up so I can download the HP APP CATALOG. Thanks in Advance for you help.
Install ipk files/ 3rd party apps/ crack apps on HP touchpad


More. Ask a question; All Microsoft. how to change color saturation on monitor You could face this issue when contrast theme gets set for the display screen


How to use Do Not Disturb mode in Android If you want to quickly enable Do Not Disturb mode, just swipe down from the top of your screen to open the notification shade, and select the Do Not


The "Show color mixer" option here will let you pick any color you want for your window title bars. This process was tested on the final version of Windows 10 — build 10240. As Microsoft is committed to updating Windows 10 more regularly than previous versions of Windows, it's possible they may change the way this works in the future.
How to get colored title bars in background windows?


Change where downloads are saved. File downloads are saved in the folder specified in Firefox Options Preferences. To change that folder: Click the menu button and choose Options. Preferences. In the General panel, go to the Downloads section find the Downloads section under Files and Applications. Click the Browse Choose button next to the
How to Change the Firefox Download Folder Location


How to Trigger Green Traffic Lights Anybody who rides an electric scooter, a motorcycle, a bicycle, or drives a small car may notices this problem. Even when there is not traffic, the traffic light does not turn green.
The Easiest Way on How to Trigger Green Traffic Lights! | Do

0 comments:

Post a Comment