Issue / Question
How to find out the Android Package (APK) / application package name to configure in Enterprise Home Screen auto launch?
Determine Android application launchable activity
Determine APK name for StageNow package deployment
Applicable To
Android Devices
Resolution / Answer
Overview
Android Debug Bridge (adb) is a versatile command-line tool that lets you communicate with a device.
The adb command facilitates a variety of device actions, such as installing and debugging apps, and it provides access to a Unix shell that you can use to run a variety of commands on a device.
Read More>>
Package name
1. Setup and configure ADB. Setup and configure to use ADB for Zebra Android devices
2. Type in the following command to list all packages and their associated files.
adb shell pm list packages
3. If you wish to export the list for easy viewing, use the following command
adb shell pm list packages > your_text_file_name.txt
4. To filter the output based on the package name
adb shell [enter] pm list packages |grep zebra
5. To list only 3rd party application
adb shell pm list packages -3
Class name
Once the package name has been found (for example com.symbol.wfc.voice), the class name of the main activity has to be determined.
1. To find all activities published by a package, use the following command & replace com.symbol.wfc.voice by the name of the package to process.
adb shell [enter] dumpsys package | grep -Eo "^[[:space:]]+[0-9a-f]+[[:space:]]+com.symbol.wfc.voice/[^[:space:]]+" | grep -oE "[^[:space:]]+$"
2. The output may list one or more Activities.
If multiple Activities are listed, try to guess the main activity or test one by one using the am start command.
adb shell [enter] am start -n com.symbol.wfc.voice/.CallStarterActivity