{"id":1364,"date":"2011-08-09T06:00:31","date_gmt":"2011-08-09T11:00:31","guid":{"rendered":"httpss:\/\/www.powenko.com\/wordpress\/?p=1364"},"modified":"2014-10-15T11:03:44","modified_gmt":"2014-10-15T16:03:44","slug":"android-%e7%b3%bb%e7%b5%b1-%e6%95%99%e5%ad%b8%e6%96%87%e4%bb%b6-003-%e5%9c%a8ubuntu-%e7%92%b0%e5%a2%83%e4%b8%ad%ef%bc%8c%e4%b8%8b%e8%bc%89-android-%e5%8e%9f%e5%a7%8b%e7%a2%bc","status":"publish","type":"post","link":"https:\/\/www.powenko.com\/wordpress\/?p=1364","title":{"rendered":"03, \u5728ubuntu \u74b0\u5883\u4e2d\uff0c\u4e0b\u8f09 Android \u539f\u59cb\u78bc"},"content":{"rendered":"<p>\u63a5\u4e0b\u4f86\u8acb\u628a\u8f09\u56de\u4f86\u7684 android \u539f\u59cb\u78bc\u89e3\u58d3\u7e2e<\/p>\n<h2 id=\"initializing-a-repo-client\">\u5b89\u88dd\u00a0Repo<\/h2>\n<p>Repo \u662f\u4e00\u500b\u5de5\u5177\uff0c\u4f86\u505aGit\uff0c \u4f86\u53d6\u5f97 Android \u7cfb\u7d71\u7684\u539f\u59cb\u7a0b\u5f0f. \u00a0Repo \u7684\u8a73\u7d30\u4ecb\u7d39\uff0c\u8acb\u770b\u00a0<a href=\"httpss:\/\/source.android.com\/source\/version-control.html\">Version Control<\/a>.<\/p>\n<p>To install, initialize, and configure Repo, follow these steps:<\/p>\n<ul>\n<ul>\n<li>Make sure you have a bin\/ directory in your home directory, and that it is included in your path:<br \/>\n<code><br \/>\n<\/code><\/li>\n<\/ul>\n<\/ul>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\n$ sudo mkdir ~\/bin\r\n$ PATH=~\/bin:$PATH\r\n<\/pre>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\n$ mkdir WORKING_DIRECTORY\r\n$ cd WORKING_DIRECTORY\r\n<\/pre>\n<ul>\n<ul>\n<li>\u4e0b\u8f09 \u00a0Repo script \u548c\u78ba\u8a8d\u53ef\u4ee5\u57f7\u884c :<\/li>\n<\/ul>\n<\/ul>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">$ sudo curl httpsss:\/\/android.git.kernel.org\/repo &gt; repo\r\n$ chmod a+x repo\r\n<\/pre>\n<p><a href=\"httpss:\/\/www.powenko.com\/wordpress\/?attachment_id=1438\" rel=\"attachment wp-att-1438\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1438\" title=\"Screen Shot 2011-08-10 at 1.09.02 AM\" src=\"httpss:\/\/www.powenko.com\/wordpress\/wp-content\/uploads\/2011\/08\/Screen-Shot-2011-08-10-at-1.09.02-AM.png\" alt=\"\" width=\"692\" height=\"379\" srcset=\"https:\/\/www.powenko.com\/wordpress\/wp-content\/uploads\/2011\/08\/Screen-Shot-2011-08-10-at-1.09.02-AM.png 692w, https:\/\/www.powenko.com\/wordpress\/wp-content\/uploads\/2011\/08\/Screen-Shot-2011-08-10-at-1.09.02-AM-300x164.png 300w, https:\/\/www.powenko.com\/wordpress\/wp-content\/uploads\/2011\/08\/Screen-Shot-2011-08-10-at-1.09.02-AM-570x312.png 570w, https:\/\/www.powenko.com\/wordpress\/wp-content\/uploads\/2011\/08\/Screen-Shot-2011-08-10-at-1.09.02-AM-316x173.png 316w, https:\/\/www.powenko.com\/wordpress\/wp-content\/uploads\/2011\/08\/Screen-Shot-2011-08-10-at-1.09.02-AM-120x66.png 120w, https:\/\/www.powenko.com\/wordpress\/wp-content\/uploads\/2011\/08\/Screen-Shot-2011-08-10-at-1.09.02-AM-210x115.png 210w, https:\/\/www.powenko.com\/wordpress\/wp-content\/uploads\/2011\/08\/Screen-Shot-2011-08-10-at-1.09.02-AM-496x272.png 496w, https:\/\/www.powenko.com\/wordpress\/wp-content\/uploads\/2011\/08\/Screen-Shot-2011-08-10-at-1.09.02-AM-140x77.png 140w\" sizes=\"(max-width: 692px) 100vw, 692px\" \/><\/a><\/p>\n<h2 id=\"initializing-a-repo-client\">\u8a2d\u5b9a Repo client<\/h2>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\n$ sudo .\/repo init -u git:\/\/android.git.kernel.org\/platform\/manifest.git\r\n$ sudo .\/repo init -u git:\/\/android.git.kernel.org\/platform\/manifest.git -b froyo\r\n<\/pre>\n<h2 id=\"getting-the-files\">\u958b\u59cb\u4e0b\u8f09\u4e86<\/h2>\n<p>\u73fe\u5728\u6b63\u662f\u8981\u4e0b\u8f09android \u7684\u539f\u59cb\u7a0b\u5f0f\u78bc\u4e86\u3002<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">$ sudo .\/repo sync <\/pre>\n<p><code><\/code><br \/>\n<span style=\"font-family: monospace;\">\u8981\u7b49\u5f88\u4e45\uff0c\u6211\u662f\u7b49\u4e00\u500b\u591a\u5c0f\u6642\u3002<\/span><\/p>\n<p><a href=\"httpss:\/\/www.powenko.com\/wordpress\/?attachment_id=1380\" rel=\"attachment wp-att-1380\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1380\" title=\"Screen Shot 2011-08-09 at 4.26.14 AM\" src=\"httpss:\/\/www.powenko.com\/wordpress\/wp-content\/uploads\/2011\/08\/Screen-Shot-2011-08-09-at-4.26.14-AM.png\" alt=\"\" width=\"637\" height=\"355\" srcset=\"https:\/\/www.powenko.com\/wordpress\/wp-content\/uploads\/2011\/08\/Screen-Shot-2011-08-09-at-4.26.14-AM.png 637w, https:\/\/www.powenko.com\/wordpress\/wp-content\/uploads\/2011\/08\/Screen-Shot-2011-08-09-at-4.26.14-AM-300x167.png 300w, https:\/\/www.powenko.com\/wordpress\/wp-content\/uploads\/2011\/08\/Screen-Shot-2011-08-09-at-4.26.14-AM-570x318.png 570w, https:\/\/www.powenko.com\/wordpress\/wp-content\/uploads\/2011\/08\/Screen-Shot-2011-08-09-at-4.26.14-AM-316x176.png 316w, https:\/\/www.powenko.com\/wordpress\/wp-content\/uploads\/2011\/08\/Screen-Shot-2011-08-09-at-4.26.14-AM-120x67.png 120w, https:\/\/www.powenko.com\/wordpress\/wp-content\/uploads\/2011\/08\/Screen-Shot-2011-08-09-at-4.26.14-AM-210x117.png 210w, https:\/\/www.powenko.com\/wordpress\/wp-content\/uploads\/2011\/08\/Screen-Shot-2011-08-09-at-4.26.14-AM-496x276.png 496w, https:\/\/www.powenko.com\/wordpress\/wp-content\/uploads\/2011\/08\/Screen-Shot-2011-08-09-at-4.26.14-AM-140x78.png 140w\" sizes=\"(max-width: 637px) 100vw, 637px\" \/><\/a><\/p>\n<p>\u6210\u529f\u5f8c\uff0c\u5c31\u53ef\u4ee5\u770b\u5230<\/p>\n<p><a href=\"httpss:\/\/www.powenko.com\/wordpress\/?attachment_id=1381\" rel=\"attachment wp-att-1381\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1381\" title=\"Screen Shot 2011-08-09 at 4.28.05 AM\" src=\"httpss:\/\/www.powenko.com\/wordpress\/wp-content\/uploads\/2011\/08\/Screen-Shot-2011-08-09-at-4.28.05-AM.png\" alt=\"\" width=\"726\" height=\"579\" srcset=\"https:\/\/www.powenko.com\/wordpress\/wp-content\/uploads\/2011\/08\/Screen-Shot-2011-08-09-at-4.28.05-AM.png 726w, https:\/\/www.powenko.com\/wordpress\/wp-content\/uploads\/2011\/08\/Screen-Shot-2011-08-09-at-4.28.05-AM-300x239.png 300w, https:\/\/www.powenko.com\/wordpress\/wp-content\/uploads\/2011\/08\/Screen-Shot-2011-08-09-at-4.28.05-AM-570x455.png 570w, https:\/\/www.powenko.com\/wordpress\/wp-content\/uploads\/2011\/08\/Screen-Shot-2011-08-09-at-4.28.05-AM-316x252.png 316w, https:\/\/www.powenko.com\/wordpress\/wp-content\/uploads\/2011\/08\/Screen-Shot-2011-08-09-at-4.28.05-AM-120x96.png 120w, https:\/\/www.powenko.com\/wordpress\/wp-content\/uploads\/2011\/08\/Screen-Shot-2011-08-09-at-4.28.05-AM-210x167.png 210w, https:\/\/www.powenko.com\/wordpress\/wp-content\/uploads\/2011\/08\/Screen-Shot-2011-08-09-at-4.28.05-AM-496x396.png 496w, https:\/\/www.powenko.com\/wordpress\/wp-content\/uploads\/2011\/08\/Screen-Shot-2011-08-09-at-4.28.05-AM-140x112.png 140w\" sizes=\"(max-width: 726px) 100vw, 726px\" \/><\/a><\/p>\n<h3>\u7df4\u7fd2\uff1a<\/h3>\n<p>\u8acb\u770b\u770b\u4f60\u7684\u00a0<span class=\"Apple-style-span\" style=\"font-family: monospace; font-size: 12px; line-height: 18px; white-space: pre;\">WORKING_DIRECTORY \u7684\u6a94\u6848\u7d50\u69cb\uff0c\u4e4b\u5f8c\u6211\u5011\u6703\u82b1\u5f88\u591a\u7684\u6642\u9593\u8b1b\u89e3\u88e1\u9762\u7684\u6a94\u6848\u548c\u6587\u4ef6<\/span><\/p>\n<pre><\/pre>\n<h3>\u9032\u968e\uff1a<\/h3>\n<p>Verifying Git Tags<\/p>\n<p>Load the following public key into your GnuPG key database. The key is used to sign annotated tags that represent releases.<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\n$ gpg --import\r\n<\/pre>\n<h3>\u53c3\u8003\u8cc7\u6599\uff1a<\/h3>\n<ul>\n<li>\u5b98\u65b9\u7684\u5b89\u88dd\u6587\u4ef6\u4e0b\u8f09\u7bc7 \u00a0httpss:\/\/source.android.com\/source\/downloading.html<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u63a5\u4e0b\u4f86\u8acb\u628a\u8f09\u56de\u4f86\u7684 android \u539f\u59cb\u78bc\u89e3\u58d3\u7e2e \u5b89\u88dd\u00a0Repo Repo \u662f\u4e00\u500b\u5de5\u5177\uff0c\u4f86\u505aGit\uff0c \u4f86\u53d6\u5f97  [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[186],"tags":[58,102],"class_list":["post-1364","post","type-post","status-publish","format-standard","hentry","category-ch02-","tag-git","tag-repo"],"_links":{"self":[{"href":"https:\/\/www.powenko.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1364"}],"collection":[{"href":"https:\/\/www.powenko.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.powenko.com\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.powenko.com\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.powenko.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1364"}],"version-history":[{"count":25,"href":"https:\/\/www.powenko.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1364\/revisions"}],"predecessor-version":[{"id":6062,"href":"https:\/\/www.powenko.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1364\/revisions\/6062"}],"wp:attachment":[{"href":"https:\/\/www.powenko.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1364"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.powenko.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1364"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.powenko.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1364"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}