vendredi 18 janvier 2019

How to list installed packages on an Android device with "adb shell"

In order to list all Android packages (applications) that are installed on an Android device, launch the "adb shell" command from Windows, and when connected on the Android device, launch the "pm list packages" command.

An example of output is :

HWCMR09:/ $ pm list packages
package:com.huawei.hifolder
package:com.android.cts.priv.ctsshim
package:com.google.android.youtube
package:com.huawei.camera
package:com.huawei.android.tips
package:com.google.android.ext.services
package:com.huawei.synergy
package:com.huawei.android.launcher
package:com.android.mediacenter
package:com.android.providers.telephony
package:com.google.android.googlequicksearchbox
package:com.android.providers.calendar
package:com.huawei.hidisk
package:com.huawei.hiview
package:com.huawei.iaware
package:com.huawei.bluetooth
package:com.android.providers.media
package:com.touchtype.swiftkey
package:com.huawei.android.thememanager
package:com.huawei.android.chr
package:com.huawei.android.hsf
package:com.google.android.onetimeinitializer
package:com.google.android.ext.shared
package:com.huawei.kidsmode.kidspaint
package:com.huawei.autoinstallapkfrommcc
package:fr.reunisoft.oauth2_test
package:com.android.wallpapercropper
package:com.huawei.nearby
package:com.huawei.android.FloatTasks
package:com.huawei.desktop.systemui
package:org.simalliance.openmobileapi.service
package:com.huawei.recsys
package:com.android.documentsui
package:com.android.externalstorage
package:com.android.htmlviewer
package:com.android.companiondevicemanager
package:com.android.mms.service
package:com.huawei.android.totemweather
package:com.android.providers.downloads
package:com.huawei.gameassistant
package:com.huawei.trustcircle
package:com.ebay.carrier
package:com.huawei.phoneservice
package:com.huawei.desktop.explorer
package:com.huawei.screenrecorder
package:com.netflix.partner.activation
package:com.huawei.himovie.overseas
package:com.android.partnerbrowsercustomizations.tmobile
package:com.huawei.videoeditor
package:com.huawei.securitymgr
package:com.google.android.configupdater
package:com.android.soundrecorder
package:com.huawei.iconnect
package:com.android.defcontainer
package:com.huawei.hiviewtunnel
package:com.android.providers.downloads.ui
package:com.android.vending
package:com.android.pacprocessor
package:com.hisi.mapcon
package:androidhwext
package:com.android.frameworkhwext.honor
package:com.android.certinstaller
package:huawei.android.widget
package:com.android.carrierconfig
package:com.google.android.marvin.talkback
package:com.google.android.apps.work.oobconfig
package:android
package:com.huawei.imedia.sws
package:com.huawei.hwid
package:com.huawei.tips
package:com.android.contacts
package:com.huawei.systemserver
package:com.android.frameworkhwext.dark
package:com.android.egg
package:com.android.mms
package:com.android.mtp
package:com.android.stk
package:com.microsoft.rdc.android
package:com.android.backupconfirm
package:com.huawei.android.instantshare
package:com.huawei.indexsearch.observer
package:com.huawei.trustagent
package:com.android.statementservice
package:com.huawei.indexsearch
package:com.google.android.gm
package:com.google.android.apps.tachyon
package:com.huawei.android.internal.app
package:com.example.my.roomwordsample
package:com.huawei.hwasm
package:com.huawei.omacp
package:com.android.calendar
package:com.huawei.wifiprobqeservice
package:com.google.android.setupwizard
package:com.android.providers.settings
package:com.android.sharedstoragebackup
package:com.facebook.services
package:com.google.android.music
package:com.android.printspooler
package:com.android.frameworkres.overlay
package:com.android.dreams.basic
package:com.activity.screen.reuniwaretransfer
package:com.android.incallui
package:com.huawei.systemmanager
package:com.android.inputdevices
package:com.android.bips
package:com.android.supl
package:com.google.android.apps.docs
package:com.google.android.apps.maps
package:com.android.cellbroadcastreceiver
package:com.google.android.webview
package:com.huawei.HwMultiScreenShot
package:com.huawei.vassistant
package:com.android.server.telecom
package:com.google.android.syncadapters.contacts
package:com.example.android.notepad
package:com.android.keychain
package:com.android.keyguard
package:com.android.chrome
package:com.android.gallery3d
package:com.google.android.packageinstaller
package:com.huawei.watch.sync
package:com.google.android.gms
package:com.google.android.gsf
package:com.google.android.tts
package:com.huawei.hwstartupguide
package:com.android.calllogbackup
package:com.google.android.partnersetup
package:com.huawei.fido.uafclient
package:com.google.android.videos
package:com.android.proxyhandler
package:com.huawei.android.mirrorshare
package:com.huawei.contactscamcard
package:com.google.android.feedback
package:com.google.android.printservice.recommendation
package:com.google.android.apps.photos
package:com.google.android.syncadapters.calendar
package:com.android.managedprovisioning
package:com.swiftkey.swiftkeyconfigurator
package:com.huawei.android.totemweatherwidget
package:com.huawei.compass
package:com.android.dreams.phototable
package:com.android.providers.partnerbookmarks
package:com.huawei.android.hwaps
package:com.huawei.android.hwouc
package:com.huawei.android.wfdft
package:com.android.wallpaper.livepicker
package:com.huawei.mmitest
package:com.huawei.powergenie
package:com.facebook.system
package:com.google.android.backuptransport
package:com.android.storagemanager
package:com.android.bookmarkprovider
package:com.android.settings
package:com.android.calculator2
package:com.huawei.android.projectmenu
package:com.huawei.android.totemweatherapp
package:com.android.cts.ctsshim
package:com.huawei.sarcontrolservice
package:com.huawei.android.pushagent
package:com.android.vpndialogs
package:com.android.email
package:com.android.phone
package:com.android.shell
package:com.android.wallpaperbackup
package:com.android.providers.blockednumber
package:com.android.providers.userdictionary
package:com.huawei.wifieapsimplmn
package:com.android.emergency
package:com.huawei.scanner
package:com.android.location.fused
package:com.android.deskclock
package:com.android.systemui
package:com.android.exchange
package:com.android.bluetoothmidiservice
package:com.facebook.appmanager
package:com.huawei.hwdetectrepair
package:com.huawei.bd
package:com.android.bluetooth
package:com.android.providers.contacts
package:com.android.captiveportallogin