您的位置:首页 > 移动开发 > Android开发

android常用命令

2014-09-27 16:15 162 查看
ps -ef|grep nginx

ps -ef|grep cloud

kill -9 进程号199.101

taskkill /f /pid 2892

tail -f filename

svn://183.62.156.65:39090

查看APK包的packageName、versionCode、applicationLabel、launcherActivity、permission等各种详细信息

aapt dump badging < file.apk>

aapt dump xmltree <file_path.apk> res/***.xml

adb uninstall com.android.paydemo

dx --dex --output=classes.dex HPay1.3.4.jar

adb shell setprop log.tag.app1VERBOSE

adb shell setprop log.tag.app VERBOSE



adb logcat -v time > text.txt

adb start-server

adb nodaemon server

netstat -ano | findstr "5037"

你也可以在adb shell前执行am命令:

adb shell am start -a android.intent.action.VIEW

关于一些am命令的介绍:

start [options] <INTENT> :启动activity通过指定的intent参数。具体intent参数参照官方表。

startservice [options] <INTENT> : 启动service通过指定的intent参数。具体intent跟start命令参数相同。

force-stop <PACKAGE> : 强制停止指定的package包应用

adb shell pm uninstall com.example.MyApp

关于一些pm命令的介绍:

查看某端口被某个进程占用

#lsof -i :8080
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: