SlideShare a Scribd company logo
Android Build
CS Team
陳顥文 P76034305
Build Android on Windows
• 3-Way try to do that.
 1.Virtual Machine install Linux(like Ubuntu, or Customer distribution
http://nathanpfry.com/builduntu-virtual-machine-android-rom-compiling/)
 Which install VirtualBox and run upside link provide image to build.
 2.Using Cygwin, But will encounter a lot of problem
 Install all package spend lot of time.
 But I try this way to build on Windows 8.1 x64 platform.
 3. Using XDA Cygwin + Android Kitchen
 http://forum.xda-developers.com/showthread.php?t=2195858
 https://github.com/dsixda/Android-Kitchen
Install Cygwin
• Install JDK before install Cygwin
• Download from Oracle site. At least Version 6+
• Download Cygwin from: http://cygwin.com/install.html
• Install, Choose JP mirror site will get better download speed.
• Don’t install all package, Exclude Graphic, KDE, Gnome, X11, Game…etc.
Some thing you won’t need in build.
• Minimal install package didn’t try.
• Install all package will cost around 60GB Disk space.
Install JDK 6
• Download Windows JDK x64 from Oracle Website.
• http://www.oracle.com/technetwork/java/javase/downloads/java-archive-
downloads-javase6-419409.html
• Remove current JDK you install.(If newer than JDK 6)
 Cause system will automatic setting machine register into newest JDK version.
• Install JDK 6, MAKE SURE INSTALL PATH WITHOUT SPACE.
 If install in default path like: C:Program Filesjavajdk_1.6.0_45
 When #make clean, #make … you will encounter Java version not corrent.
 I’m install in D:
 You also can install in default path, and copy hole JDK to non-spacing path.
Add environment variable
• # cd ~
• # vi ./.bash_profile
• Add
 export JAVA_HOME=/cygdrive/D/jdk1.6.0_45
 export ANDROID_JAVA_HOME=/cygdrive/D/jdk1.6.0_45
 export PATH=$PATH:”/cygdrive/D/jdk1.6.0_45
• Restart your Cygwin terminal.
• Check JDK
 # java –version
 # javac –version
Get repo in Gygwin
• Once you install Gygwin completed. You need install Google repo first.
• Google repo help you get Android Source code from Google git site.
• # cd ~ && mkdir bin
• # curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
• # chmod a+x ~/bin/repo
• # mkdir android && cd android
• # ~/bin/repo init –u -u https://android.googlesource.com/platform/manifest -b
android-4.4_r1
• # repo sync
Get other necessary file you need.
• # cd ~ && mkdir android_pack_download
• # wget https://dl.google.com/dl/android/aosp/broadcom-hammerhead-krt16m-
bf9b8548.tgz
• # wget https://dl.google.com/dl/android/aosp/lge-hammerhead-krt16m-
0efa9c33.tgz
• # wget https://dl.google.com/dl/android/aosp/qcom-hammerhead-krt16m-
53cf1896.tgz
• # for f in *.tgz; do tar xzf $f; done
• # for extractor_script in *.sh; do bash $extractor_script; done
• # cp –r vendor ~/android/
Get other necessary file you need.
• # wget https://dl.google.com/dl/android/aosp/hammerhead-krt16m-factory-
bd9c39de.tgz
• # tar xzf hammerhead-krt16m-factory-bd9c39de.tgz
• # cd hammerhead-krt16m
• # unzip image-hammerhead-krt16m.zip
• Get simg2img_win
• # wget
https://github.com/KinglyWayne/simg2img_win/blob/master/simg2img.exe
• # chmod a+x simg2img.exe
• #./simg2img system.img system.img.raw
Get other necessary file you need.
• Using “Disk internals Linux Reader” to mount image.
• http://www.diskinternals.com/linux-reader/
• Click Right-up coroner “Drives” -> “Raw Disk Images” -> Select your
system.img.raw to mount.
• Copy missing file from NCKU Android Class slide said.
• Copy those file to ~/android/vendor/lge/hammerhead/proprietary/
~/android/vendor/qcom/hammerhead/proprietary/
Android build on windows
Android build on windows
Android build on windows
Missing from
vendor/lge/hammerhead:
• /system/app/OmaDmclient.apk
• /system/etc/DxHDCP.cfg
• /system/vendor/bin/vss_init
• /system/vendor/firmware/discretix/dxhdcp2.b00
• /system/vendor/firmware/discretix/dxhdcp2.b01
• /system/vendor/firmware/discretix/dxhdcp2.b02
• /system/vendor/firmware/discretix/dxhdcp2.b03
• /system/vendor/firmware/discretix/dxhdcp2.mdt
• /system/vendor/lib/libDxHdcp.so
• /system/vendor/lib/libvdmengine.so
• /system/vendor/lib/libvdmfumo.so
• /system/vendor/lib/libvss_common_core.so
• /system/vendor/lib/libvss_common_idl.so
• /system/vendor/lib/libvss_common_iface.so
• /system/vendor/lib/libvss_nv_core.so
• /system/vendor/lib/libvss_nv_idl.so
• /system/vendor/lib/libvss_nv_iface.so
Missing from
vendor/qcom/hammerhead:
• /system/app/shutdownlistener.apk
• /system/app/TimeService.apk
Change device-partial.mk
• # cd ~/android
• # rm -r -f vendor/lge/hammerhead vendor/qcom/hammerhead
• # git clone https://github.com/jamesonwilliams/vendor_lge_hammerhead.git
vendor/lge/hammerhead
• # git clone
https://github.com/jamesonwilliams/vendor_qcom_hammerhead.git
vendor/qcom/hammerhead
• # sed -i '/^PRODUCT_RESTRICT_VENDOR_FILES/s/true/false/'
device/lge/hammerhead/full_hammerhead.mk #this command will failed,
need modify by manually.
Get kernel
• # git clone https://android.googlesource.com/kernel/msm.git -b android-msm-
hammerhead-3.4-kk-r1 kernel
• # sed -i '48,51d' kernel/AndroidKernel.mk
• # sed -i '47s,$, zImage-dtb,' kernel/AndroidKernel.mk
Try build in Gygwin
• # . build/envsetup.sh
• # lunch aosp_hammerhead-userdebug #error.
• # make clean
• # make updatepackage # -j10
Add leak windows_sdk_whitelist.mk
• Copy https://code.google.com/p/android-source-
browsing/source/browse/build/windows_sdk_whitelist.mk?repo=platform--
development&r=645a29c837ca42016f20d1949127b58c6a105d31
• Name “windows_sdk_whitelist.mk”, copy to ~/android/build/core/
• Edit ~/android/build/core/main.mk
• Line 431
ifeq ($(SDK_ONLY),true)
#include $(TOPDIR)sdk/build/windows_sdk_whitelist.mk
#include $(TOPDIR)development/build/windows_sdk_whitelist.mk
include build/core/windows_sdk_whitelist.mk
include build/core/windows_sdk_whitelist.mk
Problem can’t solve 1
$ lunch aosp_hammerhead-userdebug
build/core/product_config.mk:227: ***
_nic.PRODUCTS.[[device/lge/hammerhead/aosp_hammerhead.mk]]:
"frameworks/native/build/phon e-xhdpi-2048-dalvik-heap.mk"
does not exist. Stop.
** Don't have a product spec for: 'aosp_hammerhead'
** Do you have the right repo manifest?
• 2015/03/18 Solve by re-sync repo again.
Problem can’t solve 2
$ make updatepackage –j8
…
find: ‘../../../libcore/dex/src/main/java’: No such file or directory
including dalvik/libdex/Android.mk ...
…
including development/apps/BuildWidget/Android.mk ...
build/core/java.mk:23: *** development/apps/BuildWidget: Invalid
LOCAL_SDK_VERSION 'current' Choices are: . Stop.
• 2015/03/18 Solve by re-sync repo again.
Problem can’t solve 3
$ make updatepackage –j8
…
including system/extras/ext4_utils/Android.mk ...
PRODUCT_COPY_FILES device/generic/goldfish/data/etc/apns-
conf.xml:system/etc/apns-conf.xml ignored.
make: *** No rule to make target 'out/host/windows-x86/bin/mkbootimg.exe',
needed by 'out/target/product/hammerhead/boot.img'. Stop.
http://forum.xda-developers.com/android/software/experiment-building-cm11-
cygwin-t2858560
Download mkbootimg.exe to solve.
Problem can’t solve 4
• make: *** No rule to make target 'out/host/windows-x86/bin/acp', needed by
'out/target/product/hammerhead/kernel'. Stop.
Build Android on Ubuntu
• Encounter some problem:
1. Leak libz.so.1
prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.6/bin/../lib/gcc/i686-linux/4.6.x-
google/../../../../i686-linux/bin/as: error while loading shared libraries: libz.so.1: cannot
open shared object file: No such file or directory
make: *** [out/host/linux-
x86/obj/EXECUTABLES/mkbootimg_intermediates/mkbootimg.o] Error 1
• Soultion:
# sudo apt-get install lib32z1
Note detail @ my blog: http://www.ntex.tw/wordpresas/2175.html
Build Android on Ubuntu
2. Leak “flex”
/bin/bash: flex: command not found make: *** [out/host/linux-
x86/obj/EXECUTABLES/checkpolicy_intermediates/policy_scan.cpp] Error 127
 Solution:
# sudo apt-get install flex
Note detail @ my blog: http://www.ntex.tw/wordpress/2180.html
• Useful website: http://nosemaj.org/howto-build-android-kitkat-nexus-5
App share list
• 愛挖寶-股市app
• RD Client-微軟官方RDP APP
• Real Racing 3-EA賽車遊戲
• 生活行-工具好幫手
• Spotyify-聽音樂
• ES檔案瀏覽器-檔案總管
• EVERNOTE-筆記軟體
• ONENOTE-筆記軟體
• BETWEEN-情侶APP
• LINE-通訊軟體
• FACEBOOK-通訊軟體
• beetalk-通訊軟體
• 微信-通訊軟體
• 1010!-熱門遊戲
• 神魔之塔-熱門遊戲
• 知識王-熱門遊戲
• 台灣蘋果日報-新聞APP
• 安兔兔評測-跑分軟體
• ezETC-( ETC餘額查詢, 計程試
算, 即時路況)
• CYTUS 熱門遊戲
• Dropbox 雲端儲存
• QRcode scanner
• pixiv 圖片瀏覽
• 3G watchdog 網路流量監控
• office mobile 微軟office編輯軟
體
• MetaMoJi Note 手寫筆記
• MoPTT 手機板PTT
• TuneIn Radio 網路電台
• Camera FV-5 拍照軟體
• MX Player 影片播放
systrace
• Find which tags can test performance
 gfx – Graphics
 wm - Window Manager
 am - Activity Manager
 res - Resource Loading
 dalvik - Dalvik VM
 sched - CPU Scheduling
 freq - CPU Frequency
 membus - Memory Bus Utilization
 idle - CPU Idle
 disk - Disk input and output
 load - CPU Load
Android build on windows
About
• This slide build by Nathaniel Chen
• 2015/03/19 1522
• ar801112usase@hotmail.com
• http://www.ntex.tw/wordpress

More Related Content

PDF
Android Platform Debugging and Development
PDF
Android Things Internals
PDF
Scheduling in Android
PDF
Working with the AOSP - Linaro Connect Asia 2013
PDF
Android Platform Debugging and Development
PDF
Android Internals at Linaro Connect Asia 2013
PDF
Embedded Android Workshop with Marshmallow
PDF
Android Platform Debugging and Development
Android Platform Debugging and Development
Android Things Internals
Scheduling in Android
Working with the AOSP - Linaro Connect Asia 2013
Android Platform Debugging and Development
Android Internals at Linaro Connect Asia 2013
Embedded Android Workshop with Marshmallow
Android Platform Debugging and Development

What's hot (20)

PDF
Android Internals
PDF
Android Platform Debugging and Development
ODP
Android crash debugging
PDF
Developing Android Platform Tools
PDF
Leveraging Android's Linux Heritage at AnDevCon3
PDF
Creating new Tizen profiles using the Yocto Project
PDF
Headless Android at AnDevCon3
PDF
Android Platform Debugging and Development
PDF
Using and Customizing the Android Framework / part 4 of Embedded Android Work...
PDF
Android Platform Debugging and Development
PDF
Android Security Internals
PDF
yocto_scale_handout-with-notes
PDF
Android Jumpstart ESC SV 2012 Part I
PDF
Android Hacks, Variants, Tricks and Resources ESC SV 2012
PDF
Memory Management in Android
PDF
Android Platform Debugging & Development
PDF
Android On Development Boards at AnDevCon3
PDF
Booting Android: bootloaders, fastboot and boot images
PDF
Scheduling in Android
PDF
Embedded Android Workshop at ELC Europe
Android Internals
Android Platform Debugging and Development
Android crash debugging
Developing Android Platform Tools
Leveraging Android's Linux Heritage at AnDevCon3
Creating new Tizen profiles using the Yocto Project
Headless Android at AnDevCon3
Android Platform Debugging and Development
Using and Customizing the Android Framework / part 4 of Embedded Android Work...
Android Platform Debugging and Development
Android Security Internals
yocto_scale_handout-with-notes
Android Jumpstart ESC SV 2012 Part I
Android Hacks, Variants, Tricks and Resources ESC SV 2012
Memory Management in Android
Android Platform Debugging & Development
Android On Development Boards at AnDevCon3
Booting Android: bootloaders, fastboot and boot images
Scheduling in Android
Embedded Android Workshop at ELC Europe
Ad

Viewers also liked (20)

PPTX
App power consumption hw5
PPTX
Corpus christi lorena diaz
PPT
Lección 1. Nociones fundamentales de Paleografía
PPTX
WGC Pinterest for Business, Drive Traffic & Leads 2013
ODP
Un nuevo periodismo
PDF
FITO LÓPEZ C (2014) Metodologías de evaluación de la exposición y valores lím...
PDF
Vidapremium magazine nº 23
PDF
Reporte Audiencia Online Mexicana, enero 2014 - comScore
PPTX
Complete dog cure,ranchi
DOC
DOC
Aatcc revised paper final
PDF
PB Virtual - Novo Catálogo 2013/2014 parte1
PDF
ectprojects company presentation
PDF
Tareas 1
PDF
Costillar de novillo costillar de cerdo - salmuera con perejil - ensalada d...
PDF
Banquete Nodos y Redes
PDF
Apresentação institucional abril 2011
PPTX
Conduciendo la información estadística georreferenciada del DANE a otra dimen...
PDF
Présentation MailInBlack Footprint
App power consumption hw5
Corpus christi lorena diaz
Lección 1. Nociones fundamentales de Paleografía
WGC Pinterest for Business, Drive Traffic & Leads 2013
Un nuevo periodismo
FITO LÓPEZ C (2014) Metodologías de evaluación de la exposición y valores lím...
Vidapremium magazine nº 23
Reporte Audiencia Online Mexicana, enero 2014 - comScore
Complete dog cure,ranchi
Aatcc revised paper final
PB Virtual - Novo Catálogo 2013/2014 parte1
ectprojects company presentation
Tareas 1
Costillar de novillo costillar de cerdo - salmuera con perejil - ensalada d...
Banquete Nodos y Redes
Apresentação institucional abril 2011
Conduciendo la información estadística georreferenciada del DANE a otra dimen...
Présentation MailInBlack Footprint
Ad

Similar to Android build on windows (20)

PPTX
Rhodes mobile Framework
PDF
Embedded linux build systems
PDF
Android for Embedded Linux Developers
PPTX
Building an iOS Build Server
PDF
Android Platform Debugging and Development
PPTX
Scaling Development Environments with Docker
PDF
Android Platform Debugging and Development
PDF
Kubeflow Development Environment
PDF
Android Security Development - Part 2: Malicious Android App Dynamic Analyzi...
PDF
Android Things Internals
PDF
Android Platform Debugging and Development
PDF
Lesson 02 - React Native Development Environment Setup
PPTX
Настройка окружения для кросскомпиляции проектов на основе docker'a
PDF
Android Things: Android for IoT
PDF
Headless Android
PDF
Yocto Project Dev Day Prague 2017 - Advanced class - Kernel modules with eSDK
PDF
Real-World Docker: 10 Things We've Learned
PDF
Radiomic Features.pdf
PDF
Build and Run Android N Source Ccode on NXP SABRESD platform
PDF
Leveraging Android's Linux Heritage at AnDevCon V
Rhodes mobile Framework
Embedded linux build systems
Android for Embedded Linux Developers
Building an iOS Build Server
Android Platform Debugging and Development
Scaling Development Environments with Docker
Android Platform Debugging and Development
Kubeflow Development Environment
Android Security Development - Part 2: Malicious Android App Dynamic Analyzi...
Android Things Internals
Android Platform Debugging and Development
Lesson 02 - React Native Development Environment Setup
Настройка окружения для кросскомпиляции проектов на основе docker'a
Android Things: Android for IoT
Headless Android
Yocto Project Dev Day Prague 2017 - Advanced class - Kernel modules with eSDK
Real-World Docker: 10 Things We've Learned
Radiomic Features.pdf
Build and Run Android N Source Ccode on NXP SABRESD platform
Leveraging Android's Linux Heritage at AnDevCon V

Recently uploaded (20)

PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
KodekX | Application Modernization Development
PDF
Approach and Philosophy of On baking technology
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PPTX
Spectroscopy.pptx food analysis technology
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PPTX
Cloud computing and distributed systems.
PPTX
Programs and apps: productivity, graphics, security and other tools
PPT
Teaching material agriculture food technology
PPTX
Big Data Technologies - Introduction.pptx
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
KodekX | Application Modernization Development
Approach and Philosophy of On baking technology
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Building Integrated photovoltaic BIPV_UPV.pdf
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Spectroscopy.pptx food analysis technology
Advanced methodologies resolving dimensionality complications for autism neur...
Digital-Transformation-Roadmap-for-Companies.pptx
The Rise and Fall of 3GPP – Time for a Sabbatical?
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Cloud computing and distributed systems.
Programs and apps: productivity, graphics, security and other tools
Teaching material agriculture food technology
Big Data Technologies - Introduction.pptx
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Unlocking AI with Model Context Protocol (MCP)
Chapter 3 Spatial Domain Image Processing.pdf
Profit Center Accounting in SAP S/4HANA, S4F28 Col11

Android build on windows

  • 2. Build Android on Windows • 3-Way try to do that.  1.Virtual Machine install Linux(like Ubuntu, or Customer distribution http://nathanpfry.com/builduntu-virtual-machine-android-rom-compiling/)  Which install VirtualBox and run upside link provide image to build.  2.Using Cygwin, But will encounter a lot of problem  Install all package spend lot of time.  But I try this way to build on Windows 8.1 x64 platform.  3. Using XDA Cygwin + Android Kitchen  http://forum.xda-developers.com/showthread.php?t=2195858  https://github.com/dsixda/Android-Kitchen
  • 3. Install Cygwin • Install JDK before install Cygwin • Download from Oracle site. At least Version 6+ • Download Cygwin from: http://cygwin.com/install.html • Install, Choose JP mirror site will get better download speed. • Don’t install all package, Exclude Graphic, KDE, Gnome, X11, Game…etc. Some thing you won’t need in build. • Minimal install package didn’t try. • Install all package will cost around 60GB Disk space.
  • 4. Install JDK 6 • Download Windows JDK x64 from Oracle Website. • http://www.oracle.com/technetwork/java/javase/downloads/java-archive- downloads-javase6-419409.html • Remove current JDK you install.(If newer than JDK 6)  Cause system will automatic setting machine register into newest JDK version. • Install JDK 6, MAKE SURE INSTALL PATH WITHOUT SPACE.  If install in default path like: C:Program Filesjavajdk_1.6.0_45  When #make clean, #make … you will encounter Java version not corrent.  I’m install in D:  You also can install in default path, and copy hole JDK to non-spacing path.
  • 5. Add environment variable • # cd ~ • # vi ./.bash_profile • Add  export JAVA_HOME=/cygdrive/D/jdk1.6.0_45  export ANDROID_JAVA_HOME=/cygdrive/D/jdk1.6.0_45  export PATH=$PATH:”/cygdrive/D/jdk1.6.0_45 • Restart your Cygwin terminal. • Check JDK  # java –version  # javac –version
  • 6. Get repo in Gygwin • Once you install Gygwin completed. You need install Google repo first. • Google repo help you get Android Source code from Google git site. • # cd ~ && mkdir bin • # curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo • # chmod a+x ~/bin/repo • # mkdir android && cd android • # ~/bin/repo init –u -u https://android.googlesource.com/platform/manifest -b android-4.4_r1 • # repo sync
  • 7. Get other necessary file you need. • # cd ~ && mkdir android_pack_download • # wget https://dl.google.com/dl/android/aosp/broadcom-hammerhead-krt16m- bf9b8548.tgz • # wget https://dl.google.com/dl/android/aosp/lge-hammerhead-krt16m- 0efa9c33.tgz • # wget https://dl.google.com/dl/android/aosp/qcom-hammerhead-krt16m- 53cf1896.tgz • # for f in *.tgz; do tar xzf $f; done • # for extractor_script in *.sh; do bash $extractor_script; done • # cp –r vendor ~/android/
  • 8. Get other necessary file you need. • # wget https://dl.google.com/dl/android/aosp/hammerhead-krt16m-factory- bd9c39de.tgz • # tar xzf hammerhead-krt16m-factory-bd9c39de.tgz • # cd hammerhead-krt16m • # unzip image-hammerhead-krt16m.zip • Get simg2img_win • # wget https://github.com/KinglyWayne/simg2img_win/blob/master/simg2img.exe • # chmod a+x simg2img.exe • #./simg2img system.img system.img.raw
  • 9. Get other necessary file you need. • Using “Disk internals Linux Reader” to mount image. • http://www.diskinternals.com/linux-reader/ • Click Right-up coroner “Drives” -> “Raw Disk Images” -> Select your system.img.raw to mount. • Copy missing file from NCKU Android Class slide said. • Copy those file to ~/android/vendor/lge/hammerhead/proprietary/ ~/android/vendor/qcom/hammerhead/proprietary/
  • 13. Missing from vendor/lge/hammerhead: • /system/app/OmaDmclient.apk • /system/etc/DxHDCP.cfg • /system/vendor/bin/vss_init • /system/vendor/firmware/discretix/dxhdcp2.b00 • /system/vendor/firmware/discretix/dxhdcp2.b01 • /system/vendor/firmware/discretix/dxhdcp2.b02 • /system/vendor/firmware/discretix/dxhdcp2.b03 • /system/vendor/firmware/discretix/dxhdcp2.mdt • /system/vendor/lib/libDxHdcp.so • /system/vendor/lib/libvdmengine.so • /system/vendor/lib/libvdmfumo.so • /system/vendor/lib/libvss_common_core.so • /system/vendor/lib/libvss_common_idl.so • /system/vendor/lib/libvss_common_iface.so • /system/vendor/lib/libvss_nv_core.so • /system/vendor/lib/libvss_nv_idl.so • /system/vendor/lib/libvss_nv_iface.so
  • 15. Change device-partial.mk • # cd ~/android • # rm -r -f vendor/lge/hammerhead vendor/qcom/hammerhead • # git clone https://github.com/jamesonwilliams/vendor_lge_hammerhead.git vendor/lge/hammerhead • # git clone https://github.com/jamesonwilliams/vendor_qcom_hammerhead.git vendor/qcom/hammerhead • # sed -i '/^PRODUCT_RESTRICT_VENDOR_FILES/s/true/false/' device/lge/hammerhead/full_hammerhead.mk #this command will failed, need modify by manually.
  • 16. Get kernel • # git clone https://android.googlesource.com/kernel/msm.git -b android-msm- hammerhead-3.4-kk-r1 kernel • # sed -i '48,51d' kernel/AndroidKernel.mk • # sed -i '47s,$, zImage-dtb,' kernel/AndroidKernel.mk
  • 17. Try build in Gygwin • # . build/envsetup.sh • # lunch aosp_hammerhead-userdebug #error. • # make clean • # make updatepackage # -j10
  • 18. Add leak windows_sdk_whitelist.mk • Copy https://code.google.com/p/android-source- browsing/source/browse/build/windows_sdk_whitelist.mk?repo=platform-- development&r=645a29c837ca42016f20d1949127b58c6a105d31 • Name “windows_sdk_whitelist.mk”, copy to ~/android/build/core/ • Edit ~/android/build/core/main.mk • Line 431 ifeq ($(SDK_ONLY),true) #include $(TOPDIR)sdk/build/windows_sdk_whitelist.mk #include $(TOPDIR)development/build/windows_sdk_whitelist.mk include build/core/windows_sdk_whitelist.mk include build/core/windows_sdk_whitelist.mk
  • 19. Problem can’t solve 1 $ lunch aosp_hammerhead-userdebug build/core/product_config.mk:227: *** _nic.PRODUCTS.[[device/lge/hammerhead/aosp_hammerhead.mk]]: "frameworks/native/build/phon e-xhdpi-2048-dalvik-heap.mk" does not exist. Stop. ** Don't have a product spec for: 'aosp_hammerhead' ** Do you have the right repo manifest? • 2015/03/18 Solve by re-sync repo again.
  • 20. Problem can’t solve 2 $ make updatepackage –j8 … find: ‘../../../libcore/dex/src/main/java’: No such file or directory including dalvik/libdex/Android.mk ... … including development/apps/BuildWidget/Android.mk ... build/core/java.mk:23: *** development/apps/BuildWidget: Invalid LOCAL_SDK_VERSION 'current' Choices are: . Stop. • 2015/03/18 Solve by re-sync repo again.
  • 21. Problem can’t solve 3 $ make updatepackage –j8 … including system/extras/ext4_utils/Android.mk ... PRODUCT_COPY_FILES device/generic/goldfish/data/etc/apns- conf.xml:system/etc/apns-conf.xml ignored. make: *** No rule to make target 'out/host/windows-x86/bin/mkbootimg.exe', needed by 'out/target/product/hammerhead/boot.img'. Stop. http://forum.xda-developers.com/android/software/experiment-building-cm11- cygwin-t2858560 Download mkbootimg.exe to solve.
  • 22. Problem can’t solve 4 • make: *** No rule to make target 'out/host/windows-x86/bin/acp', needed by 'out/target/product/hammerhead/kernel'. Stop.
  • 23. Build Android on Ubuntu • Encounter some problem: 1. Leak libz.so.1 prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.6/bin/../lib/gcc/i686-linux/4.6.x- google/../../../../i686-linux/bin/as: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory make: *** [out/host/linux- x86/obj/EXECUTABLES/mkbootimg_intermediates/mkbootimg.o] Error 1 • Soultion: # sudo apt-get install lib32z1 Note detail @ my blog: http://www.ntex.tw/wordpresas/2175.html
  • 24. Build Android on Ubuntu 2. Leak “flex” /bin/bash: flex: command not found make: *** [out/host/linux- x86/obj/EXECUTABLES/checkpolicy_intermediates/policy_scan.cpp] Error 127  Solution: # sudo apt-get install flex Note detail @ my blog: http://www.ntex.tw/wordpress/2180.html • Useful website: http://nosemaj.org/howto-build-android-kitkat-nexus-5
  • 25. App share list • 愛挖寶-股市app • RD Client-微軟官方RDP APP • Real Racing 3-EA賽車遊戲 • 生活行-工具好幫手 • Spotyify-聽音樂 • ES檔案瀏覽器-檔案總管 • EVERNOTE-筆記軟體 • ONENOTE-筆記軟體 • BETWEEN-情侶APP • LINE-通訊軟體 • FACEBOOK-通訊軟體 • beetalk-通訊軟體 • 微信-通訊軟體 • 1010!-熱門遊戲 • 神魔之塔-熱門遊戲 • 知識王-熱門遊戲 • 台灣蘋果日報-新聞APP • 安兔兔評測-跑分軟體 • ezETC-( ETC餘額查詢, 計程試 算, 即時路況) • CYTUS 熱門遊戲 • Dropbox 雲端儲存 • QRcode scanner • pixiv 圖片瀏覽 • 3G watchdog 網路流量監控 • office mobile 微軟office編輯軟 體 • MetaMoJi Note 手寫筆記 • MoPTT 手機板PTT • TuneIn Radio 網路電台 • Camera FV-5 拍照軟體 • MX Player 影片播放
  • 26. systrace • Find which tags can test performance  gfx – Graphics  wm - Window Manager  am - Activity Manager  res - Resource Loading  dalvik - Dalvik VM  sched - CPU Scheduling  freq - CPU Frequency  membus - Memory Bus Utilization  idle - CPU Idle  disk - Disk input and output  load - CPU Load
  • 28. About • This slide build by Nathaniel Chen • 2015/03/19 1522 • ar801112usase@hotmail.com • http://www.ntex.tw/wordpress

Editor's Notes

  • #7: Ref: http://fecbob.pixnet.net/blog/post/35985449-%E4%BD%BF%E7%94%A8repo%E5%9C%A8windows%E5%B9%B3%E5%8F%B0%E4%B8%8B%E8%BC%89android%E5%8E%9F%E5%A7%8B%E7%A2%BC http://source.android.com/source/downloading.html
  • #26: Wei-chiun Pi 荊士懷