I'm trying to:
Get the package names of all apps on my device (none of them are mine so sadly I can't get it from the Manifest) and put it into a file to save for a class project.
I also want to get the package names of only a select number of apps that I choose that I have on my phone. I was hoping there is a way to do that so that I don't have to manually look and copy over from all the different phones I have
Is it possible to get the package name of an Android app by its name using ADB when testing my app on my phone? Maybe by using aapt?
E.g. "ColorDraw" will return com.package.name.drawcolors.
adb shell pm list packages. For the second part, I somewhat believe the link I mentioned before could help, but something need to be added (sadly, I'm not good at writing shell script) – Andrew T. Mar 08 '16 at 04:10aapt) either on-device or on-PC. As Andrew suggested, your can useadb shell "pm list packages"to get the package list, strip thepackage:prefix from each line, then retrieve the corresponding page from Google Play and parse for its<TITLE>;) Take a look at the code of my little tool Adebar, which does something like that to generate a device documentation. – Izzy Mar 08 '16 at 06:42