yashsingh1/xdaforums huggingface dataset:
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
Isn't it a fork or a modified version? Well as long as it works fine we can add it.

3.10.90 is for p9? Oh well. Hope dies last. To update the 3.10.86 to the last major version will be another story but at the moment it doesn't matter.

btw [MENTION=6901118]erayrafet[/MENTION] I'd like to thank you again. I couldn't find anything higher than 3.10.61 which didn't worked for almost everyone here because of some circumstances. It was just my guess that the 3.10.86 could work for everyone while it did not for me (couldn't test it back then). I can't read chinese so there was no chance for me to find the version you linked. The project would be most likely dead without you! :good:
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] AD2076:
It's not a fork, they moved there. Omnirom is the suggested rom to build TWRP

3.10.90 is for huawei. Has the very same drivers found in 3.10.86
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
Hm well there's no reason not to try it. I'm just a bit concerned when it comes to the kernel config. It's probably not a 5min job. The current version should be fine for android 6.

Didn't know they moved. When it builds fine you could add it under the existing twrp tree as master branch just add their repository as remote upstream, fetch all, checkout their master branch and make a local master branch from it and then push this one to the existing twrp repo. Or we could just make a branch for each version tag.

I'm not sure how conftable you're with git. Had a hard time to get used to it. I can do it as well but I can't reliable say when I will have a little free time to do so.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] ralfbergs:
Where can you vote? I will +1 this thread...
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] AD2076:
They have a branch for each android version. I am gonna checkout their 6.0 branch and make it our master, is it ok?

The recovery builds fine, still trying to get rid of the bug.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
There's a rating button on top of the initial post. No need to do so I don't like that feature I was just a bit irritated by a person voting 1 for the amount of work. Must have been something personal.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] AD2076:
who cares about votes? You are doing a great a job and I am sure sooner or later (no ETA) we will fix everything!
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] lespaul79:
no doubt the great work and effort. my congratulations for all the work you've done
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] wbrambley:
Just trying a build, im getting : unusual tags user,eng,default on lights.hi3635 at device/huawei/hwgra/liblight

and unusual tags user,eng,default on libshim_rild at device/huawei/hwgra/shim_libs

and a few other lines like it. Im guessing it should be "user,eng,userdebug" in the Android.mk?
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
unusual tag isn't a problem these are just warnings. A lot of the stuff there may be trash I'd just need to clean it up one day (only liblights.hi3635 and the libshim_gui are really used so far.). But for the moment it doesn't affect the build except of those warnings.

The build must fail somewhere else for you.

I set up the build environment on 3-4 different machines. Each of those had different but minor complications but I got all of them to run quite fast.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] wbrambley:
Nope, ? made lunch, bacon was a different story.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
paste the line (preferably) the log where it states "error"

These are no errors altough I really should change that a bit:

build/core/base_rules.mk:81: unusual tags user,eng,default on lights.hi3635 at device/huawei/hwgra/liblight
build/core/base_rules.mk:81: unusual tags user,eng,default on lights.hi3635 at device/huawei/hwgra/liblight
build/core/base_rules.mk:81: unusual tags user,eng,default on libshim_rild at device/huawei/hwgra/shim_libs
build/core/base_rules.mk:81: unusual tags user,eng,default on libshim_rild at device/huawei/hwgra/shim_libs
build/core/base_rules.mk:81: unusual tags user,eng,default on libshim_hwc at device/huawei/hwgra/shim_libs
build/core/base_rules.mk:81: unusual tags user,eng,default on libshim_hwc at device/huawei/hwgra/shim_libs

Also these:

find: '../../../device/huawei/hwgra/cmhw/': No such file or directory
find: 'dummy': No such file or directory
No private recovery resources for TARGET_DEVICE hwgra

are no build breaking errors as well as all the lines stating "warning" or "ignored" just in case.

After all I need a log in order to help you.

Edit: I checked it out but for the moment it seems to only mock about install-recovery.sh AD mentioned something about "touch" this file. Anyway fixed that.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] AD2076:
The solution was adding back /recovery to twrp.fstab [MENTION=5532236]nexolight[/MENTION] found it

My workaround was to create a dummy install-recovery.sh I guess the install script is intended for devices (mostly samsung) without a /recovery partition, those devices needs recovery in a ramdisk inside the boot.img

About recovery:

we are working on a customized one. Hint: materialized

z31s1g gave me the permission to use his awesome theme as default in our build ;)
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] a.woellert:
Great work. I will try
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
Could someone provide the names of the sensors reported with the original rom?

It would make things a bit easier. It looks like a few of them are commented out in the kernel settings.

With "name" I mean the product Name/Number a.e. for Accelerometer ADXL345/6

