yashsingh1/xdaforums huggingface dataset:
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] lespaul79:
Haha ok
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] ThugMaster:
I dont see that option...
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] Ticamomille:
Go go parameters, about phone and clic 7 times on buil number ton activate developpers options inside parameters

Inside developpers options, look for Android debug option.... (I'm french so ...)
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] ThugMaster:
Yes, i know that, but i dont understand where you see the root here.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] :
It's one of the first ones in developer options. It says "root access" and you can choose between disabled, adb and adb+apps.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] ThugMaster:
Lmao, im from Spain, and the ROM is on spanish of course, so i never heard about this option on spanish, dafuk... Thanks both guys =)
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
Please don't put any pressure it's not that motivating. It's a private project which I did for fun after all and I don't want to do it based on the communitys pressure which would make it less fun and thus decrease the effort.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
Which multiple threads?

I got my sdcard. You just can't format it with the device atm. A preformated fat32 sdcard does work well. Using it as internal storage isn't possible because the device wants to format and decrypt it first. Camera does work for photos but no video recording is possible in any way (not just camera).

Magisk should work when it does work on other vanilla CM13 roms.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] Ticamomille:
oups excuse me, i don't want to put pressure !
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
There might be some stuff which we could remove from the boot.img but I ran into the same problem when I wanted to add the charger animation. But why does Magisk try to repack the boot.img for gods sake? I don't see why this would be required (?)
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
Make sure that the command is correct

"fastboot flash recovery /path/to/recovery.img"

"fastboot flash recovery2 /path/to/recovery.img" (yes there are 2 recoverys triggered by a plugged in usb cable. No need to flash both)

"fastboot flash boot /path/to/boot.img"

"fastboot flash system /path/to/system.img"

Huaweis fastboot is strongly limited. It will refuse to do almost anything else.

Edit: Oh well it already worked.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] AD2076:
It patches some stuff about selinux and root to keep it hidden from safetynet check and allow Android Pay and other apps (someone said PokemonGo) on a rooted phone :)
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] ChavezD:
Oh its just in general looking for a new device since my contract will end very soon and i dont want a device Like the P8 again which has near 0 custom Rom Support (was quite different in the HTC Desire HD in 2010 or so).. but its nice to See you are working on it and making huge steps killing all Bugs!

Maybe i'm gonna try it some time soon, but i just got a bunch of work to do for University :/
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] :
[MENTION=5532236]nexolight[/MENTION]

Just wondering if you happened to catch my comment here?: https://github.com/CM-Huawei-P8-Dev...mmit/3c276bb241a5e56ca4aebf8cd296760b74e6a455

I pretty sure that if you set the sdcard back to "auto" and use one of these 2 solutions, it will cure your sdcard woes... ;)
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
Thx I will fix that in the kernel. I rather change that there to make it fit aosp/cm than changing the subprojects.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
Seriously I will never ever buy a huawei phone again until they provide official CM/AOSP support.

To much work to do that project a second time.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] AD2076:
Let's buy a G6 :P I am seriously considering it as my next phone
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] ThugMaster:
Nexolight, what about app crashes, mostly on Play Store, browsers, youtube videos, WhatsApp... etc etc.

I mean, what do you know about crashes, what is the reason, because in browser for example, is depending of what you touch in the app, sometimes when i start some apps, they dont crash until touch them, some option, anims, loads, or simply, multitasking. Do you know how to fix?

PS, the ROM goes extremely smooth and fast opening apps, good battery life, is perfect, you only need polish some details, and its done.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] papsi177:
Apps crashes related to graphic..You have to go away from vendorblobs graphic.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] ionutzpaul61:
Me neither..... My next phone will be definitely a one plus
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
A lot of the crashes were related to the wrong dalvik settings which is corrected by now. The build isn't uploaded yet.

Why do you think it's related to the graphic vendor blobs. All the stack traces I have don't show a hint that any of the vendor blobs is involved at all.

That's all:

