下载具体的Android源代码

发布于 2024-11-06 06:18:57 字数 235 浏览 6 评论 0原文

我只是想知道如何下载特定版本的Android源代码。我已经尝试过以下命令

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

并且我能够下载姜饼2.3.4。不过,我还想下载 2.3.3。有谁可以告诉我正确的命令吗?有没有办法下载没有版本文件的源代码,因为我没有更改源代码和上传的计划?

I would just like to know how to download specific version of Android Source Code. I have already tried the following command

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

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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

安穩 2024-11-13 06:18:57

我能够使用以下命令下载 2.3.3:

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

感谢您的帮助。

I was able to download 2.3.3 by using the these commands:

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

Thanks for your help.

篱下浅笙歌 2024-11-13 06:18:57

尽管这个问题已经得到解答,但没有一个答案对我有用。我花了一段时间才弄清楚这一点,所以我想我会分享答案,因为它可能会减轻某人的痛苦。

要下载源代码,请转到 github 镜像,您可以下载一个 ZIP(请参见屏幕截图左侧的“下载 ZIP”按钮)并选择您想要的版本的标签。请参阅此屏幕截图。

在此处输入图像描述

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 it may save someone some pain.

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

enter image description here

倾城泪 2024-11-13 06:18:57

https://android.googlesource.com/platform/manifest 中没有 android-2.3.4_r1 标记 存储库。

例如,https://android.googlesource.com/platform/dalvik 存储库具有 android -2.3.4_r1 标签。您可以在 https://android.googlesource.com/platform/dalvik 上看到该标签/+参考。

综上所述,android-2.3.4_r1标签被标记在android存储库的一部分中。

如果您在 dalvik 上检查 android-2.3.4_r1 标记源代码,请尝试以下命令。

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

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

For example, https://android.googlesource.com/platform/dalvik repository has the android-2.3.4_r1 tag. You are able to see that tag on https://android.googlesource.com/platform/dalvik/+refs.

To sum up, the android-2.3.4_r1 tag is tagged in a part of android repositories.

If you check the android-2.3.4_r1 tagging source code on dalvik, try this commands as below.

repo init -u https://android.googlesource.com/platform/manifest
repo sync
cd dalvik
git checkout android-2.3.4_r1
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文