由于adb shell中的kill命令后面跟的参数是pid,因此先ps所有的应用程序:
adb在shell下:
ps
USER PID PPID VSIZE RSS WCHAN PC NAME
root 1 0 296 204 c008de04 0000c74c S /init
root 2 0 0 0 c004b334 00000000 S kthreadd
root 3 2 0 0 c003cf68 00000000 S ksoftirqd/0
root 4 2 0 0 c00486b8 00000000 S events/0
root 5 2 0 0 c00486b8 00000000 S khelper
root 10 2 0 0 c00486b8 00000000 S suspend
root 42 2 0 0 c00486b8 00000000 S kblockd/0
root 45 2 0 0 c00486b8 00000000 S cqueue
root 47 2 0 0 c016f13c 00000000 S kseriod
root 51 2 0 0 c00486b8 00000000 S kmmcd
root 96 2 0 0 c0065c7c 00000000 S pdflush
root 97 2 0 0 c0065c7c 00000000 S pdflush
root 98 2 0 0 c006990c 00000000 S kswapd0
root 100 2 0 0 c00486b8 00000000 S aio/0
root 268 2 0 0 c016c884 00000000 S mtdblockd
root 302 2 0 0 c0181200 00000000 S mmcqd
root 309 2 0 0 c00486b8 00000000 S rpciod/0
root 548 1 740 312 c0141bb0 afe0c1bc S /system/bin/sh
system 549 1 808 264 c01654b4 afe0c45c S /system/bin/servicemanager
root 550 1 848 392 c008e3f4 afe0c584 S /system/bin/vold
root 551 1 668 264 c0192c20 afe0cdec S /system/bin/debuggerd
radio 552 1 5392 684 ffffffff afe0cacc S /system/bin/rild
root 553 1 72432 20840 c008e3f4 afe0c584 S zygote
media 554 1 17720 3496 ffffffff afe0c45c S /system/bin/mediaserver
root 556 1 800 300 c01f3b04 afe0c1bc S /system/bin/installd
root 560 1 840 356 c00ae7b0 afe0d1dc S /system/bin/qemud
root 563 1 3332 152 ffffffff 0000e8c4 S /sbin/adbd
system 577 553 186652 24600 ffffffff afe0c45c S system_server
radio 617 553 106860 17432 ffffffff afe0d3e4 S com.android.phone
app_3 619 553 108804 19168 ffffffff afe0d3e4 S android.process.acore
app_15 643 553 95536 13220 ffffffff afe0d3e4 S com.android.mms
app_0 660 553 94292 12604 ffffffff afe0d3e4 S com.android.alarmclock
app_4 671 553 96440 13636 ffffffff afe0d3e4 S android.process.media
app_5 681 553 96556 13124 ffffffff afe0d3e4 S com.android.email
root 709 563 740 328 c003aa1c afe0d08c S /system/bin/sh
app_3 713 553 96328 12920 ffffffff afe0d3e4 S com.android.inputmethod.lat
in
app_9 720 553 94476 14524 ffffffff afe0d3e4 S com.android.music
root 726 709 884 336 00000000 afe0c1bc R ps
#
例如要关掉music
# kill 720
kill 720
# ps
ps
USER PID PPID VSIZE RSS WCHAN PC NAME
root 1 0 296 204 c008de04 0000c74c S /init
root 2 0 0 0 c004b334 00000000 S kthreadd
root 3 2 0 0 c003cf68 00000000 S ksoftirqd/0
root 4 2 0 0 c00486b8 00000000 S events/0
root 5 2 0 0 c00486b8 00000000 S khelper
root 10 2 0 0 c00486b8 00000000 S suspend
root 42 2 0 0 c00486b8 00000000 S kblockd/0
root 45 2 0 0 c00486b8 00000000 S cqueue
root 47 2 0 0 c016f13c 00000000 S kseriod
root 51 2 0 0 c00486b8 00000000 S kmmcd
root 96 2 0 0 c0065c7c 00000000 S pdflush
root 97 2 0 0 c0065c7c 00000000 S pdflush
root 98 2 0 0 c006990c 00000000 S kswapd0
root 100 2 0 0 c00486b8 00000000 S aio/0
root 268 2 0 0 c016c884 00000000 S mtdblockd
root 302 2 0 0 c0181200 00000000 S mmcqd
root 309 2 0 0 c00486b8 00000000 S rpciod/0
root 548 1 740 312 c0141bb0 afe0c1bc S /system/bin/sh
system 549 1 808 264 c01654b4 afe0c45c S /system/bin/servicemanager
root 550 1 848 392 c008e3f4 afe0c584 S /system/bin/vold
root 551 1 668 264 c0192c20 afe0cdec S /system/bin/debuggerd
radio 552 1 5392 684 ffffffff afe0cacc S /system/bin/rild
root 553 1 72432 20840 c008e3f4 afe0c584 S zygote
media 554 1 17720 3496 ffffffff afe0c45c S /system/bin/mediaserver
root 556 1 800 300 c01f3b04 afe0c1bc S /system/bin/installd
root 560 1 840 356 c00ae7b0 afe0d1dc S /system/bin/qemud
root 563 1 3332 152 ffffffff 0000e8c4 S /sbin/adbd
system 577 553 186648 24656 ffffffff afe0c45c S system_server
radio 617 553 106860 17528 ffffffff afe0d3e4 S com.android.phone
app_3 619 553 108804 19168 ffffffff afe0d3e4 S android.process.acore
app_15 643 553 95536 13220 ffffffff afe0d3e4 S com.android.mms
app_0 660 553 94292 12604 ffffffff afe0d3e4 S com.android.alarmclock
app_4 671 553 96440 13636 ffffffff afe0d3e4 S android.process.media
app_5 681 553 96556 13124 ffffffff afe0d3e4 S com.android.email
root 709 563 740 328 c003aa1c afe0d08c S /system/bin/sh
app_3 713 553 96328 12920 ffffffff afe0d3e4 S com.android.inputmethod.la
in
root 728 709 884 336 00000000 afe0c1bc R ps
#
posted on 2010-06-10 22:51
漂漂 阅读(17018)
评论(0) 编辑 收藏 引用