12-16 23:21:55.332 7369 7369 F DEBUG : #00 pc 000b4694 /system/lib/libicui18n.so (_ZN6icu_5513DecimalFormatD1Ev+99)
12-16 23:21:55.332 7369 7369 F DEBUG : #01 pc 000b470d /system/lib/libicui18n.so (_ZN6icu_5513DecimalFormatD0Ev+4)
12-16 23:21:55.332 7369 7369 F DEBUG : #02 pc 735e8c15 /data/dalvik-cache/arm/system@framework@boot.oat (offset 0x1f75000)

This was before I did the dalvik changes. Also I've seen that in whatsapp before I added the hwc fix.Now I rarely have any crashes.

However I'm pretty sure the video recording issue is related to the hwc fix so I will al least see if it works better without it.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] wfonz:
I noticed that most of the crashes happen when I do a fast scroll in menu or something similar (Facebook home, chat list, sometimes even photos).

I also want to ask if someone is using viper4android, cause on my P8 won't start
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] AD2076:
WhatsApp use to crash in CM roms. WhatsApp beta doesn't
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] wfonz:
I have always had beta and it used to crash a lot

Here too but fortunately the fix is coming as she said in the previous post
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] ayesse:
Tried Viper4Android too, won't start to me too
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
Please stop complaining about crashs unless a logfile is attached or the steps to reproduce are clear.

Also I the builds availabe have crash issues as stated. It doesn't help to just tell me app xy crashed "."
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] DrunphO:
Wrong mate, last Magisk does work on p8, you just need to flash right kernel before ;)

Its somewhere here on foruns and the zip names P8-Kernel-for-Root-Stock-MM.zip

If u dont find it, i can search it for you later :p

-edit-

Btw, keep up the great job here nexolight and cia :good:

-edit2-

P8-Kernel-for-Root-Stock-MM.zip

https://www.androidfilehost.com/?fid=385035244224383592

-edit3-

Its working here with magisk module except on stock player ;)
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] ayesse:
Yeah, I used to have it on stock rom, but here on CM it doesn't even start
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] papsi177:
Just belive me) it is not the cause but the consequence of graphical problem.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] AD2076:
I have B390 stock kernel. Will try the one you linked.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
The phone will most likely not even boot up when you flash the stock boot.img (in the link inside the zip) with this rom. This is at least due to the shimlib entries within the init scripts.

So you flashed it with this rom and it does work? Even without breaking camera and hwc?
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
I'm not the person who "just" believes something without really understanding it. Especially not when I'm working on it :)

Somehow you must come to that conclusion and I wonder why. I know you might have some experience there.

So why is it the consequence?

That file which is the last in the stacktrace is generated as far as I know. Is one of the vendor libraries involved during that process and later makes the library calll a missing Constructor?

Is it the libgui library?

It isn't that a big deal to use the cm surfaceflinger with it's components. However there I can't use the stock hwc. There's however an opensource alternate which I guess by now some people alredy have adapted. EVen without it it would run quite fine.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] papsi177:
I agree thats you go you way) [MENTION=5532236]nexolight[/MENTION] i am ofcause have not so many knowledge in programming, i am just small nooby, i can not to talk about Constractors or somethings like thats. But i working on Cyanogenmod for my Honor 7, and i got good result. From major bugs only camera zoom and colors in videorecording. All others are working like schweizerische uhr) From the beginn i got also random crash of apps, but after go to gui, ui, hwui, surfaceflinger from the source and using hwcomposer from [MENTION=7354786]XePeleato[/MENTION] , dont have any problem with it. This is just info for you, because i can not explain it programmish) Und grusse an Olten) schone stadt)
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
Hi first of all thx :) I might be a software developer but c++/c isn't really part of my previous education and I'd struggle a lot when I'd have to implement some addidional things with one of those languages in an unknown environment.

I had the exact same segmentation faults as other H7 devs at some points, so the sourcecode for those 2 "might" have the absolutely identical root.

