* We use features that are only available on 31 and up (system colors)
anyway
* We can use Java 11 instead of 1.8 (which we already can use when not
using gradle, but that way AS also recognizes it)
Change-Id: Ie2ea1e77b1954bde44f06b63e6c09979d0e91c17
Make it clear for everyone before even clicking anything that updates
are not incremental and old ones can be deleted
Change-Id: Ifcc31958d9324899a267741141ff66b10f62edc1
* If the user has GMS installed, they'll need to install an updated
copy, as addon.d won't restore it, and if it did it likely wouldn't
work. So we can't support this unconditionally.
* If the user has no-GMS, this should be totally fine to do, so the
user could set the property, upgrade, and go on their merry way.
This use-case is why I didn't make this an `ro.` property.
* If someone building LineageOS builds GMS into the images, upgrade
via this method would also be feasible.
Change-Id: If2a6e6767dcb182d3dbd2a95c81a940fdb53547e
Currently after removing the last update from the list, you end up
with a completely empty list. It should look like when you open the app
again with no updates
Change-Id: I77f025baf2e20385d31b5e897b92ddf24680be99
For whatever reason, when both SYSTEM_UPDATE_SETTINGS components have
the same priority and the first one is disabled (in this case, the GMS
one), it doesn't seem to fallback to the next enabled one and instead
shows a "No apps can perform this action" message. To avoid that, let's
just set higher priority.
9a6853 com.google.android.gms/.update.SystemUpdateActivity filter b9e590
Action: "android.settings.SYSTEM_UPDATE_SETTINGS"
Category: "android.intent.category.DEFAULT"
mPriority=1, mOrder=0, mHasStaticPartialTypes=false, mHasDynamicPartialTypes=false
Change-Id: I886a714304fe6d1906af7e1702ecaf2238bd8cb0
* It gets appended after calling anyway
* Having the url at the end of a linkified message with a dot after it
(end of sentence, e.g. russian), the dot is also linkified resulting
in
https://wiki.lineageos.org/devices/<device>/upgrade.
which won't work, while the slash makes it work
(with the linkified dot)
Fixes: https://gitlab.com/LineageOS/issues/android/-/issues/7248
Change-Id: Iaacd61267ad886c23393e34071a191a2e08d4009
If applyPayload() fails with kUpdateAlreadyInstalled, mark update as
already installed. While this is not ideal since this might not be the
update we actually installed, it's still better than outright dying.
Test: install update, unset needs_reboot_id, kill updater, install
update again.
Change-Id: Iac264896cffd1db522d81fc2050eb71d62ca91bf
Allow importing and installation of OTA files already
downloaded instead of requiring to reboot to recovery
to install them.
Squash of:
- Add support for importing local updates
Signed-off-by: Joey <jbevilacqua@shiftphones.com>
Change-Id: I64ca3a6af29bdf8b2c6023a502f23080a27fd79e
- OTA: read timestamp from imported zip metadata
Signed-off-by: Joey <jbevilacqua@shiftphones.com>
Change-Id: I93a5c0be81adab9ba8e50afde0e09839f059c9e0
- OTA: fix UI issues with local update
Signed-off-by: Joey <jbevilacqua@shiftphones.com>
Change-Id: I07c8f5507bc52c254c3dc1468fea495a073ae96c
- OTA: fix local updates not being shown in UI (pt.2)
Signed-off-by: Joey <jbevilacqua@shiftphones.com>
Change-Id: Ife40eea05099eca9e1ee84c6f87d2715e5981cab
- OTA: ignore download status changes for local updates
Signed-off-by: Joey <jbevilacqua@shiftphones.com>
Change-Id: I198f9b5462718f8a6e5687c891f3bfc6b1c645bd
- UpdaterService: fix crash with local install
Change-Id: I27b187cf4adec986d516e3017d1b3877691029b2
Signed-off-by: Alexander Martinz <amartinz@shiftphones.com>
- Local updates: do not remove local update from ui after installation
Change-Id: I869e090f26273006f933ad99c42b7c6a2e963797
Signed-off-by: Alexander Martinz <amartinz@shiftphones.com>
- Local updates: modify display version
Change-Id: I8a39e0936040bb9546499754ab4a9ef60c56aca0
Signed-off-by: Alexander Martinz <amartinz@shiftphones.com>
- Local updates: show build date in import dialog
Change-Id: I9014358ea1cf941e76fdd80a5147e9d924fc1a8f
Signed-off-by: Alexander Martinz <amartinz@shiftphones.com>
Change-Id: I64ca3a6af29bdf8b2c6023a502f23080a27fd79e
Signed-off-by: Joey <joey@lineageos.org>
Signed-off-by: Alexander Martinz <amartinz@shiftphones.com>
* If an update exists and can be deleted, the action button AND the
popup menu both show the delete action
* By checking wether the action already shows "Delete" we can hide
that action from the submenu
* Additionally check for online availability to only hide it when it's
not the last item - otherwise a click on the menu icon wouldn't do
anything
Change-Id: Idc5da3962be4e0a69847f47b3c5f014b251bd438