Android学习第二篇;模块化编译
来源:互联网 发布:淘宝店铺装修素材图 编辑:程序博客网 时间:2024/05/20 13:40
在学习android源码的过程中,肯定需要修改源码并查看效果
如果每次都make则太费时
此时使用mmm命令
假设修改了frameworks/base中某个文件
首先mmm frameworks/base/
再make snod
再emulator就可以看出效果了,但是这个方法只能在第一次make之后才能发挥作用,用完之后就不产生效果了。目前正在找其他办法解决
解决明明修改了代码,在mmm模块化编译时就是无法将编译的内容更新到系统上的问题
首先明确修改的代码位置
比如,修改AndroidRuntime.cpp在frameworks/base/core/jin/AndroidRuntime.cpp
进入该目录,执行
mm
退回根目录,执行
make snod
再执行emulator
可以看到效果,亲测可行
列出部分命令
- croot - change directory to the top of the tree
- m - execute 'make' from the top of the tree (even if your current directory is somewhere else)
- mm - builds all of the modules in the current directory
- mmm <dir1> ... - build all of the modules in the supplied directories
- cgrep <pattern> - grep on all local C/C++ files
- jgrep <pattern> - grep on all local Java files
- resgrep <pattern> - grep on all local res/*.xml files
- godir <filename> - go to the directory containing a file
- make sdk - build the tools that are part of an SDK (adb, fastboot, etc.)
- make snod - build the system image from the current software binaries
- make services
- make runtime
- make droid - make droid is the normal build.
- make all - make everything, whether it is included in the product definition or not
- make clean - remove all built files (prepare for a new build). Same as rm -rf out/<configuration>/
- make modules - shows a list of submodules that can be built (List of all LOCAL_MODULE definitions)
- make <local_module> - make a specific module (note that this is not the same as directory name. It is the LOCAL_MODULE definition in the Android.mk file)
- make clean-<local_module> - clean a specific module
- make bootimage TARGET_PREBUILT_KERNEL=/path/to/bzImage - create a new boot image with custom bzImage
0 0
- Android学习第二篇;模块化编译
- Android模块化编译
- Android模块化编译
- Android学习之模块化过程多渠道编译详解
- android源码模块化编译整理
- myOA模块化设计-第二篇
- Android模块化编译的方法详解
- Android 模块化编译的一些问题解决方案
- 在Android系统中模块化编译驱动程序
- Nginx学习第二篇:编译安装Nginx
- android学习教程 第二期:安卓的编译方式
- Android学习--App模块化及工程扩展
- Android学习--App模块化及工程扩展
- 源代码编译+模块化编译
- Android模块化与组件化--多模块区分编译
- android模块化
- Android模块化
- tomcat原理及实现-----tomcat模块模块化(第二篇)
- mark----systemmap解析
- textView展开收回
- JavaSE基础篇(四)
- angular directive详解之transclude
- 国内无线频谱资源分配图集
- Android学习第二篇;模块化编译
- Android中的MVC和MVP
- 微信jsapi获取用户地理位置接口开发(第八课)
- 微信公众号OAuth 点击菜单按钮 跳转页面授权 获取openid
- Android Studio中简单的设置-字体风格等
- mark----android光感距离感详解
- 关于Unity如何创建静态动画图片
- bccomp()比较两个数字的大小
- laravel lang多语言本地化处理