1. 부분빌드를 실행하기 위해서 필요
userId@build1:~/svn/export_20110705/trunk/Android$ source build/envsetup.sh
including device/htc/passion/vendorsetup.sh
including device/samsung/crespo/vendorsetup.sh

2. 사용자필요에 맞게 설정해 주면 됩니다. ( 예 : choosecombo 1 2 8 3 )
userId@build1:~/svn/export_20110705/trunk/Android$ choosecombo
Build for the simulator or the device?
     1. Device
     2. Simulator

Which would you like? [1] 1


Build type choices are:
     1. release
     2. debug

Which would you like? [1] 2


Product choices are:
     1. core
     2. full
     3. full_crespo
     4. full_passion
     5. generic
     6. generic_x86
     7. msm7627_ffa
     8. msm7627_surf
     9. msm7630_fusion
     10. msm7630_surf
     11. msm8660_csfb
     12. msm8660_surf
     13. sample_addon
     14. sdk
     15. sim
You can also type the name of a product if you know it.
Which product would you like? [msm7627_surf] 8


Variant choices are:
     1. user
     2. userdebug
     3. eng
Which would you like? [eng] 3

============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=2.3.4
TARGET_PRODUCT=msm7627_surf
TARGET_BUILD_VARIANT=eng
TARGET_SIMULATOR=false
TARGET_BUILD_TYPE=debug
TARGET_BUILD_APPS=
TARGET_ARCH=arm
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=GINGERBREAD
============================================

3. mmm 빌드할려는 package의 주소
userId@build1:~/svn/export_20110705/trunk/Android$ mmm /package/apps/AAAA   엔터

4. 빌드가 되면 아래와 같이 부분빌드된 apk의 주소가 나옵니다.
out/debug/target/product/msm7627_surf/system/app/AAAA.apk)

5. adb를 이용하여 이전의 소스를 삭제하고 push를 이용하여 넣습니다.
adb push out/debug/target/product/msm7627_surf/system/app/AAAA.apk

6. adb reboot 꼭 해야함.

끝~


Posted by 컴투