yashsingh1/xdaforums huggingface dataset:
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
I guess I prefer to leave them there for the moment. I have a few vendor libs and some of them need some properties which I could accidently delete as I'm not aware of all dependencies of that kind. They don't do bad things when they don't get used. Other stuff has priority.

Usually the compiler is smart enough to pickup the changes you do and then it only recompiles that part., watch for blue/cyan "install" messages. When you apply someone elses commits and don't know exactly which module they affect I'd eighter just do mka again without deleting the initial build and then flash the result. When you know which module the changes affect then you can just do mm -B within the directory to force rebuild that part and in case not many files got rebuilt I usually just use "adb push" after "mount -o remount /system". I rarely do a full rebuild it's just to time intense except for uploads.

For all the things I do. I usually first try it by myself before I consider to even look at the work from someone else. Might be good or bad in some scenarios.

Edit: When I get you right some of the commits may have sourcode in it. When they are optional in Android.mk you need to apply the name of that package to device_whatever.mk under PRODUCT_PACKAGES
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] rotmistr:
Did you check it with both Sim cards? Will it be able to turn on 3g/4g on the second Sim instead of the first one?

I don't know about the p8 but Honor 7 is only capable of the 3g/4g for one sim.

Thank you in advance for the answer.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] modrate:
am really glad u guys are getting this rom for our huawei p8 :D wish u the best thanks !
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
GRA-L09 is a single sim phone and that's what I'm working for.

I can't state anything about what happens when you flash it on other "P8" versions. As I said it might work but even then you might have to play around with phone.props and build.props to get a second sim to run.

My guess

from what I've heard

it may be possible that both show up but the second one will only have 2g. The files needed should be at least present.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
Porgess is getting slow. I'm trying to get the camera to run but my current state on this branch leads to data and system partition corruption from time to time (don't ask me why). I have to reflash it each time. Well not even restoring the backup is fine. Need to use the stock recovery to repair the partitions.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] wfonz:
So the next build to come out will have everything working but the camera and GPS? Or you want to fix one of these before uploading the build?

Thx for your awesome job!
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
Depends

I personally wanted to upload the next one when one of these features is available.

The thing is just I don't want to upload the unclean builds I'm using during devlopment/testing. They aren't that stable.

A clean build takes about 1.5-2hrs.

In case I do one before I finished the work on gps/cam I will upload it.

There's more what doesn't work but nothing essential. FM Radio and some minor bugs.

https://github.com/CM-Huawei-P8-Development/device_gra_l09/issues

Apart from that that's all what's left.

PS: building the latest version isn't that hard. Basically just follow the instructions in the local_manifests repository.

"source build/envestup.sh", "lunch cm_hwgra-userdebug", "mka"; And done. Watch out for command not found log entries. I had to install 2-3 tools on each of my machines. jdk8 maven, and a few more. Ok I guess some basic Linux expirience is required.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] wfonz:
Thx a lot for this

I will wait the next build and install it for sure.

Meanwhile, I created a telegram open group

It could be useful also to try fixes and report bugs quickly

If you wanna join

https://telegram.me/huawei_p8
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
Got flashlight to work with some nasty workarounds so far.

Edit: And camera!

At least I can open it (back and front video & photo).

Edit: taking photos is ok - recording videos is not.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
Well bug reports are supposed to go to github.

Furthermore This is my only device. I'm basically flashing it over and over again so I'd need to reinstall and probably buy telegram. I'd rather use threema but I'm not very excited about the idea at all ;).
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] AD2076:
videorec not working is a known issue on CM13, seems fixed in 14.1
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] Speedo.thc:
Hello, many felicitations, this is a big step , you could try footje camera at play store, this app use old api, and maybe can record video.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] AD2076:
Exactly the workaround I used on my old good S4
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
I will try that. It doesn't look like a low level error or something like this. More like a requested but not supported framerate.

I just made it work haven't tested all ideas yet.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
This particular one crashes on start.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] Speedo.thc:
Oooops ...
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
In fact no cam app does work for video recording. And only qvga quality is reported for recording. something isn't perfect yet.

Looks like codec issues. AT least it's the same with any screenrecorder.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] Speedo.thc:
... if I remember well, Meticoulous did change codecs from hwcodecs to googles ones, I've also see added lines for camera inside system.prop.. But hey ! You can relaxe yourself rude boy.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
I already use the google codecs. Trying to change them doesn't make any difference for me so far.

Why I'm a rude *girl?

Edit:

