編譯 Android 原始碼

下載 Android Source Code

http://source.android.com/source/download.html

在 Setting up your machine 這裡
有教你怎麼設定好你的環境

假設大家都下載安裝好 ubuntu10.10 了
還沒下載請到這

http://www.ubuntu-tw.org/modules/tinyd0/

但是在新的版本中,預設 apt 都是裝 JDK6
但是我們看到 google 說要用 JDK5 來編

所以增加一下其他的位址
編輯 sources.list

vi /etc/apt/sources.list

加入以下兩行

deb http://us.archive.ubuntu.com/ubuntu jaunty multiverse
deb http://us.archive.ubuntu.com/ubuntu jaunty-updates multiverse

讓apt更新一下

apt-get update

現在可以裝 JDK5 了

apt-get install sun-java5-jdk sun-java5-plugin

接下來我們在按造 google 步驟

apt-get install git-core gnupg flex bison gperf libsdl-dev libesd0-dev libwxgtk2.6-dev build-essential zip curl libncurses5-dev zlib1g-dev

你有可能用 valgrind 來找安全性問題,我們有裝一下

apt-get install valgrind

接下來請把載回來的 android 原始碼解壓縮
進去 make,今天如果你的電腦是多 CPU 記得加個 j,如範例 -j 雙核心

make -j(核心數)

make -j2

編譯 Android Source Code

等等等…,現在一般的個人電腦大概要編 4 小時
差一點的可能會多很多我用舊筆電跑 12 小時
完以後在 /android_22/out/target/product/generic
會看到以下三個檔案

ramdisk.img
system.img
userdata.img

請將這3個檔案複製到你的 Android SDK
像我自己從android-8複製了一個 android-9
在把以下路徑的3個img換掉

C:\Labs\Android\AndroidSDK\platforms\android-9\images

你在開發時就可以使用自己編的 android 了
切來切去有點煩,全部改 Linux 開發好了

