Forum Discussion
How to add, update, and remove pinned shortcuts as a Device Owner without user interaction?
I am developing an MDM (Mobile Device Management) application and need to manage pinned shortcuts programmatically as a Device Owner.
Currently, I can add, update, and remove pinned shortcuts only with user interaction using ShortcutManager. However, I need to perform these operations silently (without user confirmation) since my app runs as a Device Owner.
I checked the Device Policy API and Android Management API, but I couldn’t find any specific policy or method for managing pinned shortcuts as a Device Owner.
I attempted to use ShortcutManager#requestPinShortcut(), but it still requires user confirmation.
I reviewed the Android Enterprise Documentation but found no mention of pinned shortcuts management for Device Owners.
Is there any hidden API or specific Device Policy setting that allows a Device Owner to manage pinned shortcuts without user interaction? If not, is there any alternative approach to achieving this functionality programmatically?
Thanks
- jeremyLevel 3.0: Honeycomb10 days ago
There currently no API to do this silently, however this is something you might be able to achieve with a custom launcher for example.
Or you could "force" the user to do this during device provisioning with an app installed and launched as a "Required for Setup" so user won't have a choice than to go trough your app to finsih the devce setup.
- MoombasLevel 4.1: Jelly Bean9 days ago
Or the oem config app from the manufacturer could provide this.
I know Motorola (pretty sure) can do this somehow and i think Samsung (not entirely sure).