ThemePicker crashed on launch (PackageManager.NameNotFoundException) because res_override/override.xml and the manifest queries still referenced com.android.launcher3, uninstalled on PawletOS in favor of Lawnchair. Found while investigating OneUI 7 battery overlay access; confirmed fixed live on pawlet_rpi4.
69 lines
3.1 KiB
Diff
69 lines
3.1 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: oxmc <me@oxmc.me>
|
|
Date: Sat, 17 Oct 2026 00:00:00 +0000
|
|
Subject: [PATCH] Point launcher_overlayable_package at Lawnchair
|
|
|
|
ThemePicker crashes immediately on open on PawletOS, not just the grid
|
|
picker: GridOptionsManager/ResourceConstants/DefaultShapeGridManager
|
|
all read res_override's launcher_overlayable_package string
|
|
(com.android.launcher3 upstream) to query the launcher's
|
|
PackageManager info for preview rendering. PawletOS replaces the
|
|
launcher with Lawnchair (app.lawnchair), so that package doesn't
|
|
exist, getApplicationInfo() throws
|
|
PackageManager.NameNotFoundException, and the whole app -- not just
|
|
the grid/icon-shape/battery-style pickers -- crashes on launch.
|
|
|
|
Found investigating why the OneUI 7 battery style overlay
|
|
(BatteryStyleOneUI7Overlay, already shipped unconditionally via
|
|
vendor/pawlet/config/addons_packages.mk) couldn't be reached: Wallpaper
|
|
& style wouldn't open at all. Confirmed live on pawlet_rpi4 hardware
|
|
(2026-10-17) via logcat before the fix:
|
|
|
|
android.content.pm.PackageManager$NameNotFoundException
|
|
at GridPickerViewModel.toGridOptionItemViewModel
|
|
at WorkspacePreviewBinder.renderWorkspacePreview
|
|
Process: com.android.wallpaper, PID: 5825
|
|
|
|
Also update the AndroidManifest <queries> declaration from
|
|
com.android.launcher3 to app.lawnchair to match -- the package it
|
|
needs visibility into no longer exists under the old name either.
|
|
|
|
Confirmed fixed live: Wallpaper & style now opens cleanly, no crash,
|
|
hub screen (Lock screen / Home screen tabs) renders correctly.
|
|
---
|
|
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
|
|
index 74598684..3caa8181 100755
|
|
--- a/AndroidManifest.xml
|
|
+++ b/AndroidManifest.xml
|
|
@@ -24,7 +24,8 @@
|
|
|
|
<queries>
|
|
<package android:name="android"/>
|
|
- <package android:name="com.android.launcher3"/>
|
|
+ <!-- PawletOS: Lawnchair replaces the stock launcher -->
|
|
+ <package android:name="app.lawnchair"/>
|
|
<package android:name="com.android.settings"/>
|
|
<package android:name="com.android.systemui"/>
|
|
<!-- Package of camera for icon shape -->
|
|
diff --git a/res_override/values/override.xml b/res_override/values/override.xml
|
|
index 42959c11..6c9aa939 100644
|
|
--- a/res_override/values/override.xml
|
|
+++ b/res_override/values/override.xml
|
|
@@ -29,7 +29,12 @@
|
|
com.android.keyguard.clock
|
|
</string>
|
|
|
|
- <string name="launcher_overlayable_package" translatable="false">com.android.launcher3</string>
|
|
+ <!-- PawletOS: Lawnchair replaces the stock launcher - this is the
|
|
+ designated OEM override point GridOptionsManager/ResourceConstants/
|
|
+ DefaultShapeGridManager all read; leaving it at com.android.launcher3
|
|
+ (uninstalled on PawletOS) throws PackageManager.NameNotFoundException
|
|
+ and crashes the whole app on open, not just the grid picker. -->
|
|
+ <string name="launcher_overlayable_package" translatable="false">app.lawnchair</string>
|
|
|
|
<!-- List of packages whose icons are used to preview the icon shape for a theme. These are
|
|
typically GMS apps so they should be available in GMS devices. -->
|
|
--
|
|
2.43.0
|
|
|