몇 가지 테스트를 위해 Binary Build가 필요할 듯하여 소스 인출 및 build 방법을 정리해 봅니다.
Tag를 확인해 보니 android-4.3_r3.1까지 보입니다.
* [new tag] android-4.3_r2.1_ -> android-4.3_r2.1_
* [new tag] android-4.3_r2.1__ -> android-4.3_r2.1__
* [new tag] android-4.3_r2.2 -> android-4.3_r2.2
* [new tag] android-4.3_r2.3 -> android-4.3_r2.3
* [new tag] android-4.3_r2_ -> android-4.3_r2_
* [new tag] android-4.3_r3 -> android-4.3_r3
* [new tag] android-4.3_r3.1 -> android-4.3_r3.1
Nexus Factory Image (https://developers.google.com/android/nexus/drivers) 버전과
AOSP (http://source.android.com/source/build-numbers.html) source code Tag 를 참조해서 android-4.3_r3를 사용하기로 합니다.
AOSP (http://source.android.com/source/build-numbers.html) source code Tag 를 참조해서 android-4.3_r3를 사용하기로 합니다.
Factory Images for Nexus Devices
Contents
Source Code Tags and Builds
JSR78D | android-4.3_r2 | Nexus 7 (deb) |
JSS15J | android-4.3_r2.1 | Jelly Bean version, Nexus 7 (flo/deb) |
JSS15Q | android-4.3_r2.2 | Latest Jelly Bean version, Nexus 7 (flo/deb) |
JLS36C | android-4.3_r3 | Latest Jelly Bean version, Nexus 7 (deb) |
Nexus 7 (2013) 버전은 Wi-Fi 전용 모델과 LTE 모델이 있습니다.
LTE 모델은 "deb" 를 WiFi 전용 모델은 "flo" 를 사용하면 됩니다.
LTE 모델은 "deb" 를 WiFi 전용 모델은 "flo" 를 사용하면 됩니다.
$ repo init -u https://android.googlesource.com/platform/manifest
$ repo init -t https://android.googlesource.coom/platform/manifest -b android-4.3_r3
$ repo sync
Android Plain source Downlod 이후에 Hardware지원을 위한 Binary를 Download 합니다.
+ kitkat 발표 후 Android 4.4 버전을 위한 binary 도 이미 올라와 있습니다.
Contents
Nexus 7 (Mobile) binaries for Android 4.3.1 (JLS36I)
Hardware Component | Company | Download | MD5 Checksum | SHA-1 Checksum |
---|---|---|---|---|
Audio, Sensors | ASUS | Link | fdaa2bb19f819e6d27a372a1a9589600 | 40d4854a61b5b2d2dc6a2c3877382f92d7b5ccf6 |
NFC | Broadcom | Link | 002ccc76c9512447f4641bf7cfaa003e | b2a887b02bd78b4730614b7057d3f6dfca490fc8 |
Graphics, Camera, GPS, Wi-Fi, Bluetooth, Sensors, Media, DRM, DSP, USB | Qualcomm | Link | a029a7253c7c657d880ddfd0247e2cfb | dc5fb716a1c7f897fd3779b445157c99abb10d31 |
위 표의 Download의 Link를 통해 *.tgz 파일들을 다운로드 받은 후 압축을 해제하면 extract-*.sh 파일들이 나옵니다.
ex) extract-asus-deb.sh, extract-broadcom-deb.sh, extract-qcom-deb.sh
해당 script 를 실행 후 "I ACCEPT" 입력 해 주시면 /vendor 디렉토리가 자동으로 생성됩니다.
$ ./extract-asus-deb.sh [enter]
The license for this software will now be displayed.
You must agree to this license before using this software.
Press Enter to view the license
Type "I ACCEPT" if you agree to the terms of the license: I ACCEPT
vendor/
vendor/asus/
vendor/asus/deb/
vendor/asus/deb/proprietary/
vendor/asus/deb/proprietary/libAKM.so
vendor/asus/deb/proprietary/apns-conf.xml
vendor/asus/deb/proprietary/libacdbdata.so
vendor/asus/deb/BoardConfigVendor.mk
vendor/asus/deb/device-partial.mk
vendor/asus/deb/device-vendor.mk
vendor/asus/deb/BoardConfigPartial.mk
Files extracted successfully.
여기까지 하면 Nexus 7을 빌드할 준비가 되었습니다.
$ cd android-4.3_r3
$ source ./build/envsetup.sh
$ lunch aosp_deb-userdebug
$ make -j<CPU_PROCESSOR_NUM>
바이너리 빌드 후 다운로드는 fastboot tool을 이용하면 됩니다.
- 참조 : http://source.android.com/source/building-devices.html
- 참조 : http://source.android.com/source/building-devices.html
Booting into fastboot mode
Device | Keys |
---|---|
hammerhead | Press and hold both Volume Up and Volume Down, then press and hold Power |
flo | Press and hold Volume Down, then press and hold Power |
deb | Press and hold Volume Down, then press and hold Power |
Unlocking the bootloader
The bootloader is locked by default. With the device in fastboot mode, the bootloader is unlocked with
$ fastboot oem unlock
The bootloader can be locked back with
$ fastboot oem lock
Flashing a device
Set the device in fastboot mode if necessary (see above).
$ fastboot -w flashall
Note that filesystems created via fastboot on Motorola Xoom aren't working optimally, and it is strongly recommended to re-create them through recovery
$ adb reboot recovery
댓글 없음:
댓글 쓰기