Download specific Android source code

I just wanted to know how to download a specific version of the Android Source Code. I already tried the following command

repo init -u https://android.googlesource.com/platform/manifest repo sync 

and I was able to download ginger 2.3.4. However, I would also like to download 2.3.3. Is there anyone who can tell me the right command? Is there a way to download the source code without version files because I have no plans to change the source code and download?

+6
source share
4 answers

I was able to download 2.3.3 with the following commands:

 repo init -u git://android.git.kernel.org/platform/manifest.git -b android-2.3.3_r1 repo sync 

Thanks for your help.

+8
source

You can download the source code from http://grepcode.com/snapshot/repository.grepcode.com/java/ext/com.google.android/android/2.3.4_r1

Other versions are also available. You can search for them on this site.

+14
source

There is no android-2.3.4_r1 tag in the https://android.googlesource.com/platform/manifest repository.

For example, https://android.googlesource.com/platform/dalvik in the repository there is an android-2.3.4_r1 tag. You can see this tag at https://android.googlesource.com/platform/dalvik/+refs .

To summarize, the android-2.3.4_r1 tag is tagged in the android repository part.

If you check the source code of the android-2.3.4_r1 tags on dalvik, try the following commands.

 repo init -u https://android.googlesource.com/platform/manifest repo sync cd dalvik git checkout android-2.3.4_r1 
+3
source

Although this question has been answered, none of the answers work for me. It took me a while to figure this out, so I thought I would share the answer, as this could save someone the pain.

To download the source code, go to the github mirror, you can download the ZIP (see the "Download ZIP" button to the left of the screen) and select the tag for the version you need. See this screenshot.

enter image description here

+3
source

Source: https://habr.com/ru/post/887683/


All Articles