android platform full source는 약 22GB 정도라서 원하는 부분만 찾아서 받는게 좋음
https://anroid.googlesource.com/platform
에서 원하는 폴더를 눈으로 확인하고..
터미널에서
mkdir ~/bin
PATH=~/bin:$PATH
curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
chmod a+x ~/bin/repo
repo init -u https://android.googlesource.com/platform/manifest -b android-"원하는 버전"
(ex_ .. android-4.4.3_r1 )
소스를 받을때
repo sync -c -j4 =>풀소스다운로드
repo sync platform/frameworks/base -c -j4 => base폴더 내용만 다운로드
-----------------
이렇게 소스만 받고 make하면 기기에서 안돌아감.
각 기기에 맞는 드라이버를 풀소스에 넣어야함
------------------------
이렇게 하고 빌드를 할때는..
make하기전에는
source <ANROIDPATH>/build/envsetup.sh
lunch aosp_hammerhead-eng <==헤머헤드는 넥5 용이고 알아서 코드명 적으면 됨
그 후 make -j4
'소프트웨어 > Android/Java/Ndk' 카테고리의 다른 글
android] material design guide (0) | 2014.11.03 |
---|---|
Android] View 컴포넌트끼리의 Touch,Click Event 우선순위 문제 (0) | 2014.10.26 |
android] 앱에서 다른 앱 부르기 (0) | 2014.08.20 |
Android] Nexus5에 android pull source가 올라갔는데 부팅안될때 (1) | 2014.08.20 |
Android] Android full source와 eclipse 연결 (1) | 2014.08.20 |
android] USB State Broadcast (0) | 2014.08.19 |
Android] ADB 를 이용한 apk 추출 (0) | 2014.08.18 |