Android one battery life

Battery Life optimizations in Android —

First Android Smartphone HTC Dream was launched in 2008, back then It had 256 MB RAM and 528 MHz CPU.Since then android smartphone RAM has been upgraded upto 6GB RAM and 2.8GHz CPU. Now users don’t bother too much about app size because of more than sufficient RAM and internal storage is available but still user is concerned too much about power consumption.

Before discussing about all the changes made in Android P, we will discuss about changes that are already made in previous android versions.

What is already done- A lot of efforts are already made on the Android OS end by Google to improve battery performance of device.

  • Job Scheduler— In lollipop job scheduler was introduced to optimize background task.using Job scheduler we can schedule a particular task to be performed on certain time with certain conditions like whenever device is on charge mode or wifi mode etc.

App Standby- App standby defers background network activity for apps with which the user has not recently interacted.

  1. High priority GCM messages (required for instant messaging apps) will be delivered even device is in Doze mode.Normal GCM will be batched to maintenance windows.
  2. Foreground services such as music is exempted by Doze and app standby mode.
  3. To start a alarm in Doze mode separate Alarm API is provided setAndAllowWhileIdle() or setExactAndAllowWhileIdle().

Doze on the go-Android system uses a low power “significant motion sensor” (if present in hardware) to track movement and exits Doze Mode if significant movement is detected, because the stock Doze Mode is designed for battery-saving in stationary state. Doze on the Go effectively removes this restriction and keeps your device in Doze Mode even during movement.Android 7.0 introduced native support of Doze on the Go and a new light doze mode, which blocks network access but not wake-up timers of the app. When movement is detected, it exits deep doze and keeps in light doze, and then goes back into deep doze after device is stationary for some time.

Background Execution Limits — As one of the changes that Android 8.0 (API level 26) introduces to improve battery life, when your app enters the cached state, with no active components, the system releases any wake locks that the app holds.

In addition, to improve device performance, the system limits certain behaviors by apps that are not running in the foreground. Specifically:

  • Apps that are running in the background now have limits on how freely they can access background services.
  • Apps cannot use their manifests to register for most implicit broadcasts (that is, broadcasts that are not targeted specifically at the app).
Читайте также:  Android состояние мобильной сети отключено

Note:-By default, these restrictions only apply to apps that target O. However, users can enable these restrictions for any app from the Settings screen, even if the app has not targetted O.

Background location limits-In order to preserve battery, user experience, and system health, background apps receive location updates less frequently when used on a device running Android 8.0. This behavior change affects all apps that receive location updates, including Google Play services.

In Android P-

  • Adaptive Battery- It intelligently aligns power consumption with app usage.App can still run in the background when they need to and users don’t need to micro-manage.

Adaptive battery usage the concept of App standby buckets(introduced with Doze mode).Every app on the device will be assigned to one of four buckets(Active,Working set,Frequent,Rare).Each bucket has different limits on background activity.Apps in the rare buckets will have most restrictions.

Android OS will use ML model to assign apps to these buckets based on their predicted usage. These all restrictions are lifted when device is power plugged.

How bucketing done using Machine learning— ML Model used is a two layer deep convolutional neural net with a feed forward neural net on top and this is used to predict the probability that an app will be opened in a given interval.This model is build using Tensorflow and will work on user device.Model is trained on millions of sequences of app open and transitions to discover the patterns of how user behave.
This ML model is purely unbiased there is no favouritism of one app over another.All personally identifiable information is removed before the model is trained.

  • Battery saver- To extends your battery life,battery saver turns off some device features and restricts apps.Location is off when device screen is off.Ambient display is also turned off when battery saver mode is on.
    Developer can explicitly switch app to dark theme when device is in battery saver mode because dark theme consume less power.

Background restrictions criteria-
1.Apps targeting pre -Android oreo and using background services.
2.Excessive wakelocks(>1 hr in background).

When Background restrictions enabled all the following things are restricted-

  • Background jobs,alarms,services and network access
  • Most location related updates(explicit intents)
  • Foreground services.

For battery optimization on apps end a new Work manager APIs also introduced for background tasks in Android P.

So that’s all about what Android had done on OS end so your device will drain less battery.

Read more posts about what all new things and changes in android from Google I/O 2018.

Источник

How To Increase Battery Life Of Android (Best Methods)

Best ways to increase the battery life of an Android!

The one problem that constantly bothers Android users is the phone’s battery life. It’s true that processor, RAM is important in a phone, but they were of no use without proper battery life.

Various factors contribute to poor battery life on Android. Bright screen, fast processor, more background apps, high-speed internet connection all take their toll on phone batteries.

10 Best Methods to increase Battery Life Of Android

So, if you are facing problems with your Android device’s battery, you are reading the right article. In this article, we will share few best methods to increase the battery life of an Android.

