diff options
author | Dianne Hackborn <hackbod@google.com> | 2015-08-06 22:19:06 -0700 |
---|---|---|
committer | Dianne Hackborn <hackbod@google.com> | 2015-08-07 14:23:32 -0700 |
commit | 4a503b1ece485d44c15eb02ec2bcd464b46e6f7f (patch) | |
tree | 72a22a0708c74e5f99a8bf2f4cb68f3d6ac15cf7 /data | |
parent | 1d7c32548c30c62a35c54a624f89d5f9db31b9d4 (diff) | |
download | frameworks_base-4a503b1ece485d44c15eb02ec2bcd464b46e6f7f.zip frameworks_base-4a503b1ece485d44c15eb02ec2bcd464b46e6f7f.tar.gz frameworks_base-4a503b1ece485d44c15eb02ec2bcd464b46e6f7f.tar.bz2 |
Fix issue #22989030: Separate battery whitelists
We now have a new whitelist you can put apps in, which
opts them out of the old battery saver mode and new app idle,
but doesn't keep them from going in to doze. This is for a few
special cases that we had previously whitelisted for battery saver,
and inherited to the new modes... ultimately we should figure out
how to get these apps out of the whitelist completely, but this
will help for now.
Apps in this new whitelist are not shown in the UI, because they
are still significantly restricted by not being able to operate
normally in doze. This also means they are still visible in the
list of all apps for the user to be able to put them on/off the
complete whitelist if that is what they really want.
In the course of doing this, I needed to clean up code in the
network policy manager to better separate management of the
two firewall rules that now have different whitelists applied
to them. This also hopefully just generally simplifies and cleans
up that code. Hopefully!
Change-Id: I92e15f2f85899571dd8b049b5e3eb1354f55f353
Diffstat (limited to 'data')
-rw-r--r-- | data/etc/platform.xml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/data/etc/platform.xml b/data/etc/platform.xml index 579d2df..350310c 100644 --- a/data/etc/platform.xml +++ b/data/etc/platform.xml @@ -141,6 +141,6 @@ <!-- These are the standard packages that are white-listed to always have internet access while in power save mode, even if they aren't in the foreground. --> - <allow-in-power-save package="com.android.providers.downloads" /> + <allow-in-power-save-except-idle package="com.android.providers.downloads" /> </permissions> |