在源码树下搜寻某个包(.apk, .so, ...)的源码路径的命令(以libmedia为例):
find . -iname Android.mk -exec grep -i -H "LOCAL_MODULE.*=.*libmedia" {} \;
在源码树下搜寻某个驱动的命令:
find . -iname Makefile -exec grep -i -H "MODULE.*=.*8192cu" {} \;
找目录:
find -iname widget -type d
Regular Expression Basic Syntax Reference http://www.regular-expressions.info/reference.html