Commit Graph

73 Commits

Author SHA1 Message Date
oxmc
22652f5240 Fork from LineageOS Updater for PawletOS
- Rebrand to me.pawlet.updater package
- Replace ro.lineage.* props with ro.pawlet.* equivalents
- Use ro.product.device for device name lookup
- Set server URL to https://updates.pawlet.me/api/v1/{device}/
- Bump compileSdk/targetSdk to 36 (Android 16)
- Drop all locale translations (English-only for now)
- Add NOTICE.txt crediting upstream LineageOS team
- Remove old org.lineageos.updater.xml privapp files
- UpdaterReceiver: add missing Utils import
- Remove setPerformanceMode chain (UpdateEngine API removed in Android 16)
2026-06-04 04:36:20 -07:00
LineageOS Infra
179c69f046 Automatic translation import
Change-Id: Ie121cb04aaab2357a04ddbc3771eb5c4948cf214
2026-05-15 22:34:11 +00:00
LineageOS Infra
54195ad2d7 Automatic translation import
Change-Id: I22c99251a331ee81f8157360e0b8f2e71f52fabe
2026-05-02 04:38:36 +00:00
Michael Bestas
df460ad3fb Updater: Switch to SPDX copyright headers & add missing ones
Change-Id: I7be789c57434dbf37e9d12715105953b0754bca4
2026-04-25 22:39:42 +00:00
LineageOS Infra
bfde7fcafe Automatic translation import
Change-Id: Id54b1e2f8f31a44ebbcf357832769e034a127fdc
2026-04-15 19:24:18 +00:00
LineageOS Infra
3c71094933 Automatic translation import
Change-Id: I676ee5195b3e74d0ed62d8cb85a6059b7614edfe
2026-04-01 16:19:57 +00:00
LineageOS Infra
51d9ca77ee Automatic translation import
Change-Id: I8e0dc7bd57eb585a7788b5ffb3ae0a67bd869ace
2026-03-15 16:39:00 +00:00
LineageOS Infra
cfbeb975e7 Automatic translation import
Change-Id: I6ee8ef5945a149729f460a466295da57e838d23b
2026-03-01 20:42:32 +00:00
LineageOS Infra
6910ef903f Automatic translation import
Change-Id: I6cb553bb99f8caef55a0f84a608f1a1a3172047b
2026-02-01 18:36:41 +00:00
LuK1337
dad48282ff Updater: Migrate to privapp_allowlist
Change-Id: I52aa7e1d8a158be2a252d2949f5207551a1a4070
2025-12-20 14:10:06 +00:00
LineageOS Infra
1f919ece5b Automatic translation import
Change-Id: I13b97a75a51048e6150a2ad2e664137ad542203a
2025-12-01 14:53:20 +00:00
LineageOS Infra
4150e2f3f3 Automatic translation import
Change-Id: I1df9f9f547899e14b8e4b005ef5e42713b4f960e
2025-11-15 18:02:01 +00:00
LineageOS Infra
29babf1d85 Automatic translation import
Change-Id: I283a91a96149e35f2e73e2d1f72bba5fafb77f79
2025-10-16 01:24:26 +00:00
LineageOS Infra
9f5af26526 Automatic translation import
Change-Id: Iea08870dfbcf734bdce5a524fbe327b1417babc0
2025-09-24 20:06:50 +00:00
LineageOS Infra
be62451624 Automatic translation import
Change-Id: I5c41373d7e5a68574caf8bdd82c46d1da4c18498
2025-09-15 16:55:09 +00:00
LineageOS Infra
77a204b95a Automatic translation import
Change-Id: I4c497f674a6ebc3b71b0fd6275607f82585fd6de
2025-09-01 14:54:40 +00:00
LineageOS Infra
a689cb3c27 Automatic translation import
Change-Id: I4281e17d418f87ffbc017fb472258b36e41baab2
2025-08-01 21:13:56 +00:00
LineageOS Infra
c77f449096 Automatic translation import
Change-Id: I887e706dbd3ef550227600ca1650ef4dcacbce09
2025-07-15 17:08:29 +00:00
LineageOS Infra
587cf0bd02 Automatic translation import
Change-Id: I82d8df137987be0f5de41ca1a950a7357d5ccdca
2025-05-15 12:56:06 +00:00
LineageOS Infra
04ec48021e Automatic translation import
Change-Id: I9ad0e2c1aa03096316b118132a9cefd6d73d829f
2025-05-01 16:33:27 +00:00
LineageOS Infra
061bee818c Automatic translation import
Change-Id: I6cbed7507d1039dcb678153fe08d8f0d8e9fb7c8
2025-04-15 13:55:34 +00:00
LineageOS Infra
568d99a58d Automatic translation import
Change-Id: I4ea56fb12be31f08563abd655a83e4862990a1a9
2025-04-07 16:25:37 +00:00
Michael W
0342bb3121 Updater: Fix warnings
* Unused imports
* Unused code
* Unused resources
* Set.isEmpty() instead of .size() == 0
* try-with-resources