I had plans to switch exactly to that hwcomposer you mentioned from [MENTION=7354786]XePeleato[/MENTION] in order to test if video recording is still broken. As I said it wasn't before that nasty hwc workaround.

When this made all the app crashes dissapear for you it eighter states

1. that the initial cause is locacated there as you think or

2. that for the H7 there was another issue which might not be present on the P8.

In case you had the same stacktraces it's most likely 1. Otherwise there's at least a 3/4 chance for 1. I will at least try it. :good:

PS: Do you have a github page for the H7? I failed last time when I wanted to include it in the device tree and didn't tried further. When I could copy that I'd be graceful :)
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] AD2076:
H7 and P8 are almost the same phone. I guess a unified CM build would be possible
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] papsi177:
[MENTION=5532236]nexolight[/MENTION] it is my git https://github.com/papsi177 Not so much, but allmost important, vendor is outdated. I hope it can help you.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] XePeleato:
My HwComposer module isn't yet finished, it barely implements VSync. However a kernel interface is being worked on, that will really make the difference, but it isn't 'critical'.

Sure, it's a nice thing to have but it isn't as crucial as people think it is. If you implement it on your rom, it would be a good idea to check the logcat to see if it's actually working because the ioctl numbers might have changed.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] Til96:
I am using Viper4android but you need the app SELinuxModeChanger too and have to set the mode on permissive otherwise viper couldn't work!

(I am using it at the moment on Huawei stock firmware cause of that few bugs from the CM ROM)
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
The mode is on permissive and will most likely stay for a long time like this. Basically there's no reason why an app should not work when it does on any other rom so?
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
That's better than nothing.

But after i fixed the CPU settings during the init process I couldn't notice any difference anymore with or without HWC. So it wouldn't be a big loss just as like you state.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] DrunphO:
Sorry nexolight, AD2076 and all if i made u think that im already using this rom. Im on the stock B392.

Im following your work for long but the features missing are the ones i most use, well, now is just the video camera ;) and i need them for work.

Somehow now im feeling that will start using it soon ehehe - no pressure :)
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] ayesse:
It doesn't even start, the app crashes instantly when you open it
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] :
If you haven't applied the newest dalvik options many apps are constantly crashing
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] ayesse:
I actually have, like 10 days ago hahahaha but it keeps crashing just after opening it, I can't even see the driver installation popup
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] papsi177:
What about camera zoom?
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
The ones I mentioned? I used different build options to include a whole bunch different settings lately.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
At the moment that does work for me.

I will try to revert that hwc fix today and see what's the state by then.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] ayesse:
The two values for heapsize and heapgrowthlimit

Did I miss something?
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
aproximately 8-15 further changes.

I will upload the next build soon.

Edit: I uploaded the stacktrace to github. The issue might come from the surfaceflinger. The new settings won't help here. This is however part of what I wanted to replace.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] ayesse:
Ooooops ^^'

Can't wait ??
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
I't's an unclean one but should be fine I don't have the time to wait 2hrs without beeing able to do something else atm.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] insomnixXx:
So next build will have less app crashes?

Edit: Right after u upload the new build i will test it and report
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
Should have gps and all the app crashes fixed

which were related to memory issues.

A.e. play store for sure. But there are other issues and without any logfile I can't do anything. as papsi already told it might be related to some stuff I try to revert today.

I'm really not into this so this might eb wrong information. But I guess all the crashes with the .oat file at the beginning have their source in the compilation aka "optimizing apps" step. Where calls to libraries are wrong linked because they are different in some vendor libs I copied. (The HWC/Surfaceflinger subsystem)
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] insomnixXx:
Sure, look i will test it, write my oppinion and bugs (if there are any major ones) and all in all let u guys know.

Good job, keep up the good work lads... ?
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
Hm Reverted the HWC fix so far and screencast does work again. I'm a bit afraid of opening the camera and test that now again.

Obviously VSync doesn't work without the HWC.

btw. The crosspoint of all this hwc video recording issues is probably libgui.so which seems also involved in codec stuff as well.

