Commit Graph

44 Commits

Author SHA1 Message Date
LineageOS Infra
efa2e7368b Automatic translation import
Change-Id: I88f1990306cf6e21aae39ca9055288b9503b55a2
2025-08-01 19:45:09 +00:00
LineageOS Infra
265e4eb4f5 Automatic translation import
Change-Id: Ib7c5dbab8ea76ff1a3d871344a32ef68976b1720
2025-05-15 11:39:04 +00:00
LineageOS Infra
fcaa14bcd6 Automatic translation import
Change-Id: I9c263efe7ea9ed86ea47cf95428e37840daae8ba
2025-05-01 18:32:41 +00:00
LineageOS Infra
82510e9cb8 Automatic translation import
Change-Id: I9dd5b6b47df1fb2e7ded05b0b8624196fe0a6c9a
2025-04-15 15:35:53 +00:00
LineageOS Infra
d0f28cbaa9 Automatic translation import
Change-Id: Ie49cb573051a39f448f2a6b170662aa4de674f3b
2025-03-15 16:57:48 +00:00
LineageOS Infra
7a1952fc4c Automatic translation import
Change-Id: I7850aa5331e355a10c7e2dc1654ebf58b51c2921
2025-03-01 16:10:46 +00:00
LineageOS Infra
c53d68a223 Automatic translation import
Change-Id: I892d595748491cbb9b48716b664cfc557dd1481b
2025-02-15 14:07:44 +00:00
LineageOS Infra
be1f0d3668 Automatic translation import
Change-Id: I52d426b4ae3b1324eeb902c26e289af881b3009a
2025-02-01 16:27:22 +00:00
LineageOS Infra
aa18c4320b Automatic translation import
Change-Id: I2345c5b17669df954aa0c14487427b874d1e370c
2025-01-15 09:14:18 +00:00
LineageOS Infra
0ccd216aef Automatic translation import
Change-Id: Ic25bdac8c63e7c7e7673ec6b10e37b3a6bdf5442
2025-01-02 10:23:27 +00:00
LineageOS Infra
589762cef6 Automatic translation import
Change-Id: I6dd25b4dc68049031cdb9000e3c7db1fa5d01894
2024-11-02 01:04:47 +00:00
LineageOS Infra
d66cf2d224 Automatic translation import
Change-Id: I0a2acf0080926ee8de0e3799146bd9de85b98965
2024-10-16 21:27:48 +00:00
Salvo Giangreco
3cb130d40a Updater: Fix broken download ETA/progress
Change-Id: I1d7b5ecf7779d08c5d617d8c0950b24fbe7d0733
2024-10-02 16:42:50 +00:00
LineageOS Infra
e6edfaab94 Automatic translation import
Change-Id: I82c651eefb62882cec8bb4ee914ee5d9b56264c9
2024-10-01 20:14:22 +00:00
LineageOS Infra
34535a83fb Automatic translation import
Change-Id: Ia65d6e242fa1cbcbec79755974bc5afd8c4afd0d
2024-09-15 16:02:37 +00:00
LineageOS Infra
8d0b616fec Automatic translation import
Change-Id: I7c5a0601e46bfe371c38b07cb2f432fede1d2647
2024-09-02 23:16:27 +00:00
LineageOS Infra
6ef2ee7a34 Automatic translation import
Change-Id: Ieec62f872ff664b0411247876cdb1fa858f7ccab
2024-08-15 20:24:22 +00:00
Michael W
7c5230326f Updater: Append trailing slash to upgrade url
* 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
2024-07-19 17:29:23 +00:00
Michael W
0d1c94fe5a Updater: Round dialogs
Change-Id: Icc5ea5a27e48ec74158588ba11a0277b6f0404cf
2024-06-28 20:18:38 +00:00
LineageOS Infra
8b6c6728ac Automatic translation import
Change-Id: Ib7cf69f228616a1e1d5fb4c9d17de6c233bc861a
2024-06-15 18:21:16 +00:00
LuK1337
4a536da4be Updater: Use https:// for wiki URL
Change-Id: I9b18ce7ea75d7248dd04a5603e80139afc8e6e09
2024-06-06 10:33:42 +02:00
LineageOS Infra
a6ce04aefc Automatic translation import
Change-Id: I4f9f0369ecff6df84e4f824f5e016663fcfe0a28
2024-06-01 22:14:29 +00:00
LuK1337
36c5333f2d Updater: Handle ErrorCode::kUpdateAlreadyInstalled more gracefully
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
2024-05-17 14:33:12 +00:00
LineageOS Infra
93adf96d12 Automatic translation import
Change-Id: If6cce2f888b32a71567597822a39c2638d65cfca
2024-05-15 15:50:39 +00:00
LuK1337
ddbb843309 Updater: Add /mnt/scratch detection
Change-Id: Ie4d408791c24ce0b592882a0e6c5af12bd16addb
2024-05-02 18:58:57 +00:00
LineageOS Infra
d1d28de8e7 Automatic translation import
Change-Id: I52e976d00a3cf32fa248331d3026d844f03d84df
2024-05-01 16:33:52 +00:00
LineageOS Infra
c9eada5848 Automatic translation import
Change-Id: If4758d368b57157a6c5ec1de7a9dad0c9ae05113
2024-02-18 19:38:55 +00:00
LineageOS Infra
76c126c8af Automatic translation import
Change-Id: I855069d4b214900b32f88a6ec73cb7b2abb07b99
2024-02-10 19:04:56 +00:00
Bruno Martins
27af047c21 Updater: Override SystemUpdater
It is the "Local System Updates" seen in Automotive builds.

