Neamar / KISS

Lightning fast, open-source, < 250kb Android launcher
https://kisslauncher.com/
GNU General Public License v3.0
2.94k stars 580 forks source link

Don't require default launcher to access shortcuts #1994

Open AeliusSaionji opened 1 year ago

AeliusSaionji commented 1 year ago

hello!

I use KISS, but not as my launcher. For whatever reason, shortcuts refuse to launch, "kiss is not your main launcher anymore and can't access your shortcuts".

But many apps exist that can run shortcuts, so I know this isn't a hard limitation- at least not on newer android APIs.

Any chance this could be fixed up?

Thanks!

marunjar commented 1 year ago

unfortunatly it is some hard limit of newer android apis. only as launcher there is full access to shortcuts: https://developer.android.com/reference/android/content/pm/LauncherApps#hasShortcutHostPermission()

AeliusSaionji commented 1 year ago

if that is the only method to list and execute shortcuts, then ☹️

however that page mentions assist apps should have access still, and kiss set as the assist app still refuses with the same error.

pipip commented 1 year ago

Hmm, I also tried to setup KISS as assistant (because KLWP is not supported and/or KLWP has bugs) but shortcuts do not work. According to the linked docu assistant app should also be supported but it still does not work

Also: ...so even if a launcher application loses this permission, it does not have to purge pinned shortcut information. If the calling launcher application contains pinned shortcuts, they will still work, even though the caller no longer has the shortcut host permission. So it should even work like that

marunjar commented 1 year ago

if that is the only method to list and execute shortcuts, then ☹️

however that page mentions assist apps should have access still, and kiss set as the assist app still refuses with the same error.

Just tried again, unfortunately KISS has no rights to access shortcuts if it's not the main launcher. There is some more documentation from which it looks like access to shortcuts is exclusice to google assistant 😞 https://developer.android.com/guide/app-actions/dynamic-shortcuts

madcowGit commented 2 weeks ago

I see many other (not launcher) apps that do have access to shortcuts. Pixel search, Sesame search, Tasker. How do they access shortcuts without being a launcher?