[ROM][Unofficial][5.1.1] CyanogenMod 12.1 for Huawei Honor 4/4X [beta2]

Search This thread

dianlujitao

Senior Member
Jan 27, 2013
735
4,840
Xi'an
yuko.moe
CyanogenMod is a free, community built, aftermarket firmware distribution of Android 5.1 (Lollipop), which is designed to increase performance and reliability over stock Android for your device.​
Code:
#include <std_disclaimer.h>

/*
 * Your warranty is now void.
 *
 * We are 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 us for messing up your device, we 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. You will need to provide your own Google Applications package (gapps). 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 our Gerrit Code Review. Your changelog is whatever was merged into gerrit.

Official CyanogenMod 12.1 nightlies thread: http://forum.xda-developers.com/android/development/rom-cyanogenmod-12-1-nightlies-huawei-t3203635

Official CyanogenMod Wiki:http://wiki.cyanogenmod.org/w/Main_Page

Important information:
  • This thread is for CyanogenMod 12.1 builds for Huawei G620S, Honor 4/4X
  • Kernel based on official kernel source for Honor 4C(MSM8939), ported to MSM8916, update necessary drivers to QCOM lolipop baseline, and update from v3.10.28 to v3.10.49.
  • Many vendor blobs kang from rendang
  • Init scripts from Qualcomm's latest baseline: LA.BR.1.2.4-02710-8x16.0
  • Use open sourced charger
  • Set minium screen backlight to 5
  • If your device have an official lolipop port, please install that before install this CM port.

Supported devices:
  • C8817D
  • C8817E
  • G621-TL00
  • G620S-UL00
  • Che1-CL20
  • Che1-CL10
  • Che1-L04
G620S-L01 users please turn to surdu_petru's thread
I stop supporting the device for now!

What works:
  • Everything EXCEPT NFC

Installation:
First time flashing CyanogenMod 12.1 on your device, or coming from another ROM?
  1. Download the zip(s)
  2. Install a compatible Recovery, e.g., my TWRP with F2FS support: http://forum.xda-developers.com/android/development/recovery-twrp-2-8-7-0-touch-recovery-t3199386
  3. Perform a nandroid backup of your current ROM (Optional)
  4. Wipe data/factory reset
  5. Flash CyanogenMod
  6. Optional: Install the Google Apps addon package. OpenGAPPS recommended
  7. Reboot

Source code:
  1. https://github.com/cyanogenmod
  2. https://github.com/dianlujitao

Screenshots:
16lwf10.jpg

idyxyh.jpg

153rvol.jpg

5cefpt.jpg

2m82x06.jpg

6gd92a.jpg


Changelog:
15/9/10:
  • First release

15/9/13:
  • Sync with latest CyanogenMod source
  • Fix CPU Hotplug
  • Enhance Wifi signal strength (credits: @surdu_petru)
  • Fix multi-color battery & notifiction LED
  • Fix FLAC playback for some third-party players
  • Enable MTP by default
  • Add call recording
  • Add support for F2FS
  • Add PCC calibration interface
  • Add double-tap-to-wake
  • Add glove mode
  • Add HW-based crypto support in kernel
  • Update CPU gorvenor driver from Qualcomm
  • Update thermal driver from Qualcomm
  • Update kernel scheduler and related syscalls (sched) from Qualcomm
  • Update memory manager from Qualcomm
  • Update lowmemorykiller from Qualcomm
  • Update bluetooth blobs from rendang
  • Enable KSM
  • Merge a bunch of kernel updates from Qualcomm baseline (see kernel commit for details)
  • Set SELinux to enforcing mode

Download:
http://yunpan.cn/cm4X5Hd42g3MA
Password: 345b

Credits:
  • Code Aurora Forum
  • CyanogenMod Team
  • @surdu_petru
  • EloYGomeZ
  • ivan19871002
  • syhost
  • zhaochengw
  • mandfx
  • cofface

XDA:DevDB Information
CyanogenMod, ROM for all devices (see above for details)

Contributors
dianlujitao
Source Code: https://github.com/dianlujitao

ROM OS Version: 5.1.x Lollipop
ROM Kernel: Linux 3.10.x
Based On: CyanogenMod

Version Information
Status: Beta
Current Beta Version: 2
Beta Release Date: 2015-09-13

Created 2015-09-10
Last Updated 2015-09-17
 

bmasgone

Senior Member
Dec 5, 2013
222
82
Plovdiv
Hi @dianlujitao ,
I`m going to test your CM build as far as just NFC not working .. I don't use NFC anyway ..

I`ve got just one question. What kind of GAPPS to download for this build .. ARM or ARM64?
 

bmasgone

Senior Member
Dec 5, 2013
222
82
Plovdiv
Already installed and testing.. Until now:
1. WiFi coverage is very weak .. Even very close to the router signal is not 100% .. over 6-7 meters and its half already (with stock based is full). ..
2. GPS works .. find and fix satellites ..
3. Compass still not working 100%. After every reboot needs complex and long calibration .. Works with some apps like Google Maps .. but don't work with other like GPS Status and Toolbox.. So not fixed properly yet..
4. Heating is not like in previous builds for now .. Its not like B266 javix .. but its kind of optimized ..
5. Mobile Data, WiFi on/of .. seem like is fixed .. There is not sim disconnect for now ..
6. CPU states issue . .still not fixed .. 200-400-533 states are not used ..
7. Sound is not crackling like previous builds .. but its low, recording too. Very very low sound when talking too ..
8. Auto Rotate is working .. Camera can't shoot videos in Portrait ..

The ROM itself is very very fast and fluid .. Cant say anything for now about multitasking .. but seems fine at this moment.. Need time to see battery life too..

In other side .. I don't know is it about my device or GAPPS/ROM itself, but a lot of apps from PlayStore can't be installed (Error 403).

So .. I`m back to B266 Stock for now .. waiting someone else to report when everything is fine .. because I use the device daily, but its not possible with CM12.1 builds for now ..

Thanks for the hard work .. again .. "Keep Walking" .. ;):fingers-crossed:
 
Last edited:
  • Like
Reactions: skulleagle

desalesouche

Senior Member
Feb 6, 2012
3,651
4,297
Hi. i am testing your rom.
i do confirm the problem about weak wifi.
Camera can't shoot videos in Portrait + it seems that things are distorted...
no possibility to set battery led color or notification led colors?
rom is very fast and fluide, that is good surprise...
actualy compiling with you cherry device tree give that kind of errors related to sensors folder...
http://pastebin.com/MV9VvGM8
but i look in your device tree on github there is no sensors folder... ??? :confused:
https://github.com/dianlujitao/android_device_huawei_cherry/tree/cm-12.1
i checked and there is a sensors folder in the zip i downloaded from github...
 
  • Like
Reactions: skulleagle

bmasgone

Senior Member
Dec 5, 2013
222
82
Plovdiv
I cant restore my TWRP B266backup .. This is not happen to me until now .. After restore, the device immediately boot into TWRP and so on forever .. What should be the reason?
 

dianlujitao

Senior Member
Jan 27, 2013
735
4,840
Xi'an
yuko.moe
Hi. i am testing your rom.
i do confirm the problem about weak wifi.
Camera can't shoot videos in Portrait + it seems that things are distorted...
no possibility to set battery led color or notification led colors?
rom is very fast and fluide, that is good surprise...
actualy compiling with you cherry device tree give that kind of errors related to sensors folder...
http://pastebin.com/MV9VvGM8
but i look in your device tree on github there is no sensors folder... ??? :confused:
https://github.com/dianlujitao/android_device_huawei_cherry/tree/cm-12.1
i checked and there is a sensors folder in the zip i downloaded from github...

I use prebuilt sensor hal from kitkat, or auto rotation can't work
I'll switch to surdupetru's wifi config to fix the leak wifi signal.

Another important thing I'd like to say,
@surdu_petru is using stock kitkat ril blobs, but data network can't start with them on a dual-sim device, e.g, my c8817d, so I use ril and qmi blobs from rendang, so issue comes. Many people they can't disconnect a call. Althrough rendang's blobs works well on my c8817d, some c8817d users told me they can't disconnect a call, it's very strange.
But some honor 4x users provide solution: Install official lolipop release, then wipe and install cm, the issue above got solved.
So I guess some kinds of baseband aren't compatible with rendang's ril blobs. My c8817d uses a very old baseband from emui2.3.
If anyone use my cm and got the above issue, there are 3 possible solution:
1. For those who have an official lolipop release, install it before install cm.
2. For those who don't, try to flash a old emui2.3 release instead of emui3.0, maybe you're lucky.
3. Use surdu_petru's release, it works well with single-sim devices
 

desalesouche

Senior Member
Feb 6, 2012
3,651
4,297
I use prebuilt sensor hal from kitkat, or auto rotation can't work
I'll switch to surdupetru's wifi config to fix the leak wifi signal.

Another important thing I'd like to say,
@surdu_petru is using stock kitkat ril blobs, but data network can't start with them on a dual-sim device, e.g, my c8817d, so I use ril and qmi blobs from rendang, so issue comes. Many people they can't disconnect a call. Althrough rendang's blobs works well on my c8817d, some c8817d users told me they can't disconnect a call, it's very strange.
But some honor 4x users provide solution: Install official lolipop release, then wipe and install cm, the issue above got solved.
So I guess some kinds of baseband aren't compatible with rendang's ril blobs. My c8817d uses a very old baseband from emui2.3.
If anyone use my cm and got the above issue, there are 3 possible solution:
1. For those who have an official lolipop release, install it before install cm.
2. For those who don't, try to flash a old emui2.3 release instead of emui3.0, maybe you're lucky.
3. Use surdu_petru's release, it works well with single-sim devices
thank you sir for yours answers. i think that testin surdu petru or your work is quite interesting, and it might help to pick up the best from both of you and your work in the benefit of g620s and others device users...
 
Last edited:

bmasgone

Senior Member
Dec 5, 2013
222
82
Plovdiv
Come on .. give me some advice :)
After I installed this ROM, now cant install any other or restore my backup ... TWRP report that the ROM is Installed or Restored sucessfully, but as I said ... when I reboot system .. it brings me back to TWRP .. all the time .. :confused:
PS: I found the way to install ROM with DLOAD folder on SD and Stock Recovery .. But I`m still confused what this ROM did ..
 
Last edited:

dianlujitao

Senior Member
Jan 27, 2013
735
4,840
Xi'an
yuko.moe
Already installed and testing.. Until now:
1. WiFi coverage is very weak .. Even very close to the router signal is not 100% .. over 6-7 meters and its half already (with stock based is full). ..
2. GPS works .. find and fix satellites ..
3. Compass still not working 100%. After every reboot needs complex and long calibration .. Works with some apps like Google Maps .. but don't work with other like GPS Status and Toolbox.. So not fixed properly yet..
4. Heating is not like in previous builds for now .. Its not like B266 javix .. but its kind of optimized ..
5. Mobile Data, WiFi on/of .. seem like is fixed .. There is not sim disconnect for now ..
6. CPU states issue . .still not fixed .. 200-400-533 states are not used ..
7. Sound is not crackling like previous builds .. but its low, recording too. Very very low sound when talking too ..
8. Auto Rotate is working .. Camera can't shoot videos in Portrait ..

The ROM itself is very very fast and fluid .. Cant say anything for now about multitasking .. but seems fine at this moment.. Need time to see battery life too..

In other side .. I don't know is it about my device or GAPPS/ROM itself, but a lot of apps from PlayStore can't be installed (Error 403).

So .. I`m back to B266 Stock for now .. waiting someone else to report when everything is fine .. because I use the device daily, but its not possible with CM12.1 builds for now ..

Thanks for the hard work .. again .. "Keep Walking" .. ;):fingers-crossed:

cpu min frequency locked at 800mhz, it isn't a bug.
See line 529 at https://www.codeaurora.org/cgit/qui...c/init.qcom.post_boot.sh?h=LA.BR.1.2.4_rb1.17
I'm just do in Qualcomm's way.
 
  • Like
Reactions: bmasgone

desalesouche

Senior Member
Feb 6, 2012
3,651
4,297
Come on .. give me some advice :)
After I installed this ROM, now cant install any other or restore my backup ... TWRP report that the ROM is Installed or Restored sucessfully, but as I said ... when I reboot system .. it brings me back to TWRP .. all the time .. :confused:
PS: I found the way to install ROM with DLOAD folder on SD and Stock Recovery .. But I`m still confused what this ROM did ..
i had same problem a few days ago, here is what i did... i restored backup of stock rom , then i flashed in fastboot mode stock recovery and all went fine...
 
  • Like
Reactions: bmasgone

Madhunath

Senior Member
Mar 24, 2013
80
27
I tried your Rom. Thanks for the wonderful job. As you said, I am also unable to disconnect a call. Please fix the issue. Most of the other things are working fine or adjustable.
 

desalesouche

Senior Member
Feb 6, 2012
3,651
4,297
In fact I don't own a g620s, I only have a c8817d, so it's better for you to use surdu's code
Hello, it might be better but how can i know that camera is opening so slowly at first boot with surdu petru device tree, 15 secondes if we don't use your device tree or rom? camera is opening in about 4 or 5 secondes...
we have to concentrate good points from one or the other dev . like first boot from your rom is really faster than surdu cm...( i think because of some defconfig tweaks) boot.img is more little also.....but i think that things will be soon better as newer devs are coming on that device...
 

Madhunath

Senior Member
Mar 24, 2013
80
27
Downloaded

If you open it on computer, you'll find download link

Thanks. Downloaded and flashed. Only one problem. The call is not hanging up after disconnecting. A reboot is required each time to call another number or receive a call. Please fix it.
 

Attachments

  • Screenshot_2015-09-13-22-38-22.png
    Screenshot_2015-09-13-22-38-22.png
    25.8 KB · Views: 126

dianlujitao

Senior Member
Jan 27, 2013
735
4,840
Xi'an
yuko.moe
Thanks. Downloaded and flashed. Only one problem. The call is not hanging up after disconnecting. A reboot is required each time to call another number or receive a call. Please fix it.

Currently I've no idea, it works well on some devices, and can't disconnect a call on others.
If your device have a official lolipop, install it and it gets solved.

If someday I get a common solution I'll let you know
 

Top Liked Posts

  • There are no posts matching your filters.
  • 14
    CyanogenMod is a free, community built, aftermarket firmware distribution of Android 5.1 (Lollipop), which is designed to increase performance and reliability over stock Android for your device.​
    Code:
    #include <std_disclaimer.h>
    
    /*
     * Your warranty is now void.
     *
     * We are 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 us for messing up your device, we 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. You will need to provide your own Google Applications package (gapps). 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 our Gerrit Code Review. Your changelog is whatever was merged into gerrit.

    Official CyanogenMod 12.1 nightlies thread: http://forum.xda-developers.com/android/development/rom-cyanogenmod-12-1-nightlies-huawei-t3203635

    Official CyanogenMod Wiki:http://wiki.cyanogenmod.org/w/Main_Page

    Important information:
    • This thread is for CyanogenMod 12.1 builds for Huawei G620S, Honor 4/4X
    • Kernel based on official kernel source for Honor 4C(MSM8939), ported to MSM8916, update necessary drivers to QCOM lolipop baseline, and update from v3.10.28 to v3.10.49.
    • Many vendor blobs kang from rendang
    • Init scripts from Qualcomm's latest baseline: LA.BR.1.2.4-02710-8x16.0
    • Use open sourced charger
    • Set minium screen backlight to 5
    • If your device have an official lolipop port, please install that before install this CM port.

    Supported devices:
    • C8817D
    • C8817E
    • G621-TL00
    • G620S-UL00
    • Che1-CL20
    • Che1-CL10
    • Che1-L04
    G620S-L01 users please turn to surdu_petru's thread
    I stop supporting the device for now!

    What works:
    • Everything EXCEPT NFC

    Installation:
    First time flashing CyanogenMod 12.1 on your device, or coming from another ROM?
    1. Download the zip(s)
    2. Install a compatible Recovery, e.g., my TWRP with F2FS support: http://forum.xda-developers.com/android/development/recovery-twrp-2-8-7-0-touch-recovery-t3199386
    3. Perform a nandroid backup of your current ROM (Optional)
    4. Wipe data/factory reset
    5. Flash CyanogenMod
    6. Optional: Install the Google Apps addon package. OpenGAPPS recommended
    7. Reboot

    Source code:
    1. https://github.com/cyanogenmod
    2. https://github.com/dianlujitao

    Screenshots:
    16lwf10.jpg

    idyxyh.jpg

    153rvol.jpg

    5cefpt.jpg

    2m82x06.jpg

    6gd92a.jpg


    Changelog:
    15/9/10:
    • First release

    15/9/13:
    • Sync with latest CyanogenMod source
    • Fix CPU Hotplug
    • Enhance Wifi signal strength (credits: @surdu_petru)
    • Fix multi-color battery & notifiction LED
    • Fix FLAC playback for some third-party players
    • Enable MTP by default
    • Add call recording
    • Add support for F2FS
    • Add PCC calibration interface
    • Add double-tap-to-wake
    • Add glove mode
    • Add HW-based crypto support in kernel
    • Update CPU gorvenor driver from Qualcomm
    • Update thermal driver from Qualcomm
    • Update kernel scheduler and related syscalls (sched) from Qualcomm
    • Update memory manager from Qualcomm
    • Update lowmemorykiller from Qualcomm
    • Update bluetooth blobs from rendang
    • Enable KSM
    • Merge a bunch of kernel updates from Qualcomm baseline (see kernel commit for details)
    • Set SELinux to enforcing mode

    Download:
    http://yunpan.cn/cm4X5Hd42g3MA
    Password: 345b

    Credits:
    • Code Aurora Forum
    • CyanogenMod Team
    • @surdu_petru
    • EloYGomeZ
    • ivan19871002
    • syhost
    • zhaochengw
    • mandfx
    • cofface

    XDA:DevDB Information
    CyanogenMod, ROM for all devices (see above for details)

    Contributors
    dianlujitao
    Source Code: https://github.com/dianlujitao

    ROM OS Version: 5.1.x Lollipop
    ROM Kernel: Linux 3.10.x
    Based On: CyanogenMod

    Version Information
    Status: Beta
    Current Beta Version: 2
    Beta Release Date: 2015-09-13

    Created 2015-09-10
    Last Updated 2015-09-17
    4
    2
    Thanks. Downloaded and flashed. Only one problem. The call is not hanging up after disconnecting. A reboot is required each time to call another number or receive a call. Please fix it.

    Currently I've no idea, it works well on some devices, and can't disconnect a call on others.
    If your device have a official lolipop, install it and it gets solved.

    If someday I get a common solution I'll let you know
    2
    Hi. i am testing your rom.
    i do confirm the problem about weak wifi.
    Camera can't shoot videos in Portrait + it seems that things are distorted...
    no possibility to set battery led color or notification led colors?
    rom is very fast and fluide, that is good surprise...
    actualy compiling with you cherry device tree give that kind of errors related to sensors folder...
    http://pastebin.com/MV9VvGM8
    but i look in your device tree on github there is no sensors folder... ??? :confused:
    https://github.com/dianlujitao/android_device_huawei_cherry/tree/cm-12.1
    i checked and there is a sensors folder in the zip i downloaded from github...

    I use prebuilt sensor hal from kitkat, or auto rotation can't work
    I'll switch to surdupetru's wifi config to fix the leak wifi signal.

    Another important thing I'd like to say,
    @surdu_petru is using stock kitkat ril blobs, but data network can't start with them on a dual-sim device, e.g, my c8817d, so I use ril and qmi blobs from rendang, so issue comes. Many people they can't disconnect a call. Althrough rendang's blobs works well on my c8817d, some c8817d users told me they can't disconnect a call, it's very strange.
    But some honor 4x users provide solution: Install official lolipop release, then wipe and install cm, the issue above got solved.
    So I guess some kinds of baseband aren't compatible with rendang's ril blobs. My c8817d uses a very old baseband from emui2.3.
    If anyone use my cm and got the above issue, there are 3 possible solution:
    1. For those who have an official lolipop release, install it before install cm.
    2. For those who don't, try to flash a old emui2.3 release instead of emui3.0, maybe you're lucky.
    3. Use surdu_petru's release, it works well with single-sim devices
    1
    Already installed and testing.. Until now:
    1. WiFi coverage is very weak .. Even very close to the router signal is not 100% .. over 6-7 meters and its half already (with stock based is full). ..
    2. GPS works .. find and fix satellites ..
    3. Compass still not working 100%. After every reboot needs complex and long calibration .. Works with some apps like Google Maps .. but don't work with other like GPS Status and Toolbox.. So not fixed properly yet..
    4. Heating is not like in previous builds for now .. Its not like B266 javix .. but its kind of optimized ..
    5. Mobile Data, WiFi on/of .. seem like is fixed .. There is not sim disconnect for now ..
    6. CPU states issue . .still not fixed .. 200-400-533 states are not used ..
    7. Sound is not crackling like previous builds .. but its low, recording too. Very very low sound when talking too ..
    8. Auto Rotate is working .. Camera can't shoot videos in Portrait ..

    The ROM itself is very very fast and fluid .. Cant say anything for now about multitasking .. but seems fine at this moment.. Need time to see battery life too..

    In other side .. I don't know is it about my device or GAPPS/ROM itself, but a lot of apps from PlayStore can't be installed (Error 403).

    So .. I`m back to B266 Stock for now .. waiting someone else to report when everything is fine .. because I use the device daily, but its not possible with CM12.1 builds for now ..

    Thanks for the hard work .. again .. "Keep Walking" .. ;):fingers-crossed: