Download the source tree
링크
http://source.android.com/source/downloading.html
시키는 데로 하다보면 다음과 같이 에러가 날 경우에 있다..-0-;
repo init -u https://android.googlesource.com/platform/manifest
$ repo init -u git://android.git.kernel.org/platform/manifest.git Traceback (most recent call last): File "/home/user/bin/repo", line 690, in <module> main(sys.argv[1:]) File "/home/user/bin/repo", line 657, in main _Init(args) File "/home/user/bin/repo", line 189, in _Init _CheckGitVersion() File "/home/user/bin/repo", line 214, in _CheckGitVersion proc = subprocess.Popen(cmd, stdout=subprocess.PIPE) File "/usr/lib/python2.7/subprocess.py", line 672, in __init__ errread, errwrite) File "/usr/lib/python2.7/subprocess.py", line 1213, in _execute_child raise child_exception OSError: [Errno 2] No such file or directory |
혹시나 해서 git가 설치되었나 봤더니 -_-;; 그래서 git 설치...
$ git The program 'git' is currently not installed. You can install it by typing: sudo apt-get install git $sudo apt-get install git |
이제는 제대로 되겠지, 또 에러났다 -_-;
$ repo init -u https://android.googlesource.com/a/platform/manifest gpg: keyring `/home/user/.repoconfig/gnupg/secring.gpg' created gpg: keyring `/home/user.repoconfig/gnupg/pubring.gpg' created gpg: /home/bk/.repoconfig/gnupg/trustdb.gpg: trustdb created gpg: key 920F5C65: public key "Repo Maintainer <repo@android.kernel.org>" imported gpg: Total number processed: 1 gpg: imported: 1 Get https://android.googlesource.com/tools/repo remote: Counting objects: 1467, done remote: Finding sources: 100% (81/81) remote: Total 1467 (delta 955), reused 1467 (delta 955) Receiving objects: 100% (1467/1467), 439.12 KiB, done. Resolving deltas: 100% (955/955), done. From https://android.googlesource.com/tools/repo * [new branch] maint -> origin/maint * [new branch] master -> origin/master * [new branch] stable -> origin/stable * [new tag] v1.0 -> v1.0 * [new tag] v1.0.1 -> v1.0.1 * [new tag] v1.0.2 -> v1.0.2 * [new tag] v1.0.3 -> v1.0.3 * [new tag] v1.0.4 -> v1.0.4 * [new tag] v1.0.5 -> v1.0.5 * [new tag] v1.0.6 -> v1.0.6 * [new tag] v1.0.7 -> v1.0.7 * [new tag] v1.0.8 -> v1.0.8 * [new tag] v1.0.9 -> v1.0.9 * [new tag] v1.1 -> v1.1 * [new tag] v1.2 -> v1.2 * [new tag] v1.3 -> v1.3 * [new tag] v1.3.1 -> v1.3.1 * [new tag] v1.3.2 -> v1.3.2 * [new tag] v1.4 -> v1.4 * [new tag] v1.4.1 -> v1.4.1 * [new tag] v1.4.2 -> v1.4.2 * [new tag] v1.4.3 -> v1.4.3 * [new tag] v1.4.4 -> v1.4.4 * [new tag] v1.5 -> v1.5 * [new tag] v1.5.1 -> v1.5.1 * [new tag] v1.6 -> v1.6 * [new tag] v1.6.1 -> v1.6.1 * [new tag] v1.6.10 -> v1.6.10 * [new tag] v1.6.10.1 -> v1.6.10.1 * [new tag] v1.6.10.2 -> v1.6.10.2 * [new tag] v1.6.2 -> v1.6.2 * [new tag] v1.6.3 -> v1.6.3 * [new tag] v1.6.4 -> v1.6.4 * [new tag] v1.6.5 -> v1.6.5 * [new tag] v1.6.6 -> v1.6.6 * [new tag] v1.6.7 -> v1.6.7 * [new tag] v1.6.7.1 -> v1.6.7.1 * [new tag] v1.6.7.2 -> v1.6.7.2 * [new tag] v1.6.7.3 -> v1.6.7.3 * [new tag] v1.6.7.4 -> v1.6.7.4 * [new tag] v1.6.7.5 -> v1.6.7.5 * [new tag] v1.6.8 -> v1.6.8 * [new tag] v1.6.8.1 -> v1.6.8.1 * [new tag] v1.6.8.10 -> v1.6.8.10 * [new tag] v1.6.8.11 -> v1.6.8.11 * [new tag] v1.6.8.2 -> v1.6.8.2 * [new tag] v1.6.8.3 -> v1.6.8.3 * [new tag] v1.6.8.4 -> v1.6.8.4 * [new tag] v1.6.8.5 -> v1.6.8.5 * [new tag] v1.6.8.6 -> v1.6.8.6 * [new tag] v1.6.8.7 -> v1.6.8.7 * [new tag] v1.6.8.8 -> v1.6.8.8 * [new tag] v1.6.8.9 -> v1.6.8.9 * [new tag] v1.6.9 -> v1.6.9 * [new tag] v1.6.9.1 -> v1.6.9.1 * [new tag] v1.6.9.2 -> v1.6.9.2 * [new tag] v1.6.9.3 -> v1.6.9.3 * [new tag] v1.6.9.4 -> v1.6.9.4 * [new tag] v1.6.9.5 -> v1.6.9.5 * [new tag] v1.6.9.6 -> v1.6.9.6 * [new tag] v1.6.9.7 -> v1.6.9.7 * [new tag] v1.6.9.8 -> v1.6.9.8 * [new tag] v1.7 -> v1.7 * [new tag] v1.7.1 -> v1.7.1 * [new tag] v1.7.2 -> v1.7.2 * [new tag] v1.7.3 -> v1.7.3 * [new tag] v1.7.3.1 -> v1.7.3.1 * [new tag] v1.7.4 -> v1.7.4 * [new tag] v1.7.4.1 -> v1.7.4.1 * [new tag] v1.7.4.2 -> v1.7.4.2 * [new tag] v1.7.4.3 -> v1.7.4.3 * [new tag] v1.7.5 -> v1.7.5 * [new tag] v1.7.6 -> v1.7.6 * [new tag] v1.7.6.1 -> v1.7.6.1 * [new tag] v1.7.7 -> v1.7.7 * [new tag] v1.7.7.1 -> v1.7.7.1 * [new tag] v1.7.7.2 -> v1.7.7.2 * [new tag] v1.7.7.3 -> v1.7.7.3 * [new tag] v1.7.7.4 -> v1.7.7.4 * [new tag] v1.7.7.5 -> v1.7.7.5 * [new tag] v1.7.7.6 -> v1.7.7.6 * [new tag] v1.7.8 -> v1.7.8 * [new tag] v1.7.8.1 -> v1.7.8.1 * [new tag] v1.7.8.2 -> v1.7.8.2 Get https://android.googlesource.com/a/platform/manifest error: HTTP 401 (Unauthorized: No permission -- see authorization schemes) $ |
다른건 모르겠고...No permission 이란다 ;;;
Using Authentication에서
the password generator 를 클릭하고, 로그인 하면
구글 계정에 딸 password를 생성해 준다...그리고.. 이 패스워드를 ~/.netrc에 추가하라고 한다..
자 이제 추가했으니 정말 되겠지..했는데..컥..
$ vi ~/.netrc $ repo init -u https://android.googlesource.com/a/platform/manifest Traceback (most recent call last): File "/home/user/mydroid/source/.repo/repo/main.py", line 366, in <module> _Main(sys.argv[1:]) File "/home/user/mydroid/source/.repo/repo/main.py", line 346, in _Main result = repo._Run(argv) or 0 File "/home/user/mydroid/source/.repo/repo/main.py", line 137, in _Run result = cmd.Execute(copts, cargs) File "/home/user/mydroid/source/.repo/repo/subcmds/init.py", line 284, in Execute self._SyncManifest(opt) File "/home/user/mydroid/source/.repo/repo/subcmds/init.py", line 130, in _SyncManifest m.PreSync() File "/home/user/mydroid/source/.repo/repo/project.py", line 2082, in PreSync cb = self.CurrentBranch File "/home/user/mydroid/source/.repo/repo/project.py", line 552, in CurrentBranch b = self.work_git.GetHead() File "/home/user/mydroid/source/.repo/repo/project.py", line 1852, in GetHead fd = open(path, 'rb') IOError: [Errno 2] No such file or directory: '/home/user/mydroid/source/.repo/manifests/.git/HEAD' $ |
자꾸 에러나서...프로요만 받을까 생각하고 입력했더니 됐다 --;
$ repo init -u https://android.googlesource.com/platform/manifest -b froyo remote: Counting objects: 264, done remote: Finding sources: 100% (47/47) remote: Total 264 (delta 43), reused 264 (delta 43) Receiving objects: 100% (264/264), 117.95 KiB, done. Resolving deltas: 100% (43/43), done. From https://android.googlesource.com/platform/manifest * [new branch] android-1.6_r1 -> origin/android-1.6_r1 * [new branch] android-1.6_r1.1 -> origin/android-1.6_r1.1 * [new branch] android-1.6_r1.2 -> origin/android-1.6_r1.2 * [new branch] android-1.6_r1.3 -> origin/android-1.6_r1.3 * [new branch] android-1.6_r1.4 -> origin/android-1.6_r1.4 * [new branch] android-1.6_r1.5 -> origin/android-1.6_r1.5 * [new branch] android-1.6_r2 -> origin/android-1.6_r2 * [new branch] android-2.0.1_r1 -> origin/android-2.0.1_r1 * [new branch] android-2.0_r1 -> origin/android-2.0_r1 * [new branch] android-2.1_r1 -> origin/android-2.1_r1 * [new branch] android-2.1_r2 -> origin/android-2.1_r2 * [new branch] android-2.1_r2.1p -> origin/android-2.1_r2.1p * [new branch] android-2.1_r2.1p2 -> origin/android-2.1_r2.1p2 * [new branch] android-2.1_r2.1s -> origin/android-2.1_r2.1s * [new branch] android-2.2.1_r1 -> origin/android-2.2.1_r1 * [new branch] android-2.2.1_r2 -> origin/android-2.2.1_r2 * [new branch] android-2.2.2_r1 -> origin/android-2.2.2_r1 * [new branch] android-2.2.3_r1 -> origin/android-2.2.3_r1 * [new branch] android-2.2.3_r2 -> origin/android-2.2.3_r2 * [new branch] android-2.2_r1 -> origin/android-2.2_r1 * [new branch] android-2.2_r1.1 -> origin/android-2.2_r1.1 * [new branch] android-2.2_r1.2 -> origin/android-2.2_r1.2 * [new branch] android-2.2_r1.3 -> origin/android-2.2_r1.3 * [new branch] android-2.3.1_r1 -> origin/android-2.3.1_r1 * [new branch] android-2.3.2_r1 -> origin/android-2.3.2_r1 * [new branch] android-2.3.3_r1 -> origin/android-2.3.3_r1 * [new branch] android-2.3.3_r1.1 -> origin/android-2.3.3_r1.1 * [new branch] android-2.3.4_r0.9 -> origin/android-2.3.4_r0.9 * [new branch] android-2.3.4_r1 -> origin/android-2.3.4_r1 * [new branch] android-2.3.5_r1 -> origin/android-2.3.5_r1 * [new branch] android-2.3.6_r0.9 -> origin/android-2.3.6_r0.9 * [new branch] android-2.3.6_r1 -> origin/android-2.3.6_r1 * [new branch] android-2.3.7_r1 -> origin/android-2.3.7_r1 * [new branch] android-2.3_r1 -> origin/android-2.3_r1 * [new branch] android-4.0.1_r1 -> origin/android-4.0.1_r1 * [new branch] android-4.0.1_r1.1 -> origin/android-4.0.1_r1.1 * [new branch] android-4.0.1_r1.2 -> origin/android-4.0.1_r1.2 * [new branch] android-4.0.2_r1 -> origin/android-4.0.2_r1 * [new branch] android-4.0.3_r1 -> origin/android-4.0.3_r1 * [new branch] android-cts-2.2_r8 -> origin/android-cts-2.2_r8 * [new branch] android-cts-2.3_r10 -> origin/android-cts-2.3_r10 * [new branch] android-cts-2.3_r11 -> origin/android-cts-2.3_r11 * [new branch] android-cts-4.0_r1 -> origin/android-cts-4.0_r1 * [new branch] android-cts-verifier-4.0_r1 -> origin/android-cts-verifier-4.0_r1 * [new branch] android-sdk-4.0.3-tools_r1 -> origin/android-sdk-4.0.3-tools_r1 * [new branch] android-sdk-4.0.3_r1 -> origin/android-sdk-4.0.3_r1 * [new branch] android-sdk-adt_r16.0.1 -> origin/android-sdk-adt_r16.0.1 * [new branch] froyo -> origin/froyo * [new branch] gingerbread -> origin/gingerbread * [new branch] gingerbread-release -> origin/gingerbread-release * [new branch] ics-mr0 -> origin/ics-mr0 * [new branch] ics-mr1 -> origin/ics-mr1 * [new branch] master -> origin/master * [new branch] tradefed -> origin/tradefed * [new tag] android-1.6_r1.1_ -> android-1.6_r1.1_ * [new tag] android-1.6_r1.2_ -> android-1.6_r1.2_ * [new tag] android-1.6_r1.3_ -> android-1.6_r1.3_ * [new tag] android-1.6_r1.4_ -> android-1.6_r1.4_ * [new tag] android-1.6_r1.5_ -> android-1.6_r1.5_ * [new tag] android-1.6_r1_ -> android-1.6_r1_ * [new tag] android-1.6_r2_ -> android-1.6_r2_ * [new tag] android-2.0.1_r1_ -> android-2.0.1_r1_ * [new tag] android-2.0_r1_ -> android-2.0_r1_ * [new tag] android-2.1_r1_ -> android-2.1_r1_ * [new tag] android-2.1_r2.1p2_ -> android-2.1_r2.1p2_ * [new tag] android-2.1_r2.1p_ -> android-2.1_r2.1p_ * [new tag] android-2.1_r2.1s_ -> android-2.1_r2.1s_ * [new tag] android-2.1_r2_ -> android-2.1_r2_ * [new tag] android-2.2.1_r1_ -> android-2.2.1_r1_ * [new tag] android-2.2.1_r2_ -> android-2.2.1_r2_ * [new tag] android-2.2.2_r1_ -> android-2.2.2_r1_ * [new tag] android-2.2.3_r1 -> android-2.2.3_r1 * [new tag] android-2.2.3_r2 -> android-2.2.3_r2 * [new tag] android-2.2_r1.1_ -> android-2.2_r1.1_ * [new tag] android-2.2_r1.2_ -> android-2.2_r1.2_ * [new tag] android-2.2_r1.3_ -> android-2.2_r1.3_ * [new tag] android-2.2_r1_ -> android-2.2_r1_ * [new tag] android-2.3.1_r1_ -> android-2.3.1_r1_ * [new tag] android-2.3.2_r1_ -> android-2.3.2_r1_ * [new tag] android-2.3.3_r1.1_ -> android-2.3.3_r1.1_ * [new tag] android-2.3.3_r1_ -> android-2.3.3_r1_ * [new tag] android-2.3.4_r0.9_ -> android-2.3.4_r0.9_ * [new tag] android-2.3.4_r1_ -> android-2.3.4_r1_ * [new tag] android-2.3.5_r1_ -> android-2.3.5_r1_ * [new tag] android-2.3.6_r0.9 -> android-2.3.6_r0.9 * [new tag] android-2.3.6_r1 -> android-2.3.6_r1 * [new tag] android-2.3.7_r1 -> android-2.3.7_r1 * [new tag] android-2.3_r1_ -> android-2.3_r1_ * [new tag] android-4.0.1_r1 -> android-4.0.1_r1 * [new tag] android-4.0.1_r1.1 -> android-4.0.1_r1.1 * [new tag] android-4.0.1_r1.2 -> android-4.0.1_r1.2 * [new tag] android-4.0.2_r1 -> android-4.0.2_r1 * [new tag] android-4.0.3_r1 -> android-4.0.3_r1 * [new tag] android-cts-2.2_r8 -> android-cts-2.2_r8 * [new tag] android-cts-2.3_r10 -> android-cts-2.3_r10 * [new tag] android-cts-2.3_r11 -> android-cts-2.3_r11 * [new tag] android-cts-4.0_r1 -> android-cts-4.0_r1 * [new tag] android-cts-verifier-4.0_r1 -> android-cts-verifier-4.0_r1 * [new tag] android-sdk-4.0.3-tools_r1 -> android-sdk-4.0.3-tools_r1 * [new tag] android-sdk-4.0.3_r1 -> android-sdk-4.0.3_r1 * [new tag] android-sdk-adt_r16.0.1 -> android-sdk-adt_r16.0.1 Your Name [USER]: user Your Email [user@COM.(none)]: Your identity is: user <user@COM.(none)> is this correct [y/N]? y Testing colorized output (for 'repo diff', 'repo status'): black red green yellow blue magenta cyan white bold dim ul reverse Enable color display in this user account (y/N)? n repo initialized in /home/user/mydroid/source $ $ repo sync |
다 받고 용량을 봤더니 6.3G -_-;;;
머지...
-끝-