How to get available "app shortcuts" of a specific app? : <h2>Background</h2>

<p>Starting from API 25 of Android, apps can offer extra shortcuts in the launcher, by long clicking on them:</p>

<p><a href="https://i.stack.imgur.com/9p0O0.png" rel="noreferrer"><img src="https://i.stack.imgur.com/9p0O0.png" alt="enter image description here"></a></p>

<h2>The problem</h2>

<p>Thing is, all I've found is how your app can offer those shortcuts to the launcher, but I can't find out how the launcher gets the list of them.</p>

<p>Since it's a rather new API, and most users and developers don't even use it, I can't find much information about it, especially because I want to search of the "other side" of the API usage.</p>

<h2>What I've tried</h2>

<p>I tried reading the docs (<a href="https://developer.android.com/guide/topics/ui/shortcuts.html" rel="noreferrer"><strong>here</strong></a>, for example). I don't see it being mentioned. Only the part of other apps is mentioned, but not of the receiver app (the launcher).</p>

<h2>The questions</h2>

<p>Given a package name of an app, how can I get a list of all of its "app shortcuts" using the new API?</p>

<p>Is it possible to use it in order to request to create a Pinned Shortcut out of one of them?</p>