Edit: nevermind got probably all of the sensors to work

-Accelerometer

-Compass

-Light

-Proximity

-Gyroscope

-Gravity

-Linear Acceleration

-Rotation vector

-Step counter

I probably had them already working before I switched to the new kernel (where they did not work with the old one).

The built files by CM don't work out of the box but taking the vendor sensor libraries does the job.

I'm aware this isn't pretty but in practice no one will care.

To get all the sensors to work without their libraries I guess a few kernel config changes are required. But well I have no time for experiments now.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] AD2076:
Customized TWRP

New recovery is ready. I am testing it a little more and waiting for an androidfilehost dev account. Once ready I'll publish it.

Theme materialized by [MENTION=2719389]z31s1g[/MENTION] used with author permission.

Here are some screenshots:
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] user_x25:
Nice!

Inviato dal mio HUAWEI GRA-L09 utilizzando Tapatalk
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] jsbeyond:
hi,GRA-UL10 can flash this rom?
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] AD2076:
Customized TWRP [beta]

Customized TWRP 3.0.2 for our beloved P8 is here.

You need MM installed for it to work.

The unresponsive touchscreen at start bug is still present, it's kernel related and we are working on it.

I am gonna build and upload a new version without the bug asap.

If you are installing over a different TWRP be sure screen timeout is enabled, if you are installing for the first time no worries:timeout is enabled by default.

I tested wipes, backup and restore flawlessly but I wish to have some feedback, and solve the annoying bug, before marking it as stable.

It will probably have some more eyecandy in the near future: configurable accent color and custimized logo in the splashscreen.

You can grab it here (link updated to latest build)

As usual you are responsible for what you flash on your phone ;)

---------- Post added at 10:45 AM ---------- Previous post was at 10:40 AM ----------

It may boot but you won't have dual sim support for sure (requires some tweaking) and maybe ril won't work properly.

If you wish to give it try be aware we only tested on GRA-L09 so take a full backup before flashing and please report back your results :)

Thank you
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] lataldragon:
Nothing new :confused: :cool:
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] AD2076:
Project is alive. Please be patient, there will be news...
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] Steve Giordano:
Ciao, AD2076, puoi portare la cm13 su Honor 7? visto che ha caratteristiche hardware identiche? magari clonare il tuo lavoro su github e modificarlo per honor 7? Grazie mille! :)
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] AD2076:
I'd like to but I don't own it
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] surdu_petru:
Please, there is no source code into github ( or maybe I'm not able to see it ) ...

As on Honor8/Huawei P9 , I already managed to fix : camera & camcorder, GPS, external storage & also formated as internal , I think it should be pretty easy to fix also in your device Huawei P8 !

Please, push device-tree & kernel into github to be able to help you on this project :o

There is also a new HWC started from scratch by [MENTION=7354786]XePeleato[/MENTION], and can be easily adapted to your device ... sure, is not fully working, but for start is really good !

Best regards !
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] :
https://github.com/CM-Huawei-P8-Development

Is this the one you're looking for?
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] AD2076:
The url in the previous post is the proper one. This is a learning project, would you be so kind and give some advices with explanations on how to properly achieve our goals?

Thank you!
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
As mentioned in my signature I'm most likely away until januray - Zero time to work on it. Otherwise I could fix the rest as fast as in the beginning. For the moment I will just do some management.

The project isn't death. :)

As already mentioned this is the proper github link.

https://github.com/CM-Huawei-P8-Development
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] AD2076:
As promised, the new customized twrp build is ready.

You can grab it here

Built from the same sources and config of the official one but including the custom theme.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] lespaul79:
Congratulations on this new recovery, all perfect and a very nice theme
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
Put it to the initial post.

There's a new system.img with the sensors working as well.

I updated my phone by flashing it over and reinstalling the same gapps package without wiping the cache or data.

Dirty way but I don't want to reconfigure it every time.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] javitraver:
so, currently are the sensors working? camera nfc and bluetooth? I am thinking about installing it.

thanks in advance
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] 00471:
read OP before ask answered questions, there are pinned all stuf thats are WIP, working and dont working yet
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] ChavezD:
Hi [MENTION=535343]all[/MENTION]:

First i want to say thank you to All working on this Rom, i'm following it since op created the topic and hope to see Cyanogen sometime for my p8 :)

I've got a question by now: is it already possible to Run antutu and what is the ~result? Currently on an Old emui/gratitude Version by from Future it feels sometimes kinda laggy, especially when my internal memmory was(!) above90% in use.. but from time to time it comes All again that it's lagging for a couple of seconds. Antutu has ~47k tho.. (gonna Flash gratitude v5 Magisk next week or so, need to clean up One again :D )

