Commit Graph

6 Commits

Author SHA1 Message Date
oxmc 6acf5f53ef Updater: use Build.getSerial() instead of direct ro.serialno read
platform_app cannot access serialno_prop (AOSP neverallow). Route
through Build.getSerial() which delegates to DeviceIdentifiersPolicyService
in system_server. Add READ_PRIVILEGED_PHONE_STATE to manifest and
privapp-permissions allowlist.
2026-06-13 23:09:58 -07:00
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
Michael Bestas df460ad3fb Updater: Switch to SPDX copyright headers & add missing ones
Change-Id: I7be789c57434dbf37e9d12715105953b0754bca4
2026-04-25 22:39:42 +00: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
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
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