Sujet : Re: How many packages are installed on your Android phone?
De : marion (at) *nospam* facts.com (Marion)
Groupes : comp.mobile.androidDate : 13. Mar 2025, 12:51:25
Autres entêtes
Organisation : BWH Usenet Archive (https://usenet.blueworldhosting.com)
Message-ID : <vqugrs$td8$1@nnrp.usenet.blueworldhosting.com>
References : 1 2 3 4 5
User-Agent : tin/1.6.2-20030910 ("Pabbay") (UNIX) (CYGWIN_NT-10.0-WOW/2.8.0(0.309/5/3) (i686)) Hamster/2.0.2.2
On 13 Mar 2025 11:29:40 GMT, Frank Slootweg wrote :
On my Samsung (Galaxy A51, Android 13) phone, Settings -> Apps, only
gives a list, no count.
My Samsung results agree with both those of Carlos & Frank just now.
I haven't found a *native* method yet to get the app count from my Samsung.
Of course, adb will do it (or local adb if you don't have a PC handy):
*list all installed packages in android adb shell*
<
https://gist.github.com/davidnunez/1404789?permalink_comment_id=3278028>
I just ran this:
C:\> adb shell pm list packages -f > packages.txt
C:\> find /c /v "" packages.txt
This reports 943 lines in "packages.txt".
The format of those 943 lines is as follows:
package:/data/app/~~mth6kx-ogsD89anLzWRrkA==/com.keuwl.compass-SiG1BsCqHCGY4JN5NeVpKA==/base.apk=com.keuwl.compass
package:/data/app/~~RYkubbbzHJGp5p7brdJm8Q==/rk.android.app.pinnedshortcuts-MWerRKDsOONOFYH3uWktpA==/base.apk=rk.android.app.pinnedshortcuts
package:/data/app/~~yyilB0oeZL-qNl-JoP7XKg==/com.codex.appinspector-xVt6wmd2tYRiYAMIvKWoVw==/base.apk=com.codex.appinspector
package:/data/app/~~LamcZDJjU5ny3g9RgbGFCg==/com.alpaca.android.readout-nCWF7C8s-Au-XGTbemToYQ==/base.apk=com.alpaca.android.readout
etc.
To find out how many are 3rd-party (not system) packages:
C:\> adb shell pm list packages -f -3 > 3rdparty.txt
C:\> find /c /v "" 3rdparty.txt
This reports 552 lines in "3rdparty.txt".
To find out how many system packages are installed:
C:\> adb shell pm list packages -s > system.txt
C:\> find /c /v "" system.txt
This reports 391 lines in "system.txt".
Interesting that Muntashirakon listed slightly different numbers.
<
https://github.com/MuntashirAkon/AppManager>
<
https://muntashirakon.github.io/AppManager/en/>
<
https://muntashirakon.github.io/AppManager/vi/>
Here are some of the relevant adb commands users can try out:
C:\> adb shell pm list packages <--- list all packages on the device
C:\> adb shell pm list packages -f -3 <--- list third-party packages
C:\> adb shell pm list packages <--- list only the disabled packages
C:\> adb shell pm list packages -s <--- list only the system packages C:\> adb shell pm list packages -u <--- list only uninstalled packages
C:\> adb shell dumpsys package packages <--- list package information
C:\> adb shell pm dump com.facebook.appmanager <--- info on a package