android p
Google has introduced significant new features to improve battery life on Android over the last few years, with Oreo bringing the best improvements yet. Here’s how it’s looking to improve that even further with Android P.
在过去的几年中,Google引入了重要的新功能来改善Android上的电池寿命,而Oreo带来了迄今为止最好的改进。 希望通过Android P进一步改善这一点。
关于Android电池续航的一点历史 (A Little History on Android Battery Life)
Android’s battery issues have always been sort of an uphill battle—how do you build an operating system that allows for background services and quick multitasking without limiting users to only three hours of battery life? This was a constant issue on older versions of Android—up until Android Marshmallow (6.x), anyway.
Android的电池问题一直是一场艰苦的战斗-您如何构建一个可提供后台服务和快速多任务处理而又不将用户电池寿命限制在三个小时的操作系统? 无论如何,这一直是旧版Android上的一个恒定问题,直到Android Marshmallow(6.x)为止。
In Marshmallow, Google introduced a new feature named Doze Mode. This could be considered a sort of turning point for Android in terms of battery life, because it made a dramatic improvement that Google has been building off of ever since.
在棉花糖中,Google引入了一项名为“打ze模式”的新功能。 从电池寿命的角度来看,这可以认为是Android的一个转折点,因为从那时起Google一直在大力改进它。
Doze Mode essentially “forces” your device to go into a deep sleep when you aren’t using it. Initially, it would only work when the device was lying on a flat surface, but was modified in Nougat (Android 7.x) to also work in pockets, purses, and so on—basically, whenever the phone isn’t in use. That’s cool.
打ze模式实质上是在不使用设备时“强制”您进入深度睡眠状态。 最初,它只能在设备放在平坦表面上时使用,但在Nougat(Android 7.x)中进行了修改,使其也可以在口袋,钱包等中使用-基本上在不使用手机时都可以使用。 这很酷。
In Android Oreo, a feature was added that showed which apps were running in the background or using battery, to let users see apps that were acting out. This, combined with Doze, really improved Android’s battery life and exposed when apps were working against the OS by refusing to sleep.
在Android Oreo中,添加了一项功能,该功能可显示哪些应用程序在后台运行或正在使用Battery ,以使用户查看正在运行的应用程序。 这与Doze结合使用,确实改善了Android的电池寿命,并且在应用程序通过拒绝睡眠而与OS对抗时暴露出来。
And now, with Android P, things are getting kicked up a notch.
而现在,有了Android P,事情变得更加艰难了。
Android P如何改善电池寿命 (How Android P Will Improve Battery Life)
This year, Google I/O saw a slew of announcements for Android, including the P beta. Google also highlighted a couple of new battery-saving features: Adaptive Battery and Adaptive Brightness. Let’s take a closer look.
今年, Google I / O看到了许多关于Android的公告,包括P beta 。 Google还重点介绍了两个新的省电功能:“自适应电池”和“自适应亮度”。 让我们仔细看看。
什么是自适应电池? (What is Adaptive Battery?)
Google partnered with Alphabet’s DeepMind team to develop the Adaptive Battery feature, which will “prioritize apps and services you use the most.”
Google与Alphabet的DeepMind团队合作开发了“自适应电池”功能,该功能将“为您使用最多的应用和服务确定优先级”。
The feature will “learn” how you use your phone—what apps you use most, when you use them, and so on. In turn, Adaptive Battery will “turn off” apps that you don’t use so they’re not eating battery in the background. This feature also prevents wakelocks—that is, waking the CPU in the background—for apps that don’t absolutely need to wake the device because you don’t really use them often.
该功能将“学习”您的手机使用方式-您最常使用的应用程序,使用时间等。 反过来,“自适应电池”将“关闭”您不使用的应用程序,以使它们不会在后台消耗电池。 对于不需要真正唤醒设备的应用,此功能还可以防止唤醒锁(即在后台唤醒CPU)。
So, for example, let’s say you really only look at Instagram at night. In that case, Adaptive Battery will learn this behavior and keep the app in sleep mode during the day, then wake it up when you’re more likely to use it. Similarly, if there are apps you only use every once in a while, they’ll just remain asleep basically all the time—at least until you launch them.
举例来说,假设您真的只在晚上看Instagram。 在这种情况下,自适应电池将学习这种行为并将白天的应用保持在睡眠模式,然后在您更有可能使用它时将其唤醒。 同样,如果有些应用程序偶尔仅使用一次,则它们基本上会一直保持睡眠状态-至少直到您启动它们为止。
According to Google, a 30 percent decrease in wakelocks was noted while testing Adaptive Battery. That’s a solid improvement, because wakelocks have been an issue that has plagued Android since…well, forever.
根据Google的说法,在测试Adaptive Battery时,唤醒锁减少了30%。 这是一个坚实的改进,因为唤醒锁一直是困扰Android的一个问题…………永远如此。
什么是自适应亮度? (What Is Adaptive Brightness?)
So, Android has had automatic brightness settings for ages. Adaptive Brightness is different, though, even if only slightly.
因此,Android的自动亮度设置已有很长时间了。 自适应亮度是不同的,即使只是很小。
With Automatic Brightness, the operating system uses the ambient light sensor to judge how much brightness is (or isn’t) in the surrounding area and then automatically adjusts the display brightness to match what it thinks is an acceptable level.
借助“自动亮度”,操作系统使用环境光传感器来判断周围区域的亮度是(或不是)多少,然后自动调整显示亮度以使其符合可接受的水平。
With Adaptive Brightness, the operating system will again use machine learning to figure out how bright you like your display. For example, if the brightness is automatically dimmed and you immediately turn it back up, Android will note this behavior.
使用自适应亮度,操作系统将再次使用机器学习来确定您喜欢显示器的亮度。 例如,如果亮度自动变暗,而您立即将其重新调高,则Android将注意到此行为。
As you use your device, and adjust the brightness to your liking, the OS will learn how you like things, and then apply that to the automatic brightness settings. This way, the brightness will always stay within a range where you like it.
当您使用设备并根据自己的喜好调节亮度时,操作系统将学习您的喜好,然后将其应用于自动亮度设置。 这样,亮度将始终保持在您喜欢的范围内。
This, in turn, can help battery life, by keeping the display dimmer if that’s your preference. It seems like it may also go the other way—if you prefer a brighter display, then it could potentially negatively affect battery life…but the details are scarce on how exactly this will work, so we’re not sure yet. As Android P reaches maturity and a stable release, we’ll likely have a better idea of what this will ultimately mean for battery life.
反过来,如果您愿意的话,可以通过保持显示屏调暗来延长电池寿命。 似乎它也可能以其他方式出现-如果您更喜欢更亮的显示屏,则可能会对电池寿命产生负面影响……但有关其工作原理的细节尚不足,因此我们不确定。 随着Android P的成熟和稳定发布,我们可能会对电池寿命的最终含义有了更好的了解。
省电模式变更 (Battery Saver Changes)
There’s also a small change to how Battery Saver works. In previous versions of Android, Battery Saver would only automatically turn on when the battery was between 5 and 15 percent. You could manually enable it at any point, but the automatic settings were limited.
省电模式的工作方式也有少许变化。 在以前的Android版本中,节电功能仅在电池电量在5%到15%之间时才会自动打开。 您可以随时手动启用它,但是自动设置受到限制。
Now, however, it can be automatically enabled all the way up to 75 percent, which is pretty insane. It also no longer turns the navigation and status bars bright orange—only a small orange “+” symbol in the battery icon indicates that the feature is on. Much better.
但是,现在可以将其自动启用到75%的水平,这简直太疯狂了。 它还不会再将导航和状态栏变为亮橙色-电池图标中只有一个橙色的小“ +”符号表示该功能已开启。 好多了。
Overall, this upwards trend of battery life improvement is great. Having been using the Android P beta since release, I can also say that my Pixel 2 XL is getting better battery life than ever before, which is pretty impressive considering Oreo’s battery life was pretty insane. Keep it up, Google.
总体而言,这种电池寿命提高的趋势是巨大的。 自发布以来一直使用Android P beta,我也可以说我的Pixel 2 XL的电池寿命比以往任何时候都要长,考虑到Oreo的电池寿命非常疯狂,这给人留下了深刻的印象。 继续努力,Google。
翻译自: https://www.howtogeek.com/352364/how-android-p-will-increase-battery-life/
android p