由於adb shell中的kill命令後面跟的參數是pid,因此先ps所有的應用程式:
adb在shell下
root@android:/ # ps
USER PID PPID VSIZE RSS WCHAN PC NAME
root 1 0 676 528 c0159a18 000102f4 S /init
root 2 0 0 0 c00741c8 00000000 S kthreadd
root 3 2 0 0 c005a2d8 00000000 S ksoftirqd/0
root 4 2 0 0 c006f388 00000000 S kworker/0:0
root 5 2 0 0 c006f388 00000000 S kworker/u:0
root 6 2 0 0 c00d54f4 00000000 S migration/0
root 10 2 0 0 c006f6b4 00000000 S khelper
root 11 2 0 0 c006f6b4 00000000 S fs_sync
root 12 2 0 0 c006f6b4 00000000 S suspend
root 13 2 0 0 c0126ee0 00000000 S sync_supers
root 14 2 0 0 c0127f4c 00000000 S bdi-default
root 15 2 0 0 c006f6b4 00000000 S kblockd
root 16 2 0 0 c0315cb8 00000000 S khubd
root 18 2 0 0 c006f6b4 00000000 S cfg80211
root 19 2 0 0 c045899c 00000000 D pmic_thread_kth
root 20 2 0 0 c011fa60 00000000 S kswapd0
root 21 2 0 0 c0184ebc 00000000 S fsnotify_mark
root 22 2 0 0 c006f6b4 00000000 S crypto
root 44 2 0 0 c006230c 00000000 D binder_watchdog
root 45 2 0 0 c006f6b4 00000000 S binder
root 47 2 0 0 c03d6a18 00000000 D bat_thread_kthr
root 48 2 0 0 c03d6cb8 00000000 S mtk charger_hv_
root 49 2 0 0 c006f6b4 00000000 S btif_rxd
root 50 2 0 0 c006f6b4 00000000 S trace mon
root 51 2 0 0 c04b653c 00000000 S disp_config_upd
root 52 2 0 0 c006f6b4 00000000 S mtk_vibrator
root 53 2 0 0 c006230c 00000000 D esd_recovery_kt
root 54 2 0 0 c0073d6c 00000000 D disp_captureovl
root 55 2 0 0 c03db168 00000000 S disp_capturefb_
root 56 2 0 0 c03dd3bc 00000000 S disp_config_upd
root 57 2 0 0 c03858cc 00000000 S mmcqd/0
root 58 2 0 0 c03858cc 00000000 S mmcqd/0boot0
root 59 2 0 0 c03858cc 00000000 S mmcqd/0boot1
root 60 2 0 0 c006f6b4 00000000 S accdet
root 61 2 0 0 c04c2bd4 00000000 S keyEvent_send
root 62 2 0 0 c006f6b4 00000000 S accdet_eint
root 63 2 0 0 c02d4c58 00000000 S kworker/u:2
root 64 2 0 0 c006f6b4 00000000 S accdet_disable
root 65 2 0 0 c03858cc 00000000 S mmcqd/1
root 67 2 0 0 c042a0ec 00000000 S mtk-tpd
root 68 2 0 0 c003a5b8 00000000 S mt_gpufreq
root 69 2 0 0 c006f6b4 00000000 S deferwq
root 70 2 0 0 c006f6b4 00000000 S f_mtp
root 71 2 0 0 c033e6b8 00000000 S file-storage
root 72 2 0 0 c006230c 00000000 D wdtk-0
root 73 2 0 0 c006230c 00000000 D wdtk-1
root 74 1 436 232 c0159a18 000102f4 S /sbin/ueventd
root 76 2 0 0 c02239d0 00000000 S jbd2/mmcblk0p5-
root 77 2 0 0 c006f6b4 00000000 S ext4-dio-unwrit
root 78 2 0 0 c016fb60 00000000 S flush-179:0
root 82 2 0 0 c02239d0 00000000 S jbd2/mmcblk0p7-
root 83 2 0 0 c006f6b4 00000000 S ext4-dio-unwrit
root 88 2 0 0 c02239d0 00000000 S jbd2/mmcblk0p6-
root 89 2 0 0 c006f6b4 00000000 S ext4-dio-unwrit
root 94 2 0 0 c02239d0 00000000 S jbd2/mmcblk0p4-
root 95 2 0 0 c006f6b4 00000000 S ext4-dio-unwrit
root 98 2 0 0 c02239d0 00000000 S jbd2/mmcblk0p2-
root 99 2 0 0 c006f6b4 00000000 S ext4-dio-unwrit
root 102 2 0 0 c02239d0 00000000 S jbd2/mmcblk0p3-
root 103 2 0 0 c006f6b4 00000000 S ext4-dio-unwrit
root 104 2 0 0 c02d99f4 00000000 S loop0
root 123 2 0 0 bf04cec8 00000000 S mtk_stp_psm
root 124 2 0 0 bf04cec8 00000000 S mtk_stp_btm
root 125 2 0 0 bf04ccd4 00000000 S mtk_wmtd
root 126 2 0 0 c006f6b4 00000000 S fm_timer_wq
root 127 2 0 0 c006f6b4 00000000 S fm_eint_wq
system 130 1 1092 396 c03a3c2c 400b9318 S /system/bin/servicemanager
root 131 1 4532 1104 ffffffff 40135ac4 S /system/bin/vold
system 132 1 944 412 c02b7f8c 400870a8 S /system/bin/logwrapper
ccci 133 1 1468 596 bf1484ec 400da318 S /system/bin/ccci_fsd
system 134 1 948 368 bf144128 4012d0a8 S /system/bin/ccci_mdinit
root 135 1 1788 764 c0159a18 400ff2c4 S /system/bin/debuggerd
shell 136 1 3052 1284 ffffffff 40147ac4 S /system/bin/mobile_log_d
root 137 1 10016 1240 ffffffff 400e0ac4 S /system/bin/netd
shell 138 1 4608 888 ffffffff 40206470 S /system/bin/netdiag
system 141 1 40452 12396 ffffffff 400b2318 S /system/bin/surfaceflinger
system 142 132 1092 424 c0159a18 400de2c4 S /system/bin/6620_launcher
root 143 1 288552 41444 ffffffff 400ea43c S zygote
system 144 1 3320 580 ffffffff 400b4ac4 S /system/bin/hald
drm 145 1 19032 6716 ffffffff 4014b318 S /system/bin/drmserver
media 146 1 48236 9928 ffffffff 4013d318 S /system/bin/mediaserver
media 147 1 21040 6360 ffffffff 400bc318 S /system/bin/vtservice
system 148 1 4556 732 ffffffff 400d0318 S /system/bin/matv
bluetooth 149 1 1612 768 c0159a18 401782c4 S /system/bin/dbus-daemon
install 150 1 1120 540 c059aed8 4005a0a8 S /system/bin/installd
keystore 151 1 2148 964 c04e0e94 40090dc8 S /system/bin/keystore
gps 152 1 15780 1592 ffffffff 40102470 S /system/bin/mtk_agpsd
shell 153 1 1092 404 c0079120 400a6ac4 S /system/bin/batterywarning
root 159 1 16268 3568 ffffffff 400c9ac4 S /system/bin/atci_service
root 160 1 1236 496 c0159a18 4005b43c S /system/bin/atcid
system 161 1 4720 852 ffffffff 40112318 S /system/bin/dm_agent_binder
bluetooth 162 1 4484 1096 ffffffff 402eb43c S /system/bin/mtkbt
system 164 1 4704 812 ffffffff 40094318 S /system/bin/GoogleOtaBinder
root 166 1 14092 5020 ffffffff 400c4ac4 S /system/bin/em_svr
system 167 1 4660 800 ffffffff 400b0318 S /system/bin/nvram_agent_binder
system 169 1 1120 420 c0079120 4004fac4 S /system/bin/thermal
system 170 1 1088 396 c0079120 4010bac4 S /system/bin/thermald
root 174 1 1280 604 c02b7f8c 4008a0a8 S /system/bin/sh
root 178 1 4640 368 ffffffff 00018498 S /sbin/adbd
radio 417 1 16504 624 ffffffff 40067ac4 S /system/bin/gsm0710muxd
shell 418 1 5076 804 ffffffff 4009d128 S /system/bin/mdlogger
radio 509 1 30604 1284 ffffffff 400a8ac4 S /system/bin/rild
system 554 143 448000 60392 ffffffff 400ea318 S system_server
u0_a32 725 143 301012 25980 ffffffff 400eb24c S com.android.inputmethod.latin
radio 744 143 327000 35292 ffffffff 400eb24c S com.android.phone
system 749 143 298652 23600 ffffffff 400eb24c S com.mediatek.voicecommand
u0_a41 771 143 298940 23428 ffffffff 400eb24c S com.mediatek.bluetooth
u0_a33 788 143 327684 43792 ffffffff 400eb24c S com.android.launcher
u0_a11 802 143 308124 24724 ffffffff 400eb24c S com.google.process.location
u0_a11 833 143 311800 29308 ffffffff 400eb24c S com.google.process.gapps
u0_a42 1106 143 303580 23672 ffffffff 400eb24c S com.mediatek.mtklogger
system 1126 143 299136 22636 ffffffff 400eb24c S com.mediatek.atci.service
u0_a54 1447 143 324520 28344 ffffffff 400eb24c S com.android.vending
system 1480 143 298168 23868 ffffffff 400eb24c S com.mediatek.schpwronoff
u0_a45 1526 143 298052 23848 ffffffff 400eb24c S com.mediatek.appwidget.weather
u0_a44 1539 143 299376 24320 ffffffff 400eb24c S com.mediatek.weather
root 1742 2 0 0 c006f388 00000000 S kworker/u:3
root 1743 2 0 0 c006f388 00000000 S kworker/u:4
root 1839 2 0 0 c006f388 00000000 S kworker/0:1
system 1957 143 322144 35244 ffffffff 400eb24c S com.android.settings
root 2105 178 1628 1064 c0159a18 4014843c S logcat
u0_a62 2114 143 327356 47140 ffffffff 400eb24c S com.android.systemui
u0_a5 2264 143 367484 55736 ffffffff 400eb24c S com.android.browser
root 2350 2 0 0 c006f388 00000000 S kworker/0:2
u0_a64 2386 143 298180 24452 ffffffff 400eb24c S com.dewav.timewidget
root 2403 2 0 0 c016fb60 00000000 S flush-179:96
u0_a2 2409 143 326176 34404 ffffffff 400eb24c S android.process.acore
root 2428 2 0 0 c00d54f4 00000000 S migration/1
root 2429 2 0 0 c006f388 00000000 S kworker/1:0
root 2430 2 0 0 c005a2d8 00000000 S ksoftirqd/1
root 2431 2 0 0 c006f388 00000000 S kworker/1:1
u0_a17 2434 143 304800 25788 ffffffff 400eb24c S android.process.media
root 2455 178 1280 624 c0011564 40134ca4 S /system/bin/sh
root 2459 2455 1360 504 00000000 400fa0a8 R ps
比如關掉systemui:
adb shell 下:
kill 2114