How to get the package name of Android application
There are multiple ways in which we can obtain the package name of Android .apk file.
Here are the some quick ways to get the package name.
Step 1 : If its public app and available in https://play.google.com/store/apps , then search the app name and click on that particular app. you will get the package name as shown in below screenshot.
Demo of Step 1 :
Step 2 : Install the app on your device and run the below command to get the list of packages and search for your app.
*(Make sure ADB configured in your path variable, click here to know how to configure adb on Windows , For Mac - you can click here )
-> adb shell pm list packages
Demo of Step 2 :
Step 3 : Again using the Android command , you can get the details of app , package name
-> aapt dump badging <path of apk> | grep <any_relevant_search_text>
for example :
-> aapt dump badging D:\facebook.app | grep package
** aapt stands for Android Asset Packaging Tool .
Demo of Step 3 :
Step 4 : [This step is now obsolete, as Appium UI has changed , if you have OLD Appium setup , you can still use it ] If you have Appium installed and locate the .apk file and it will list the package name as shown in below screenshot.
You can choose any above mentioned steps to get the package name of your app. Some other ways are also present to get the app name.But here i listed few easy way to get the package name.
If you like this, please subscribe my Youtube channel,like ,comments & share.