2010年10月22日 星期五

使用Eclipse開發Android原始碼, 製作AOSP (Nexus One)

開發平台: Linux or Mac OSX, 以下用Mac OSX為例:

官方網站說明:
https://sites.google.com/a/android.com/opensource/using-eclipse

1.下載原始碼

Android原始碼位置: http://android.git.kernel.org/


2. 設定 eclipse



  • 編輯 eclipse.ini
    • -Xms128m
    • -Xmx512m
    • -XX:MaxPermSize=256m
  • 把Android sources 的formatting.xml和android.importorder導入eclipse
  • 把Android sources 導入至 eclipse
  • ./envsetup.sh

    <<待續>>


3. 編譯原始碼




4. 燒錄image至 Nexus One



沒有留言:

張貼留言