120 comments

  1. Unquestionably believe that which you stated. Your favorite reason appeared to be on the web the easiest thing to be aware of.
    I say to you, I definitely get irked while people consider worries that they plainly don’t know about.

    You managed to hit the nail upon the top and also defined out the whole thing without having side effect ,
    people can take a signal. Will likely be back to get
    more. Thanks

  2. Write more, thats all I have to say. Literally, it seems as though you relied
    on the video to make your point. You obviously know what youre talking about, why
    waste your intelligence on just posting videos to your blog when you could be giving
    us something enlightening to read?

  3. I have been exploring for a bit for any high quality articles
    or blog posts on this sort of house . Exploring
    in Yahoo I eventually stumbled upon this
    website. Reading this information So i’m satisfied to express that I have a very good uncanny feeling I discovered just what I needed.
    I so much indisputably will make certain to do not overlook this web site and give it a glance on a
    continuing basis.

  4. It’s the best time to make some plans for the future
    and it is time to be happy. I’ve read this post
    and if I could I desire to suggest you some interesting things
    or advice. Maybe you could write next articles referring to
    this article. I wish to read even more things about it!

  5. Great blog! Do you have any tips for aspiring writers?
    I’m planning to start my own website soon but I’m a little lost on everything.
    Would you advise starting with a free platform like WordPress
    or go for a paid option? There are so many choices out there that I’m totally overwhelmed ..
    Any recommendations? Thank you!

  6. First of all I want to say awesome blog! I had a quick question which I’d like to ask if you don’t mind.
    I was interested to know how you center yourself
    and clear your thoughts before writing. I have had difficulty
    clearing my thoughts in getting my ideas out. I do enjoy writing but it just seems like
    the first 10 to 15 minutes are generally lost just trying to figure out how
    to begin. Any suggestions or hints? Cheers!

  7. We are a group of volunteers and starting a brand new scheme
    in our community. Your website provided us with valuable information to work on. You have done an impressive process and our entire neighborhood can be
    grateful to you.

  8. First of all I would like to say superb blog! I had a quick question in which I’d like to ask if you don’t mind.
    I was curious to find out how you center yourself and clear your thoughts before writing.
    I have had trouble clearing my mind in getting my thoughts
    out there. I truly do enjoy writing but it just seems like the first 10 to 15 minutes are wasted simply just trying to figure out how to begin. Any ideas or tips?

    Kudos!

  9. Right here is the right site for anyone who would like to understand this topic.
    You understand so much its almost tough to argue with you (not
    that I actually will need to…HaHa). You certainly put a
    new spin on a topic that’s been discussed for decades.
    Excellent stuff, just great!

  10. I love your blog.. very nice colors & theme.
    Did you design this website yourself or did you hire someone to do it for you?

    Plz answer back as I’m looking to design my own blog and would
    like to know where u got this from. cheers

  11. You actually make it seem really easy along
    with your presentation however I in finding this topic to be really one thing which I believe I would never understand.

    It kind of feels too complicated and very large for me.
    I am looking ahead in your subsequent put up, I’ll
    try to get the cling of it!

  12. I blog frequently and I genuinely appreciate your information. The article has really peaked my interest.
    I’m going to bookmark your website and keep checking for new information about once
    per week. I opted in for your RSS feed too.

  13. Hey there! I could have sworn I’ve been to this blog before but after checking through some of the
    post I realized it’s new to me. Anyhow, I’m definitely delighted I found it and
    I’ll be book-marking and checking back often!

  14. Hey there! I know this is kinda off topic however I’d figured I’d ask.

    Would you be interested in trading links or maybe guest
    writing a blog post or vice-versa? My blog covers a lot of the same subjects as yours and I
    feel we could greatly benefit from each other. If you happen to be interested
    feel free to send me an email. I look forward to hearing from
    you! Wonderful blog by the way!

  15. hello!,I like your writing very much! proportion we keep up a correspondence
    more approximately your article on AOL? I need a specialist
    in this space to resolve my problem. May be that is you!
    Looking ahead to peer you.

  16. I loved as much as you will receive carried out right here.
    The sketch is tasteful, your authored material stylish.
    nonetheless, you command get bought an edginess over that you wish be delivering the following.
    unwell unquestionably come more formerly again since exactly the same nearly very often inside case you shield
    this hike.

  17. Hello! Quick question that’s totally off topic. Do you know how to make your site mobile friendly?
    My site looks weird when browsing from my iphone4. I’m trying to find a template or plugin that might be able
    to fix this problem. If you have any recommendations, please
    share. Thank you!

  18. Howdy, i read your blog occasionally and i
    own a similar one and i was just wondering if you get a lot of spam responses?
    If so how do you stop it, any plugin or anything you can advise?
    I get so much lately it’s driving me crazy so any help
    is very much appreciated.

  19. Interesting blog! Is your theme custom made or did you
    download it from somewhere? A design like yours with a few simple adjustements would really make my blog stand out.
    Please let me know where you got your design. Cheers

  20. Wonderful work! That is the type of info that are meant to be
    shared around the net. Disgrace on Google for now not positioning this publish higher!
    Come on over and talk over with my website . Thank you =)

  21. Hi there! I know this is kinda off topic nevertheless I’d figured
    I’d ask. Would you be interested in trading links or maybe guest authoring a blog post or vice-versa?

    My blog goes over a lot of the same topics
    as yours and I believe we could greatly benefit from each other.
    If you might be interested feel free to shoot me an e-mail.

    I look forward to hearing from you! Terrific
    blog by the way!

  22. Excellent beat ! I wish to apprentice at the same time as you amend
    your site, how can i subscribe for a blog web site?

    The account aided me a appropriate deal. I have been tiny bit acquainted of this your broadcast offered shiny transparent idea

  23. Hey! This is my first visit to your blog!
    We are a team of volunteers and starting a new project in a community in the same niche.
    Your blog provided us beneficial information to work on. You have done
    a wonderful job!

  24. Appreciating the commitment you put into your website and in depth information you offer.
    It’s great to come across a blog every once in a while that isn’t the same old rehashed
    information. Excellent read! I’ve saved your site and I’m adding
    your RSS feeds to my Google account.

  25. Great blog! Do you have any tips for aspiring writers?
    I’m planning to start my own site soon but I’m a little
    lost on everything. Would you suggest starting with a free
    platform like WordPress or go for a paid option? There are so many choices out there that I’m totally confused ..
    Any recommendations? Thanks a lot!

  26. My developer is trying to persuade me to move to .net from PHP.
    I have always disliked the idea because of the costs.
    But he’s tryiong none the less. I’ve been using Movable-type on various websites for about a year and am anxious about switching to another platform.

    I have heard great things about blogengine.net. Is there a
    way I can transfer all my wordpress content into it?
    Any help would be really appreciated!

  27. Having read this I thought it was rather enlightening. I appreciate you spending some time and effort to put this short article together. I once again find myself spending a significant amount of time both reading and leaving comments. But so what, it was still worth it!

  28. gгeat issues altogether, ʏou simply received ɑ neԝ reader.

    Ԝhat couⅼd you recommend in reցards tо your post that you made a feѡ dаys ago?

    Any certɑіn?

  29. Have you ever thought about adding a little bit more than just your articles?

    I mean, what you say is important and everything.
    Nevertheless just imagine if you added some great pictures or videos to give your posts more, “pop”!
    Your content is excellent but with images and
    clips, this website could definitely be one of the very best in its niche.
    Excellent blog!

  30. Good day! This is my 1st comment here so I
    just wanted to give a quick shout out and tell you I really enjoy
    reading your blog posts. Caan you recommend anyy other blogs/websites/forums that deal with the same subjects?
    Thanks for your time!

  31. I was curious if you ever considered changing
    the layout of your blog? Its very well written; I love what youve
    got to say. But maybe you could a little more in the way of content so people could
    connect with it better. Youve got an awful lot of text for only having 1 or two pictures.
    Maybe you could space it out better?

  32. This is very interesting, You’re a very skilled blogger.
    I’ve joind your feed and look forwad to seeking more of your fantastic post.
    Also, I have shared your wwebsite in my social networks!

  33. I really like what you guys are usually up too.

    This type of clever work and reporting! Keep
    up the good works guys I’ve incorporated you guys to my personal
    blogroll.

  34. Thankk you forr another magnificent article. Whsre else
    mmay just anyone get that kind of information in such a perfect method of writing?
    I’ve a presentation next week, annd I am on the look for such info.

  35. I lіke tһe helpful info ʏou provide in your articles.
    I will bolokmark ʏour blog ɑnd check again heгe regularly.
    I аm quite cerfain Ι will learn a lot of new stuff
    rіght here! Besst of luck for the neхt!

  36. Excellent weblog һere! Additionally your web site ⅼots up fаst!
    Wһat web host are yοu thee usee ߋf? Can I am
    getting your affiliate link оn youг host?
    Ι wish mʏ website loaded up as qᥙickly ass yoᥙrs lol

  37. Good day! This is my first comment here so I just wanted to
    give a quick shout out and tell you I truly enjoy reading your articles.

    Can you recommend any other blogs/websites/forums that
    deal with the same subjects? Thank you!

  38. Excellent weblog here! Additionally your website rather a lot up very fast!
    What host are you the usage of? Can I get your affiliate hyperlink to your host?
    I desire my site loaded up as quickly as yours lol

  39. Simply want to say your article is as amazing. The clearness in your post is just great and i could assume you’re an expert on this subject.
    Well with your permission allow me to grab
    your RSS feed to keep updated with forthcoming post.
    Thanks a million and please continue the gratifying work.

  40. Please let me know if you’re looking for a writer for your blog.
    You have some really good articles and I think I would be a good asset.

    If you ever want to take some of the load off,
    I’d really like to write some material for your blog in exchange for a link back to mine.
    Please shoot me an e-mail if interested. Many thanks!

  41. Hey There. I found your blog using msn. This is a very well
    written article. I’ll be sure to bookmark it and come back to read more of your
    useful information. Thanks for the post. I will certainly comeback.

  42. I think that what you wrote made a bunch of sense.
    But, what about this? suppose you added a little content?
    I ain’t saying your content is not good, but suppose you added
    a post title that makes people want more? I mean 編譯
    Android 原始碼 – Taien's blog is a little plain. You could look at Yahoo’s
    front page and watch how they create article titles to
    grab viewers to open the links. You might try adding a video or a
    pic or two to get readers interested about what you’ve got to say.
    Just my opinion, it could make your posts a little
    bit more interesting.

  43. I do trust all of the ideas you’ve presented for your post.

    They’re really convincing and can definitely work. Still, the posts are too brief
    for starters. May just you please lengthen them a bit from next
    time? Thank you for the post.

  44. It is the best time to make some plans for the long run and it is time to be happy.
    I have read this publish and if I may I want to recommend you few interesting issues or tips.
    Perhaps you could write next articles relating to
    this article. I desire to read more issues approximately it!

  45. Its like you read my mind! You seem to know so much about this, like you wrote the book
    in it or something. I think that you can do with a few pics to drive the message home a bit, but
    instead of that, this is magnificent blog.
    A fantastic read. I will certainly be back.

  46. Greetings from Ohio! I’m bored at work so I decided to browse your blog on my
    iphone during lunch break. I really like the info you provide here and can’t wait to take a look when I get home.
    I’m amazed at how fast your blog loaded on my phone .. I’m not even using WIFI, just 3G ..
    Anyways, good site!

  47. I absolutely love your blog and find almost all of your post’s to be exactly
    I’m looking for. Do you offer guest writers to write
    content for yourself? I wouldn’t mind writing a post or elaborating on many of
    the subjects you write related to here. Again, awesome blog!

  48. Quest bars cheap fitnesstipsnew1 quest bars cheap 516999410492780544 quest bars cheap
    Piece of writing writing is also a fun, if you know after that
    you can write if not it is difficult to write. Quest bars cheap fitnesstipsnew1 quest bars cheap 516999410492780544 quest bars cheap

  49. I have been browsing online more than three hours today, yet I never found any
    interesting article like yours. It is pretty worth enough for me.
    In my view, if all website owners and bloggers made good content as you did,
    the web will be much more useful than ever before.

  50. I love your blog.. very nice colors & theme. Did you design this website yourself or did you hire someone to do it for
    you? Plz respond as I’m looking to create my own blog and would like
    to find out where u got this from. kudos

  51. Yesterday, while I was at work, my cousin stole my iPad and tested
    to see if it can survive a twenty five foot drop, just so she can be a youtube sensation. My apple ipad is now broken and she has 83 views.
    I know this is entirely off topic but I had to share it
    with someone!

  52. You actually make it appear so easy together with your presentation however I to find this
    topic to be really one thing which I believe I would never understand.

    It seems too complicated and extremely vast for me.
    I am taking a look ahead for your subsequent put up, I will try to get the grasp
    of it!

  53. Wonderful goods from you, man. I’ve understand your stuff previous
    to and you are just too excellent. I really
    like what you have acquired here, really like what you are saying and the way in which you say it.
    You make it enjoyable and you still care for to keep it wise.
    I can not wait to read far more from you. This is actually a wonderful web
    site.

發表迴響

你的電子郵件位址並不會被公開。

*