When I remember correctly surdu reverted his hwc patch because it broke screen recording. In case it's the same issue it's not just that but h.246 encoding.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] Speedo.thc:
Hey, it's French translated expression, "baleze" mean you are strong too ... So OK rude girl :laugh:
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
I think I will move on to gps next time and look at it later in case meanwhile no one else has an idea.

At least taking pictures does work.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
I uploaded the latest images.

Be aware for camera the app crashes for the very first time but works fine afterwards.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] Speedo.thc:
Yep, I will try all change for H7 tomorrow, ( cross my finger to see camera working as it is, if not... i will try to port it )

hundred thanks for how you work hard for community.

Good night.

Best regards
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] Ticamomille:
Hello !

Comme il y a un français dans l'équipe, je le laisserai traduire pour moi :angel:

Alors dernière version installée sur mon tél : appareil photo impec (sauf vidéo comme prévu bien sûr), par contre ça crashe avec l'app Shopmium (je peux vous inviter à le découvrir c'est pas mal), à la mise au point de l'appareil ... je ne sais pas si c'est l'appli pas bien prise en charge ou l'app photo qui est en cause...

GPS : il me situe mais effectivement ne se déplace pas quand on bouge, j'ai hâte que ce soit ok.

Le reste : :good: :good: :good:

@+
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] fpippo1999:
Speak English! Fourth rule of XDA
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] Ticamomille:
it's sometimes difficult to explain exactly in english my bugs so i ask to Speedo.thc to help me...
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
Je ne peux pa parle du baguette ;)

I will try to understand it later ok.

First the dalvik heapsize is a bit limited and that's the reson why some apps crash. Increasing it does help at least for the playstore. It crashed quite often before.

dalvik.vm.heapgrowthlimit=128m

from 48m to 128m.

In case anyone wants to apply it before the next build.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] ASMstudent:
I'm on speedo.thc cm for honor 7 and was really bothered by this issue with almost all of my apps but after I changed this line as you said everything is working fine till now, sorry to invade and keep up the good work.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
I cant find this app in the playstore. However The camera functionality is fine as long as it doesn't try to record video. Then it will crash. The app may try that in the background.

Apart from that there are a few apps which do crash for no obvious reason. The thing I mentioned in my last post may be responsible for some of those crashes.

All you can do is to post the error message (via adb or from logfiles) here https://github.com/CM-Huawei-P8-Development/device_gra_l09/issues/9

There's no way for me to make all your prefered "3th party" apps work. But I can see if the errors are related to some things which don't behave as they should and maybe fix the source of the issues.

[MENTION=6909327]muhammad Shohayeb[/MENTION]

I just had adb connected during a playstore crash and noticed the oom (out of memory) message. I changed it today directly on my phone on my way just out of curiosity but I had less issues afterwards. This isn't really tested but seems to help. 128m should be fine. When I remember right default jvm size in linux is about 256m. This is dalvik but anyway.

Edit:

I think these sizes should be fine:

https://github.com/CM-Huawei-P8-Dev...mmit/8d5cdb148b7909062c29756103b6a0ecc2042f00
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] ASMstudent:
Unfotunately I had few crashes, will try these value and see.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] fpippo1999:
I will try it for one week. I'll give you feedback
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] Kostyan_nsk:
Why don't you just include in your device.mk

$(call inherit-product, frameworks/native/build/phone-xxhdpi-3072-dalvik-heap.mk)
$(call inherit-product, frameworks/native/build/phone-xxhdpi-3072-hwui-memory.mk)

instead of putting ADDITIONAL_BUILD_PROPERTIES in your BoardConfig.mk:confused:
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] ASMstudent:
It became rare for an app to crashe but it happens, if I wiped dalvik cache will it help?
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] erayrafet:
The "dalvik.vm.heapsize" property is set to 256 on stock ROM so "dalvik.vm.heapgrowthlimit" should be even higher
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] ASMstudent:
I don't know but I think this memory thing is only part of it, I used to have these crashes every time I open more than 3 tabs but now it's totally random I could open more than 7 tabs with no issue but still get few random crashes from regular apps not using much memory.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] Ticamomille:
Bugs i found :

Some apps crashs ans it's totally ramdom like said Muhammad...

French app shopmium works if only i have the best wifi signal or it's the ril bug (i'll give logfiles tomorrow)

Best regards
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
As far as I know this isn't the case. heapsize should be higher than dalvik.vm.heapgrowthlimit. but anyway.

[MENTION=6152035]Kostyan_nsk[/MENTION] Well why I'm supposed to know that I should do that :angel: There's not that much usuable information around for creating a new cyanogenmod. Thx :) that will help.