Looking Forward to Flash cyano One day.. keep the great work going All together! :)
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
When I don't get your question wrong - camera, nfc and bluetooth are no sensors.

What currently works is listed in the initial post.

bluetooth does work out of those you mentioned.

What does not work is cam, gps and nfc. AD is partially working on it and I will start again in january.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
I will attach a screenshot of the results. Just a moment :)

Ram usage in use is 60% atm.

It's my only phone. I can't complain about anything apart from the lacking features so far.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] 00471:
Just for comparision, result from Gratitude v5

Odoslané z GRACE pomocou Tapatalku
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] javitraver:
thank you very much for all the work that you are doing. you Have done a very hard work .
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] lespaul79:
Hi devs, I have been testing a couple of days this ROM, this is my experience; The signal with both WiFi and data is good, after a while system.ui stops working, whatsapp applications, browser, topics are closed unexpectedly, when applying some theme and reboots the system becomes slow and starts to fail screen Locking and it costs a lot to enter pin later it is almost impossible to use any application since they are closed again and again. The battery charge while the phone is on is correct however with the phone turned off only the battery icon appears without showing percentage of charge nor does the charging LED come on, when you disconnect the battery the battery icon screen always remains On. With the default theme gives few faults and goes pretty fluid except for some unexpected closures. Clean installation with wipes my model is huawei gra-l09 with android 6 and emui 4.0.1. Congratulations on all the effort and work.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
Hm I only excpected a minor set of those issues.

Never had any problem with system.ui except when I flashed the non minimalistic gapps packages. Then it became pretty unstable for me. I'm using Nova launcher with all kind of modifications. It's smooth and no issues at all when locking the screen. Also not with the default launcher. I only expirience closed applications for chrome (rare) and whatsapp (common) and very rare sometimes for other apps as well. I think this might be a single issue with any library. Probably ssl related. well this will be probably one of the last things which gets improved, after the full functionality is provided. Some logs from this kind of crashes would help (from multiple applications)

Yep there's an issue with the battery when it's turned off. Only the charging indicator is shown and no percentage. Also it gets quite hot in this case. However I don't quite understand how this "can" happen. I assume this is bootloader stuff which I didn't have touched at all. So if anyone has an idea feel free to share it :). It might be possible that the system or boot partition is accessed in this state but it seems very unlikely to me.

Edit: There are png files related to the battery in the original bootimage. I will try to include them to fix the charger display when the device is off.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] lespaul79:
Hello developer, your ROM is quite fluid and fast, the gaps I installed were nano gaps, I will try to flash again and install other gaps, with the default theme there are hardly any closures only when I apply another cm theme, as always congratulate you for all your Effort and work and have managed to carry cm for p8.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
We will do our best.

Meanwhile about the charging problem see https://github.com/CM-Huawei-P8-Development/device_gra_l09/issues/3

In my opinion this isn't a minor issue. But at the moment I don't have the time to fix it.

Also for further bugs - feel free to open one in github. They are more easy to track there.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] surdu_petru:
Hello [MENTION=5532236]nexolight[/MENTION] , [MENTION=6233909]AD2076[/MENTION] :o

I had time to take a look over your project source code ...

Here is what you can easily fix for moment : GPS, NFC & Off Charging !

NFC :

- please switch to NQNFC, here you can see all the commits for enable NFC, please check (Commits on Dec 13, 2016 ) ...

GPS :

- please run getprop to determine which is the gps service used on your device ! you should be able to see something like this ( [init.svc.gpsd_xxxx]: [running] ) . At this time, knowing xxx value, just rename gpsxxx.default.so to gps.hi3635.so . Also you can see on my github how I managed to fix GPS, please check commits from : ( Commits on Nov 20, 2016 & Commits on Dec 11, 2016 )

Charging Off mode :

- basically, we added a new service ( service charger_huawei /sbin/healthd -c ) defined on init.hi3635.rc on your case and started "on charged" !

- on BoardConfig.mk was added "BACKLIGHT_PATH" , and animations was enabled by this line ( write /sys/devices/virtual/graphics/fb0/mode "U:1080x1920p-0" ) also added "on charger" by [MENTION=4400604]Meticulus[/MENTION] ! Please check this commit for more info !

Please, let me know if you need more info !
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] AD2076:
Thank you. We are both quite busy atm but I am gonna try asap :)
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
[MENTION=2335078]surdu_petru[/MENTION] thx for the tipps :)

I was experimenting with this BACKLIGHT_PATH when I first saw this. There's also one for red,green, and blue LED in the same mk file for healtd. (We don't have rgb led on power-off charge right?)

