Skip to content
TestsigmaDOCS

Help

How to Find App Package & Activity in Android?

  • Android SDK should be installed and set up on the computer.

Let us try finding the details of the Whatsapp application in this case.

  1. Connect your Android device or emulator to your PC/Mac. Open the app you wish to inspect, in this case, WhatsApp.

  2. Open a Command Prompt or Terminal window and run the adb devices command. This will display a list of connected devices with their unique device ID.

  3. Use the following commands to retrive information about the currently open application:

    • For Mac/Linux: adb shell dumpsys window | grep -E ‘mCurrentFocus’

    • For Windows: adb shell dumpsys window | find “mCurrentFocus”

  4. The output will display the Android Application Package name and Application Activity name.

    • For example, here, com.whatsapp is the package name, and com.whatsapp.HomeActivity is the activity name.
ℹ️More Info:
The package name can also be verified by tapping More Details on the app's Google Play Store page.