android手机开发常用命令

来源:互联网 发布:数据库如何快速查询 编辑:程序博客网 时间:2024/04/24 05:54

1. adb 查看ip地址

#netcfg

#ping IP地址测试网络

需要root权限

2. adb 修改分区可读

#mount -o remount rw /system

3. adb pull文件权限问题(须要root权限)

#chown 664 filename

4. 下system/bin目录下有常用命令行工具

-rwxr-xr-x root     shell       57648 2011-11-23 22:56 BlobCache_test
-rwxr-xr-x root     shell       52904 2011-11-23 22:57 InputChannel_test
-rwxr-xr-x root     shell       53448 2011-11-23 22:57 InputDispatcher_test
-rwxr-xr-x root     shell       82400 2011-11-23 22:57 InputEvent_test
-rwxr-xr-x root     shell       74464 2011-11-23 22:57 InputPublisherAndConsum
-rwxr-xr-x root     shell      311532 2011-11-23 22:57 InputReader_test
-rwxr-xr-x root     shell       84460 2011-11-23 22:56 Looper_test
-rwxr-xr-x root     shell       48536 2011-11-23 22:56 ObbFile_test
-rwxr-xr-x root     shell       44476 2011-11-23 22:56 String8_test
-rwxr-xr-x root     shell       48764 2011-11-23 22:56 Unicode_test
-rwxr-xr-x root     shell       44320 2011-11-23 22:56 ZipFileRO_test
-rwxr-xr-x root     shell       97144 2011-11-23 22:56 adb
-rwxr-xr-x root     shell         191 2011-11-23 22:49 am
-rwxr-xr-x root     shell        9920 2011-11-23 22:57 app_process
-rwxr-xr-x root     shell       45952 2011-11-23 22:56 applypatch
-rwxr-xr-x root     shell      165764 2011-11-23 22:56 applypatch_static
-rwxr-xr-x root     shell       82972 2011-11-23 22:56 ash
-rwxr-xr-x root     shell        9780 2011-11-23 22:57 audioloop
-rwxr-xr-x root     shell         199 2011-11-23 22:49 bmgr
-rwxr-xr-x root     shell       23292 2011-11-23 22:57 bootanimation
-rwxr-xr-x root     shell         156 2011-11-23 22:49 bu
-rwxr-xr-x root     shell        5688 2011-11-23 22:56 bugreport
lrwxr-xr-x root     shell             2011-11-23 22:56 cat -> toolbox
-rwxr-xr-x root     shell       58928 2011-11-23 22:56 check_prereq
lrwxr-xr-x root     shell             2011-11-23 22:56 chmod -> toolbox
lrwxr-xr-x root     shell             2011-11-23 22:56 chown -> toolbox
lrwxr-xr-x root     shell             2011-11-23 22:56 cmp -> toolbox
-rwxr-xr-x root     shell        5696 2011-11-23 22:57 dalvikvm
lrwxr-xr-x root     shell             2011-11-23 22:56 date -> toolbox
lrwxr-xr-x root     shell             2011-11-23 22:56 dd -> toolbox
-rwxr-xr-x root     shell       22368 2011-11-23 22:56 debuggerd
-rwxr-xr-x root     shell        9820 2011-11-23 22:57 decoder
-rwxr-xr-x root     shell        9932 2011-11-23 22:57 dexopt
lrwxr-xr-x root     shell             2011-11-23 22:56 df -> toolbox
-rwxr-xr-x root     shell       61544 2011-11-23 22:56 dhcpcd
lrwxr-xr-x root     shell             2011-11-23 22:56 dmesg -> toolbox
-rwxr-xr-x root     shell       42876 2011-11-23 22:56 dumpstate
-rwxr-xr-x root     shell        9944 2011-11-23 22:57 dumpsys
-rwxr-xr-x root     shell        9912 2011-11-23 22:56 flash_image
-rwxr-xr-x root     shell       26876 2011-11-23 22:56 fsck_msdos
-rwxr-xr-x root     shell        5752 2011-11-23 22:56 gdbjithelper
-rwxr-xr-x root     shell      186112 2011-11-23 22:49 gdbserver
lrwxr-xr-x root     shell             2011-11-23 22:56 getevent -> toolbox
lrwxr-xr-x root     shell             2011-11-23 22:56 getprop -> toolbox
-rwxr-xr-x root     shell        9832 2011-11-23 22:56 gzip
lrwxr-xr-x root     shell             2011-11-23 22:56 hd -> toolbox
lrwxr-xr-x root     shell             2011-11-23 22:56 id -> toolbox
lrwxr-xr-x root     shell             2011-11-23 22:56 ifconfig -> toolbox
lrwxr-xr-x root     shell             2011-11-23 22:56 iftop -> toolbox
-rwxr-xr-x root     shell         194 2011-11-23 22:49 ime
-rwxr-xr-x root     shell         201 2011-11-23 22:49 input
lrwxr-xr-x root     shell             2011-11-23 22:56 insmod -> toolbox
-rwxr-xr-x root     shell       22620 2011-11-23 22:56 installd
lrwxr-xr-x root     shell             2011-11-23 22:56 ioctl -> toolbox
lrwxr-xr-x root     shell             2011-11-23 22:56 ionice -> toolbox
-rwxr-xr-x root     shell      179236 2011-11-23 22:56 ip6tables
-rwxr-xr-x root     shell      184920 2011-11-23 22:56 iptables
-rwxr-xr-x root     shell       10308 2011-11-23 22:56 keystore
-rwxr-xr-x root     shell        5808 2011-11-23 22:56 keystore_cli
lrwxr-xr-x root     shell             2011-11-23 22:56 kill -> toolbox
-rwxr-xr-x root     shell       39660 2011-11-23 22:56 linker
lrwxr-xr-x root     shell             2011-11-23 22:56 ln -> toolbox
lrwxr-xr-x root     shell             2011-11-23 22:56 log -> toolbox
-rwxr-xr-x root     shell       14084 2011-11-23 22:56 logcat
-rwxr-xr-x root     shell        9900 2011-11-23 22:56 logwrapper
lrwxr-xr-x root     shell             2011-11-23 22:56 ls -> toolbox
lrwxr-xr-x root     shell             2011-11-23 22:56 lsmod -> toolbox
lrwxr-xr-x root     shell             2011-11-23 22:56 lsof -> toolbox
-rwxr-xr-x root     shell        5616 2011-11-23 22:57 mediaserver
lrwxr-xr-x root     shell             2011-11-23 22:56 mkdir -> toolbox
-rwxr-xr-x root     shell         217 2011-11-23 22:49 monkey
lrwxr-xr-x root     shell             2011-11-23 22:56 mount -> toolbox
-rwxr-xr-x root     shell       18444 2011-11-23 22:56 mtpd
lrwxr-xr-x root     shell             2011-11-23 22:56 mv -> toolbox
lrwxr-xr-x root     shell             2011-11-23 22:56 nandread -> toolbox
-rwxr-xr-x root     shell        5676 2011-11-23 22:56 ndc
-rwxr-s--- root     inet         5820 2011-11-23 22:56 netcfg
-rwxr-xr-x root     shell       52204 2011-11-23 22:56 netd
lrwxr-xr-x root     shell             2011-11-23 22:56 netstat -> toolbox
lrwxr-xr-x root     shell             2011-11-23 22:56 newfs_msdos -> toolbox
lrwxr-xr-x root     shell             2011-11-23 22:56 notify -> toolbox
-rwxr-xr-x root     shell       32772 2011-11-23 22:57 omx_tests
-rwxr-sr-x root     net_raw     26768 2011-11-23 22:56 ping
-rwxr-xr-x root     shell       22668 2011-11-23 22:56 ping6
-rwxr-xr-x root     shell         191 2011-11-23 22:49 pm
-rwxr-xr-x root     shell      135588 2011-11-23 22:56 pppd
lrwxr-xr-x root     shell             2011-11-23 22:56 printenv -> toolbox
lrwxr-xr-x root     shell             2011-11-23 22:56 ps -> toolbox
-rwxr-xr-x root     shell        5652 2011-11-23 22:56 qemu-props
-rwxr-xr-x root     shell        9860 2011-11-23 22:56 qemud
lrwxr-xr-x root     shell             2011-11-23 22:56 r -> toolbox
-rwxr-xr-x root     shell      167024 2011-11-23 22:56 racoon
-rwxr-xr-x root     shell        5552 2011-11-23 22:56 radiooptions
lrwxr-xr-x root     shell             2011-11-23 22:56 reboot -> toolbox
-rwxr-xr-x root     shell       10224 2011-11-23 22:57 record
-rwxr-xr-x root     shell       14328 2011-11-23 22:57 recordvideo
-rwxr-xr-x root     shell      344672 2011-11-23 22:56 recovery
lrwxr-xr-x root     shell             2011-11-23 22:56 renice -> toolbox
-rwxr-xr-x root     shell        9940 2011-11-23 22:57 rild
lrwxr-xr-x root     shell             2011-11-23 22:56 rm -> toolbox
lrwxr-xr-x root     shell             2011-11-23 22:56 rmdir -> toolbox
lrwxr-xr-x root     shell             2011-11-23 22:56 rmmod -> toolbox
lrwxr-xr-x root     shell             2011-11-23 22:56 route -> toolbox
-rwsr-s--- root     shell       64096 2011-11-23 22:56 run-as
-rwxr-xr-x root     shell        5524 2011-11-23 22:56 schedtest
lrwxr-xr-x root     shell             2011-11-23 22:56 schedtop -> toolbox
-rwxr-xr-x root     shell        5756 2011-11-23 22:57 screencap
-rwxr-xr-x root     shell       34820 2011-11-23 22:56 screenshot
-rwxr-xr-x root     shell       14056 2011-11-23 22:56 sdcard
lrwxr-xr-x root     shell             2011-11-23 22:56 sendevent -> toolbox
-rwxr-xr-x root     shell        5584 2011-11-23 22:57 sensorservice
-rwxr-xr-x root     shell        9988 2011-11-23 22:57 service
-rwxr-xr-x root     shell       10080 2011-11-23 22:56 servicemanager
lrwxr-xr-x root     shell             2011-11-23 22:56 setconsole -> toolbox
lrwxr-xr-x root     shell             2011-11-23 22:56 setprop -> toolbox
-rwxr-xr-x root     shell       26916 2011-11-23 22:57 sf2
lrwxr-xr-x root     shell             2011-11-23 22:56 sh -> ash
-rwxr-xr-x root     shell       10920 2011-11-23 22:56 showlease
-rwxr-xr-x root     shell        9728 2011-11-23 22:56 simg2img
-rwxr-xr-x root     shell       98892 2011-11-23 22:57 skia_test
lrwxr-xr-x root     shell             2011-11-23 22:56 sleep -> toolbox
lrwxr-xr-x root     shell             2011-11-23 22:56 smd -> toolbox
-rwxr-xr-x root     shell       40100 2011-11-23 22:57 stagefright
lrwxr-xr-x root     shell             2011-11-23 22:56 start -> toolbox
lrwxr-xr-x root     shell             2011-11-23 22:56 stop -> toolbox
-rwxr-xr-x root     shell       31364 2011-11-23 22:57 stream
-rwxr-xr-x root     shell        5584 2011-11-23 22:57 surfaceflinger
-rwxr-xr-x root     shell         192 2011-11-23 22:49 svc
lrwxr-xr-x root     shell             2011-11-23 22:56 sync -> toolbox
-rwxr-xr-x root     shell        5564 2011-11-23 22:57 system_server
-rwxr-xr-x root     shell        9840 2011-11-23 22:57 testid3
-rwxr-xr-x root     shell      103248 2011-11-23 22:56 toolbox
lrwxr-xr-x root     shell             2011-11-23 22:56 top -> toolbox
lrwxr-xr-x root     shell             2011-11-23 22:56 touch -> toolbox
lrwxr-xr-x root     shell             2011-11-23 22:56 umount -> toolbox
-rwxr-xr-x root     shell      202944 2011-11-23 22:56 updater
lrwxr-xr-x root     shell             2011-11-23 22:56 uptime -> toolbox
-rwxr-xr-x root     shell        5680 2011-11-23 22:56 vdc
lrwxr-xr-x root     shell             2011-11-23 22:56 vmstat -> toolbox
-rwxr-xr-x root     shell       64268 2011-11-23 22:56 vold
lrwxr-xr-x root     shell             2011-11-23 22:56 watchprops -> toolbox
lrwxr-xr-x root     shell             2011-11-23 22:56 wipe -> toolbox



原创粉丝点击