Check package name android

How To Find Package Name Of An Android App

Last updated on 04/12/2017 by Pradeep Kumar ( Twitter) | Short URL: https://device.is/2Bw4Yvu

This is a very simple tip to find the package name of an Android app. This tip will be useful for you when you download APK files from Google Play Store. Some online tools require you to provide package name for the Android app you are going to download, so we decided to write this tip here. When I first heard the word “package name” I thought this will be technical, but honestly it is no where near to that.

Package Name Of An Android App

Go to Google Play Store, search and open your desired Android app. Now see the link in the address bar. I decided to open the link of “Subway Surfers” app. It’ll look like this:

Here the Package name of “Subway Surfers” Android app is com.kiloo.subwaysurf

https://play.google.com/store/apps/details?id=com.kiloo.subwaysurf

Similarly you can check this with other popular Android apps, we tried it once again with “WhatsApp” app. See the screenshot below.

Almost all the Android application package names will begin with “com”, heard it is used to avoid name-collisions between applications. After finding the package name for your desired app, you can easily download its APK file from Google Play Store.

Having any queries regarding this? Facing any trouble? Do you have any other easy method? Feel free to share them in the comments below.

Источник

Find package name or application ID of an Android app

Android apps use package name as their unique identification. In some references, it may also be called Application ID. Although there are some differences between the two, for most of us non-developers, it is the same. It usually consists of 3 parts, but it can have 2 parts as well. For example, the package ID of Mozilla’s Firefox Browser for Android is org.mozilla.firefox.

As mentioned, the package name is unique to an application. Play Store and Android smartphones identify apps using the package name. Two different apps can have the same name, however, their package name or application ID will always be different. If you have a need of the package name of a particular app, then follow any of the methods listed below.

Finding the Package Name of Android Apps

There are several ways to find out the package name of an Android app. I am listing down the various methods. You can follow any of them as per your convenience.

Method 1 – From the Play Store

As I mentioned, the Play Store also uses the Android app package name to list unique apps. So, the easiest way to find the app package name is via the Play Store.

On a PC/Mac:

  1. Open play.google.com in your web browser.
  2. Use the search bar to look for the app for which you need the package name.
  3. Open the app page and look at the URL. The package name forms the end part of the URL i.e. after the id=?. Copy it and use it as needed.
    Note: Ignore any other information in the URL. It is not a part of the package name.

Do note that it is only applicable to apps which are listed on Play Store. For 3rd party apps, follow one of the alternative methods as listed below.

On Android mobile device

Most Android mobile browsers will redirect you to the Play Store app when you access the website. So, how do you find the package name from Play Store Android app? Here are the steps you can follow:

  1. Scroll down to the end of the page till you see the (share) button.
  2. Use it and share the Play Store app link to any service from where you can select and copy text. I usually use messaging without sending it to any recipient.
  3. The app package name will at the end of the app link which you just shared. Copy it off and use it as needed.
Читайте также:  Life is strange before the storm для андроид

Method 2 – Use an app on your phone

Trying to find the package name of an app installed on your device? Or the app is installed from a 3rd party source, then you can rely on the Package Viewer apps available on Play Store. We are using a well-known app called Package name viewer 2.0 for this tutorial.

  1. Install Package Name Viewer 2.0 from the Play Store.
  2. Scroll through the app list to find the app for which you need the package name. You can also use the search button to quickly look for a particular application or game.
  3. The package name is listed just under the name of app. Just tap on the app name to get more options like copy.

Источник

How to Get App Package Name on Android [3 Methods]

In this guide, we will share three different methods to get the package name of all the installed apps on your Android device. The apps installed on your device are labeled via two different methods. The first one is the general name that you usually come across such as Facebook, WhatsApp, etc. These are the name that the everyday users deals with and searches for on Play Store.

On the other hand, there’s an associated application ID or app package name, which acts as a unique identifier for each app. For example, Facebook has the package name com.facebook.katana and WhatsApp has com.whatsapp. These are the names used by backend people and developers alike. Furthermore, while you may come across many apps on the Play Store by the name of Facebook, but none could have the com.facebook.katana as their package.

So if you have ever any doubt regarding the app’s authenticity, then you may count on this factor. With that said, how could you get hold of the package name of all the installed apps on your Android device? Well, there are three different methods for the same, and in this guide, we will make you aware of all these three approaches. So without further ado, let’s get started.

Table of Contents

Method 1: Get Android App Package Name via Play Store URL

This method is extremely easy to execute. However, if you are looking to get the name of various installed apps in one go, then it would require quite a lot of manual effort. But for a few apps, this should be your go-to method. Here’s how to use it:

On PC

  1. First off, head over to the Play Store website on your PC.
  2. Now search for the desired app (as an example, let’s go with Facebook)
  3. Then head over to its search bar and check out its URL, it will be something along this line:
  4. As an example, in the case of Facebook, the URL will be
  5. Now the portion after be the app’s package name. So for Facebook, it turns out to be com.facebook.katana.

So this was the first method to get the app package name via Play Store and PC. Let’s see how to try out this Play Store trick on your phone.

