Created
November 29, 2011 13:20
-
Star
(282)
You must be signed in to star a gist -
Fork
(46)
You must be signed in to fork a gist
-
-
Save davidnunez/1404789 to your computer and use it in GitHub Desktop.
list all installed packages in android adb shell
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pm list packages -f |
adb shell 'pm list packages' | sed 's/.*://g'
thx worked well
What is the command that shows the list of user-installed applications on the Android Phone?
What is the command that shows the list of user-installed applications on the Android Phone?
pm list packages -3
(as in 3-rd party)
That fortunately requires root to work
(as in 3-rd party)
That fortunately requires root to work
@Anubioz Thank you for your reply. However, my phone is not rooted. I will look for an alternative solution and let you know if I find anything.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@AndroidDeveloperLB
i was able to make the old script work.
The first thing you need to do is to get the aapt binary from this repo
note aapt2 is the newer version of appt, but it is slower in parsing the data from apk files only use aapt2 when you get errors with aapt
the repo will find android 9 and android 11 choose the closest one to the version of your android device
copy aapt to
/data/local/tmp
if you plan to use adb shellor
copy appt to
data/data/com.termux/files/home
if you use termuxthen
chmod -R 770 *
for termux you need to give it a special permission using adb
adb shell pm grant com.termux android.permission.DUMP
and lastly there will be three versions of the script
the first will be aapt list all apps names
the second appt list app based on permission usage
the third will be appt2 list all apps
Remember to change appt or appt2 to the path of your files (it is the second line in the script)
aapt list all apps names
appt list app based on permission usage
appt2 list all apps