[DEV][ROM][4.4.4][KTU84Q] Unofficial CyanogenMod 11 | RC5 | 05/05/2015

Search This thread

atomomega

Senior Member
Sep 23, 2013
667
204
Last edited:

kirmaniarslan

Inactive Recognized Developer
Mar 6, 2013
1,204
3,412
Rawalpindi
This was a nice touch. Battery seems to be fine here also. I made some updates to HtcLegacy kernel. and want to push some finall stuff, so that there is a stable repo for all Cyanogenmod variants, until (if) stable 3.4 kernel. Will put out another bootimage for testing.

What do u think first we should fix Cm12 bugs ? and then port kernel 3.4
 

h1gh1

Senior Member
Sep 3, 2012
883
1,404
[/COLOR]
Yes because we need to fix headset n OMX problem , i have done some work to fix data connection i hope it will be fixed
OMXs libs will be tough to fix - Viber already locks up phones on CM 11 due to libOMXVidEnc.so. Maybe we give up hardware video encoding support?

---------- Post added at 11:25 PM ---------- Previous post was at 10:44 PM ----------

Is there a way to manually create the time_in_state file in
/sys/devices/system/cpu/cpu0/cpufreq/stats/time_in_state

I couldn't find it.
This is fixed now by CONFIG_CPU_FREQ_STAT=y.
 

kirmaniarslan

Inactive Recognized Developer
Mar 6, 2013
1,204
3,412
Rawalpindi
[/COLOR]
OMXs libs will be tough to fix - Viber already locks up phones on CM 11 due to libOMXVidEnc.so. Maybe we give up hardware video encoding support?

---------- Post added at 11:25 PM ---------- Previous post was at 10:44 PM ----------


This is fixed now by CONFIG_CPU_FREQ_STAT=y.


I have some ideas about omx n thn we dont even need to use omx hack in frameworks/av
 

Tetsujin101

Member
Feb 2, 2012
31
17
First of all, thanks to all the Devs in this and the CM12 Project. You are all awesome!

Back to CM11 and the Roms:
I tested the last 2-3 days RC3 (ext4 an f2fs) and I must say that RC2 feels by far smoother and faster (really not placebo etc.).
I did before every flash a complete full whipe (system, data, cache, and so on) and formatted as described in Post #942
My Settings where everytime the same (722 Mhz, SmartassH3, ROW, Animations 0.8).

RC3 with f2fs felt a bit laggy/slow responding, so I was confused and decided to let it rest / sit for a day. And than Battery died. The drain was not normal. I charged it and try it again. Same stutter. (I have nearly zero App installed, only the pico gapps, so I can exclude any app problem)
Than I decided to try ext4. But exactly the same.
Today I tried RC2 and there we go! Its much faster and fluid. The scrolling and animations are much smoother. And the battery drain is back to normal.

I cant see any mistake in my flash method (I mean I did it as described and on RC2 its working perfect). Maybe my desire c is the problem.... I don't know.

If you have any suggestions ore builds to test, let me know! I ll help where I can (I cant build, but I can test ;) )

Best regards and keep up the excellent work!
 

h1gh1

Senior Member
Sep 3, 2012
883
1,404
First of all, thanks to all the Devs in this and the CM12 Project. You are all awesome!

Back to CM11 and the Roms:
I tested the last 2-3 days RC3 (ext4 an f2fs) and I must say that RC2 feels by far smoother and faster (really not placebo etc.).
I did before every flash a complete full whipe (system, data, cache, and so on) and formatted as described in Post #942
My Settings where everytime the same (722 Mhz, SmartassH3, ROW, Animations 0.8).

RC3 with f2fs felt a bit laggy/slow responding, so I was confused and decided to let it rest / sit for a day. And than Battery died. The drain was not normal. I charged it and try it again. Same stutter. (I have nearly zero App installed, only the pico gapps, so I can exclude any app problem)
Than I decided to try ext4. But exactly the same.
Today I tried RC2 and there we go! Its much faster and fluid. The scrolling and animations are much smoother. And the battery drain is back to normal.

I cant see any mistake in my flash method (I mean I did it as described and on RC2 its working perfect). Maybe my desire c is the problem.... I don't know.

If you have any suggestions ore builds to test, let me know! I ll help where I can (I cant build, but I can test ;) )

Best regards and keep up the excellent work!
RC2 must also have battery drain, as it is almost the same kernel. Lag? Not sure why. There are nothing but optimizations in RC3. Build.prop for adreno has been optimized, but nothing that could not be seen in RC2. Or are you talking about RC1 maybe?
 