On Mobile

  1. Open the Play Store app on your device and search for the desired app (let’s say WhatsApp).
  2. Under the app listing’s page, tap on the overflow icon situated at the top right and select Share.
  3. Now just share/save this URL anywhere you wish. The URL will be of the same format as mentioned above, i.e.
  4. As an example, in the case of WhatsApp, the URL turns out to be
  5. As before the app package name will be the portion after So for WhatsApp, it turns out to be com.whatsapp.

The other method involves opening the Play Store website on your smartphone browser, changing its view to Desktop Mode, and then getting hold of the URL. With that, we round off this first method to get the package name of all the installed apps on your Android device. Let’s now turn our attention towards the other two methods.

Method 2: Get Android App Package Name via a Third-Party App

The benefit of this method is the fact that you require minimal effort. Furthermore, it is able to display both the user installed as well as system apps. The UI is also user-friendly. However, I have never been in favor of using third-party apps and giving them access to my device, unless it is of paramount importance. With that said, if you wish to try it out, then follow the below instructions:

Читайте также:  Angry birds transformers для андроида

  1. To begin with, download the App Package Viewer 2.0 from Play Store.
  2. Then launch it and select the desired app from the list.
  3. Now tap on that app’s name and you should get its associated package name.

That’s it. This is perhaps the easiest method to get the package name of all the installed apps on your Android device. Now let’s check out the third and final method to carry out this task.

Method 3: Get Android App Package Name via ADB Commands

