ANDROID Debugging Technology:
1) Ps Instruction
ls–l/proc/27/
Cat/proc/27/cmdline #cmdline文件表示了这个进程所在的命令行.
The Cat/proc/27/status #status document indicates information about the process being learned. #stat包含更多信息, but more difficult to read.
The Cat/proc/27/task #task file indicates the process information.
2) Vmstat View virtual memory statistics
3) Top statistics CPU consumption situation
4) Dumpstat Dumpsys
#adb Shell Dumpstat |grep CPU
5) DMESG
6) IOCTL
Ioctl–l 16–r/dev/graphics/fb0 0x4600
Android Dedicated debug command:
1) netcfg
2) Service
1. Service List
All running service for this machine is listed.
Service invocation:
Service Call phone <span style= "color: #FF0000;" >2</span> s16 "123"
Service call isms <span style= "color: #FF0000;" >4</span> s16 "12345678" s16 "s16" Hello world! "s16" "S16" "
3) am
# AM Start-n com.android.music/com.android.music.musicbrowseractivity
# AM Start-n com.android.music/com.android.music.videobrowseractivity
# AM Start-n com.android.music/com.android.music.mediaplaybackactivity
The camera startup method is:
# AM Start-n Com.android.camera/com.android.camera.camera
The Browser (browser) Startup method is:
# AM Start-n com.android.browser/com.android.browser.browseractivity
To start the browser:
Am Start-a android.intent.action.view-d http://www.google.cn/
Dial number:
Am Start-a android.intent.action.call-d tel:10086
Launch Google Map direct to Beijing:
Am Start-a Android.intent.action.VIEW geo:0,0?q=beijing
Appendix: Android Shell Table
Dumpcrash
Sh
Date
Am
Hciattach
Dd
Dumpstate
Sdptool
Cmp
Input
Logcat
Cat
Itr
ServiceManager
Dmsg
Monkey
Dbus-daemon
Df
Pm
Debug_tool
GetEvent
Svc
Flash_image
Getprop
Ssltest
Installd
hd
Debuggerd
Dvz
Id
Dhcpcd
Hostapd
Ifconfig
Hostapd_cli
Htclogkernel
Insmod
FillUp
Mountd
Ioctl
Linker
Qemud
Kill
Logwrapper
Radiooptions
ln
telnetd
Toolbox
Log
Iftop
Hcid
Lsmod
Mkdosfs
Route
Ls
Mount
SetProp
Mkdir
Mv
Sleep
Dumpsys
Notify
Setconsole
Service
Netstat
Smd
Playmp3
Printenv
Stop
Sdutil
Reboot
Top
Rild
Ps
Start
Dalvikvm
Renice
Umount
Dexopt
Rm
Vmstat
Surfaceflinger
RmDir
Wipe
App_process
Rmmod
Watchprops
MediaServer
Sendevent
Sync
System_server
Schedtop
Netcfg
Ping
chmod