Framework 开发起步知识记录

1. 编译源码命令 :linux进入android源码目录,终端输入: make -j4

  353  . build/envsetup.sh
  354  choosecombo 4 f12nad eng
  355  make clean
  356  make -j8 update-api 2>&1 | tee update-api.log
  357  make -k -j12 2>&1 | tee build.log
linux

2. 编译某个目录下的源码: android

linux进入android源码目录,终端输入: source build/envsetup.sh , 回车ubuntu

而后输入:mmm XXX目录路径。api

好比编译联系人:
mmm packages/apps/Contacts/
编完以后生成两个文件:
out/target/product/generic/data/app/ContactsTests.apk
out/target/product/generic/system/app/ Contacts.apkapp

编译出来的APK,但APK并不包含在system文件夹中,咱们可使用make snod 打包system文件夹,产生新的system.img。
 
3. 对模拟器操做system下面的文件,用cmd,里面输入:adb remount。 这样就能够操做了。
4. 从新设置linux的root密码命令: sudo passwd root 5. 设置ubuntu的软件源(网易的,速度比较快) deb http://mirrors.163.com/ubuntu/ lucid main universe restricted multiverse deb-src http://mirrors.163.com/ubuntu/ lucid main universe restricted multiverse deb http://mirrors.163.com/ubuntu/ lucid-security universe main multiverse restricted deb-src http://mirrors.163.com/ubuntu/ lucid-security universe main multiverse restricted deb http://mirrors.163.com/ubuntu/ lucid-updates universe main multiverse restricted deb http://mirrors.163.com/ubuntu/ lucid-proposed universe main multiverse restricted deb-src http://mirrors.163.com/ubuntu/ lucid-proposed universe main multiverse restricted deb http://mirrors.163.com/ubuntu/ lucid-backports universe main multiverse restricted deb-src http://mirrors.163.com/ubuntu/ lucid-backports universe main multiverse restricted deb-src http://mirrors.163.com/ubuntu/ lucid-updates universe main multiverse restricted
相关文章
相关标签/搜索