Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get the list of all apps on android device using terminal

there is a command line to get package name:-

adb shell pm list packages 

But how to get the list of all applications on the device

like image 401
Dummy coder Avatar asked May 27 '14 23:05

Dummy coder


1 Answers

Your question already contains the answer in itself: Running a terminal, you enter the shell. So simply omit that part (adb shell) from your command, and run the pm command directly:

pm list packages

should produce the very same output. pm isn't part of ADB (or the adb shell) command, but rather an executable shipping with Android: The package manager. So you can use its full potential:

pm list packages [options] 
options:
   -f: See their associated file.
   -d: Filter to only show disabled 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.
   --user : The user space to query.

Enjoy!

like image 152
Izzy Avatar answered Oct 05 '22 23:10

Izzy