[MENTION=535343]all[/MENTION] at the moment the main goal isn't to fix 3th party apps I won't investigate at all before the rest does work...
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] ayesse:
Trying this rom. I'm already in love with it.

Has anyone tried to use external sd card as internal storage? I can't set up my card..
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
Yep seems that the fix hasn't worked as expected (As I said - untested; I don't have an sdcard; I will try to get one)
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] ayesse:
I hope that this will get fixed soon, but anyway

Besides the not-so-frequent crashes and the remaining bugs, I will keep it instead of stock, I just love it.. really a great work
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] fpippo1999:
Same for me ? great job
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] Ticamomille:
My sd card works, but when you want to choose internel or external mode at the first time, it's crashes at 20% of erasing and formatting... (i didn't take screenchot to show error message , sorry)

So i delete my files via mtp and my sd card is recognoized like external storage, without bugs...
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
So can we say that a pre-formated sdcard does work? (The recovery should have such an option)

What do you mean by "delete my files via mtp"? Having files to delete implies the sdcard is already formated, removing files via mtp doesn't state that a format was done.

In case it's just the format thing it shouldn't be that hard to fix. I assume the frontend calls back to one of the lower end format tools. In github someone mentioned a failed command. Shouldn't be that hard to find a fix.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] Ticamomille:
So, if i didn't delete files via mtp, i have the message "sd card not compatible" in notifications... after deleting via mtp, no more notifications...

i tried to fromat sd card, i have error message : " command '10 volume partition disk:179_160 private' failed with '400 10 Comand failed' "
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] ayesse:
Exactly the same error I have
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] ayesse:
I write another message bcause I couldn't attach medias editing the previous One

I get this error while trying to set my card up for using it as internal storage, and while trying to simply format it too
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
I still don't get it.

The sdcard shows up along with the internal storage on the computer when you connect via mtp and you can delete files from it?

After that you can access internal storage and sdcard from your phone via any file browser?

Format isn't possible at all ( I assume it's already formated )?

From the picture it looks like it's already usuable despite the notification.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] Ticamomille:
i know there is no logic .... my sd card is ok, internal storage, mtp ...

first, i tried to format => stop at 20% and crash, and can't retry, error msg

i deleted my files properly via mtp to retry format and this retry => crash

and so i saw that i can use my sd card like internal storage, without more notification, i recopied my files via mtp = ok ...

ah each try to format = crash
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
Hm then it's less broken than I tought thx :)

I will try to fix that as soon as I get my sdcard.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] Ticamomille:
and I succeeded using camera with the app shopium ! I should go slowly to do the scan with camera
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] MegaAndy:
I'm also using the ROM and very happy, using the 128m heapgrowth fixed the constant crashing on playstore. I do get chrashes from chrome and Facebook but not often.

SD card worked with no issues for me, though I did just tell it to use the SD as portable storage instead of internal.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] fpippo1999:
for me and for [MENTION=5351653]ayesse[/MENTION] with this fix app continue to crash when they must do stress action (like open a video on facebook or watch a direct on instagram or send a photo on whatsapp)
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
I only said the fix does help with the playstore. I'm aware that there's something else apart from that. But I need some logs or just the exceptions to narrow it down somehow. At the very beginning I tought it was related to crypto actions but I'm not sure about that.

Beeing able to reproduce the issue would help too.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] ayesse:
Okay I downloaded Matlog for collecting logs. Should I set Warn/Error to isolate cases or..?
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
I don't know matlog but the background looks like logcat output. That's fine. Warn/Error should be what I need. I usually don't look at the rest first.

All I need are the error messages of the app or lib which does crash and a potential stacktrace of the lower end libraries.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] ayesse:
I was watching Instagram stories when it crashed. Here is the log, tell me if you need more [MENTION=5532236]nexolight[/MENTION]
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
Could someone tell that guy that this isn't Android 7.0 ?

http://www.thenerdmag.com/update-huawei-p8-to-android-7-0-nougat-cyanogenmod/#respond

The instructions are not accurate at all as well

Serioulsy..... Even more of this kind

http://www.stupdroid.com/2016/10/how-to-install-cyanogenmod-13-on-huawei.html

It's somehow amusing but probably the source of some confusion.

[MENTION=5351653]ayesse[/MENTION]

I will post it on the github page for later review when I get time. thx :)

Edit: This is exacrly the same SEGV as for A.I. Type. The issue is in the same library.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] fpippo1999:
No problem, I made the social manager ;):angel: I had written to this site, will send you the respond
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
[MENTION=7006696]fpippo1999[/MENTION] Buuuhhh shame on you ;) Well no problem. But they should really consider reading the thread.

