<feed xmlns='http://www.w3.org/2005/Atom'>
<title>android_packages_providers_DownloadProvider/tests, branch cm-14.1_old</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.
</subtitle>
<link rel='alternate' type='text/html' href='https://git.replicant.us/mirrors/LineageOS/android_packages_providers_DownloadProvider/'/>
<entry>
<title>Use calling app's Network Security Config for HTTPS downloads</title>
<updated>2016-06-20T23:28:12+00:00</updated>
<author>
<name>Chad Brubaker</name>
<email>cbrubaker@google.com</email>
</author>
<published>2016-06-20T19:41:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/mirrors/LineageOS/android_packages_providers_DownloadProvider/commit/?id=473ee1358deac95b094a40fd47397ab97b975751'/>
<id>473ee1358deac95b094a40fd47397ab97b975751</id>
<content type='text'>
Bug:29505888
Change-Id: Ifc33fd75e44d1dbc5a4ce5caa8e1ff938b94623e
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Bug:29505888
Change-Id: Ifc33fd75e44d1dbc5a4ce5caa8e1ff938b94623e
</pre>
</div>
</content>
</entry>
<entry>
<title>Visible downloads should run while blocked/dozing.</title>
<updated>2016-04-29T18:30:02+00:00</updated>
<author>
<name>Jeff Sharkey</name>
<email>jsharkey@android.com</email>
</author>
<published>2016-04-28T21:33:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/mirrors/LineageOS/android_packages_providers_DownloadProvider/commit/?id=b3597b9d2fdde31bb0a8af821e3da3ca786e277b'/>
<id>b3597b9d2fdde31bb0a8af821e3da3ca786e277b</id>
<content type='text'>
Downloads with visible notifications should behave as if the
requesting app was running a foreground service.  The easiest way
to implement this for now is to ignore any BLOCKED network status
and use the new setWillBeForeground() API so job scheduling ignores
any active blocked/dozing status.

Bug: 26571724
Change-Id: I8ea2b2a7cdb5f469adc11b4d897ff55bd8a9db9a
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Downloads with visible notifications should behave as if the
requesting app was running a foreground service.  The easiest way
to implement this for now is to ignore any BLOCKED network status
and use the new setWillBeForeground() API so job scheduling ignores
any active blocked/dozing status.

Bug: 26571724
Change-Id: I8ea2b2a7cdb5f469adc11b4d897ff55bd8a9db9a
</pre>
</div>
</content>
</entry>
<entry>
<title>Move DownloadManager to use JobScheduler.</title>
<updated>2016-04-25T18:59:46+00:00</updated>
<author>
<name>Jeff Sharkey</name>
<email>jsharkey@android.com</email>
</author>
<published>2016-04-21T05:23:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/mirrors/LineageOS/android_packages_providers_DownloadProvider/commit/?id=3a5f5eafb34eaa4963c801882148e8f61514a61b'/>
<id>3a5f5eafb34eaa4963c801882148e8f61514a61b</id>
<content type='text'>
JobScheduler is in a much better position to coordinate tasks across
the platform to optimize battery and RAM usage.  This change removes
a bunch of manual scheduling logic by representing each download as
a separate job with relevant scheduling constraints.  Requested
network types, retry backoff timing, and newly added charging and
idle constraints are plumbed through as job parameters.

When a job times out, we halt the download and schedule it to resume
later.  The majority of downloads should have ETag values to enable
resuming like this.

Remove local wakelocks, since the platform now acquires and blames
our jobs on the requesting app.

When an active download is pushing updates to the database, check for
both paused and cancelled state to quickly halt an ongoing download.

Shift DownloadNotifier to update directly based on a Cursor, since we
no longer have the overhead of fully-parsed DownloadInfo objects.

Unify a handful of worker threads into a single shared thread.

Remove legacy "large download" activity that was thrown in the face
of the user; the UX best-practice is to go through notification, and
update that dialog to let the user override and continue if under
the hard limit.

Bug: 28098882, 26571724
Change-Id: I33ebe59b3c2ea9c89ec526f70b1950c734abc4a7
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
JobScheduler is in a much better position to coordinate tasks across
the platform to optimize battery and RAM usage.  This change removes
a bunch of manual scheduling logic by representing each download as
a separate job with relevant scheduling constraints.  Requested
network types, retry backoff timing, and newly added charging and
idle constraints are plumbed through as job parameters.

