Commit Graph

  • 96b1145b29 Add missing android namespace declaration Gabriele M 2017-07-18 22:15:13 +02:00
  • a06fa3f9f0 Add own formatDuration() method Gabriele M 2017-07-18 22:15:13 +02:00
  • af1e9c4478 Create model package Gabriele M 2017-07-18 22:15:13 +02:00
  • 6abafa60a8 Always show downloaded data in megabytes Gabriele M 2017-07-18 13:18:41 +02:00
  • 8ce10da9ce Use UTC timezone for the build dates Gabriele M 2017-07-18 12:23:43 +02:00
  • fecd837b70 Fix fling gestures when expanding the AppBar from RecyclerView Gabriele M 2017-07-18 12:23:38 +02:00
  • e710060baa Show a snackbar when trying to download/install invalid updates Gabriele M 2017-07-17 23:53:05 +02:00
  • fe21c2cd49 Treat download resume and verification in the same way Gabriele M 2017-07-17 23:49:11 +02:00
  • 4674d68eb3 Choose layout depending on the update persistent status Gabriele M 2017-07-17 19:34:32 +02:00
  • c6a60d78f5 Use a localized string as default content description Gabriele M 2017-07-17 14:48:59 +02:00
  • d3436c37e9 Use Compat theme for the AppBar title Gabriele M 2017-07-17 13:17:48 +02:00
  • 61f9bb8f30 Get the height of the ToolBar from the current theme Gabriele M 2017-07-17 12:42:58 +02:00
  • d0f9c4be22 Don't use the filename as notification title Gabriele M 2017-07-17 12:25:49 +02:00
  • c1f0aab382 Show snackbar for some download status changes Gabriele M 2017-07-17 12:25:49 +02:00
  • b337452eeb Show download button if a download fails immediately Gabriele M 2017-07-17 12:25:49 +02:00
  • f496f0d0e7 Don't set status of download to unknown when download fail Gabriele M 2017-07-17 12:25:49 +02:00
  • fcce65d4ed Improve D-pad navigation Gabriele M 2017-07-17 12:25:49 +02:00
  • 1f0aa4e79b Collapse header if the device has no touchscreen Gabriele M 2017-07-17 12:25:49 +02:00
  • 1af40da839 Send the notification and then start the download Gabriele M 2017-07-17 12:25:49 +02:00
  • 75befd1738 Always cleanup the download directory Gabriele M 2017-07-17 00:30:14 +02:00
  • c3515644b6 Ask for confirmation before installing updates Gabriele M 2017-07-16 22:49:17 +02:00
  • 12688ba761 Allow to check if an update is of type AB from anywhere Gabriele M 2017-07-16 22:28:11 +02:00
  • 4182e3d30e Allow to delete updates on card long press Gabriele M 2017-07-16 21:23:45 +02:00
  • e51be80f6a Initial UI work Gabriele M 2017-07-16 21:23:45 +02:00
  • a455c95e0c Install updates from UpdaterService Gabriele M 2017-07-16 21:23:44 +02:00
  • fd856dce70 Allow to disable the automatic updates check Gabriele M 2017-07-16 21:23:44 +02:00
  • f94846674f Allow to check if an AB update is being installed Gabriele M 2017-07-16 21:23:44 +02:00
  • 601823dfc7 Allow to check if an update is being verified Gabriele M 2017-07-16 21:23:44 +02:00
  • 7369e9cea9 Set the status of paused downloads to unknown if no file exists Gabriele M 2017-07-16 21:23:44 +02:00
  • 40f15b1fb3 Reset speed and ETA when pausing downloads Gabriele M 2017-07-15 02:09:32 +02:00
  • c7f4c48a67 Allow to re-install the current update Gabriele M 2017-07-15 02:09:22 +02:00
  • d30ba00a7b Update download size only if it was unknown Gabriele M 2017-07-15 02:09:13 +02:00
  • 66ca7a79df Sort the updates, not their IDs Gabriele M 2017-07-10 00:45:49 +02:00
  • 7d55cd93ee Add missing @Override annotation Gabriele M 2017-07-09 21:07:06 +02:00
  • e34334a1d7 Pass the destination File to the callback Gabriele M 2017-07-09 20:57:37 +02:00
  • e1dd2a8d73 Fix the download path of CMUpdater Gabriele M 2017-07-08 21:39:10 +02:00
  • 79b44602e0 Allow to have different updates using the same filename Gabriele M 2017-07-08 21:39:10 +02:00
  • 4979c4d78d Increase number of veryfing updates immediately Gabriele M 2017-07-08 21:39:10 +02:00
  • c0bf32c097 Don't allow to install older builds Gabriele M 2017-07-08 21:39:10 +02:00
  • 1c1bac67b4 Protect the data of UpdaterController Gabriele M 2017-07-08 21:39:10 +02:00
  • e4d32bc04f Add copy constructors to Update and UpdateDownload Gabriele M 2017-07-08 21:39:10 +02:00
  • a2919a8947 Don't modify the objects of the controller directly Gabriele M 2017-07-08 21:39:10 +02:00
  • b4b8409766 Remove some useless method arguments Gabriele M 2017-07-08 21:39:10 +02:00
  • e413510093 Document the methods of DownloadClient Gabriele M 2017-07-08 17:20:47 +02:00
  • 1c212075f1 Allow to resume downloads only if the destination file exists Gabriele M 2017-07-08 17:20:47 +02:00
  • b4f0abd97d Cancel partial downloads if the server doesn't fulfil them Gabriele M 2017-07-08 17:20:47 +02:00
  • 81229329f1 Generate download clients using a builder class Gabriele M 2017-07-08 17:20:47 +02:00
  • 5b0e37ea22 Don't use a static object as download tag Gabriele M 2017-07-08 17:20:47 +02:00
  • efa829358d Remove unknwon files that are in the downloads dir Gabriele M 2017-07-08 01:09:22 +02:00
  • 6534932b20 Show "verify" for complete INCOMPLETE updates Gabriele M 2017-07-08 01:07:59 +02:00
  • 26f149bef1 Import updates downloaded with CMUpdater Gabriele M 2017-07-08 00:51:23 +02:00
  • b8a769eeab Remove "update name" column from the database Gabriele M 2017-07-07 23:09:04 +02:00
  • cb089aa445 Don't save the URL of the update in the database Gabriele M 2017-07-07 22:36:45 +02:00
  • e6a061c090 Use a single config to define the download path Gabriele M 2017-07-07 22:05:23 +02:00
  • 89cb51e3dd Replace error message with debug message Gabriele M 2017-07-07 22:05:23 +02:00
  • c90700d3d2 Remove no longer available updates when refreshing the list Gabriele M 2017-07-07 22:05:23 +02:00
  • d327d61cc6 Send an event when update are canceled Gabriele M 2017-07-07 22:05:22 +02:00
  • 08a7dfade9 Track "online updates" rather than "local updates" Gabriele M 2017-07-07 22:05:22 +02:00
  • ab9ac395f0 Use deleteUpdateAsync() even if we know the file doesn't exist Gabriele M 2017-07-07 22:05:22 +02:00
  • 805e672148 Use correct progress value when installing updates Gabriele M 2017-07-07 22:05:22 +02:00
  • 8a559103a9 Update progressbar only if it's not indeterminate Gabriele M 2017-07-06 23:50:09 +02:00
  • f23bc5e967 Close response body when download is complete Gabriele M 2017-07-06 21:46:54 +02:00
  • 47f48cff3f Fix first updates list load Gabriele M 2017-07-06 21:52:13 +02:00
  • 718c877687 Provide some feedback when refreshing the list Gabriele M 2017-07-05 23:35:14 +02:00
  • 7819587a22 Add a toolbar menu with back and refresh buttons Gabriele M 2017-07-05 23:35:14 +02:00
  • eaba161d43 Replace current json only if new one is valid Gabriele M 2017-07-05 23:35:14 +02:00
  • 3e36596127 Create Constants class Gabriele M 2017-07-05 23:35:14 +02:00
  • 5aa2c62296 Remove unused layout file Gabriele M 2017-07-05 23:35:14 +02:00
  • 217f84b57e Simplify handling of intentional download failures Gabriele M 2017-07-05 23:35:14 +02:00
  • 1795bd8b11 Report if a failure is following a download abort Gabriele M 2017-07-05 23:35:14 +02:00
  • 3de555ea06 Replace AsyncTask with Thread in DownloadClient Gabriele M 2017-07-05 23:35:14 +02:00
  • e245631b46 Add support for A/B (Seamless) System Updates Gabriele M 2017-07-04 19:05:04 +02:00
  • 311b2f7cfd Replace DB entries on conflict Gabriele M 2017-07-04 19:05:04 +02:00
  • 320112dae4 Allow to choose the conflict algorithm when adding DB entries Gabriele M 2017-07-04 19:05:04 +02:00
  • 1e89ff8f8d Don't assume we always know the final size of the files Gabriele M 2017-07-04 19:05:04 +02:00
  • bb2f2c1005 Disable indeterminate progressbar in case of download error Gabriele M 2017-07-04 19:05:04 +02:00
  • 02f504a1fb Disable buttons while verifying updates Gabriele M 2017-07-04 19:05:04 +02:00
  • 653b577d61 Keep track of the number of updates being verified Gabriele M 2017-07-04 19:05:04 +02:00
  • e7923a3d56 Keep track of the number of active downloads Gabriele M 2017-07-04 19:05:04 +02:00
  • f0940dafca Verify package when resuming a completed download Gabriele M 2017-07-04 19:05:04 +02:00
  • fe3d8be858 Download file only if the server replies with success code Gabriele M 2017-07-04 19:05:04 +02:00
  • c4c5a72c75 Perform some database operations in separate threads Gabriele M 2017-07-04 19:05:04 +02:00
  • fe18add111 Verify downloads in a separate thread Gabriele M 2017-07-04 19:05:04 +02:00
  • c13d79b39c Use a Thread instead of an AsyncTask to delete downloads Gabriele M 2017-07-04 19:05:04 +02:00
  • 4dcf4199f1 Minor code refactoring Gabriele M 2017-07-04 19:05:04 +02:00
  • 520105284c Rename some constants Gabriele M 2017-07-04 19:05:04 +02:00
  • 437d4b1913 Don't make UpdaterService sticky Gabriele M 2017-07-04 19:05:04 +02:00
  • db3f14832a Replace 'Download' prefix with 'Updater' Gabriele M 2017-07-04 19:05:04 +02:00
  • 21cc96f300 Add missing RECOVERY and REBOOT permissions Gabriele M 2017-07-04 19:05:04 +02:00
  • 945e50aad1 Don't crash when requesting non-existing updates Gabriele M 2017-07-03 16:08:35 +02:00
  • 9b3deda9fa Protect DownloadController instantiation Gabriele M 2017-07-03 16:08:34 +02:00
  • dcbcc759d2 Handle installation requests from DownloadService Gabriele M 2017-07-03 16:08:33 +02:00
  • dc95edbf80 Start service to pause/resume downloads from notification Gabriele M 2017-07-03 16:08:33 +02:00
  • 789dc7d737 Rename DownloadController's newInstance() to getInstance() Gabriele M 2017-07-03 16:08:32 +02:00
  • bda4d2b9b4 Load the updates stored in the database from DownloadController Gabriele M 2017-07-03 16:08:31 +02:00
  • 4196ccb301 Don't use wakup alarms to check for updates Gabriele M 2017-07-03 16:08:30 +02:00
  • f26cb61aa0 Check for new updates every day Gabriele M 2017-07-02 23:34:33 +02:00
  • 264fb5fc58 Improve notifications Gabriele M 2017-07-02 22:21:29 +02:00
  • a26c03a19a Save download speed in UpdateDownload Gabriele M 2017-07-02 22:21:28 +02:00
  • c30940649c Treat major upgrades as a special case Gabriele M 2017-07-02 22:21:27 +02:00