Hi,
I have just started with platform development, so these may sound silly
questions. I tried googling, but couldn't find satisfactory answer.

I downloaded android source code by referring this. I followed all the
steps & used

repo init -u https://android.googlesource.com/platform/manifest -b
android-4.0.3_r1

But then there was not much space left on that partition, so I moved
downloaded code to another partition using rsync.

*(Q1)* How do I list all the available branches?
$ git branch
fatal: Not a git repository (or any of the parent directories): .git

$ repo branches
(no branches)
$ cd .repo/manifests
$ git branch -r
Please see attached file "all_branches.txt"

*(Q2)* Now if I want to develop for say ICS version, how should I do that?
By switching to branch android-4.0.3_r1?
To get a general idea I did something like this:

$ repo forall -c git checkout master

Switched to a new branch 'master'
Branch master set up to track remote branch master from aosp.
...
...

$ repo forall -c git checkout android-4.0.3_r1

...
...
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

git checkout -b new_branch_name

HEAD is now at a8eea50... merge in ics-mr1-release history after reset to
ics-mr1
Note: checking out 'android-4.0.3_r1'.


$ repo forall -c git checkout froyo

...
...
Previous HEAD position was 576359c... Import revised translations. DO NOT
MERGE
Branch froyo set up to track remote branch froyo from aosp.
Switched to a new branch 'froyo'
error: pathspec 'froyo' did not match any file(s) known to git.
error: pathspec 'froyo' did not match any file(s) known to git.
Checking out files: 100% (30831/30831), done.
Previous HEAD position was 02ec58d... Merge "Update tradefed prebuilt to
fix emulator support." into ics-mr1
Branch froyo set up to track remote branch froyo from aosp.
Switched to a new branch 'froyo'

- Can anyone explain me these outputs?


Now
$ repo branches
Please see file "repo_branch.txt" for output

Thank you.

--
You received this message because you are subscribed to the Google Groups "android-platform" group.
To view this discussion on the web visit https://groups.google.com/d/msg/android-platform/-/O99h1d4hZQQJ.
To post to this group, send email to android-platform@googlegroups.com.
To unsubscribe from this group, send email to android-platform+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-platform?hl=en.

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupandroid-platform @
categoriesandroid
postedMar 2, '12 at 7:07p
activeMar 2, '12 at 7:07p
posts1
users1
websiteandroid.com

1 user in discussion

AndUser: 1 post

People

Translate

site design / logo © 2022 Grokbase