SlideShare a Scribd company logo
1 of 28
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/
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
About
• This slide build by Nathaniel Chen
• 2015/03/19 1522
• ar801112usase@hotmail.com
• http://www.ntex.tw/wordpress

More Related Content

What's hot

Android Platform Debugging and Development
Android Platform Debugging and DevelopmentAndroid Platform Debugging and Development
Android Platform Debugging and DevelopmentOpersys inc.
 
Android crash debugging
Android crash debuggingAndroid crash debugging
Android crash debuggingAshish Agrawal
 
Developing Android Platform Tools
Developing Android Platform ToolsDeveloping Android Platform Tools
Developing Android Platform ToolsOpersys inc.
 
Leveraging Android's Linux Heritage at AnDevCon3
Leveraging Android's Linux Heritage at AnDevCon3Leveraging Android's Linux Heritage at AnDevCon3
Leveraging Android's Linux Heritage at AnDevCon3Opersys inc.
 
Creating new Tizen profiles using the Yocto Project
Creating new Tizen profiles  using the Yocto ProjectCreating new Tizen profiles  using the Yocto Project
Creating new Tizen profiles using the Yocto ProjectLeon Anavi
 
Headless Android at AnDevCon3
Headless Android at AnDevCon3Headless Android at AnDevCon3
Headless Android at AnDevCon3Opersys inc.
 
Android Platform Debugging and Development
Android Platform Debugging and DevelopmentAndroid Platform Debugging and Development
Android Platform Debugging and DevelopmentOpersys inc.
 
Using and Customizing the Android Framework / part 4 of Embedded Android Work...
Using and Customizing the Android Framework / part 4 of Embedded Android Work...Using and Customizing the Android Framework / part 4 of Embedded Android Work...
Using and Customizing the Android Framework / part 4 of Embedded Android Work...Opersys inc.
 
Android Platform Debugging and Development
Android Platform Debugging and DevelopmentAndroid Platform Debugging and Development
Android Platform Debugging and DevelopmentOpersys inc.
 
Android Security Internals
Android Security InternalsAndroid Security Internals
Android Security InternalsOpersys inc.
 
yocto_scale_handout-with-notes
yocto_scale_handout-with-notesyocto_scale_handout-with-notes
yocto_scale_handout-with-notesSteve Arnold
 
Android Jumpstart ESC SV 2012 Part I
Android Jumpstart ESC SV 2012 Part IAndroid Jumpstart ESC SV 2012 Part I
Android Jumpstart ESC SV 2012 Part IOpersys inc.
 
Android Hacks, Variants, Tricks and Resources ESC SV 2012
Android Hacks, Variants, Tricks and Resources ESC SV 2012Android Hacks, Variants, Tricks and Resources ESC SV 2012
Android Hacks, Variants, Tricks and Resources ESC SV 2012Opersys inc.
 
Memory Management in Android
Memory Management in AndroidMemory Management in Android
Memory Management in AndroidOpersys inc.
 
Android On Development Boards at AnDevCon3
Android On Development Boards at AnDevCon3Android On Development Boards at AnDevCon3
Android On Development Boards at AnDevCon3Opersys inc.
 
Booting Android: bootloaders, fastboot and boot images
Booting Android: bootloaders, fastboot and boot imagesBooting Android: bootloaders, fastboot and boot images
Booting Android: bootloaders, fastboot and boot imagesChris Simmonds
 
Scheduling in Android
Scheduling in AndroidScheduling in Android
Scheduling in AndroidOpersys inc.
 
Embedded Android Workshop at ELC Europe
Embedded Android Workshop at ELC EuropeEmbedded Android Workshop at ELC Europe
Embedded Android Workshop at ELC EuropeOpersys inc.
 

What's hot (20)

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

Viewers also liked

App power consumption hw5
App power consumption hw5App power consumption hw5
App power consumption hw5Addweup
 
Corpus christi lorena diaz
Corpus christi lorena diazCorpus christi lorena diaz
Corpus christi lorena diazLore Diaz
 
Lección 1. Nociones fundamentales de Paleografía
Lección 1. Nociones fundamentales de PaleografíaLección 1. Nociones fundamentales de Paleografía
Lección 1. Nociones fundamentales de PaleografíaAcastanoT
 
WGC Pinterest for Business, Drive Traffic & Leads 2013
WGC Pinterest for Business, Drive Traffic & Leads 2013WGC Pinterest for Business, Drive Traffic & Leads 2013
WGC Pinterest for Business, Drive Traffic & Leads 2013Will Gladhart Consulting, LLC
 
Un nuevo periodismo
Un nuevo periodismoUn nuevo periodismo
Un nuevo periodismoSandra Otoya
 
Vidapremium magazine nº 23
Vidapremium magazine nº 23Vidapremium magazine nº 23
Vidapremium magazine nº 23rymdesign
 
Reporte Audiencia Online Mexicana, enero 2014 - comScore
Reporte Audiencia Online Mexicana, enero 2014 - comScoreReporte Audiencia Online Mexicana, enero 2014 - comScore
Reporte Audiencia Online Mexicana, enero 2014 - comScoreIAB México
 
Complete dog cure,ranchi
Complete dog cure,ranchiComplete dog cure,ranchi
Complete dog cure,ranchiSuranjan Sarkar
 
Aatcc revised paper final
Aatcc revised paper finalAatcc revised paper final
Aatcc revised paper finalAdane Nega
 
