编译模块
android中的一个应用程序可以单独编译,编译后要重新生成system.img
在源码目录下执行
$ . build/envsetup.sh (.后面有空格)
就多出一些命令:
- croot: Changes directory to the top of the tree.
- m: Makes from the top of the tree.
- mm: Builds all of the modules in the current directory.
- mmm: Builds all of the modules in the supplied directories.
- cgrep: Greps on all local C/C++ files.
- jgrep: Greps on all local Java files.
- resgrep: Greps on all local res/*.xml files.
- godir: Go to the directory containing a file.
可以加—help查看用法
我们可以使用mmm来编译指定目录的模块,如编译联系人:
$ mmm packages/apps/Contacts/
编完之后生成两个文件:
out/target/product/generic/data/app/ContactsTests.apk
out/target/product/generic/system/app/Contacts.apk
可以使用
$ make snod
重新生成system.img,再运行模拟器
分享到:
相关推荐
freetype android 编译so库 支持 编译64位库
android编译.doc android编译.doc
如何单独编译Android源代码中的模块
Android编译过程详解
android编译系统makefile(Android.mk)写法 Android.mk文件首先需要指定LOCAL_PATH变量,用于查找...Android.mk中可以定义多个编译模块,每个编译模块都是以include $(CLEAR_VARS)开始 以include $(BUILD_XXX)结束。
PCL for Android 编译过程遇到的问题及办法。如有问题请留言
Android编译系统分析,odt格式的,用openoffice打开,介绍分析了Android的编译系统:原理和如何添加本地模块编译,怎样编译成动态库,静态库,可执行程序。
Ogre 19 Android 编译 Win7 vs2008 NDK
单独编译Android中的模块,并附上常见问题列表
本文主要讲解单独编译Android 源代码中的模块,这里对Android源码单独编译模块,做出了详细的步骤,希望能帮助研究Android 源代码的朋友
Ubuntu 环境安装 VirtualBox + XP环境搭建 Liunx 常用命令介绍 Android 源码结构分析 Android编译环境搭建 Android源码的获取和编译 MTK 6573(Android)编译命令介绍 ...如何在android源码中内置一个模块
包含android-tool.jar jd-gui.jar和dex2jar等常用android反编译工具
windows protobuf android 编译.doc
android 反编译工具.
对android的编译系统做了很详细的说明,很珍贵!
Android编译独立源代码
易语言模块反编译工具模块反编译.zip
android编译,手把手教你Android编译
Android codebase 都很大,编译一次都需要花很多时间,如果是preloader/lk/bootimage 还好, 但是Android 的话都是非常久。 实际上这个编译时间还是可以进一步缩短!