From f5dedeab815e5c8324b4215a06e540153e6dea70 Mon Sep 17 00:00:00 2001 From: Ayaz Patel <47671191+AyazP@users.noreply.github.com> Date: Sun, 4 Oct 2026 23:18:08 +0100 Subject: [PATCH] Fix baseline profile never being installed (#1984) ## Description Wholphin already ships a baseline profile. AGP merges the profiles from the AndroidX libraries into `assets/dexopt/baseline.prof` on every release build, so a release APK built from `main` already has one at around 15 KB. It just never gets installed on the device. The reason is in `app/src/main/AndroidManifest.xml`, which removes `androidx.startup.InitializationProvider` completely: That was added in #372 so WorkManager could be set up on demand through `Configuration.Provider` and `HiltWorkerFactory`. The problem is that `androidx.profileinstaller` registers `ProfileInstallerInitializer` inside the same provider, so removing the provider removes that as well. ### Related issues #553 ### Testing API 34 AOSP emulator, `defaultRelease` signed with a debug key, clean install each time. With this change, logcat shows the profile being installed. Not tested on a physical Fire TV device. ## Screenshots None, there are no UI changes. ## AI or LLM usage I used Claude for this one. --------- Co-authored-by: Claude Opus 5 (1M context) Co-authored-by: Damontecres --- app/build.gradle.kts | 1 + app/src/main/AndroidManifest.xml | 7 ++++++- .../com/github/damontecres/wholphin/WholphinApplication.kt | 2 -- gradle/libs.versions.toml | 3 +++ 4 files changed, 10 insertions(+), 3 deletions(-) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index e005cb6f..e9fc3516 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -305,6 +305,7 @@ dependencies { implementation(libs.androidx.tvprovider) implementation(libs.androidx.work.runtime.ktx) implementation(libs.androidx.hilt.work) + implementation(libs.androidx.profileinstaller) implementation(libs.androidx.media3.exoplayer) implementation(libs.androidx.media3.session) diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 582e000a..5be4d55a 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -81,7 +81,12 @@ + tools:node="merge"> + +