112

I am using Android 4.0.3 and I can no longer find package name for some app. If I recall, I used to go to Applications and has been able to see it there.

So, how can I see full package name of some app? Like, the app's name is "Test" and I need to see its package com.test.mytest.

2
  • The accepted answer on this question (which has the opposite problem: finding the app name when you know the package name) suggests simply looking it up on Google Play website. The package name will be right there in the URL.
    – ale
    Sep 4 '12 at 15:09
  • 3
    @AlE.: Somehow, the solution with "simply looking it up on Google Play website" doesn't work when the point of finding out the unique package ID is to find the app again on the Google Play website :) Dec 4 '15 at 23:49

10 Answers 10

82

Edit: I like ofir_aghai's answer better, although my answer may still be helpful for apps that aren't on the Google Play Store.

If you're comfortable using the command line, a solution I like is Android's pm command. It can easily be called using adb like so:

$ adb shell "pm list packages -f test"
package:/system/app/AutomationTest_JBUP.apk=com.sec.android.app.DataCreate
package:/system/app/BluetoothTest.apk=com.sec.android.app.bluetoothtest

Replace test with whatever package you're looking for.

pm has a variety of options that may be useful depending what you want to do:

usage: pm list packages [-f] [-d] [-e] [-s] [-3] [-i] [-u] [FILTER]
pm list packages: prints all packages, optionally only
  those whose package name contains the text in FILTER.  Options:
    -f: see their associated file.
    -d: filter to only show disbled packages.
    -e: filter to only show enabled packages.
    -s: filter to only show system packages.
    -3: filter to only show third party packages.
    -i: see the installer for the packages.
    -u: also include uninstalled packages.
5
  • This works perfect. As a generic solution, this seems to be the correct answer for the question. Also we can use grep if we know some part of the package name.
    – gnuanu
    Jul 21 '14 at 9:17
  • 3
    @gnuanu Yes, I used grep at first and then I realized the -f flag does the same thing (filters by package name), as you can see in the example. Either works fine.
    – bmaupin
    Jul 21 '14 at 12:38
  • 1
    If you are on Windows, use double quotes " instead of single quotes '. Like this: adb shell "pm list packages -f test" Or you will get weird errors.
    – ADTC
    Jul 16 '15 at 9:28
  • 4
    This doesn't work if the full name of the app or apk file does not contain the displayed name of the app. e.g. "Google Play Services" is com.google.android.gms, but this is basically impossible to find
    – goweon
    Apr 2 '17 at 6:29
  • 1
    It's saying /data/app/br.org.academia.volp-… but there's no app directory inside /data. Why?
    – Rodrigo
    Jul 1 at 22:50
13

Just share the app from Google Play Store to somewhere, (by clicking on the share button in the app's page) and see the shared value.

You will see something like: https://play.google.com/store/apps/details?id=com.my.packagename

(If you cant find it in Google Play: You can long press on app icon and press on "Application info" Go to the bottom of the Android page, and then click on "App details in store")

2
  • I like this answer better than my own 😄
    – bmaupin
    Jul 2 at 10:48
  • haha. thanks! :-)
    – ofir_aghai
    Jul 2 at 12:23
7

You can look into the LogCat. Open the LogCat (either in Eclipse, or on cmd line- if the device is connected to your PC - or on your mobile itself, using any app which allows to view LogCat). Once LogCat is available, launch the app - the log corresponding to "ActivityManager" will display the activity started. It will usually be in the format: "Starting activity: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER]...". However technical this approach might be, this is - IMHO - the best way to achieve knowledge about the launching activity for any of the installed apps.

6

The best way seems to be to use APK extractor. You don't actually have to extract any APK, this app will display the qualified name for each installed app. This should cover all apps.

If for some reason it can't find your app, look around on the SD card. If you're lucky, the app stores its data or settings in an folder that has the app's qualified name somewhere in its path, like /mnt/sdcard/Android/data/net.sylark.apkextractor.

0
3

If you are proficient at using adb and Linux you can find it pretty quick using the linux command grep.

Just do:

adb shell
ls -al /data/data/ | grep 'yourAppName'

You need root of course to be able to search in /data/data/

2
  • 1
    So how do I become root? Root as in Linux root or root as in "root" your device?
    – NelsonGon
    Jul 13 '19 at 12:18
  • 1
    @NelsonGon "Rooting your device" means "gaining the ability to become root on the device". As such, in order to become root, your device must, by definition, be rooted.
    – Jivan Pal
    Aug 1 '20 at 4:09
3

OS Monitor app will give you the needed info for running processes when you open a Process on main screen by tapping it.

Click on image to enlarge

OS Monitor ps name

It is a very powerful app for monitoring the deepest parts of Android.

3

As of now, many apps can show the package name of the installed app, such as Elixir 2 (see Applications option), My App List, Applications Info and many more in Play Store.

Screenshots of the ones I use:

enter image description here enter image description here enter image description here

1

use link2sd. It can list apps by name and show package name and other useful info

1

You can search apps name in play store and open that apps. Now look into url. Last part of url is package name. It is look like id=com.google.

You can use adb shell and write command PM LIST PACKAGES -F. there are many operator look into it. If you do not find all packages then use DUMPSYS PACKAGE command. On Oppo mobile pm list packages provide me 150 entry while dumpsys package provide me 163 entries. You can use android package name viewer application.

1
  • pm and dumpsys commands do list package names but how does one go around knowing which one belongs to the app of interest? Not all developers add app label in package name, so it is not obvious to guess.
    – Firelord
    Apr 29 at 9:03
0

Use App Manager app. It has plenty of features: sorting, filtering, finding, managing APK files, showing removed apps (since the time you've installed the app), root-operations, handling various split-APK files (APKS, APKM, XAPK) right from file manager apps...

Not the answer you're looking for? Browse other questions tagged or ask your own question.