Android adb shell 查询当前设备所有安装应用包名

很简单,一条命令搞定

首先确保设备连接上电脑

然后在cmd命令行中输入adb shell pm list packages命令并回车

结果如下所示,输出的包名包括系统预装应用和我们自己装的所有应用的包名

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
C:\Users\Him>adb shell pm list packages
package:com.huawei.internetaudioservice
package:com.android.defcontainer
package:com.tencent.mm
package:com.example.android.notepad
package:com.sohu.newsclient
package:com.android.quicksearchbox
package:com.android.contacts
package:com.huawei.wifihotspot
package:com.huawei.hwid
package:com.huawei.mmitest2
package:com.android.phone
package:com.duomi.android
package:com.android.calculator2
package:com.huawei.phoneservice
package:com.huawei.android.airsharingcast
package:com.huawei.android.wifitrafficmonitor
package:com.android.htmlviewer
package:com.huawei.powergenie
package:com.huawei.android.WeatherWallpaper
package:com.google.android.gsf.login
package:com.android.providers.calendar
package:com.android.bluetooth
package:com.huawei.bluetooth
package:com.android.calendar
package:com.android.browser
package:com.huawei.magnifier
package:com.android.huawei.countlapsetime
package:com.android.onetimeinitializer
package:com.android.providers.downloads.ui
package:com.huawei.icos.ar
package:com.android.documentsui
package:com.android.sharedstoragebackup
package:com.android.vpndialogs
package:com.android.mms
package:com.android.provision
package:com.huawei.gamebox
package:com.android.huawei.projectmenu
package:com.android.providers.media
package:com.huawei.flashlight
package:com.huawei.android.pushagent
package:com.huawei.motionservice
package:com.android.certinstaller
package:cn.wps.moffice_i18n
package:com.huawei.hwstartupguide
package:com.sohu.sohuvideo
package:com.google.android.gms
package:com.infinit.wostore.ui
package:com.android.dreams.phototable
package:com.android.settings
package:org.simalliance.openmobileapi.service
package:com.sinovatech.unicom.ui
package:com.huawei.dataservicediagnose
package:com.huawei.systemmanager
package:com.android.gallery3d
package:com.baidu.input_huawei
package:com.android.musicvis
package:com.android.exchange
package:com.youdao.dict
package:com.android.wallpaper.livepicker
package:com.huawei.android.hwouc
package:com.android.packageinstaller
package:com.android.providers.telephony
package:com.android.providers.agps
package:com.svox.pico
package:com.huawei.mmifunction
package:com.android.noisefield
package:com.android.email
package:com.android.mediacenter
package:com.nuance.swype.emui
package:com.android.wallpapercropper
package:com.android.location.fused
package:com.android.backupconfirm
package:com.android.magicsmoke
package:com.huawei.android.AutoRegSms
package:com.android.providers.settings
package:com.huawei.android.totemweather
package:com.huawei.android.karaokeeffect
package:com.android.providers.downloads
package:com.huawei.ims
package:com.huawei.android.airsharing
package:com.android.phasebeam
package:com.tencent.mtt
package:com.android.hwmirror
package:com.android.soundrecorder
package:com.autonavi.minimap
package:com.huawei.android.ds
package:com.neusoft.td.android.wo116114
package:com.android.inputmethod.latin
package:com.android.proxyhandler
package:com.huawei.KoBackup
package:com.android.inputdevices
package:com.android.wallpaper.holospiral
package:com.huawei.lcagent
package:com.mypackage.appname
package:com.android.stk
package:com.huawei.android.airsharingcastclient
package:com.huawei.omacp
package:com.android.providers.userdictionary
package:com.chaozh.iReaderFree15
package:com.tencent.mobileqq
package:com.android.pacprocessor
package:com.baidu.searchbox_huawei
package:com.huawei.android.nff
package:androidhwext
package:com.android.galaxy4
package:com.vmall.client
package:com.android.printspooler
package:android
package:com.android.providers.contacts
package:com.asiainfo.android
package:com.huawei.android.mewidget
package:com.huawei.android.apkbatchinstall
package:com.android.protips
package:com.android.externalstorage
package:com.huawei.android.thememanager
package:com.android.providers.applications
package:com.mobiletools.systemhelper
package:com.android.dreams.basic
package:com.huawei.bd
package:com.him.stickyheader
package:com.huawei.android.hwpay
package:com.android.apps.tag
package:com.huawei.android.calendarwidget
package:com.huawei.android.FMRadio
package:com.android.systemui
package:com.huawei.android.multiscreen
package:com.sina.weibo
package:com.huawei.wo3g
package:com.android.keychain
package:com.huawei.vassistant
package:com.android.smspush
package:com.huawei.vdrive
package:com.android.wallpaper
package:com.mt.mtxx.mtxx
package:com.android.providers.streaming
package:com.android.deskclock
package:com.meitu.mtxx.huawei
package:com.huawei.appmarket
package:com.google.android.gsf
package:com.huawei.hidisk
package:com.android.keyguard
package:com.android.shell
package:com.huawei.audioalgoservice
package:com.tiantian.android.player.video
package:com.huawei.android.wfdft
package:com.huawei.android.launcher

C:\Users\Him>

Click and drag to move