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WRubW1pbmpqZmZwbmRjYmRpYmVsZ2FtIjoiVGhpbiBTY3JvbGwgQmFyIiwiZnBkbmpkbGJkbWlmb29jZWRoa2lnaGhsYmNoYmlpa2wiOiLlub/lkYrnu4jnu5PogIUifSwiYWR2YW5jZWRPcHRpb25zIjp7ImFwcHNTdXBwb3J0IjoiZmFsc2UiLCJuZXdFeHRlbnNpb25BY3Rpb24iOiJhc2siLCJzaG93TG9hZEFsbEJ0biI6InRydWUifX0=

Eclipse

插件

* ADT
> http://dl-ssl.google.com/android/eclipse
* CDT
> http://download.eclipse.org/tools/cdt/releases/galileo/

Android

源码下载

源码阅读

需要java1.7的环境编译,shell需要切换到bash下

切换shell的命令
chsh -s /bin/bash

首先需要在android源码根目录执行. build/envsetup.sh 脚本设置环境

  • m:编译所有的模块
  • mm:编译当前目录下的模块,当前目录下要有Android.mk文件
  • mmm:编译指定路径下的模块,指定路径下要有Android.mk文件

下面举个例子说明,假设我要编译android下的\hardware\libhardware_legacy\power模块,当前目录为源码根目录,方法如下:

  1. . build/envsetup.sh
  2. mmm hardware/libhardware_legacy/power/

或者 :

  1. . build/envsetup.sh
  2. cd hardware/libhardware_legacy/power/
  3. mm

    使用Android Studio查看Android Lollipop源码 (open)