Help
How to Find App Package & Activity in Android?
Prerequisite for ADB
Section titled “Prerequisite for ADB”- Android SDK should be installed and set up on the computer.
Steps to Find App Details Using ADB
Section titled “Steps to Find App Details Using ADB”Let us try finding the details of the Whatsapp application in this case.
-
Connect your Android device or emulator to your PC/Mac. Open the app you wish to inspect, in this case, WhatsApp.
-
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.
-
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”
-
-
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.