Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1576561
  • 博文数量: 239
  • 博客积分: 1760
  • 博客等级: 上尉
  • 技术积分: 1595
  • 用 户 组: 普通用户
  • 注册时间: 2011-01-08 23:53
文章分类

全部博文(239)

文章存档

2016年(1)

2015年(28)

2014年(53)

2013年(42)

2012年(50)

2011年(65)

分类: Android平台

2014-03-01 23:49:45

1、安装 git  、curl

点击(此处)折叠或打开

  1. sudo apt-get install git curl
2、安装 repo

点击(此处)折叠或打开

  1. mkdir ~/bin
  2. PATH=~/bin:$PATH
  3. curl > ~/bin/repo
  4. chmod a+x ~/bin/repo
3、指定源码下载目录

点击(此处)折叠或打开

  1. mkdir WORKING_DIRECTORY
  2. cd WORKING_DIRECTORY
4、下载git仓库Android清单

点击(此处)折叠或打开

  1. git clone
5、查看当前清单中的Android版本信息,可以看出当前默认获取的版本为 master

点击(此处)折叠或打开

  1. cd manifest
  2. git branch -a
  3. * master
  4. remotes/origin/HEAD -> origin/master
  5. remotes/origin/android-1.6_r1
  6. remotes/origin/android-1.6_r1.1
  7. remotes/origin/android-1.6_r1.2
  8. remotes/origin/android-1.6_r1.3
  9. remotes/origin/android-1.6_r1.4
  10. remotes/origin/android-1.6_r1.5
  11. remotes/origin/android-1.6_r2
  12. remotes/origin/android-2.0.1_r1
  13. remotes/origin/android-2.0_r1
  14. remotes/origin/android-2.1_r1
  15. remotes/origin/android-2.1_r2
  16. remotes/origin/android-2.1_r2.1p
  17. remotes/origin/android-2.1_r2.1p2
  18. remotes/origin/android-2.1_r2.1s
  19. remotes/origin/android-2.2.1_r1
  20. remotes/origin/android-2.2.1_r2
  21. remotes/origin/android-2.2.2_r1
  22. remotes/origin/android-2.2.3_r1
  23. remotes/origin/android-2.2.3_r2
  24. remotes/origin/android-2.2.3_r2.1
  25. remotes/origin/android-2.2_r1
  26. remotes/origin/android-2.2_r1.1
  27. remotes/origin/android-2.2_r1.2
  28. remotes/origin/android-2.2_r1.3
  29. remotes/origin/android-2.3.1_r1
  30. remotes/origin/android-2.3.2_r1
  31. remotes/origin/android-2.3.3_r1
  32. remotes/origin/android-2.3.3_r1.1
  33. remotes/origin/android-2.3.4_r0.9
  34. remotes/origin/android-2.3.4_r1
  35. remotes/origin/android-2.3.5_r1
  36. remotes/origin/android-2.3.6_r0.9
  37. remotes/origin/android-2.3.6_r1
  38. remotes/origin/android-2.3.7_r1
  39. remotes/origin/android-2.3_r1
  40. remotes/origin/android-4.0.1_r1
  41. remotes/origin/android-4.0.1_r1.1
  42. remotes/origin/android-4.0.1_r1.2
  43. remotes/origin/android-4.0.2_r1
  44. remotes/origin/android-4.0.3_r1
  45. remotes/origin/android-4.0.3_r1.1
  46. remotes/origin/android-4.0.4_r1
  47. remotes/origin/android-4.0.4_r1.1
  48. remotes/origin/android-4.0.4_r1.2
  49. remotes/origin/android-4.0.4_r2
  50. remotes/origin/android-4.0.4_r2.1
  51. remotes/origin/android-4.1.1_r1
  52. remotes/origin/android-4.1.1_r1.1
  53. remotes/origin/android-4.1.1_r2
  54. remotes/origin/android-4.1.1_r3
  55. remotes/origin/android-4.1.1_r4
  56. remotes/origin/android-4.1.1_r5
  57. remotes/origin/android-4.1.1_r6
  58. remotes/origin/android-4.1.1_r6.1
  59. remotes/origin/android-4.1.2_r1
  60. remotes/origin/android-4.2.1_r1
  61. remotes/origin/android-4.2.1_r1.1
  62. remotes/origin/android-4.2.1_r1.2
  63. remotes/origin/android-4.2.2_r1
  64. remotes/origin/android-4.2_r1
  65. remotes/origin/android-cts-2.2_r8
  66. remotes/origin/android-cts-2.3_r10
  67. remotes/origin/android-cts-2.3_r11
  68. remotes/origin/android-cts-2.3_r12
  69. remotes/origin/android-cts-4.0.3_r1
  70. remotes/origin/android-cts-4.0.3_r2
  71. remotes/origin/android-cts-4.0_r1
  72. remotes/origin/android-cts-4.1_r1
  73. remotes/origin/android-cts-4.1_r2
  74. remotes/origin/android-cts-4.2_r2
  75. remotes/origin/android-cts-verifier-4.0.3_r1
  76. remotes/origin/android-cts-verifier-4.0_r1
  77. remotes/origin/android-sdk-4.0.3-tools_r1
  78. remotes/origin/android-sdk-4.0.3_r1
  79. remotes/origin/android-sdk-adt_r16.0.1
  80. remotes/origin/android-sdk-adt_r20
  81. remotes/origin/android-sdk-support_r11
  82. remotes/origin/froyo
  83. remotes/origin/gingerbread
  84. remotes/origin/gingerbread-release
  85. remotes/origin/ics-mr0
  86. remotes/origin/ics-mr1
  87. remotes/origin/ics-plus-aosp
  88. remotes/origin/jb-dev
  89. remotes/origin/jb-mr1-dev
  90. remotes/origin/jb-mr1-dev-plus-aosp
  91. remotes/origin/jb-mr1.1-dev
  92. remotes/origin/jumper-stable
  93. remotes/origin/master
  94. remotes/origin/master-dalvik
  95. remotes/origin/tools_r20
  96. remotes/origin/tools_r21
  97. remotes/origin/tools_r21.1
  98. remotes/origin/tools_r22
  99. remotes/origin/tradefed
6、下载指定版本源码,参数 -b 后为指定版本号,可根据第5步获得。

点击(此处)折叠或打开

  1. repo init -u -b android-2.2.2_r1
  2. repo sync






阅读(2454) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~