Reproduced Android Development common debugging technology record

Source: Internet
Author: User

  • 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.