Change-Id: If81451e65f55445db000a3a92f3badce8f9ed8e2
2024-01-20 02:26:23 +00:00
Bartłomiej Rudecki
7d9b6c0c64 Updater: Define foregroundServiceType
Required since Android 14 [1].

11-16 14:05:45.363 20623 20623 E AndroidRuntime: FATAL EXCEPTION: main
11-16 14:05:45.363 20623 20623 E AndroidRuntime: Process: org.lineageos.updater, PID: 20623
11-16 14:05:45.363 20623 20623 E AndroidRuntime: android.app.MissingForegroundServiceTypeException: Starting FGS without a type  callerApp=ProcessRecord{6d14558 20623:org.lineageos.updater/u0a149} targetSDK=34

[1] https://developer.android.com/about/versions/14/changes/fgs-types-required

Change-Id: Id6217424177b94d37621062fb1a55778f1dabbab
2023-11-16 22:11:39 +01:00
LineageOS Infra
0b1821c9dc Automatic translation import
Change-Id: I8615afa7afd004f98d18b482f4fa2e946476bf99
2023-11-15 18:52:18 +00:00
LineageOS Infra
a804504378 Automatic translation import
Change-Id: I02c7f9741ab977fb62b0f652fa84e6011feb7dee
2023-11-01 17:29:18 +00:00
LineageOS Infra
7f43b5b628 Automatic translation import
Change-Id: I9f3ad5b2c365df52d808116fe30ee94ab19686f9
2023-10-15 20:43:22 +00:00
LineageOS Infra
3f365d5feb Automatic translation import
Change-Id: I881449a5def2e3e649cda736c10bd6bf119b84d9
2023-10-01 16:33:00 +00:00
LuK1337
64261f1321 Updater: Use generateBp plugin
Change-Id: Ic5431575b684ee2d416d5707e499f0cf538ce4c4
2023-09-18 13:12:06 +02:00
LineageOS Infra
5c17826dcd Automatic translation import
Change-Id: Icff4f920131242cf530f31231cd3ed9916159d11
2023-09-15 17:53:31 +00:00
LineageOS Infra
919a15e270 Automatic translation import
Change-Id: Idd77531a68e9f28c96dd08bf7beceefbb94d7b0a
2023-09-01 14:42:24 +00:00
Joey
5a212ca159 Updater: add support for local updates
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>
2023-08-24 17:57:21 +02:00
LineageOS Infra
5ff552fa43 Automatic translation import
Change-Id: Id05d7c44e5cb5d560ff621ba9a91482925b568e2
2023-07-15 18:08:10 +00:00
Michael W
185b5de51d Updater: Don't show delete twice
* 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
2023-07-08 15:23:17 -04:00
Michael W
613fbacdbf Updater: Fix header margin
* Instead of hardcoding it to 86dp (which was probably fine
  when we didn't have cutouts, calculate the required top margin
  by adding top inset and status bar height and applying it dynamically
* Increase compile and min sdk versions to avoid warnings - we compile
  using the build sdk (33) when building inline anyway

Change-Id: I80444e5a2247730f06af461a1cce7ac36c6c9631
2023-07-08 15:23:11 -04:00
Michael W
c3093cb4cc Updater: Align with Settings / Materialize
* Better integrate with Settings by changing the background
  so it matches the Toolbar - one solid background
* Make updates distinct cards with rounded border and
  add spacing between them

Change-Id: If9c649f63e9bb3762f2ae272c96f5e62e0821e46
2023-07-08 15:23:03 -04:00
Michael W
bf1646fa93 Updater: Handle NumberFormatException
* For cases like local Updates (not yet merged) and probably
  others, the parsing might fail and take down the Updater
* Handle NFE properly

Change-Id: If9609c59d1048c9d37aa6de90855e02f28d96ce2
2023-07-08 15:22:56 -04:00
Sebastiano Barezzi
755560bbcd Updater: Redo project structure
* Let's be more Android Studio friendly
* While at it match AOSP deps with Gradle ones and update them

Change-Id: Ib8829e3d954ce43fbf19280d1db2bc43c6fc89e0
2023-07-08 15:22:49 -04:00