Edit: video recording still broken in camera.... It would probably be enough to change the codec in media_profiles.xml
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] insomnixXx:
Okaayyy... So the app crashing is reduced but still occures quite often. Google Play isnt avalible (also said) and shows error messages.... didn't test the gps yet.

Else the same...

Better wait for the full build lads...
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] Speedo.thc:
Hi , i will try this new system tomorow , for those who want to see signal bar , i did a "placebo" change in systemUI (for myself) it is NOT a fix , there is Placebo+1 , Placebo +2 , and stock+0 in this zip :

http://www.mediafire.com/file/hlz9qsu0qk2v27x/CM_P8_Signal_placebo+1+2+stock.zip

Usage : download .zip , extract all => then you will have 3 .zip , choice the step you want and flash it (TWRP)

enjoy to see bar !! :D
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
:rolleyes: I really don't feel like I need "testers" with a good will but who don't get the contexts.

The playstore is not part of CM that's the point. If you want it go and get the GAPPS. The rest as I already told you folks about 10 times....

...sry had to be told.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
It seems that papsi was right when it comes to crashes. Without the vendor HWC subsystem the app crashes are gone. At least the ones where I know that they crash. Viper4Android and A.I. Type. They had different stacktraces but probably the same root. The first crashed immediately the seconds quite often.

The problem is now just that the HWC is missing and video recording still doesn't work.

I will if I can apply one of the opensource HWC's. Vsync is the only obvious issues so far. Apart from that it's basically GPU only rendering which will have an impact to battery life.... Well I could however also replace the libraries which have the SEGV with the vendor libs. That would be quite dirty but would probably work as well with less issues after all.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] insomnixXx:
Sorry... got a little to excited here... of course i need to install gapps...
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
Don't worry it wasn't just you :)
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] insomnixXx:
Okay after a liiiitle more testing, weeell about the app crashes... it is a slight improvement, but still... u know what i mean... GPS works good. If u ask me its now just (hahaha "just") the app crashes that need to be fixed. Else for my usage is ok. I dont use camera so often especially not the video recording... Thanks for hard work.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
Ok the attemp to remove the stock hwc has brought back an old issue where the screen doesn't wake up anymore after it times out once.

Also the opensource hwcomposer along with the reversed libion produce this with the CM surfaceflinger:

