Skip to content

fix: add installed apps to the launcher home screen#1350

Open
Victor-root wants to merge 1 commit into
Droid-ify:mainfrom
Victor-root:fix-launcher-install-reason
Open

fix: add installed apps to the launcher home screen#1350
Victor-root wants to merge 1 commit into
Droid-ify:mainfrom
Victor-root:fix-launcher-install-reason

Conversation

@Victor-root

Copy link
Copy Markdown

🐛 Problem

Apps installed via Droid-ify were not appearing on the launcher home screen, while the same app installed from another store (e.g. Aurora Store) would be added automatically. ❌

🔍 Root cause

AOSP Launcher3's SessionCommitReceiver only adds the icon to the home screen if the install session has INSTALL_REASON_USER as its install reason. None of the three installer backends were setting it:

  • 📦 Session — reason defaulted to INSTALL_REASON_UNKNOWN
  • 🔑 Root / 🧩 Shizuku — the pm command was missing the flag

→ The launcher silently ignored the committed session: the app was installed correctly, but no shortcut was ever created.

✅ Fix

  • SessionInstallersetInstallReason(INSTALL_REASON_USER)
  • RootInstaller & ShizukuInstaller → added --install-reason 4 (Android 8+)

Three lines total, no behavioral change outside this case. ✨

📱 Testing

Tested on physical devices (LineageOS / Android 13 and Android 16): the icon now correctly appears on the home screen after installation, in both session and root mode. ✅

Properly fixes #807, #113 which was closed as completed but never actually resolved.

AOSP Launcher3's SessionCommitReceiver only auto-adds a newly installed
app to the home screen when the session's install reason equals
INSTALL_REASON_USER. All three installer backends were omitting this:
SessionInstaller left the reason at INSTALL_REASON_UNKNOWN; RootInstaller
and ShizukuInstaller pass the reason via pm's --install-reason 4 flag
(available since Android O).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Adding an icon of an installed application to the desktop

1 participant