Commit Graph

22 Commits

Author SHA1 Message Date
Alexander Martinz
9cdc2f497b AndroidManifest: explicitly disable cleartext traffic
Change-Id: Ib7528a58f423f40af1bafa16acdc9a4538207433
Signed-off-by: Alexander Martinz <amartinz@shiftphones.com>
2020-04-03 16:41:16 +02:00
jhenrique09
eabab0e94e Fix export of zip
Add requestLegacyExternalStorage permission to allow usage of legacy storage

Change-Id: Iae3f61c4b714c168feba7de665a46ebe4ac1ee77
2020-02-05 01:48:06 +01:00
LuK1337
a08dcb6078 Updater: Grant FOREGROUND_SERVICE permission
* Required to be able to call startForeground()
  and stopForeground().

Change-Id: I7ac78cf450a60cc8985876ddcc42621e61aa5245
2018-09-27 19:50:55 +02:00
Luca Stefani
6c67e68d55 Updater: Add SYSTEM_UPDATE_SETTINGS intent filter
Change-Id: Ie3f32e91ff5d6dc1422783bdef403c023b519149
2018-08-30 18:07:11 +02:00
Gabriele M
a409a4a03d Clear NEEDS_REBOOT preference on reboot
UpdateEngine doesn't send an initial notification to bound client
if the last status is not known, so clear the preference when we
detect that the device has been rebooted.

Change-Id: Ib15dff5fa8ac9ec07a68018a83683cc561fd3e85
2018-04-05 16:37:49 +02:00
Joey
2a9c85e675 Updater: adaptive icon
Change-Id: Ifee7b51f48b204b646935d9470d31f6e9519124d
Signed-off-by: Joey <joey@lineageos.org>
2018-02-15 13:43:40 +00:00
Gabriele M
7005b005d9 Updater: Set version code explicitly
In this way apks built with gradle/Android Studio will have the
same versionCode, allowing to update the one in /system.

Change-Id: I020cc623dd7c1c5085fec4e6f5978b6ee46468a2
2018-01-23 22:41:40 +01:00
Gabriele M
e02b8a0b00 Copy the updates for uncrypt using a Service
Same as change I488018d01c0baf74660362a384e53bfe5d85de2b
("Use a service to export the updates"). While at it, move the code
out of UpdaterService to better separate the code that deal with AB
updates and regular updates.

Change-Id: I2bc3e78e80f5e63c57303cbbcdc0353dbab0f67f
2018-01-23 22:41:40 +01:00
Gabriele M
2c41ae392c Use a service to export the updates
AsyncTasks are not suitable for long lasting operations and can easily
cause memory leaks. The use of ProgressDialogs is also discouraged, so
move to a foreground service to export the updates.

Change-Id: I488018d01c0baf74660362a384e53bfe5d85de2b
2018-01-23 22:41:40 +01:00
Luca Stefani
8217a4aac6 Exclude updater from recents
Change-Id: Iae2737aa5890aa00da79c5b04dd253273aa9fabc
2017-08-14 22:47:01 +02:00
Gabriele M
415e62df5d Add permission to show system alert dialogs
While at it, sort the permissions and fix their coding style.
2017-07-26 11:57:33 +02:00
Gabriele M
1659fe26b9 Allow to export verified updates 2017-07-20 00:45:34 +02:00
Gabriele M
96b1145b29 Add missing android namespace declaration 2017-07-18 22:17:29 +02:00
Gabriele M
e51be80f6a Initial UI work
Look and feel based on CMUpdater.
2017-07-16 22:52:45 +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:
0465cb691d
2017-07-04 19:36:32 +02:00
Gabriele M
db3f14832a Replace 'Download' prefix with 'Updater'
These classes do more than controlling the download of the updates.
2017-07-04 19:05:04 +02:00
Gabriele M
21cc96f300 Add missing RECOVERY and REBOOT permissions
And sort alphabetically the list of permissions.
2017-07-04 19:05:04 +02:00
Gabriele M
9b3deda9fa Protect DownloadController instantiation
Enforce the use of DownloadService to create new DownloadController
instaces, but give access to the existing instances to anyone.
2017-07-03 17:41:33 +02:00
Gabriele M
dcbcc759d2 Handle installation requests from DownloadService
This is needed to protect the instantiation of DownloadController,
which will be done with a follow-up change.
2017-07-03 16:08:33 +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
e7511d0041 Project init 2017-07-02 18:13:34 +02:00