Porting CM to the Huawei P8 - developers needed!

Search This thread

fisher6

Senior Member
Jul 5, 2010
68
124
Göteborg
I was surprised when I found that no custom ROM was available for the P8 given how solid the phone itself is. I decided then to port CM 12 myself. Although I have been programming for years, I have never worked on a custom ROM before or tried to build Android. But I thought it would be a great learning experience in any case. And it has definitely been that.

That said, I have spent that last 2 months reading and playing around with CM and made a lot of progress. But I believe I have hit a rock right now. I have asked around a lot, but feel the response has been rather limited. So I'm asking if there are any developers out there that are willing to help with this project so we can together bring CM to the P8 and ultimately other Huawei devices.

The current status of the project is that it builds and gives you a flashable zip file. I can also build the kernel source from Huawei. It does however not boot. I suspect the issue is in the boot.img, and more specifically the ramdisk. No matter what I try, it always gives me the same result after flashing. It shows the Huawei logo then reboots into the recovery. I have spent so much time on it that I feel it needs a new pair of eyes to look at it. It could be very simple or something more complicated. But I do believe I'm very close to getting it to boot. Here is a good summary too of the issue:
http://forum.cyanogenmod.org/topic/120331-help-with-ramdisk-porting-cm121-to-huawei-p8/

For anyone that is interested, I have put the device tree and kernel on Github (I will push an update later today after work since I some stuff in the past week):

https://github.com/debbiche/android_device_huawei_p8
https://github.com/debbiche/android_kernel_huawei_p8

If you have any questions or would like to help or wanna contact me for any reason. You can post here, PM me, or find me on the CM dev IRC channel on the evening (CET).

Thanks.
 

javitraver

Member
Dec 25, 2012
48
19
THANK YOU VERY MUCH!!! I would love to have a CM on this rom... unfortunately i can´t help you but I will support you my friend!! Cheers mate.
 

00471

Senior Member
Nov 5, 2011
685
188
Bratislava
It would be awesome to have CM on P8, but it would be difficult choice between CM and emui because of camera app modes and other features like signal+ , touch plus etc...
 

globen1

Member
Sep 21, 2008
38
3
I Hope some developers will help you with this. Would be sooooooo good to get CM to this device
 

fisher6

Senior Member
Jul 5, 2010
68
124
Göteborg
Some progress is being made :)
2gx0hdv.jpg
 

OmarLuay

Member
Apr 26, 2015
8
4
I would love to be a tester

I have the p8 ul10 64gb with the 935 cpu. If you need someone to test I will be more than happy to do it:)
 

loop4444

Senior Member
hi there,

im waiting for my p8 to arrive, the l09 version. placed an order few days ago.
i was a bit surprised that there are no custom roms or any mods really for this phone on xda as i always check that before oredering one.

however, the price compared to specs and build quality sold itself for me compared to other high end models..
i will be more then happy to get involved in porting CM to p8, i also know some code but never cooked a ROM before however maybe I can help in some way.

I shall send you PM when phone arrives-cheers.
 

Blackball

Senior Member
May 2, 2007
2,156
1,663
I think it will work because my rom has a ul00 Stock Rom as Base. Kernel work too. Only nfc will not work I think.
 
  • Like
Reactions: panda968

Top Liked Posts

  • There are no posts matching your filters.
  • 28
    I was surprised when I found that no custom ROM was available for the P8 given how solid the phone itself is. I decided then to port CM 12 myself. Although I have been programming for years, I have never worked on a custom ROM before or tried to build Android. But I thought it would be a great learning experience in any case. And it has definitely been that.

    That said, I have spent that last 2 months reading and playing around with CM and made a lot of progress. But I believe I have hit a rock right now. I have asked around a lot, but feel the response has been rather limited. So I'm asking if there are any developers out there that are willing to help with this project so we can together bring CM to the P8 and ultimately other Huawei devices.

    The current status of the project is that it builds and gives you a flashable zip file. I can also build the kernel source from Huawei. It does however not boot. I suspect the issue is in the boot.img, and more specifically the ramdisk. No matter what I try, it always gives me the same result after flashing. It shows the Huawei logo then reboots into the recovery. I have spent so much time on it that I feel it needs a new pair of eyes to look at it. It could be very simple or something more complicated. But I do believe I'm very close to getting it to boot. Here is a good summary too of the issue:
    http://forum.cyanogenmod.org/topic/120331-help-with-ramdisk-porting-cm121-to-huawei-p8/

    For anyone that is interested, I have put the device tree and kernel on Github (I will push an update later today after work since I some stuff in the past week):

    https://github.com/debbiche/android_device_huawei_p8
    https://github.com/debbiche/android_kernel_huawei_p8

    If you have any questions or would like to help or wanna contact me for any reason. You can post here, PM me, or find me on the CM dev IRC channel on the evening (CET).

    Thanks.
    10
    Small but significant update: There is a RIL fix for Huawei phones from a fellow developer that seems to be working. Gonna incorporate this into the P8 and do a new build. This is only for MM, work on LP has been dropped.
    9
    Turns out that I had a build made weeks ago:

    This an eng build, there is no RIL!! You cannot call or receive calls, there is no mobile data! Camera is not working either! It is meant just for trying out and get a feel of AOSP on the P8, things will crash and break! Flash at your own risk! Only tested on B200

    Download:
    - boot.img: https://mega.nz/#!LxcFzRSS!HpdLWZEDiVDSP5ThK3W9E8cPc67CXM9OcHhqSrl0-T4
    - system.img: https://mega.nz/#!Tl9BXAKZ!OLzDB0WXbE6zgW8_QbtJfxwCE1m6DmCF6q3P8bKN5gQ

    To install:
    - Do a complete backup with TWRP (I'm not responsible if you screw up)
    - Wipe
    - Flash boot.img and system.img with fastboot
    - Reboot

    Again, this is not even a pre-alpha version. Just meant for testing for those who want. I recommend restoring your back up after testing. There is no point in reporting bugs to me. Sound, bluetooth, audio/video and wifi should be working fine.
    9
    Just a small update on the status of AOSP. I have been on vacation during the past week but the two main things that I need to work on is camera and ril. Audio, wifi and bluetooth work. Xposed seems to be working too.
    6
    Some progress is being made :)
    2gx0hdv.jpg