Is your healthd copied or does it come from the ndk? Shouldn't it be already a service? (Our init layout is kind of a mess at the moment-I'd need to grep it)

This line:

/sys/devices/virtual/graphics/fb0/mode "U:1080x1920p-0"

Where did you wrote it? Was that a kernel parameter, a line in the init or just writing it at runtime or boot like "echo >"~

I don't have the stockrom to see what gps service runs. However when it's just that file then it's easy. the .default or .<board-id> files are in lib(64)/hw/ for all of those kind at least for this device. However depending on what xxx in gpsxxx.default.so it it may be possible to build it directly. To my point of understanding .default indicates that this comes from the ndk without any huge modifications where for .<board-id> the source is modified and in the device tree. I know that the kernel messages indicate that it looks into some vendor lib folders, then the .default files and then the .hi3635 files.

just like ad said we're very busy but with the hints it may be possible to fix one per day where we could work on it. Gambling with that stuff until it works is very time intensiv.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] AD2076:
I do, it's 47531
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
This is the BCM47531 chip. There may be the sourcecode eighter in the ndk or available as download from boardcom.

The Galaxy Note 4 seems to have the same chip.

And well otherwise we can still copy it.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] surdu_petru:
healthd is the stock CM ( builded by CM ), you don't have to worry about it !

Ok, but why you don't try to take a look on my github ?? ... I posted a link above for this stuff, does you checked it ?

So, once again, please check all my links posted above to understand better, if you still need help, please let me to know :o

Ok, so just rename on your vendor blobs : system/lib64/hw/gps47531.default.so to system/lib64/hw/gps.hi3635.so or gps.default.so !

Now GPS should be OK !

Good luck !

Edit :

To be able to see what gps service runs, your device don't need to be in stock ... you can check on CM as well ( and is better to check on CM, in this way you'll be able to see if gps service runs, if not you should rework ramdisk ) !
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
[MENTION=2335078]surdu_petru[/MENTION]

lacking time I couldn't look at any git today. I work more than 100% so :/. I can easily answer when I'm traveling on my phone but anythin else requires another environment.

Anyway I will look at it as soon as possible :)
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
Ok well I guess I have to make my own forked repositorys and manifest. That will take a while.

... Just another question. It seems that most of the dev's don't provide the vendor files in their repositorys. Why is that?
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] Blackball:
Hi, Do you want to build android 5.0 or 6.0?

If a dev try to build an unoffical build he had all stock vendor files in his own data and pick all needed with the vendor script. I think ;)
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
I have the files for both versions (trying to build 6.0) it's easy to extract them from the update.app as well. I just wondered if that wouldn't eventually cause problems with slightly different versions. Atm I'm busy setting up the build environment with a local manifest so that I can change a bit of the framework source.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] Blackball:
And with 6.0 you have a working log?
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
jep I get full adb access directly after the kernel starts the init. It's one of my first services (had to edit the usb rc a little bit for devlopment purposes) otherwise I get adb access as soon as I get the bootlogo. Logcat works as well --> http://pastebin.com/raw/0sTM3EfS
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] Blackball:
Hi, boot again with permissive kernel. This could fix a little bit. Your system cant read the files.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
It is permissive. On permissive the error is shown but only once and the action is performed normally. I make some progress by now :)
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] Blackball:
Is the bootclasspath correct?

In your log are lot of huawei framework files that you dont need for cm. Like hwcust....
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
I'm not too familliar with that so I merged them. So I'd just need the default ones?

Edit: Ok I ommited them in a test but it's no difference.

At the moment I'm implementing some missing jni calls. They don't seem related to that.

I decided to make public what I have so far so here is it. Not sure if that works at the first try.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] Tarumahr:
I love you'r work. Thanks from all who have huawei p8!!!! C'mon mate!!!
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] KRiST0F:
nice work bro can't wait to see the result!
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] lataldragon:
It seems to be very difficult to create a Rom for CyanogenMod, if not even working Cyanogenmod itself thereto. Think Huawei has released source for developers will have more room?
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
I had zero knowledge (not even about android) and started straight with this port without even building a working source tree... Well from the time I started up to now a half year has passed. But I only worked very intensiv on it for the last 2 months. I guess it's something one can do when one has good expirience with linux systems and knows 1-3 programming languages very well. An important part is to learn about the debug tools and how to use them.

Huawei released some of their source but not everything. That's ok but what really makes me upset is that they don't provide their recent kernel source.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
Some new logs http://pastebin.com/raw/yTCwr7e6

I made a few workarounds (not that important missing jni functions). Now it seems to stuck on:

The message just looks a bit different than the previous errors. Someone knows where these static methods usually reside?