Gabriele M
17f35382d7
Show alert dialog for major upgrades
...
Major upgrades are not possible with Updater and they are already
blocked. This commit adds a dialog with a link to a webpage that
explains how to upgrade manually.
Based on: https://github.com/LineageOS/android_packages_apps_CMUpdater/commit/d5d343d6275c0c896e2f50daa1ef5aec973ef891
Change-Id: Ifb23e0a4db1060fc696d13e6694f3e849af70e2d
2017-08-25 18:13:46 +00:00
Gabriele M
7c25e7aef9
Show message if there are no updates
2017-08-09 17:18:15 +02:00
Gabriele M
acd7387d23
Warn user about downloading update package via mobile data
...
Based on: https://github.com/LineageOS/android_packages_apps_CMUpdater/commit/89284925355ff221713572f85266ec524b582bdd
2017-08-08 10:32:48 +02:00
Gabriele M
8768daddf0
Add option to delete updates when installed
...
This is mostly useful on encrypted devices since it allows to not
copy the update before installing it.
2017-07-22 20:38:20 +02:00
Gabriele M
20ea513684
Create a copy of the zips on encrypted devices
...
On encrypted devices, uncrypt modifies the zip so that it can be
read without mounting the filesystem. Instead of installing the zip
downloaded, create a copy of it which will be deleted. This will
allow to re-install the zip multiple times or export it after
installing it.
2017-07-21 17:05:53 +02:00
Gabriele M
1659fe26b9
Allow to export verified updates
2017-07-20 00:45:34 +02:00
Gabriele M
ee6013dfd1
Allow to copy the URL of the updates
2017-07-20 00:45:34 +02:00
Gabriele M
257ab087d6
Enable action mode on card long press
...
This will allow to perform different operations, although currently
it's only used to delete updates.
2017-07-20 00:45:34 +02:00
Gabriele M
2b276395e1
Use /data/lineageos_updates/ as download path
...
GmsCore deletes the files in /data/ota_package/, so don't use it.
2017-07-19 18:50:16 +02:00
Gabriele M
6f1861abe0
Remove unused resources
2017-07-18 22:17:29 +02:00
Gabriele M
a06fa3f9f0
Add own formatDuration() method
...
DateUtils.formatDuration() is not public, so create our own version.
2017-07-18 22:17:26 +02:00
Gabriele M
e710060baa
Show a snackbar when trying to download/install invalid updates
...
Instead of disabling the action button, keep it enabled and make it
show a snackbar to inform the user about the impossibility of
installing the selected update.
2017-07-18 00:19:41 +02:00
Gabriele M
fe21c2cd49
Treat download resume and verification in the same way
...
Allowing to verify downloads, but not install them makes no sense
currently, so don't treat the two cases differently.
2017-07-18 00:19:33 +02:00
Gabriele M
c1f0aab382
Show snackbar for some download status changes
2017-07-17 12:27:15 +02:00
Gabriele M
c3515644b6
Ask for confirmation before installing updates
...
Since there's no quick and clean way to show a dialog from a
serivice, don't allow to install updates from the notification.
2017-07-16 22:52:45 +02:00
Gabriele M
e51be80f6a
Initial UI work
...
Look and feel based on CMUpdater.
2017-07-16 22:52:45 +02:00
Gabriele M
fd856dce70
Allow to disable the automatic updates check
2017-07-16 22:52:45 +02:00
Gabriele M
efa829358d
Remove unknwon files that are in the downloads dir
...
The files are supposed to be downloaded in a privileged location
that the user can't access. If the user wipes the data of the
application, the updates downloaded are not removed. Perform a
one-time cleanup so that our downloads dir doesn't grow without
control.
2017-07-08 14:07:05 +02:00
Gabriele M
6534932b20
Show "verify" for complete INCOMPLETE updates
...
INCOMPLETE is used for any update that isn't verified, even if the
file has been completed. This change is mostly needed to support
imported downloads, which we take as complete, but unverified.
2017-07-08 14:05:36 +02:00
Gabriele M
e6a061c090
Use a single config to define the download path
...
There's no point in using a bool, just define the path.
2017-07-07 22:05:23 +02:00
Gabriele M
718c877687
Provide some feedback when refreshing the list
...
Add a progress dialog to inform the user about the ongoing operation
and show a snackbar with the result of the operation.
2017-07-05 23:35:14 +02:00
Gabriele M
7819587a22
Add a toolbar menu with back and refresh buttons
...
Change theme just to make the refresh button visible without
changing its color.
2017-07-05 23:35:14 +02:00
Gabriele M
e245631b46
Add support for A/B (Seamless) System Updates
...
Loosely based on:
https://github.com/LineageOS/android_packages_apps_CMUpdater/commit/0465cb691de5acd2f459ce0687b988ddf050b354
2017-07-04 19:36:32 +02:00
Gabriele M
f26cb61aa0
Check for new updates every day
...
Compare the previously downloaded updates list with the current one
and check if the old list includes all the updates of the new list.
If the network is not available at the time of the check, a new
check is scheduled.
2017-07-03 01:18:19 +02:00
Gabriele M
264fb5fc58
Improve notifications
...
Reorder the content of the notification and add the download
progress as text, the current speed and the ETA.
2017-07-02 22:44:32 +02:00
Gabriele M
e7511d0041
Project init
2017-07-02 18:13:34 +02:00