scp
root@server:/home/root/test.png .
----------------------------------
查找文件内容
find -iname "*status*.java" |xargs grep phonestatusbar -in
先通过find查找对应的文件,然后只在这些文件中查找内容,效率比较高
PS:android默认提供了查找的函数 build/envsetup.sh
function jgrep()
{
find . -name .repo -prune -o -name .git -prune -o -type f -name "*\.java" -print0 | xargs -0 grep --color -n "$@"
}
function cgrep()
{
find . -name .repo -prune -o -name .git -prune -o -type f \( -name '*.c' -o -name '*.cc' -o -name '*.cpp' -o -name '*.h' \) -print0 | xargs -0 grep --color -n "$@"
}
function resgrep()
{
for dir in `find . -name .repo -prune -o -name .git -prune -o -name res -type d`; do find $dir -type f -name '*\.xml' -print0 | xargs -0 grep --color -n "$@"; done;
}
----------------------------------
统计个数 ls *.apk |wc -l
readelf 可以读取so文件中的一些内容 类似的有 objdump nm 命令