Change-Id: Ia9351986c62e8e5f8d4615f6146827b891f55f9e
2025-03-07 19:13:04 +00:00
Michael W
33d63d627d Updater: Use Java 11
This is what AOSP uses since SDK 32

Change-Id: I6401a14cd2a00f8e3b8d0fe8ec3ff9ec215bd9c7
2025-03-07 19:13:04 +00:00
Michael W
9918f7ef91 Updater: Bump minSdk to 32
* 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
2025-03-07 19:13:04 +00:00
Michael W
fbdb5570a5 Updater: Update gradle plugin to 8.7.3
Following AS recommendations

Change-Id: Ib3ad9be87b21e4b8a98ad3e07d3f0af2aa42cabe
2025-03-07 19:13:04 +00:00
Michael W
a9d7673d1d Updater: Add welcome message with instructions
Make it clear for everyone before even clicking anything that updates
are not incremental and old ones can be deleted

Change-Id: Ifcc31958d9324899a267741141ff66b10f62edc1
2025-03-07 19:13:04 +00:00
LineageOS Infra
ec85854518 Automatic translation import
Change-Id: I0c36cb9569beebd8d242e8e57865c9d23df9496c
2025-03-01 17:50:28 +00:00
Nolen Johnson
e92031f1ec !fixup Updater: Allow Updater to handle major upgrades via property
* Missing semicolon in the final PS, but more importantly,
  unreachable statement.

Change-Id: Ie064e750e6c91e2689eb8d3faca459b4c30c1ab3
2025-02-18 05:26:08 +00:00
Nolen Johnson
c9159bf47b Updater: Allow Updater to handle major upgrades via property
* 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
2025-02-18 03:18:07 +00:00
Michael W
5ab3076f91 Updater: Show "no items" view after deleting last update
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
2025-02-17 01:24:58 +00:00
LineageOS Infra
6fafcc4e7f Automatic translation import
Change-Id: Ib2bf80cfe87b70971a3d678c2e15c3cf330e8b7f
2025-02-15 15:47:30 +00:00
LineageOS Infra
e670f6e8cd Automatic translation import
Change-Id: I8a7d494342485ed3e4ca588dc04388814166eba8
2025-02-01 14:28:44 +00:00
LineageOS Infra
d044ba1dee Automatic translation import
Change-Id: I7bdad186119308897dc891a5b83c8e704e5e3621
2025-01-15 20:54:57 +00:00
Hridaya Prajapati
b551ebc472 Updater: Migrate away from deprecated ProgressDialog
Follow usage of AlertDialog with ProgressBar as documented in AOSP.
https://developer.android.com/reference/android/app/ProgressDialog

Change-Id: Ie410f839cb5495a4b37ce926d991d662861ef398
2025-01-04 12:26:03 +00:00
LineageOS Infra
d8e73e380c Automatic translation import
Change-Id: I65d59303983836bf6832aadbbb5c675f92d90745
2025-01-02 08:11:22 +00:00
Michael Bestas
a2e31f1f2d Revert "Updater: 20 and up are integers!"
This reverts commit 1ec0b8d1de.

Change-Id: I5b5c5bf825405d7a0b3720521cea343a0674fd40
2024-12-26 09:35:38 +00:00
Michael Bestas
b31dd16806 Revert "Updater: Handle NumberFormatException"
This reverts commit bf1646fa93.

Change-Id: I90e2bcbecbf04641e97957d0ad3f8964d9403d2f
2024-12-26 09:35:28 +00:00
LuK1337
a07c2fc48e Updater: Allow 22.X to 22.X+N OTAs
Change-Id: Ic4f5d94d4040bd744a372d3bb5090aba70e0688f
2024-12-24 11:06:17 +01:00
Giovanni Ricca
ed36157049 Updater: Set SYSTEM_UPDATE_SETTINGS priority higher than GMS
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
2024-11-11 10:55:02 +01:00
LineageOS Infra
a72dadf7e3 Automatic translation import
Change-Id: I5740bd6f9c095b3e7d0a8207e7541f7506480931
2024-10-31 17:49:49 +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