Android original package name

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.

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.

Источник

Читайте также:  Автомобильная тема для андроид

Каким должно быть имя пакета приложения Android?

Я хочу знать, что должно быть имя пакета приложения для android? Значит обычно мы использовали com.appname или com.имя_организации.appName, но когда мы отправляем наше приложение на рынок, иногда он показывает ошибки, связанные с именем пакета, которые — пожалуйста, измените имя пакета. Его не следует запускать с com и т. д..

Я хочу знать, почему это happnes? И как правильно название пакета для Android?

Если кто знает причина или ответ на этот вопрос, пожалуйста, дайте мне знать.

6 ответов

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

компании используют свое обратное доменное имя Интернета, чтобы начать свои имена пакетов-например, com.example.mypackage for a package named mypackage created by a programmer at example.com .

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

пакеты на самом языке Java начинаются с java. или javax.

в некоторых случаях имя домена интернета может быть недопустимым именем пакета. Это может произойти, если имя домена содержит дефис или другой специальный символ, если имя пакета начинается с цифры или другого символа, который незаконно использовать в качестве начала имени Java, или если имя пакета содержит зарезервированное ключевое слово Java, такое как «int». В этом случае предлагаемое соглашение заключается в добавлении подчеркивания. Например:

Android следует тем же соглашениям об именах, что и Java,

Именования

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

компании используют свое обратное доменное имя Интернета, чтобы начать свои имена пакетов-например, com.образец.mypackage для пакета с именем mypackage, созданного программистом на example.com.

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

пакеты на самом языке Java начинаются с java. или javax.

в некоторых случаях имя домена интернета может быть недопустимым именем пакета. Это может произойти, если имя домена содержит дефис или другой специальный символ, если имя пакета начинается с цифры или другого символа, который запрещено использовать в качестве начала имени Java, или если имя пакета содержит зарезервированное ключевое слово Java, такое как «int». В этом случае предлагаемое соглашение должно добавить подчеркивание. Например:

Легализация Имен Пакетов:

Как вы заявили, имена пакетов обычно находятся в форме ‘com.имя_организации.appName’ — все строчные и без пробелов. Похоже, имя пакета, которое вы ввели при загрузке приложения, отличалось от имени, объявленного в AndroidManifest.

В настоящее время имя пакета, начинающееся с «com.пример » не разрешается загружать в app-store. В противном случае все остальные имена пакетов, начинающиеся с «com», разрешены .

имя пакета с 0 может вызвать проблему для sharedPreference.

(OK) con = createPackageContext(«com.example.android.sf1», 0);

(проблема, но без ошибок)

посетить https://developers.google.com/mobile/add и попробуйте заполнить «имя пакета Android». В некоторых случаях он может написать ошибку: «недопустимое имя пакета Android».

и хотя идентификатор приложения выглядит как традиционный пакет Java имя, правила именования для идентификатора приложения немного больше ограничительный:

  • он должен иметь по крайней мере два сегмента (одну или несколько точек).
  • каждый сегмент должен начинаться с буквы.
  • все символы должны быть буквенно-цифровыми или подчеркиванием [a-zA-Z0-9_].

Итак, «0com.образец.app » и » com.1example.приложение» ошибки.

Источник

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.

Читайте также:  Heroes wog для android

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.

Источник

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.
Читайте также:  Загрузчик прошивок для android

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:

  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!”

    Источник

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