android compiling guides - to the mods

Discussion in 'Android Roms' started by sniffle, Apr 12, 2010.

  1. sniffle
    Offline

    sniffle Premium Member Premium Member Developer

    Joined:
    Apr 6, 2010
    Messages:
    291
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Birmingham AL
    ... nevermind
    Last edited: Apr 13, 2010
  2. jrummy16
    Offline

    jrummy16 Premium Member Theme Developer Premium Member Developer

    Joined:
    Jan 25, 2010
    Messages:
    1,213
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Orange County, CA
    That would be amazing.
  3. sniffle
    Offline

    sniffle Premium Member Premium Member Developer

    Joined:
    Apr 6, 2010
    Messages:
    291
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Birmingham AL
    it's not up to me it's just an offer...
  4. koush
    Offline

    koush Premium Member Premium Member Developer

    Joined:
    Mar 22, 2010
    Messages:
    128
    Likes Received:
    0
    Trophy Points:
    0
    I noticed that in your guide you are actually deleting the repos in ~/android/ and replacing them with other repos. You can do this correctly by editing ~/android/.repo/manifests/default.xml.
  5. Topsy
    Offline

    Topsy New Member

    Joined:
    Dec 28, 2009
    Messages:
    677
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Rio Rancho, New Mexico
    makes perfect sense when pointed out to me, sounds like they'd resync that way and grab the latest source from their various origins as well.

    that's awesome advice.
  6. sniffle
    Offline

    sniffle Premium Member Premium Member Developer

    Joined:
    Apr 6, 2010
    Messages:
    291
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Birmingham AL
    Thanks koush!! Ill add it in.

    On a kinda weird funny note, I opened a fortune cookie right before I was informed of your post saying I would soon be honored by someone I respect.
  7. koush
    Offline

    koush Premium Member Premium Member Developer

    Joined:
    Mar 22, 2010
    Messages:
    128
    Likes Received:
    0
    Trophy Points:
    0
    To clarify, when you do:
    repo init -u git@github.com:koush/android.git

    you are cloning that repo into .repo/manifests.

    You should fork the repo, make the changes, and push the changes to your own version of the manifest.

    That way when other developers repo init on your manifest, they get exactly what is on your system, without having to go through setup headaches themselves.
  8. R1Lover
    Offline

    R1Lover New Member

    Joined:
    Nov 6, 2009
    Messages:
    1,702
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Northern Ca
    I would love to see this happen..... :)
  9. Topsy
    Offline

    Topsy New Member

    Joined:
    Dec 28, 2009
    Messages:
    677
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Rio Rancho, New Mexico
    Ya i spent some time this weekend playing around with forks and committing changes, then pushing them to git.

    Merging seems a nightmare, but all your tips today should resolve most of it.
  10. sniffle
    Offline

    sniffle Premium Member Premium Member Developer

    Joined:
    Apr 6, 2010
    Messages:
    291
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Birmingham AL
    Ok, one question though, only problem I see is that it would download what I told it to be it cyanogens source, my source or joe schmoes source, it wouldn't leave them the freedom to choose what branch or tag that they wanted. Is there a way around this?
  11. koush
    Offline

    koush Premium Member Premium Member Developer

    Joined:
    Mar 22, 2010
    Messages:
    128
    Likes Received:
    0
    Trophy Points:
    0
    Use the revision attribute in the manifest to specify the branch or tag. Check my default.xml for example.
  12. sniffle
    Offline

    sniffle Premium Member Premium Member Developer

    Joined:
    Apr 6, 2010
    Messages:
    291
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Birmingham AL
    Thanks man really appreciate the tips one day ya might have to hear about my dream rom project, you might be interested :)
  13. Topsy
    Offline

    Topsy New Member

    Joined:
    Dec 28, 2009
    Messages:
    677
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Rio Rancho, New Mexico
    After looking over the default.xml i must say...hot damn....the possibilities with this are endless.