Android - Create shortcut from adb
问题 I want to create a shortcut via adb for an application I'm developing. I have looked in Grepcode to see how the intent Android is expecting to be formatted. I also checked the AM documentation to try to create the intent required. So far I got a lot of variations of the line below, but this one seems the most appropriate. adb -d shell am broadcast \ -a com.android.launcher.action.INSTALL_SHORTCUT \ --es Intent.EXTRA_SHORTCUT_NAME "<shortcut-name>" \ --esn Intent.EXTRA_SHORTCUT_ICON_RESOURCE \