码迷,mamicode.com
首页 > 其他好文 > 详细

命令相关

时间:2016-01-27 21:29:33      阅读:152      评论:0      收藏:0      [点我收藏+]

标签:

存档:

=======================================
                                         R E P O
=======================================

单个project下载:

repo sync -qcj8 [project name]

git clone ssh://hongguangkim@163.com:[port]/[project name] -b [branch_name]

----------------------------------------------------------------------------

Registering Public key:

  1) ssh-keygen -t rsa

  2) cat ~/.ssh/id_rsa.pub (copy contents)

  3) log on to gerrit site

Public Key Check
 ssh -p [port] [Gerrit site]

----------------------------------------------------------------------------

repo init  。。。-b 。。。-m。。。

repo sync --no-tags -qcj8

repo start [branchName] --all

----------------------------------------------------------------------------

cd android

source ./build/envsetup.sh

lunch [product]-userdebug

m -j4

----------------------------------------------------------------------------

1. modem build【这不是命令】

2. make image【这不是命令】

=======================================
                                         S H E L L
=======================================

搜索mk文件同时查找内容忽略.git等目录

find ./ -name "*.mk"|xargs grep -rn -i "text"

grep -rn -i "text" --exclude-dir=.git  --exclude-dir=out*

当前目录中搜索文件

find . -maxdepth 1 -name *.mk

排除.git,out*目录>>追加

find ./ -path ‘./out*‘  -prune -o -type f  -name ‘*.mk‘ -print > find_log.txt

查看1小时内修改的文件

find ./ -type f -mtime -1

查看操作记录

history

=======================================
                                         A D B
=======================================

内存分区查看

adb shell df

某一个进程内存使用情况

dumpsys meminfo <PID> or <package_name>

查看cpu使用情况

top -m 10 -s cpu(-m显示最大数量,-s 按指定行排序)

查看已安装程序列表

adb shell pm list package adb shell dumpsys package

启动Activity

adb shell am start -n 包名/包名+类名  

获取设备的ID和序列号

adb get-product adb get-serialno

显示当前进程内存使用情况

adb shell free

显示进程的自身标识信息

adb shell ps

 

命令相关

标签:

原文地址:http://www.cnblogs.com/hongguang-kim/p/5164317.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!