pm list packages -f |
This comment has been minimized.
This comment has been minimized.
Nice one liner: " adb shell 'pm list packages -f' " |
This comment has been minimized.
This comment has been minimized.
And for just the packages: adb shell 'pm list packages -f' | sed -e 's/.*=//' | sort Need to delete a bunch of things? This gives you an uninstall for everything that's installed; cut and paste to adjust: adb shell 'pm list packages -f' | sed -e 's/.*=//' | sed -e 's/^/adb uninstall /' | sort | less |
This comment has been minimized.
This comment has been minimized.
how to save it as a notepad text file? |
This comment has been minimized.
This comment has been minimized.
Building up on banshee's one liner, for me there was a trailing \r, removing it was needed, as such: adb shell 'pm list packages -f' | sed -e 's/.*=//' | sed 's/\r//g' | sort Only then I was able to do get the following to work: adb shell 'pm list packages -f' | sed -e 's/.*=//' | sed 's/\r//g' | grep "com.foobar" | while read pkg; do adb uninstall $pkg; done; |
This comment has been minimized.
This comment has been minimized.
nice |
This comment has been minimized.
This comment has been minimized.
euhh.... |
This comment has been minimized.
This comment has been minimized.
ok, i saw ... |
This comment has been minimized.
This comment has been minimized.
Thanks OP, helped me |
This comment has been minimized.
This comment has been minimized.
Thanks!!! :) |
This comment has been minimized.
This comment has been minimized.
@cusspvz |
This comment has been minimized.
This comment has been minimized.
Thanks for sharing! |
This comment has been minimized.
This comment has been minimized.
I also have one: |
This comment has been minimized.
This comment has been minimized.
nice |
This comment has been minimized.
This comment has been minimized.
could you please let me know how to uninstall a bunch of similar packages in android... Thanks |
This comment has been minimized.
This comment has been minimized.
Thanks guys! |
This comment has been minimized.
This comment has been minimized.
with google play links, no matter the app installer: all third-party apps (slow because of
|
This comment has been minimized.
This comment has been minimized.
@davidnunez This is a useful command for modifying older phones, especially when needing to make space by uninstalling packages. @changetip $1 |
This comment has been minimized.
This comment has been minimized.
When I'm trying to copy link directly: all work fine, but the file a link points to got copied, not a link itself (target now has /lib/libc.so.6 file instead link to file). Thanks!! |
This comment has been minimized.
This comment has been minimized.
Thanks. Worked great. |
This comment has been minimized.
This comment has been minimized.
There's no longer any pm list option |
This comment has been minimized.
This comment has been minimized.
It's now |
This comment has been minimized.
This comment has been minimized.
Thanks! |
This comment has been minimized.
This comment has been minimized.
thk |
This comment has been minimized.
This comment has been minimized.
No longer seems to work on oreo. |
This comment has been minimized.
This comment has been minimized.
good |
This comment has been minimized.
This comment has been minimized.
well good |
This comment has been minimized.
This comment has been minimized.
To list only user installed applications |
This comment has been minimized.
This comment has been minimized.
adb shell "pm list packages -u -3", here adding |
This comment has been minimized.
This comment has been minimized.
Thanks a lot |
This comment has been minimized.
This comment has been minimized.
Instead of: sed 's/\r//g' or: cut -f 2 -d ":" to get rid of the trailing carriage-return and/or newline, I use: tr -d [:cntrl:] |
This comment has been minimized.
This comment has been minimized.
I deleted the package, but it still appears on Android as "not installed", it's missing the delete folder, how do I? |
This comment has been minimized.
This comment has been minimized.
@reach2jeyan Would be nice to see your command, or any of these commands, sort in order of the last singlet(?) in the app name. in other words, by 'gamma' in "com.beta.gamma". |
This comment has been minimized.
This comment has been minimized.
help needed here ! |
This comment has been minimized.
This comment has been minimized.
If you're trying to install an app via ADB, do |
This comment has been minimized.
This comment has been minimized.
Any idea how to do the same in Windows 10? (not in bash) |
This comment has been minimized.
This comment has been minimized.
@afilp the command Anuboiz posted earlier works fine in windows 10, if you're talking about installing packages, the comment above yours should work fine too. |
This comment has been minimized.
This comment has been minimized.
How about to list all the packages for a specific --user ? |
This comment has been minimized.
This comment has been minimized.
This gives a list of just 3rd party apps (or it does on my firestick 4k) if it helps: |
This comment has been minimized.
This comment has been minimized.
adb shell cmd package list packages list packages [-f] [-d] [-e] [-s] [-3] [-i] [-l] [-u] [-U] [--uid UID] [--user USER_ID] [FILTER] Prints all packages; optionally only those whose name contains |
This comment has been minimized.
This comment has been minimized.
adb shell 'pm list packages' | sed 's/.*://g' |
This comment has been minimized.