 | NOTE Workforce Connect (WFC) is now known as Workcloud Communication. While efforts have been made to update references in this article, specific screen captures, paths and commands may still bear the former name. |
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. Refer to
Android Debug Bridge (adb) User Guide for more information.
Package name
Procedure:
- Setup and configure ADB. Refer to the article: Setup and configure to use ADB for Zebra Android devices for more information.
- Type in the following command to list all packages and their associated files.
adb shell pm list packages
- If you wish to export the list for easy viewing, use the following command.
adb shell pm list packages > your_text_file_name.txt
- To filter the output based on the package name, use the command shown below.
adb shell [enter]
pm list packages |grep zebra
- To list only 3rd party applications, use the following command.
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.
Procedure:
- To find all activities published by a package, use the following command and 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:]]+$"
- 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