How to Get App Package Name in Android?

how to get application package name

by Alex Gustman

Updated: July 21, 2021

One of the things required to start testing a mobile application is the app package name – a unique identifier consisting of words separated by dots. There is no other way to tell the programs you are working with what exactly you are about to test since the common name displayed on the Play Market product page will not work for this purpose.

Additionally, you will need to find out the name of the main app activity as well. You can learn how to do that by reading the article How to check app activity Android. Thankfully, there are several ways to access this information, even if you only have an APK file available. Let’s have a look at them in more detail.

Play Market is a digital store hosting mobile programs; each one is living on a separate page. Every single one of them has got a unique URL containing the app package name inside it. To extract it, one needs to:

1. Open the product page in Play Market.

program in google play

2. Press three dots icon in the right top corner.

three dots icon in the right top corner

3. Tap the Share button in the pop-up menu.

share button

4. Open the link in any app, such as a web browser or notepad.

copy to clipboard button
paste button
application package name

You can open it in literally any program such as messenger, but you will probably have to send it to someone to see the required information yourself. The package name will be displayed right after id=.

A faster alternative is to skip all the steps above and open the product page in any browser to check the URL. Make sure to omit unnecessary symbols and letters located at the very end since they are not part of the app package name.

APK Info, Android Studio, and ADB

There are multiple applications on Play Market itself capable of extracting the information we need from installed programs. You can download it and check the app package name together with the activities available for this product.

If you are testing the applications, you probably have the Android Studio program on your computer. If this is your case, check the app info using one of its modules called Android Monitor.

One of the more advanced options to extract the package is input ADB commands into the command line. To learn about these methods in more detail, check out the article How to find app package and app activity in Android.

How to find the package name of the Android app by APK file?

The simplest way to check the required information is to install the application and check it using an APK Info app. However, if you do not wish to do that and have Android SDK installed, you can use AAPT utility included in this package. To do that, you need to:

  • place the APK file to the folder of your choice in your computer,
  • launch command line,
  • enter exe dump badging PATH, where PATH locates the place you’ve put an APK file into.

After you press enter, you will see a lot of information. The data you need is located right after the word “package.”

Multiple ways allow you to check the app package name when it is installed to your device and when you only have an APK file available. The one you will choose depends on what programs you have installed on your computer. However, all of them will provide you with the information you need to continue testing.

Related Posts:

More about this

About the author 

Alex Gustman

{"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}