今天看到身边的同事在使用croot命令,可以直接跳转到Android根目录,遂产生了好奇,这可是我实际开发中的一个痛点啊,还是孤陋寡闻了。赶紧的,研究研究~
在Android源码根目录执行完 source build/envsetup.sh
命令后,在当前目录在执行hmm
命令可查看到该source命令新增的一系列命令工具,这些工具可以大大提高我们在Android代码上的开发效率,还发现Android高版本比低版本新增了些命令,看来Android也一直为工程师的开发效率操心那,强烈推荐~
calm.xia@shand09[17:53:11]:~/10_automotive$ hmm
Run "m help" for help with the build system itself.
Invoke ". build/envsetup.sh" from your shell to add the following functions to your environment:
- lunch: lunch <product_name>-<build_variant>
Selects <product_name> as the product to build, and <build_variant> as the variant to
build, and stores those selections in the environment to be read by subsequent
invocations of 'm' etc.
- tapas: tapas [<App1> <App2> ...] [arm|x86|mips|arm64|x86_64|mips6