```

02-13 19:45:44.212 2941 2941 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***

02-13 19:45:44.212 2941 2941 F DEBUG : CM Version: '13.0-20170206-UNOFFICIAL-hwgra'

02-13 19:45:44.212 2941 2941 F DEBUG : Build fingerprint: 'HUAWEI/cm_hwgra/hwgra:6.0.1/MOB31K/c10310f96f:userdebug/test-keys'

02-13 19:45:44.212 2941 2941 F DEBUG : Revision: '0'

02-13 19:45:44.212 2941 2941 F DEBUG : ABI: 'arm64'

02-13 19:45:44.212 2941 2941 F DEBUG : pid: 3276, tid: 3276, name: surfaceflinger >>> /system/bin/surfaceflinger <<<

02-13 19:45:44.212 2941 2941 F DEBUG : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0

02-13 19:45:44.215 2941 2941 F DEBUG : x0 0000007f84487000 x1 0000000000000000 x2 0000007ff87fee70 x3 0000000000000080

02-13 19:45:44.215 2941 2941 F DEBUG : x4 0000007ff87ff078 x5 0000000000000004 x6 0000000000000000 x7 0000000000000000

02-13 19:45:44.215 2941 2941 F DEBUG : x8 0000000000000000 x9 0000000000000000 x10 000000000102ffff x11 0000000080000000

02-13 19:45:44.215 2941 2941 F DEBUG : x12 0000007ff87fea60 x13 000000000000001b x14 0000007ff87fec48 x15 0000000000000000

02-13 19:45:44.215 2941 2941 F DEBUG : x16 0000007f8394cc20 x17 0000007f8390c2f8 x18 0000007f876f33e4 x19 0000007f86aae000

02-13 19:45:44.215 2941 2941 F DEBUG : x20 0000000000000000 x21 0000007f84487000 x22 0000000000000001 x23 0000000000000000

02-13 19:45:44.215 2941 2941 F DEBUG : x24 115dc0c6531a2284 x25 000000000100ffff x26 0000007f877667d0 x27 0000000000000000

02-13 19:45:44.215 2941 2941 F DEBUG : x28 0000000000000000 x29 0000007ff87ff0f0 x30 0000007f8773d464

02-13 19:45:44.215 2941 2941 F DEBUG : sp 0000007ff87fee40 pc 0000000000000000 pstate 0000000060000000

02-13 19:45:44.217 2941 2941 F DEBUG :

02-13 19:45:44.217 2941 2941 F DEBUG : backtrace:

02-13 19:45:44.217 2941 2941 F DEBUG : #00 pc 0000000000000000 <unknown>

02-13 19:45:44.217 2941 2941 F DEBUG : #01 pc 000000000003c460 /system/lib64/libsurfaceflinger.so

02-13 19:45:44.217 2941 2941 F DEBUG : #02 pc 000000000003be18 /system/lib64/libsurfaceflinger.so

02-13 19:45:44.217 2941 2941 F DEBUG : #03 pc 0000000000045e6c /system/lib64/libsurfaceflinger.so

02-13 19:45:44.217 2941 2941 F DEBUG : #04 pc 000000000002ce08 /system/lib64/libsurfaceflinger.so (_ZN7android14SurfaceFlinger4initEv+444)

02-13 19:45:44.217 2941 2941 F DEBUG : #05 pc 000000000000115c /system/bin/surfaceflinger

02-13 19:45:44.217 2941 2941 F DEBUG : #06 pc 000000000001bcd8 /system/lib64/libc.so (__libc_init+100)

02-13 19:45:44.217 2941 2941 F DEBUG : #07 pc 000000000000101c /system/bin/surfaceflinger

```

I guess I will try to fix the app issues with the huawei hwc it seems that it's not directly responsible for the broken video recording with camera but some app crashes and and screencast.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
In order to workaround the crashes I could eventually LD_PRELOAD some of the vanilla libraries to the part which does the compilation.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] ayesse:
[MENTION=5532236]nexolight[/MENTION] MD5 for latest build, please? :c
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] Ticamomille:
Very smooth, only chrome crash atm ans GPS is perfect

---------- Post added at 09:53 PM ---------- Previous post was at 09:42 PM ----------

And i always do a complete wipe before flash
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
does it not work?

- 7ea5b4c04b1d8edb7a22856cc3681c53
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
I guess there is no one with access to the mali ddk right?

libGLES_mali.so : mali gles error info : 1, error: 6

That's a lot of information :rolleyes: I cannot even find these error codes. Well I'd have access to some dissassembler just in case.

It works fine with the vendors surfaceflinger and some propreties. But well that causes more likely unsolvable problems later. I'd wish that the opensource project lima would be available for the 6xx series yet.

Ok get arround that magically... Well that was my bad just forgot to remove something.

Now I'm fixing the dependencies from the built libandroid_runtime (rebuilding everything would take to long so I just do it module by module). looks ok so far.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] :
You should ask XePeleato he can help you. Here the documentation https://github.com/HiSilicon-Kirin/Documentation he made.

Quote from him

Because Huawei introduced some magical bits of code that prevented us to run Hwcomposer, a HAL module that allows offloading the GPU, since it was a critical bug We haven't touched the rom any further until that bug is fixed. That's why We need proper documentation, but it's also an example of how you can play with Kirin SoCs, you just need to research.

CM has a lot of bugs but in AOSP everything worked except the RIL Stack and some video codecs.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
I fixed that in my local testing branch. I'm actually using their hwcomposer with their gralloc module and their userspace gpu driver along with the files built by cm.

I had to edit the surfaceflinger a little bit for that but it wasn't something big.

Maybe when I don't make any progress during a longer timespan. I like to reinvent the wheels... sry for that.