* It's not a zip file to flash via recovery.

* It's not required to have a custom recovery installed before (But afterwards to wipe cache/dalvik/data)

* Root isn't required to flash this rom - an unlocked bootloader is.

* USB debugging isn't required at all.

* The whole update section should be rewritten to match the fastboot flash process.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
I'm trying to use the includes [MENTION=6152035]Kostyan_nsk[/MENTION] mentioned. Eighter I messed up my properties or it seems that the surfaceflinger reports out of memory errors. I will try it with xxxhdpi they should be accurate according to the comments in it.

Edit: well I guess I have messed up something else. I removed the included properties which where already present and included the mentioned ones. That should be fine now.

Wanted to do this before gps.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
Started with gps.

After I added a few missing files it doesn't look like there's anything severe wrong. The initial gpsdaemon which chooses the right config comes up, The second gpsdaemon runs without any issues.

However I don't get any obvious error message or hint. All seems fine. Does someone have an idea how to trigger the subsystem?

Edit: Ehhw I moved the hw/gps stuff into the wrong directory. My bad... let's see.

Edit: Ahh that's better now I have an immediate gps fix and can see the satelites. Btw thx [MENTION=2335078]surdu_petru[/MENTION] for the hint to rename that one file. GPS does work now.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] Ticamomille:
Yeahhhhhhhhh !!!
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] insomnixXx:
Hi, umm first of all i would like to thank the devs who work on this rom. Keep up the good work. I am using this rom for almost 2 days now and i must say it is almost a daily driver. Maybe the only thing that is annoying is the app crashing. I am not sure if this was asked previously but i would like to know if i can install superuser and if it will work. If it is possible maybe a guide for that would be appreciated. Thanks in advance.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] Ticamomille:
there is root on this rom !

go to developper mode and choose "root access" to apps
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] Til96:
Does the SD Card normally work (without reset too) and as intern storage?
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] Ticamomille:
Yes for me
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] aroaros:
Hi, in my phone, it asks to reset the sdcard to use as internal memory. But you can use it as external memory without reset.

Great work, i wait for a version without app crashes to replace the Huawei ROM.

THANKS
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
I will upload the latest build within this week or next monday.

There's still something wrong which causes some app crashes but I'd say it's a lot better now.

PS: I ordered an sdcard to investigate a bit.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] fpippo1999:
Thanks a lot :fingers-crossed:
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] Ticamomille:
Awwww please quickly i want to use runtastic with GPS :angel:
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] ChavezD:
wow, i must say i'm following this thread since September and looking forward to flash it once GPS, camera and app crashes is OK. (okay maybe even earlier, since my current huawei rom eats my internal memory like cookies -.-)

Camera+gps seems to be working already - right? Which are the limitations right now in general? (Im a bit confused due to following multiple threads on xda at the moment..)

I think only app-crashes and sd card is a 50/50 chance to work or not?

What i forgot to ask:

Is there any chance Magisk would work with this rom (earlier or later, doesn't really matter but would be nice to have some time)
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] :
Video recording wont work. Read the firts post.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] ThugMaster:
Hi, how can I download the files? Excuse me but I don't see any link...
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] Ticamomille:
first post, changelog 31.01.17, there is 2 links to download
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] ThugMaster:
Ouh, my bad, i gotta flash "boot.img" and "system.img" via Flashtool, i dont saw that before, thanks.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] AD2076:
Actually Magisk DOES work with the cyanogenmod rom, the problem is latest magisk doesn't install on P8 because there's not enough space in the boot partition. As soon as I have time I'll try to repartition my P8 to install Magisk.

Edit: if you don't need root you can remove it and enjoy pokemon go
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] ThugMaster:
Can someone help me with a problem? Im on stock 6.0 of course, if a boot in fastboot mode, the screen say "PHONE Unlocked" so, the bootloader is open, but if i try to flash the twrp it says "FAILED command not allowed"... What is the problem?
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] Ticamomille:
did you use it :

Changelog - 06.12.2016

recovery.img ?

and debbug mode ?
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] ThugMaster:
Looks like the phone was wrong because in fastboot screen said unlocked, but i tried again to unlock with my code, and its okay, i do the steps of the post, and everything ok.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] Ticamomille:
good !
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] lespaul79:
When you pass the recovery.img to the folder fastboot rename the recovery simply as recovery without putting .img so you will recognize the command.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] ThugMaster:
By the way, thanks, but the mistake was from phone, that says unlocked, but it really doesnt haha.