How To Build CyanogenMod 11 For Asus Zenfone 5
Okay just its time to share the tutorial on working on Cyagenmod 11 for Asus Zenfone 5 I knew one of you hear that Asus Zenfone 5 have Booted a Cyanogenmod 11 From Pinaslang Zenfone Blog we cannot fix the audio and camera video acceleration is not yet tested if work or not, for this device so i try to upload the working device config that i use and test yesterday Thanks of course to Shaka Huang for the device config he did on AOSP. with all due respect from the other developer that show they work we all Thumbs UP for you Guys,
Learning
Instruction
we expect that you have already download the source and prepare your environment for android build
Linux CLI Terminal
mkdir -p ~/cm11
repo init -u git://github.com/knone1/a500cg_android.git -b master
repo sync -j4
After downloading the source you need to apply some patch for x86 android and houdini
in cm11_patches folder execute the .patch.sh
Now back to working dir then go to vendor/cm execute the get-prebuilts
Back again in working dir then proceed device/asus/a500cg execute the extract-files.sh this will get the proprietary file that need to build your cyanogenmod make sure that your asus zenfone 5 is connected via USB before execute the extract-files.sh
now return back in the working dir then we will start the build execute in terminal . build/envsetup.sh && brunch cm_a500cg-userdebug
this will setup and start the build
Information
If your devices is asus zenfone 5 a501cg while the build proccess is on going follow this location out/target/product/a500cg/system you will see the a build.prop just copy it and rename to build.a501cg.prop in order to boot on a501cg so it will be a build.prop and build.a501cg.prop
The final build will result into system.img that ready to flash for your asus zenfone i test it and this is booted as i expect you can now start building and work for this source to fix some bug push some comment on github so other user will see the changes its hard to work alone and i hope someday the asus zenfone 5 will recieve a OTA update from developer of Cyanogenmod
Required in kernel
note that in order to fix the boot and touch you need to modify the ramdisk of stock kernel from init.environ.rc edit this file and change to this
# set up the global environment
on init
export PATH /sbin:/vendor/bin:/system/sbin:/system/bin:/system/xbin
export LD_LIBRARY_PATH /vendor/lib:/system/lib
export ANDROID_BOOTLOGO 1
export ANDROID_ROOT /system
export ANDROID_ASSETS /system/app
export ANDROID_DATA /data
export ANDROID_STORAGE /storage
export ASEC_MOUNTPOINT /mnt/asec
export LOOP_MOUNTPOINT /mnt/obb
export BOOTCLASSPATH /system/framework/core.jar:/system/framework/conscrypt.jar:/system/framework/okhttp.jar:/system/framework/core-junit.jar:/system/framework/bouncycastle.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/framework2.jar:/system/framework/telephony-common.jar:/system/framework/voip-common.jar:/system/framework/mms-common.jar:/system/framework/android.policy.jar:/system/framework/services.jar:/system/framework/apache-xml.jar:/system/framework/webviewchromium.jar:/system/framework/telephony-msim.jar:/system/framework/com.intel.multidisplay.jar:/system/framework/com.intel.config.jar
on init
export PATH /sbin:/vendor/bin:/system/sbin:/system/bin:/system/xbin
export LD_LIBRARY_PATH /vendor/lib:/system/lib
export ANDROID_BOOTLOGO 1
export ANDROID_ROOT /system
export ANDROID_ASSETS /system/app
export ANDROID_DATA /data
export ANDROID_STORAGE /storage
export ASEC_MOUNTPOINT /mnt/asec
export LOOP_MOUNTPOINT /mnt/obb
export BOOTCLASSPATH /system/framework/core.jar:/system/framework/conscrypt.jar:/system/framework/okhttp.jar:/system/framework/core-junit.jar:/system/framework/bouncycastle.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/framework2.jar:/system/framework/telephony-common.jar:/system/framework/voip-common.jar:/system/framework/mms-common.jar:/system/framework/android.policy.jar:/system/framework/services.jar:/system/framework/apache-xml.jar:/system/framework/webviewchromium.jar:/system/framework/telephony-msim.jar:/system/framework/com.intel.multidisplay.jar:/system/framework/com.intel.config.jar
This is require in order to fix and more fixing and modification on ramdisk is needed so good luck guys.
0 comments:
Post a Comment