The benefit of this method is the fact that apart from getting the app’s package name, you could even remove the user-installed and system-installed apps on your device via these ADB Commands. Without Root! On the flip side, this method requires a few prerequisites and some level of technicalities as well. But if you are ready to challenge your inner-geek, then this method is tailored made for you. Follow along.

  1. To begin with, download and install the Android SDK Platform Tools on your PC. These are the official ABD binary files provided by Google.
  2. Extract its content to any convenient location on your PC and you should get the platform-tools folder.
  3. Now head over to your Android device and enable USB Debugging. This will make your device recognizable by your PC in ADB mode. So head over to Settings > About Phone > Tap on Build Number 7 times > Go back to Settings > System > Developer Options > Enable USB Debugging.
  4. When that is done, connect your device to the PC via USB cable. Make sure USB Debugging is enabled.
  5. Then head over to the platform-tools folder, type in CMD in the address bar, and hit Enter. This will launch the Command Prompt.
  6. Now type in the below command in the CMD window and hit Enter:

  • If this is the first time you are performing this action, then you may get the Allow USB Debugging prompt on your device, tap Allow. With this, you have authorized the ADB Connection.
  • Now execute in the below command in the CMD window:


    Then type in the below command and you should get a list of all the installed apps:

    List of Apps on my OnePlus 7T. View Full-Size Image

  • If you wish to get the name of all the system installed apps, then use the following command:
  • That’s it. With this, we conclude the guide on how to get the package name of all the installed apps on your Android device. We have shared three different methods for the same, do let us know in the comments which one you ultimately settled for.

    About Chief Editor

    Sadique Hassan

    A technical geek by birth, he always has a keen interest in the Android platform right since the birth of the HTC Dream. The open-source environment always seems to intrigue him with the plethora of options available at his fingertips. “MBA by profession, blogger by choice!”

    Источник

    Прочитайте имя пакета Android APK

    Мне нужно получить имя пакета из Android APK. Я попытался распаковать APK и прочитать содержимое AndroidManifest.xml , но, похоже, это не текстовый файл.

    Как я могу извлечь имя пакета APK?

    19 ответов

    вы можете установить apk на свой телефон, затем

    connect используя adb, вы можете запустить adb shell и выполнить PM list packages-f, который показывает имя пакета для каждого установленного apk.

    Если вы открываете AndroidManifest.xml с помощью MS Notepad, поиск фразы package и вы найдете следующее:

    где XXX.ХХХХХХХ.xxxxxxx-это имя вашего пакета, просто написанное пробелом после каждого символа.

    это полезный способ, когда у вас нет каких-либо конкретных установленных инструментов.

    Если вы смотрите на google play и хотите узнать его имя пакета, вы можете посмотреть url или адресную строку. Вы получите имя пакета. Вот!—1—> — имя пакета

    следующий скрипт bash отобразит имя пакета и основное имя действия:

    apk_package.sh

    запустите его так:

    на основе ответа @hackbod . но связано с windows.

    aapt команда находится на Android\SDK\build-tools\version . Если вам нужна дополнительная информация о том, что appt command (Android Asset Packaging Tool) прочитайте это https://stackoverflow.com/a/28234956/812915

    на dump суб-команда aapt используется для отображения значений отдельных элементов или частей пакет:

    aapt dump badging

    если вы хотите увидеть только строку с package: name информация, использовать findstr

    aapt dump badging

    | findstr -n «package: name» | findstr «1:»

    надеюсь, что это поможет другому пользователю windows!

    Читайте также:  Что будет если удалить андроид систем вебвью

    Программный Ответа

    Если вам нужно сделать это программно, это немного больше, чем просто ответ в ваш мозг. У меня есть скрипт, который я использую для подписи всех наших приложений, но каждый использует другой ключ. Вот 2 способа получить только имя пакета как выход, так что вы можете поместить его в переменную или сделать все, что вам нужно с ним.

    пример: com.example.appname (и ничего еще)

    требования

    aapt — Android инструмент упаковки активов, часть SDK Tools загрузить

    Решение 1

    используя awk указать ‘ в качестве разделителя полей найдите строку с package: name= , и напечатать только 2-е «поле» в строку:

    недостатком этого метода является то, что он полагается на aapt для вывода информационных полей пакета в том же порядок:

    у нас нет обязательств от разработчиков поддерживать этот формат.

    решение 2

    используя awk указать » в качестве разделителя полей найдите строку с package= , и напечатать только 2-е «поле» в строку:

    слабость этого метода заключается в том, что он полагается на aapt для вывода package= только в Android Manifest: раздел вывода. У нас нет обязательств от разработчиков поддерживать это формат.

    решение 3

    разверните файл apk с помощью apktool d и прочитайте AndroidManifest.XML.

    это был бы лучший метод, но AndroidManifest.xml-это двоичный файл, и все ответы SO, которые я вижу для преобразования его в текст, не работают. (Используя apktool d вместо простого unzip должен делать это для вас, но это не так.) прокомментируйте, пожалуйста, если у вас есть решение этой проблемы

    Если вы просто хотите знать имя пакета, запустите adb logcat, запустите действие, которое вы хотите, вы получите подсказку об имени пакета.

    другое решение-использовать список aapt и использовать sed для анализа этого:

    aapt list -a $PATH_TO_YOUR_APK | sed -n «/^Package Group[^s]/s/.*name=//p»

    Я думаю, что лучший и самый простой способ извлечь только имя пакета в Linux

    1. aapt извлекает информацию APK
    2. Grep «пакет», чтобы сохранить только строку о пакете информации
    3. Make sed замените всю строку именем пакета, используя только следующее регулярное выражение: package: name='([a-z0-9.]*)’.* и замена первой (и только) соответствующей группой.

    вы можете извлечь AndroidManifest.xml из APK, удалите все нулевые байты, пропустите все до тех пор, пока после строки «манифест», а затем вы находитесь в байте длины, за которым следует имя пакета (и что происходит после него). Для трудной задачи я использую великое гема tool, поэтому команда выглядит так:

    конечно, вы можете использовать любой другой инструмент для фильтрации.

    есть очень простой способ, если у вас есть APK allready на вашем смартфоне. Просто используйте одно из этих приложений:

    простым решением было бы открыть Android Studio — > Build — > Analyze Apk. просмотрите и выберите APK теперь вы можете найти имя пакета и в значительной степени вы можете прочитать.

    вы можете установить Package_Name_Viewer.apk на эмуляторе, а затем вы можете увидеть имя пакета всех установленных приложений на эмуляторе.

    Я также пробовал де-компиляцию, она работает, но недавно я нашел самый простой способ:

    Загрузите и установите Appium из веб-сайт Appium

    открыть Appium — > настройка Android, выберите целевой файл apk. И тогда вы получаете все, что хотите, информацию о пакете, информацию о деятельности.

    чтобы использовать это в пакетных сценариях, удобно, чтобы скрипт возвращал только имя пакета (например, для удаления приложения, когда у вас есть APK).

    вот скрипт, который я использую:

    чтобы вы могли написать:

    ADB uninstall`. /getPackageName.sh файл.apk’

    для Windows следующее работало для меня:

    Примечание

    пожалуйста, отредактируйте пути АБР, aapt, APKPath по пути АБР, aapt, и место АПК в вашей системе.

    работает:

    • здесь я добавил apk в папку на рабочем столе » \Desktop\APK\Instant_Instal\».
    • команда %adb% install %apk% устанавливает приложение, если устройство подключено.
    • этот %aapt% dump badging %APKFullPath% | FIND «package: name=» > temp.txt извлекает имя пакета и несколько других деталей, таких как версия и т. д. из apk и магазинов в temp.txt файл в том же месте, что и apk.
    • FOR / F «tokens=2 delims= ‘» %%s IN (temp.txt) установите pkgName=%%s extracts the package name and assigns to переменная pkgName
    • наконец-то %adb% shell monkey -p %pkgName% -c android.intent.category.LAUNCHER 1 запускает приложение.

    по сути, приведенный выше код устанавливает apk из заданного местоположения на рабочем столе «Desktop\APK\Instant_Instal\» на устройство и запускает приложение.

    Как я не смог найти имя пакета в .файл apk с редактором (как предложено выше), я проверил функции в приложении «ES Datei Explorer» / «ES File Explorer» (бесплатная версия), который я уже установил. В этом инструменте имя пакета отображается правильно.
    Поскольку я думаю, что хороший проводник не должен отсутствовать на телефоне, я предлагаю использовать этот инструмент (если вы уже установили apk на мобильном телефоне и должны знать имя пакета).

    Я рекомендую вам сохранить его .txt, потому что он может быть очень длинным. Итак:

    список aapt — «path_to_apk» > файл.txt

    Источник

    Оцените статью