Читайте также:  Живые обои иконы для андроид

1. Avoid High Temperatures

If we talk about heatwaves, this is something worth mentioning when it comes to the battery. Heatwaves play a huge role in damaging the smartphone battery.

Leaving your smartphone exposed to extreme temperatures can be damaging to both the device and the battery. So, make sure to avoid high temperatures and, if possible, remove the back cover of your smartphone while charging.

2. Avoid Quick Recharges

Well, everyone needs those extra percent of battery life. People always choose to charge their smartphone for 15 minutes to ensure the device holds enough power to run another 1 hour.

We recommend giving the full charge to your battery. This will prevent quicker recharges from being needed in the day and will also improve the battery life.

3. Turn Off The Automatic WiFi

Android comes with a built-in feature known as ‘Automatic WiFi’. The feature usually scans for WiFi networks even if you have disabled the WiFi.

Since the service keeps running in the background, it consumes lots of battery power. To disable the Automatic Wifi follow the steps given below:

  • First of all, open the Settings app.
  • Next, tap on the Network & Internet option.
  • On the next page, tap on the ‘WiFi.’
  • Under the WiFi preference, disable the ‘Turn on WiFi Automatically’ option.

4. Turn Off Unnecessary hardware

Our Android smartphones offer lots of hardware radios like LTE, GPS, WiFi, Bluetooth, NFC, etc.

Usually, we don’t disable these hardware radios after using them, which affects our phone’s performance and battery life. So, make sure to turn off the unnecessary hardware radios if you don’t need them.

5. Don’t Do Heavy Gaming

Heavy games require a lot of resources. So, the best tip is to avoid heavy gaming for a long time. Running high-end games for a longer duration can drain the battery really fast and will also cause your phone to overheat.

Therefore, if you like to play games on your Android device, make sure not to use them for long.

6. Update Your Apps

Most of us ignore updating the apps. However, App updates often kill bugs that consume lots of battery.

Don’t ignore app updates because they can help you to avoid bugs and other issues that are related to your smartphone and battery. To update apps on Android, follow the steps given below.

  • First of all, open Google Play Store and tap on your profile picture.
  • Next, tap on the ‘My apps & games’ option.
  • On the next page, you will find all pending app updates.
  • Tap on the ‘Update all’ button to update all apps in a single tap.

7. Adjust Animation scales

It is a straightforward method to increase battery backup of Android without any app. This method will work on almost every Android phone.

Step 1. Open Settings on your Android device and then Scroll Down and click on About Phone. Now you will see options build number there. Tap 7-10 Times on the build number, and you see developer options will get activated.

Читайте также:  Антивирус для системы андроид

Step 2. Now go back to settings, and you will find the Developer Option. Tap on the Developer Option and scroll down.

Step 3. You will see options Window Animation Scale, Transition Animation Scale, and Animation Duration Scale. Now By default, their value would be 1.0; set them to 0.5 or off them all.

That’s it; you are done. This will increase your battery backup of Android up to 30-40%.

8. Use Greenify App

After having root privilege on your Android phone, you can boost the battery life of Android with this app. Greenify app hibernates the apps which are not currently in use. Here’s how to use the app.

Requirements:-

Step 1. Download and Install Greenify app on the Google play store.

Step 2. Now open the app and grant it superuser access. Now you will see three options on the app. You have to click on hibernate icon that is located on the bottom.

Step 3. Now you will be asked to enable the Greenify app as your default service. Select it and turn it on. That’s it; you are done. Now, this app will automatically hibernate the apps when they are not in use.

9. Use Servicely

This app is similar to Greenify. However, it doesn’t hibernate any app, but it simply eliminates the app running in the background. Here’s how to use the app on Android.

Step 1. First of all, you need to root your Android device, and for that, you need to follow this guide.

Step 2. Now you need to download Servicely app on your Android device. After you install it, grant it a superuser request.

Step 3. Now you will see various options there; you need to find and tap on “Add a new app to the Hit-list

Step 4. Now head over to the “Hit-List” tab and see all the apps you have just added.

Step 5. You can also set the time interval period between checks; the default is 60 seconds.

That’s it! Now, this app will prevent the apps from running in the background and will check according to your set time interval. This will eventually increase your battery life.

10. Reduce The Vibrations

Every smartphone has got a little motor known as ERM, an eccentric rotating mass vibration motor that has an unbalanced load attached to it.

The rotation of this load produces vibration. If you have enabled the vibration on the Keyboard or touch, then you need to disable it. For that, head over to Settings > Sound and disable the vibrate on touch and other options.

So, these are the 10 best methods to increase the battery life of an Android device. I hope this article helped you! Please share it with your friends also. If you have any doubts related to this, let us know in the comment box below.

Источник

Оцените статью