Last edited:
  • Like
Reactions: kodirovshchik

Tetsujin101

Member
Feb 2, 2012
31
17
RC2 must also have battery drain, as it is almost the same kernel. Lag? Not sure why. There are nothing but optimizations in RC3. Build.prop for adreno has been optimized, but nothing that could not be seen in RC2. Or are you talking about RC1 maybe?

I used RC2 (20141215) and after your words I wonder even more how this is possible.
I ll look at it again and report back.
 

h1gh1

Senior Member
Sep 3, 2012
883
1,404
the RC3 version works fine, I have a question I want to install the CM12, but do not know how, I could leave the link to the zip?
CM12 is not in a usable state right now. When it reaches alpha quality - and the main blocking problem is in call sound - it will be uploaded.

---------- Post added at 09:34 AM ---------- Previous post was at 09:33 AM ----------

Some one post me or help me with battery drain i'd like to know how to fix this:cowboy:
You are not the only one. If I knew how to fix it, I would.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 59
    logo-cid.png

    Unofficial build of CyanogenMod 11 (Android 4.4) for the HTC Desire C (Golfu)​

    CyanogenMod is a free, community built, aftermarket firmware distribution of Android 4.4 (KITKAT), which is designed to increase performance and reliability over stock Android for your device.


    Code:
    /*
    * Your warranty is now void.
    *
    * I am not responsible for bricked devices, dead SD cards,
    * thermonuclear war, or you getting fired because the alarm app failed. Please
    * do some research if you have any concerns about features included in this ROM
    * before flashing it! YOU are choosing to make these modifications, and if
    * you point the finger at me for messing up your device, I will laugh at you.
    */

    CyanogenMod is based on the Android Open Source Project with extra contributions from many people within the Android community. It can be used without any need to have any Google application installed. Linked below is a package that has come from another Android project that restore the Google parts. CyanogenMod does still include various hardware-specific code, which is also slowly being open-sourced anyway.

    All the source code for CyanogenMod is available in the CyanogenMod Github repo. And if you would like to contribute to CyanogenMod, please visit out Gerrit Code Review. You can also view the Changelog for a full list of changes & features.​

    Yxs5r2x.gif

    Working:
    • Camera
    • WiFi
    • Bluetooth
    • Mobile network
    • Camcorder
    • Video playback
    • VPN
    • Screenshot
    • Recent apps switching
    • Audio (playback/input/routing/headphones/etc)
    • SD card
    • NFC
    • All sensors (accelerometer, proximity sensor, etc. work)
    • GPS
    • Everything else, as long as it isn't listed as a bug

    Major bugs:

    • No major bugs :)

    Credits (in no particular order):
    The CyanogenMod team
    LegaCyMod
    Armv6
    cute_prince
    sachinthomas
    Testers for prompt testing
    And all those who helped directly or Indirectly

    XDA:DevDB Information
    CM-11 For Golfu, ROM for the HTC Desire C

    Contributors
    kirmaniarslan, h1gh1
    ROM OS Version: 4.4.x KitKat
    ROM Kernel: Linux 3.0.x
    ROM Firmware Required: Rooted
    Based On: CyanogenMod

    Version Information
    Status: Stable
    Current Stable Version: 5
    Stable Release Date: 2015-05-05

    Created 2014-10-16
    Last Updated 2015-05-05
    38
    Not working
    - FM radio.
    - Apps that expect newer libOMXVidEnc will not work, Skype is one example. Viber and WhatsApp are working.
    - do not use stock browser for serious browsing, although it is working, it has bugs with adreno libs. For 2-step authentication on Google, it will do.

    Upstream issues
    SDCard not showing unmount option
    Trebuchet crashing when you enable CM Home or Google Search as panel
    Cyanogenmod stock camera app shows 4.5mp instead of 5 mp - camera works properly with other third party apps and takes 5MP pictures.

    Sources: - cm-11.0 branches in each repo:
    Device
    Kernel
    Vendor

    Thanks:
    CyanogenMod team, legacyMod & KonstaT, HTC Pico development team, TeamHackLg & everyone who's been working on CM11.

    Downloads:
    CM11 RC5 (194.45 MB)
    Android File Host | BasketBuild

    MD5: 63ff9995dad6d2f6798f5b6b8b1a8c11

    Optional GAPPS:
    http://xdaforums.com/showthread.php?t=2779598(thanks @kodirovshchik for suggestion)

    How to install:
    You must update recovery with this one - TWRP 2.8.6.0 or this one Philz Touch 6.59.0 - ClockWorkMod 6.0.5.1- these two have SELinux support. Philz and CWM do not have support for F2Fs!
    Install the recovery trough fastboot
    - fastboot flash recovery recovery.img
    Reboot to recovery from fastboot
    - make a backup of your current ROM to SDCard
    - wipe -> do a factory reset
    - wipe -> advanced wipe -> select only system and wipe
    - install zips (rom and gapps)
    - reboot to bootloader

    if you are updating from previous CM11, you can dirty flash -> just wipe /system in Wipe -> Advanced Wipe, and install rom and gapps. No guarantees here.

    Install boot image
    fastboot flash boot boot.img
    install boot.img that is inside the ROM that you downloaded
    do not do fastboot erase cache

    As of RC5, ROM now supports both EXT4 and F2FS in a same installation, and there is an easy way to switch back and forth between full EXT4 and F2FS setup, or any partition layout you would like (why would someone want this, I do not know, but the option is there).

    Switching to F2FS from EXT4:
    - You must install TWRP 2.8.6.0 with F2FS support.
    - install RC5 and gapps (optionally), flash boot.img and restart. Check that the ROM is working properly. Activate advanced reboot in developer options. Reboot to recovery.
    - backup - make a nandroid backup of system, data and cache.
    - wipe, advanced wipe - select system - change or repair file system - choose F2FS. Repeat this for data and cache.
    - settings -> Check use rm -rf instead of format.
    - restore -> this will restore your data to existing partitions without format.
    - settings -> Uncheck use rm -rf instead of format.
    - reboot

    You will boot to full F2FS ROM, with all your data and settings intact. Check it out in terminal with
    mount | grep f2fs

    How to build:
    Up to date sources on github. (one patch for legacyMod frameworks_av is missing, will update device tree soon)

    1. Follow instructions on initializing a build environment up to a point of downloading the source code.
    2. Initialize CyanogenMod 11 repo.
    Code:
    repo init -u git://github.com/CyanogenMod/android.git -b cm-11.0
    3. Add local manifest that downloads HTC Desire C device config, properties and kernel source from my github and few CM replacement projects from legaCyMod github.
    Code:
    curl --create-dirs -L -o .repo/local_manifests/local_manifest.xml -O -L https://raw.githubusercontent.com/high1/android_local_manifest/cm-11.0/local_manifest.xml
    4. Sync source code.
    Code:
    repo sync
    5. Update prebuilts
    Code:
    cd path-to/cm11/vendor/cm/
    ./get-prebuilts
    6. Apply patches
    Code:
     path-to/cm11/device/htc/golfu/patches./apply.sh
    7. Compile.
    Code:
    cd path-to/cm11/
    . build/envsetup.sh
    brunch cm_golfu-userdebug -jx
    (x is number of your processor cores -+1)
    'repo sync' to pull merged changes from upstream.
    'make clobber' to clean the build environment.
    Repeat step 7 to make a new build.

    FAQ:

    Q: I can't find developer options and performance settings, why?
    A: Settings -> About phone -> Click 'Build number' several times

    Q: I don't have reboot options in power menu, why?
    A: Settings -> Developer options -> Advanced reboot

    Q: Is ART runtime working?
    A: Yes it is. Beware, it is not compatible with xposed framework.

    Q: How to make fastboot and adb work with Windows 8.1? (Device enumeration failed error)
    A: First, make sure you have this update installed - http://www.microsoft.com/en-pk/download/details.aspx?id=43515 . Unzip http://goo.gl/CAXglZ and merge it to your registry. HTC drivers must be installed, compatible with Windows 8.1 here: http://xdaforums.com/showthread.php?t=2714921

    Q: USB tethering does not work?
    A: Here is a guide: Android USB Tethering In Windows 8.1

    Changelog
    3.5.2015 changelog:
    - one ROM for both file systems - made multiple file system patch work on CM11, and update fstab and updater-script for that,
    - fixed black screen in call - updated touchscreen and proximity driver from cyanogen_htc_msm8960 3.4 kernel, and updated board definitions, so that the proximity sensor is now working properly
    - switched back to legacy OMX - camera recording is working, and the latest Viber is working properly. Skype is crashing due to old OMX libraries, but does not render the phone useless.
    - using adreno libraries from TeamHackLGE - just for testing
    - updated libqc-opt.so from TeamHackLGE repo - seems that this fixes some schedulers get stuck on lowest frequency.
    - addes sioplus scheduler to kernel.

    10.4.2015 changelog:
    - released two separate ROMs, ext4 and full f2fs
    - f2fs ROM got hand update for updater-script and fstab
    - fixed errors reported when installing the ROM - updater-script has hardcoded filesystem, and this was the cause
    - fixed the camera regression

    7.4.2015 changelog:
    Device tree:
    - switched to HtcLegacy display-caf, which fixes high idle battery drain
    - updated OMX libraries from TeamHackLG msm7x27a vendor repo - this fixes Viber, Skype etc, but video recording is broken
    - switched to QCOM power HAL
    - bluetooth vendor library is now in /vendor
    - switched to Cyanogenmod frameworks_av
    - cleaned up patches (down to only three and one replaced repo - this is almost pure CM11)
    - switched to TWRP 5.1 branch, and made it compile with CM11 tree
    - switched to QACT for audio lib
    - compiling nightly again, as CM11 is EOL, and I think no new milestones will happen
    - forcing high-end graphics is not default anymore
    - moved adreno libs in vendor tree to vendor folder, removed one unneeded fil
    Kernel:
    - updated touch and proximity drivers from 3.4 kernel
    - headset profile from 3.4 kernel
    - added lz4 compression to kernel
    - Update zram and zsmalloc up-to 3.17 kernel changes (zsmalloc now used instead of xvmalloc)
    - enabled lz4 compression for zram
    - restored audit support
    - further various updates to kernel

    20.2.2015 changelog:
    - fixed brightness bug by keeping original framebuffer stack
    - fixed memory bug (0.00B shown)
    - added f2fs support to kernel
    - added intelliactive, adaptive and smartassH3 governors, and updated interactive. Enabled all governors in kernel.
    - added zen scheduler. Updated BFQ scheduler to v7r7. Enabled all schedulers in kernel.
    - updates to block stack, faster I/O
    - ROM built pre deoxed - installation will be longer, first boot will be much shorter
    - moved all the proprietaries to vendor tree
    - added F2FS support to ROM and recovery

    15.12. changelog:
    - fixed Bluetooth regression
    - added surface texture patch
    - updated prebuilts

    7.12. changelog:
    source synced to CM11 M12
    switched to pico kernel, ION build
    ported ION changes to golfu board
    new graphics libraries, latest that support our board
    ported golfu panel driver to pico kernel
    switched to kernel XZ compression
    switched to display-caf - TeamHackLG with patch
    removed a lot of legacy repos - only frameworks_av needs to be replaced now
    using CM11 chromium webview - applications that call evaluateJavaScript work now
    updated touchscreen drivers
    simplified camera build
    added Philz touch recovery to ROM build

    12.11. changelog:
    - new wireless driver, ported from samsung kernel
    - kernel changes, needed for new driver - new wireless_ath stack, imported compat folder, Makefile tweaks - do not build ath.ko for golfu
    - fixes wifi tether
    - fixes soft reboot

    9.11. changelog:
    Remaining audio routing issues are fixed, libaudio updated so no need for patching.
    Call recording works
    Solved freezing issues (need confirmation)
    decreased wake up delay, enabled slow blur, increased ui responsivness
    some other tweaks for sleep mode, limiting number of runnig apps
    monitoring net usage on proper interface
    removed custom wifi, updated wireless definitions and switched to Cyanogenmod private lib for ath6kl
    kernel makefile optimizations - proper flags for our device
    -O2 optimizations - kernel fits to boot.image so it should also improve speed

    24.10. changelog:
    Synced with latest CM11 nightly
    Fixed video - camera recording, youtube
    Disabled haptic feedback by default
    Enabled call recording

    23.10. changelog:
    Fixed Wifi
    Kernel with overclocking - capped to 600 at start, overclockable to 900 - One kernel for All!!!
    Fixed stock browser with legacyMod patches
    legacyMod prebuilts

    18.10. changelog:
    Fixed camera rotation (excluded definitions for 3M golfu, sensor mount angle is 0, and fixed sensor driver file in kernel - thx to Sachin Thomas)
    Fixed media_profiles.xml partially - you can start the video, but it crashes on recording start
    Fixed nfc - firmware was missing
    Enabled swap to zRAM KitKat style
    Re-enabled HTC performance lock, but only during boot
    (Fixes yet to be uploaded with next beta)

    16.10. changelog:
    Android 4.4.4
    First public build
    A lot of changes and cleanups to the ramdisk and boardconfig
    Added SELinux support to kernel
    Made a working, stable recovery, first with repacked zImage and then source built
    ROM made bootable
    Fixed adb
    Fixed SDCard
    Fixed Bluetooth
    Fixed Audio
    Fixed RIL
    Partially working camera
    Added TWRP to ROM build process instead of CWM
    Disabled HTC performance lock and limited frequencies on first boot so that one image is usable for all and devices do not crash
    Enabled KSM by default

    This all would not be possible without help - I looked up alot to KonstaT that makes CyanogenMod for ZTE Blade III, and a lof of this post is taken from his way of posting. KirmaniArslan helped to solve quite a few quirks, and posted patches actively, and started the development - his device tree was made bootable.
    I expect logcats from all who will do testing, and hopefully we can fix the remaining bugs and let this device have fully working Cyanogenmod (Omni, Pacman, AOKP hopefully later). Also, with the release, you have full permission to use the source to build other ROMs, only requirement is that if you find a fix, you do a pull request at Github.
    Regards, and enjoy the ROM as much as you can.
    19
    Sucessfuly ported 3.4.0.77 Wifi driver from 3.4 kernel!
    Had to add init procedure and change default clock, but it is working. Wifi works, tether works and no soft reboot problems... Only thing that does not work is Wifi direct - search does not work, you can accept invitation but cannot connect. Not sure what the problem is, but new release will have a new source built driver - no wifi direct.
    18
    RC3 !!!

    changelog:
    - fixed brightness bug by keeping original framebuffer stack
    - fixed memory bug (0.00B shown)
    - added f2fs support to kernel
    - added intelliactive, adaptive and smartassH3 governors, and updated interactive. Enabled all governors in kernel.
    - added zen scheduler. Updated BFQ scheduler to v7r7. Enabled all schedulers in kernel.
    - updates to block stack, faster I/O
    - ROM built pre deoxed - installation will be longer, first boot will be much shorter
    - moved all the proprietaries to vendor tree
    - added F2FS support to ROM and recovery

    BUGS: Viber locks up phone.
    There are some problems with newer adreno libraries - do not use stock browser for browsing - use Chrome or Firefox. Not sure how applications that use integrated webview behave.

    ROM seems significantly faster ( I used intelliactive,BFQ, EXT4 and F2FS both).
    Flash this recovery first!!!
    TWRP 2.8.5.0 with F2FS
    Android File Host

    boot image for ext4
    Android File Host

    boot image for f2fs
    Android File Host

    CM11 M12 RC3
    Android File Host

    How to flash for those of you who already have CM11:
    - Do not do dirty flash!!! Make a full backup!!!

    for ext4 - reboot to recovery, wipe system. Install ROM and gapps (gapps that you had before - they can be newer, just install the same version you had - micro, pico, nano...). Reboot to bootloader. Flash bootimg for ext4 (fastboot flash boot bootext4.img). This will keep your existing data.

    for f2fs - reboot to recovery.
    * to keep existing data: (needs adb and fastboot)
    - go to Mount menu and make sure that /data and /MicroSD are selected.
    - connect the phone to pc
    - go to Advanced, adb sideload. Start sideload and then cancel. Phone will be visible from adb devices. Open command prompt on PC. Type
    adb shell.
    cd /sdcard
    tar -cvf data.tar /data/*
    - go to wipe, advanced. Select data, then click repair or change filesystem. Change filesystem to f2fs. Repeat this for cache partition.
    - type in prompt : cd /sdcard && tar -xvf data.tar -C /data/ && cd /data && mv data backupf2fs && cd backupf2fs && rm -r media && mv * ../ && cd .. && rm -r backupf2fs
    (this will restore your data partition)
    - from recovery wipe system (system stays ext4!!!), install ROM and gapps and reboot to bootloader. Install boot image for f2fs
    fastboot flash boot bootf2fs.img
    -reboot
    16
    RC 2 - CM11 M12 [ION](197.3MB)
    Android File Host
    MD5: 3960c1f269995f4d8ec59952eea6faee
    ION build, with new kernel from pico, synced with CyanogenMod 11 Milestone 12 source. Playstore problem was a regression in nightly code, so I switched to milestones now. Only regression that I found is that battery drains faster now - pico kernel is the cause of this.

    changelog:
    source synced to CM11 M12
    switched to pico kernel, ION build
    new graphics libraries, latest that support our board - no glitches in apps, stock browser works
    ported ION changes to golfu board
    ported golfu panel driver to pico kernel
    switched to kernel XZ compression
    switched to display-caf - TeamHackLG with patch
    removed a lot of legacy repos - only frameworks_av needs to be replaced now
    using CM11 chromium webview - applications that call evaluateJavaScript work now
    updated touchscreen drivers
    simplified camera build
    added Philz touch recovery to ROM build
    full nfc CM stuff built in now