When a job times out, we halt the download and schedule it to resume
later.  The majority of downloads should have ETag values to enable
resuming like this.

Remove local wakelocks, since the platform now acquires and blames
our jobs on the requesting app.

When an active download is pushing updates to the database, check for
both paused and cancelled state to quickly halt an ongoing download.

Shift DownloadNotifier to update directly based on a Cursor, since we
no longer have the overhead of fully-parsed DownloadInfo objects.

Unify a handful of worker threads into a single shared thread.

Remove legacy "large download" activity that was thrown in the face
of the user; the UX best-practice is to go through notification, and
update that dialog to let the user override and continue if under
the hard limit.

Bug: 28098882, 26571724
Change-Id: I33ebe59b3c2ea9c89ec526f70b1950c734abc4a7
</pre>
</div>
</content>
</entry>
<entry>
<title>Tidy up uses of Integer.valueOf.</title>
<updated>2016-04-19T11:01:11+00:00</updated>
<author>
<name>Narayan Kamath</name>
<email>narayan@google.com</email>
</author>
<published>2016-04-19T11:01:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/mirrors/LineageOS/android_packages_providers_DownloadProvider/commit/?id=57b29e71e0dafa2a9d0ff1dc953796d7a350072f'/>
<id>57b29e71e0dafa2a9d0ff1dc953796d7a350072f</id>
<content type='text'>
Use parseInt when the result is assigned to an int. Allocates fewer
objects.

bug: 28078871
Change-Id: I2c58112795fecce6395c558f2bb1e1fefe83a5bf
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Use parseInt when the result is assigned to an int. Allocates fewer
objects.

bug: 28078871
Change-Id: I2c58112795fecce6395c558f2bb1e1fefe83a5bf
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge "Implement multi-network downloads" into nyc-dev</title>
<updated>2016-04-07T16:43:15+00:00</updated>
<author>
<name>Robin Lee</name>
<email>rgl@google.com</email>
</author>
<published>2016-04-07T16:43:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/mirrors/LineageOS/android_packages_providers_DownloadProvider/commit/?id=f4837c7cf730eb08fdd3596169fa383e0b8c6293'/>
<id>f4837c7cf730eb08fdd3596169fa383e0b8c6293</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Implement multi-network downloads</title>
<updated>2016-04-07T15:14:11+00:00</updated>
<author>
<name>Robin Lee</name>
<email>rgl@google.com</email>
</author>
<published>2016-03-24T12:02:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/mirrors/LineageOS/android_packages_providers_DownloadProvider/commit/?id=26c68db9ccf1983f5d6e8a734f8ffccea3849f10'/>
<id>26c68db9ccf1983f5d6e8a734f8ffccea3849f10</id>
<content type='text'>
Downloads should use the default network for the caller. This prevents
applications from, for example, bypassing VPN by routing all requests
through the DownloadProvider.

Bug: 27074270
Change-Id: I7830226dd2910757d3a5c78f373330f84637ccfa
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Downloads should use the default network for the caller. This prevents
applications from, for example, bypassing VPN by routing all requests
through the DownloadProvider.

