1. 25 Apr, 2016 1 commit
    • Jeff Sharkey's avatar
      Move DownloadManager to use JobScheduler. · 3a5f5eaf
      Jeff Sharkey authored
      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
      3a5f5eaf
  2. 20 Apr, 2016 1 commit
  3. 19 Apr, 2016 2 commits
  4. 08 Apr, 2016 1 commit
  5. 07 Apr, 2016 2 commits
  6. 04 Apr, 2016 1 commit
  7. 31 Mar, 2016 1 commit
    • Jeff Sharkey's avatar
      Avoid flashing download notifications. · 08fa91ba
      Jeff Sharkey authored
      When service starts, use new API to read the current set of
      notification tags from the system instead of clearing and starting
      from scratch.
      
      Bug: 27634130
      Change-Id: I049fe5e445a62a52042d7638c2cb50417977435f
      08fa91ba
  8. 24 Mar, 2016 1 commit
  9. 21 Mar, 2016 1 commit
    • Jeff Sharkey's avatar
      Remove chmod(0644) for finished downloads. · a013d5b1
      Jeff Sharkey authored
      Now that PackageInstaller can read APKs from content:// Uris, we
      don't need to make downloads world-readable.  This is mostly just
      cleanup, since our top-level private data directory is no longer
      o+x, so other apps can't traverse in anyway.
      
      Bug: 5464052
      Change-Id: I45de6a40c28b85c64d5afbc13068fe3ae8341d93
      a013d5b1
  10. 19 Mar, 2016 1 commit
  11. 15 Mar, 2016 1 commit
  12. 10 Mar, 2016 1 commit
  13. 18 Feb, 2016 9 commits
  14. 16 Feb, 2016 3 commits
  15. 09 Feb, 2016 1 commit
  16. 08 Feb, 2016 1 commit
  17. 03 Feb, 2016 4 commits
  18. 02 Feb, 2016 8 commits