LawnchairLauncher / lawnchair

No clever tagline needed.
https://lawnchair.app
Other
8.9k stars 1.17k forks source link

[BUG] Setting Lawnchair as the default Home app does not survive a reboot #4469

Closed RigacciOrg closed 1 month ago

RigacciOrg commented 1 month ago

Describe the bug

I installed the Lawnchair apk and set it as the default Home app from Android Settings => Apps & notifications => Default apps. Everything seems to work OK, but if I reboot the device, the stock Home app BvLauncher is restored. This bug does not exist if I use other launchers, eg. the Rootless Pixel Launcher from F-Droid or the Home Launcher from the Google Play (NOTICE: in my opinion the Home Launcher app is an illegal fork of Lawnchair because it does not include info about being a derived work).

Steps to reproduce

Steps to reproduce the behavior:

  1. Install the Lawnchair.14.0.0.Beta.2.apk package.
  2. Set it as the Home app from the Android Settings menu.
  3. Reboot the device.
  4. Check what is the currently selected Home app.

Expected behavior

The Lawnchair app should remain the Home app selected.

Screenshots

No response

Device information

Additional context

No response

MrSluffy commented 1 month ago

Lawnchair launcher doesn't handle setting the default app. This is controlled by the device itself.

RigacciOrg commented 1 month ago

I noticed some facts:

Can be this a limitation imposed by the Android o.s. because the app was installed from the apk package instead of the Google Play store? Or should the app ask the operating system some more permissions?

RigacciOrg commented 1 month ago

I found a workaround to let Lawnchair as default Home app to survive the reboot: install the QuickSwitch Magisk module and set Lawnchair as default Home app. This required Magisk and root permissions.