Costillar de novillo costillar de cerdo - salmuera con perejil - ensalada d...
Costillar de novillo   costillar de cerdo - salmuera con perejil - ensalada d...Costillar de novillo   costillar de cerdo - salmuera con perejil - ensalada d...
Costillar de novillo costillar de cerdo - salmuera con perejil - ensalada d...JL Sistemas CA
 
Banquete Nodos y Redes
Banquete Nodos y RedesBanquete Nodos y Redes
Banquete Nodos y RedesRoberto Pineda
 
Conduciendo la información estadística georreferenciada del DANE a otra dimen...
Conduciendo la información estadística georreferenciada del DANE a otra dimen...Conduciendo la información estadística georreferenciada del DANE a otra dimen...
Conduciendo la información estadística georreferenciada del DANE a otra dimen...Luis M. Vilches Blázquez
 
Présentation MailInBlack Footprint
Présentation MailInBlack FootprintPrésentation MailInBlack Footprint
Présentation MailInBlack Footprintcrochemib
 

Viewers also liked (20)

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

Similar to Android build on windows

Rhodes mobile Framework
Rhodes mobile FrameworkRhodes mobile Framework
Rhodes mobile FrameworkYoshi Sakai
 
Embedded linux build systems
Embedded linux build systems  Embedded linux build systems
Embedded linux build systems Mender.io
 
Android for Embedded Linux Developers
Android for Embedded Linux DevelopersAndroid for Embedded Linux Developers
Android for Embedded Linux DevelopersOpersys inc.
 
Android Platform Debugging and Development
Android Platform Debugging and DevelopmentAndroid Platform Debugging and Development
Android Platform Debugging and DevelopmentOpersys inc.
 
Scaling Development Environments with Docker
Scaling Development Environments with DockerScaling Development Environments with Docker
Scaling Development Environments with DockerDocker, Inc.
 
Android Platform Debugging and Development
Android Platform Debugging and DevelopmentAndroid Platform Debugging and Development
Android Platform Debugging and DevelopmentOpersys inc.
 
Kubeflow Development Environment
Kubeflow Development EnvironmentKubeflow Development Environment
Kubeflow Development EnvironmentWeiqiang Zhuang
 
Android Security Development - Part 2: Malicious Android App Dynamic Analyzi...
Android Security Development - Part 2: Malicious Android App Dynamic Analyzi...Android Security Development - Part 2: Malicious Android App Dynamic Analyzi...
Android Security Development - Part 2: Malicious Android App Dynamic Analyzi...Cheng-Yi Yu
 
Android Things Internals
Android Things InternalsAndroid Things Internals
Android Things InternalsOpersys inc.
 
Android Platform Debugging and Development
Android Platform Debugging and DevelopmentAndroid Platform Debugging and Development
Android Platform Debugging and DevelopmentOpersys inc.
 
Lesson 02 - React Native Development Environment Setup
Lesson 02 - React Native Development Environment SetupLesson 02 - React Native Development Environment Setup
Lesson 02 - React Native Development Environment SetupUniversity of Catania
 
Настройка окружения для кросскомпиляции проектов на основе docker'a
Настройка окружения для кросскомпиляции проектов на основе docker'aНастройка окружения для кросскомпиляции проектов на основе docker'a
Настройка окружения для кросскомпиляции проектов на основе docker'acorehard_by
 
Android Things: Android for IoT
Android Things: Android for IoTAndroid Things: Android for IoT
Android Things: Android for IoTOpersys inc.
 
Yocto Project Dev Day Prague 2017 - Advanced class - Kernel modules with eSDK
Yocto Project Dev Day Prague 2017 - Advanced class - Kernel modules with eSDKYocto Project Dev Day Prague 2017 - Advanced class - Kernel modules with eSDK
Yocto Project Dev Day Prague 2017 - Advanced class - Kernel modules with eSDKMarco Cavallini
 
Real-World Docker: 10 Things We've Learned
Real-World Docker: 10 Things We've Learned  Real-World Docker: 10 Things We've Learned
Real-World Docker: 10 Things We've Learned RightScale
 
Radiomic Features.pdf
Radiomic Features.pdfRadiomic Features.pdf
Radiomic Features.pdfLallHussain
 
Build and Run Android N Source Ccode on NXP SABRESD platform
Build and Run Android N Source Ccode on NXP SABRESD platformBuild and Run Android N Source Ccode on NXP SABRESD platform
Build and Run Android N Source Ccode on NXP SABRESD platformDaniel Chiu
 
Leveraging Android's Linux Heritage at AnDevCon V
Leveraging Android's Linux Heritage at AnDevCon VLeveraging Android's Linux Heritage at AnDevCon V
Leveraging Android's Linux Heritage at AnDevCon VOpersys inc.
 

Similar to Android build on windows (20)

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

Recently uploaded

WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?XfilesPro
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...HostedbyConfluent
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsSnow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsHyundai Motor Group
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksSoftradix Technologies
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 

Recently uploaded (20)

WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsSnow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 

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/
  • 10.
  • 11.
  • 12.
  • 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
  • 27.
  • 28. About • This slide build by Nathaniel Chen • 2015/03/19 1522 • ar801112usase@hotmail.com • http://www.ntex.tw/wordpress

Editor's Notes

  1. 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
  2. Wei-chiun Pi 荊士懷