Bug: 27074270
Change-Id: I7830226dd2910757d3a5c78f373330f84637ccfa
</pre>
</div>
</content>
</entry>
<entry>
<title>Add tag to downloadprovider storage tests to run in apct</title>
<updated>2016-03-24T17:39:39+00:00</updated>
<author>
<name>Md Haque</name>
<email>haque@google.com</email>
</author>
<published>2016-03-24T17:39:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/mirrors/LineageOS/android_packages_providers_DownloadProvider/commit/?id=a071d48ec571dddcfcb01e4d2da2902d8d70e3d2'/>
<id>a071d48ec571dddcfcb01e4d2da2902d8d70e3d2</id>
<content type='text'>
Change-Id: I9b2711c2a9b3edd4bbef97ff6cdcae9fdc9ef433
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Change-Id: I9b2711c2a9b3edd4bbef97ff6cdcae9fdc9ef433
</pre>
</div>
</content>
</entry>
<entry>
<title>Follow framework refactoring.</title>
<updated>2016-01-06T17:21:49+00:00</updated>
<author>
<name>Jeff Sharkey</name>
<email>jsharkey@android.com</email>
</author>
<published>2016-01-06T17:10:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/mirrors/LineageOS/android_packages_providers_DownloadProvider/commit/?id=4f69f18892f2b246d74b985d68e9236e7530d9ab'/>
<id>4f69f18892f2b246d74b985d68e9236e7530d9ab</id>
<content type='text'>
Bug: 22958127
Change-Id: I314a9bdd21988bf7e6cc79a2ae842bed29c96f17
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Bug: 22958127
Change-Id: I314a9bdd21988bf7e6cc79a2ae842bed29c96f17
</pre>
</div>
</content>
</entry>
<entry>
<title>Add "Cancel" action to downloads in notification.</title>
<updated>2015-06-25T22:50:58+00:00</updated>
<author>
<name>Oren Blasberg</name>
<email>orenb@google.com</email>
</author>
<published>2015-06-19T18:31:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/mirrors/LineageOS/android_packages_providers_DownloadProvider/commit/?id=6971133998ddc8c8c6b37b2fdaaec1d3ed152e90'/>
<id>6971133998ddc8c8c6b37b2fdaaec1d3ed152e90</id>
<content type='text'>
Add a "Cancel" action to in-progress downloads shown in notification
pane.
We add a new action type for a new "cancel" intent sent by
DownloadNotifier to DownloadReceiver, which in turn cancels the
download by way of DownloadManager.

BUG=19972464

Change-Id: I83cd2f40e1442c327f756027b99f9eac913a0e70
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add a "Cancel" action to in-progress downloads shown in notification
pane.
We add a new action type for a new "cancel" intent sent by
DownloadNotifier to DownloadReceiver, which in turn cancels the
download by way of DownloadManager.

BUG=19972464

Change-Id: I83cd2f40e1442c327f756027b99f9eac913a0e70
</pre>
</div>
</content>
</entry>
<entry>
<title>Make DownloadProvider honor the cleartext traffic policy.</title>
<updated>2015-04-01T18:37:07+00:00</updated>
<author>
<name>Alex Klyubin</name>
<email>klyubin@google.com</email>
</author>
<published>2015-03-27T17:17:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/mirrors/LineageOS/android_packages_providers_DownloadProvider/commit/?id=f5c662d5ac2ffc887660ff2957dfe4e1e8abc56a'/>
<id>f5c662d5ac2ffc887660ff2957dfe4e1e8abc56a</id>
<content type='text'>
This makes the Provider-side of the DownloadManager framework honor
the per-UID cleartext network traffic policy. The policy is enforced
in the Provider rather than in its client (DownloadManager) because
download URLs could get redirected between HTTPS and HTTP and only
the Provider currently has visibility into and control over this.

Whether cleartext network traffic is permitted is a per-package
policy. However, the DownloadProvider can only access the UID of the
requesting application. Multiple packages can run under the same UID.
In that scenario, cleartext traffic is permited for the UID if
cleartext traffic is permitted for any of the packages running under
the UID. This could be improved by making the DownloadManager provide
the package name in addition to the UID.

Bug: 19215516
Change-Id: Ib37585a7a2fc2869954d52a1b08052926f49bc9b
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This makes the Provider-side of the DownloadManager framework honor
the per-UID cleartext network traffic policy. The policy is enforced
in the Provider rather than in its client (DownloadManager) because
download URLs could get redirected between HTTPS and HTTP and only
the Provider currently has visibility into and control over this.

Whether cleartext network traffic is permitted is a per-package
policy. However, the DownloadProvider can only access the UID of the
requesting application. Multiple packages can run under the same UID.
In that scenario, cleartext traffic is permited for the UID if
cleartext traffic is permitted for any of the packages running under
the UID. This could be improved by making the DownloadManager provide
the package name in addition to the UID.

Bug: 19215516
Change-Id: Ib37585a7a2fc2869954d52a1b08052926f49bc9b
</pre>
</div>
</content>
</entry>
</feed>
