yashsingh1/xdaforums huggingface dataset:
[Huawei Nova/Nova Plus Guides, News, & Discussion] #Henkate:
When ive built LOS 14 for the first time, ive updated all blobs to N. After few days since that day, ive made a build with the blobs of MM, but it wasnt booting (not even going to bootanimation).

Today, ive tried again that build and managed to boot it. I only needed to replace few blobs with N ones in order to boot it.

Results:

1) Baseband and sim card gets recognized. I can make calls and incall audio works. But when im making / receiving calls, phone enters "Do not disturb" mode automatically and turn it off when call ends automatically too.

2) I can send and receive SMS.

3) Mobile data works (the bug with empty / gray signal icon when using 3G is still there).

4) Auto rotate works.

Screen still flickers, notification led, fingerprint, camera (doesnt even appear in drawer), flash, bluetooth, GPS and NFC doesnt work. Also, cant power on the screen once it goes off.

EDIT:

Fixed audio by using audio files from MM. Both, speaker and headphones are working fine. In future, ill probably try to update everything to N, but at this moment i just want to get everything working.

EDIT 2:

Fixed screen flickering.

EDIT 3:

Ill probably stick with N blobs instead MM ones. The LOS 14.1 with N blobs is

way smoother

than the one with MM blobs. The audio and flicker fix work on it too. But now i have to fix sim card since is not getting detected (and baseband is unknown). Also, i cant figure out yet whats the problem with powering on the screen. Screen doesnt power on anymore after it gets off and when i press the power button, the screen keep varying between dark colors (i dont know how to explain) and if i press the volume buttons, i can hear the sound (you can hear that when you are on lockscreen).
[Huawei Nova/Nova Plus Guides, News, & Discussion] Vinnom:
I think you should try N blobs and use MM just where needed, at least for now, but try updated blobs for N, it is a good shot, in my opinion ^^

I think this week I'll setup a cloud storage machine and try to build something there. Maybe, in the learning process, I can help you here ^^
[Huawei Nova/Nova Plus Guides, News, & Discussion] #Henkate:
Spent another day for this, yet havent managed to fix it nor find the culprit (im not sure which is the cause).

Ive also didnt workout (home workout) because this ****, but its obviously my fault. This didnt happen only once, it happened like 3-4 times... Perhaps im also losing motivation, i dont know.

I cant try to fix other bugs unless i fix this issue and right now i have that feel that i wanna give up, but that feel comes and go...

Ive tried egl blobs from B382 and from mido, but still same result. So i guess it isnt related to them, i dont know. When it is booting for the first time, the screen stays black for few seconds till the Setup Wizard appears. There are problems when im unlocking the screen too. When i swipe up to unlock the screen, it stays on the wallpaper for like 5 seconds (without clock etc) and during that period of time i can swipe down and the lockscreen appears. All those issues should be related to that one (screen stays black and gets off in 3-5 seconds when im trying to turn it on after ive turned it off and cant get on anymore unless i reboot).

I may not be able to fix it without help.
[Huawei Nova/Nova Plus Guides, News, & Discussion] Cooks_08:
Are your github trees up to date with the changes?

I am bringing them in to build and test on the mla-03.

trying to figure out the sim issue i was seeing on the RR and Los builds.
[Huawei Nova/Nova Plus Guides, News, & Discussion] #Henkate:
Nope, my github trees (cm-14.1 branches) are not up to date. I haven't pushed yet the changes I've made.
[Huawei Nova/Nova Plus Guides, News, & Discussion] #Henkate:
Built cm kernel by using stock EMUI 5 kernel source.

Results:

- the bug with power on screen is gone (perhaps ive did mistakes in merging?...)

- flash works

- camera appeared in drawer. I can open it and take pics, but they didnt got saved anymore after first pic and when i toggle flash in camera it works. Camera recording doesnt seems to work. It stops at 00:00, basically not recording anything. When i touch the "start" button, it starts instantly, not like on LOS13 where there is 1-3 secs delay and freezes during recording/playback. Also, 2-3 times i got that error "cant connect to the camera".

- there seems to be more free ram, 1.8 unlike 1.4-1.5 with the other kernel. However, i noticed that once i run the camera, the free ram goes down to 1.4-1.5. When i opened all apps except camera, it went to 1.5 and once i closed them it went to 1.7. In my opinion, it looks like the camera has a memory leak at this moment. Also, logcat is being spammed with errors when camera is running.

The camera problems should be related to the blobs now. I dont know why flash and camera are working with stock kernel, but i think its because it has newer huawei drivers.

Using stock kernel source kinda sux. For example, its harder to upstream it since you dont know from which CAf source to upstream it (maybe there is a way to find out) and you will run into more conflicts. Also, maybe Huawei did some changes which sux compared to CAF ones. I guess ill use it for a while since those issues gets fixed, but sooner or later ill try to update the huawei drivers on the "main" kernel and see how it goes.

I'm not sure, but I think phone is a bit slower with stock kernel source. E.g. settings is opening a bit slower (when I've opened it from notification drawer).

For now, im just happy that the mentioned issues are gone.
[Huawei Nova/Nova Plus Guides, News, & Discussion] #Henkate:
Made a new build of LOS14 with N blobs, but still same results. GPS might work, but i cant test it since there is no signal and there was no wifi because the kernel with new ramdisk didnt boot, so i used the previous kernel where ive did a mistake with the wifi.

Ive managed to fix sensors, althought it seems that its rotating kinda slow. I havent managed to fix RIL and right now i think i give up on it. Im wasting too much time on this since i lack knowledge, time in which i should do something useful for myself.

Ill push the changes to github later/someday as maybe someone wants to continue.
[Huawei Nova/Nova Plus Guides, News, & Discussion] icutzo:
Sorry to hear that but thanks for all your contributions buddy :good::good:!!! it's too bad that there is such a lack of support for that phone...quite frustrating....not sure i'm going back to a Huawei phone after this.....:eek:
[Huawei Nova/Nova Plus Guides, News, & Discussion] #Henkate:
Thank you for your words!

Yeah, indeed. Nova isn't the only Huawei phone which lacks support... Nova is my first and last Huawei phone as well.

I'm still thinking about working on LOS14, but I'm simply stuck at debugging it.

Let's say that I use MM blobs. That means that RIL and auto rotate is working fine, but no camera and flash. Camera and flash would probably get fixed by using N blobs / N drivers (kernel), but camera still has problems even with N blobs and stock N kernel (pics doesn't gets saved, video recording starts but stop right away). And there's the other bugs left (notification led, fingerprint, Bluetooth and maybe other issues) where I'll be stuck.

Too bad that we've lost Grarak. It's been one year since Nova has been released and I doubt that another dev will come here.
[Huawei Nova/Nova Plus Guides, News, & Discussion] Vinnom:
There was another dev here in Nova forums, EVA I think. But we lost him before the kernel releases :/

Enviado de meu HUAWEI CAN usando Tapatalk
[Huawei Nova/Nova Plus Guides, News, & Discussion] #Henkate:
Yesterday ive said that, yet today ive been working on it again...

Ive managed to fix RIL on the build with N blobs. Those two libs from MM unbreak baseband "unknown" and gets RIL working:

vendor/lib64/libqmiservices.so
vendor/lib64/libril-qc-qmi-1.so

I dont know why it isnt working with N blobs, but since its working fine with those two MM blobs i guess its okay.

The bug with "do not disturb" is still there though. When i make a call, phone enters "do not disturb" mode and exit from it when the call ends. It also happens when i receive a call (after i answer).

GPS is working too, but it seems that only with High accuaracy / Battery saving modes. It doesnt work with "Device only" mode, but this also happens on LOS13 and on stock rom when there is no gapps. Ive tested with Here Wego maps and ill test GPS again someday when ill install gapps.

WORKING:

- RIL (Calls, SMS, Data)

- Wifi

- Camera

- Video recording ( no freezes until now)

- Video playback

- Audio

- Auto rotate ( its a bit slow i think)

- Auto brightness

- Flash

- GPS (still have to confirm if "Device only" works with gapps)

NOT WORKING:

- Fingerprint

- Notification led

- Bluetooth

- NFC ( i think it will be easy to fix, if its same as LOS13)

- FM-Radio (probably ive missed something in the sources)

OTHER ISSUES:

- phone enters "do not disturb mode" when a call is being answered and exit the mode when the call ends

- there is still something wrong with unlocking the screen (only the first time)

- earlier camera was showing the pics/video saved in camera app when touching the thumbnail (near the camera button), but after a reboot it seems that it doesnt show anymore the pics/video taken, but they appear in gallery

- phone stays frozen for few seconds after taking a pic with flash

- while recording a video, it looks like its a bit zoomed and the saved video looks the same

- and maybe some others which i havent experienced yet

NOTES:

- i dont know if front camera is working since my front camera got broken when ive damaged my Nova

- i need to rework the CAF kernel as im not planning to use the stock one forever. CAF one is easier to upstream and its way smoother (stock N kernel compared to CAF N ive tried before)

- i wont publish any build unless i fix fingerprint, notification led, bluetooth and the other issues mentioned above, such camera ones
[Huawei Nova/Nova Plus Guides, News, & Discussion] Tecnikadamoguz01:
Hello, did you give the last updated romu link that you have made? I want to help as soon as I can.

HUAWEI CAN-L01 cihazımdan Tapatalk kullanılarak gönderildi
[Huawei Nova/Nova Plus Guides, News, & Discussion] #Henkate:
I haven't published any build yet.

I may publish a build in the upcoming days (maybe tomorrow) since I need help. We may be able to fix things together.

I'm stuck with fingerprint and it seems that I can't manage to fix it. I've rebooted my phone at least 100 times just to test fingerprint lol.

By the way, it seems that there's another way to fix RIL: by taking libril.so from stock (and another one if I remember properly). However, there seems to be some problems with mobile data (sometimes there's an exclamations at the data icon and network isn't working).

The problem when unlocking the screen for the first time seems to be related to notification led / light sensor because after I disable the notification led, the lockscreen problem is kinda gone.

Sensors are working without the sensor wrapper left by Grarak too, but I haven't tested if proximity is working properly (Grarak's commit regarding sensor wrapper is called "Make sure proximity is a wake up sensor").

Also, I might try to ditch the lights HAL taken from kiwi (honor 5x) by Grarak. According to logcat, it seems that the stock lights.msm8953 is "qdlights". After a google search, it seems that there's lights HAL called "qdlights" written by Google.

That's all I've found until now. No progress yet though. I've spent entire days trying to fix fingerprint (and sometimes notification led), but I haven't succeeded.
[Huawei Nova/Nova Plus Guides, News, & Discussion] #Henkate:
Some good news.

Regarding fingerprint, ive finally managed to get rid of the following error:

E libteec : connect() failed, errno 111
E libteec : open device failed

The solution was to add the following line to the teecd service in ramdisk, like stock N has:

seclabel u:r:tee:s0

Now there is this error, related to teecd:

E tee_get_app_cert: fopen is error
D AssetAtlas: Rendered atlas in 31.06ms (13.21+17.85ms)
E tee_get_app_cert: fopen is error
E tee_get_app_cert: fopen is error
E libteec : get sign info error
E libteec : recv_cli_context_buffer=7f9a40c300 recv_cli_context_buffer->returns.code=0xffff0000
E libteec : command failed, errno = 0xffff0000
E libteec : open session failed, code=0xffff0000, origin=2
E fpc_tac : open session failed: result:-65536 orgin: 2
E fpc_tac : tee init FAILED:-65536

There are some denials for fingerprintd before those lines. Although the kernel is permissive right now, i dont know why there are those denials.

Then, ive tried to use files_contexts.bin, sepolicy, service_contexts and property_contexts from stock and when i booted i just seen that notification led is working. So, it seems that the notification led wasnt working because selinux. I assume that its same for fingerprint, but i dont know yet. Fingerprint still wasnt working after i used those files from stock and my phone wasnt being recognized (for ADB) anymore, so i couldnt take a logcat to see if the current error(s) are gone.

Ive updated ramdisk from stock and now the phone is way smoother. The settings is opening like instantly (unlike bofore when i had to wait 2-3 seconds to load and i thought that is related to stock kernel since with CAF kernel it wasnt happening).

Last night ive contacted [MENTION=3857343]crpalmer[/MENTION] regarding the fingerprint error which ive been stuck at and he answered me:

Thats when i started to take a look at the ramdisk and a big thanks goes to him for the progress ive made today.

Time to bring up sepolicy. Its my first time.
[Huawei Nova/Nova Plus Guides, News, & Discussion] icutzo:
Good Job !!!! Slowly but surely !!!!! :)
[Huawei Nova/Nova Plus Guides, News, & Discussion] Tecnikadamoguz01:
Will you give me a link?

HUAWEI CAN-L01 cihazımdan Tapatalk kullanılarak gönderildi
[Huawei Nova/Nova Plus Guides, News, & Discussion] #Henkate:
I won't do that, considering the progress I've made (check my previous post).

Two days ago I've fixed wifi with the stock kernel, but phone is rebooting to erecovery after a period of time and I don't know yet what's causing that, but it didn't happen with the CAF kernel (with that one, can't power on screen, camera and flash aren't working; needs updated).

Yesterday my free trial on Microsoft Azure has expired, so now I have two choices:

1) Sign up again on Microsoft Azure or Google Cloud with my other credit card.

2) Clean my PC because it's almost out of free storage (there's a mess), clean it of dust too, install a fresh Linux distribution and use ccache and a /tmp partition (like I've read somewhere) to speed up the building process.

I would go for the second because I'm kinda tired of cloud "instances" as I don't have files locally (e.g. can't use file manager) and also I don't like the fact that my credit card information is being stored.

I don't know how much will be reduced the build time with the things I've mentioned, but I'm curious.

And just a tip: if someone is willing to use a cloud instance, between Microsoft Azure and Google Cloud Platform, I would recommend GCloud for the longer free trial, more free credits and way faster build time (perhaps I haven't done the properly settings for Azure).
[Huawei Nova/Nova Plus Guides, News, & Discussion] Vinnom:
First, thanks for keep trying!

Second, tell me your specs and I'll try to guess how much time it will take to build. If I may, I surely suggest you to install arch linux. I like it better over Ubuntu and both are good distros for building.

About the /tmp, no need, it is just placebo. But ccache surely helps things.

EDIT:

Oh, where I said specs, I mean mainly cpu model and type of storage (hard disk or ssd). If your ram is ddr3 or ddr4 sure will affect building too, but number of threads (to take advantage of parallelism) of your cpu and type of storage may affect way more.

About /tmp, I try to clarify the placebo thing. I don't know Ubuntu, but arch linux have a thing called tmpfs. From arch wiki:

You can create your own tmpfs, but system already has its. And when building ROM, it will use its tmpfs "partitions". I don't know how Ubuntu handle their things. I stopped using Ubuntu a long time ago lol
[Huawei Nova/Nova Plus Guides, News, & Discussion] #Henkate:
Thank you for your kind words and reply too!

I have an PC since 2010 or 2011, with an AMD processor dual core 3.4 GHz, 4GB ram, an integrated graphic card with 512mb and an HDD.

When I've tried to build LOS13 for Nova, it was slow af and it didn't finish even after 6-8 hours of building. I don't why it was taking that much time because it was taking about 4h 30m to build for my previous phone (Galaxy J5 2015) without ccache, after I've cleaned my PC of dust.

I'm using Linux Mint 17.2 XFCE since some time (maybe 1 year, maybe less/more, don't really remember), in dual boot with Windows 7 Ultimate (I don't even remember when I've booted that "turtle" OS :D). I've took a look at Arch, but I read that's not that easy to install it as they don't have a GUI, but they have a great wiki. I've heard about bbqlinux two days ago, which is based on Arch and I read that it has all packages needed to build AOSP/CM etc. So, I'll install bbqlinux since I won't have to set up it again for building and it comes with an GUI for the installer.

I've cleaned my PC a bit and now I have about 90gb free (the home partition is 150gb, but also have two window partitions: one especially for windows and one for my stuff).

Ccache is recommended to be 50gb, so in total I'll need about 120-130 gb I think. Sources are about 40-45 gb and there's about 30-40gb being used while building. But i guess it'll use less gb while building if I'm building with ccache, I don't know yet.
[Huawei Nova/Nova Plus Guides, News, & Discussion] Vinnom:
Oh, I see!

I guess that 4h ~ 5h of building would be enough.

I see your point, but installing arch is not that difficult (and they have a guide for it in the wiki) even without the GUI. But if you really want it, manjaro would be good alternative too, along with bbqlinux

I like arch mainly because it is highly customizable and can be as lightweight as it can.

Enviado de meu HUAWEI CAN usando Tapatalk
[Huawei Nova/Nova Plus Guides, News, & Discussion] #Henkate:
In my opinion, waiting for more than 2h to build sux... But there's nothing I can do about that now, so I've got no choice but to bear it :D.

Hmm, I'll check their wiki. Which flavour are you using or do you recommend? I've downloaded bbqlinux XFCE already, but that isn't a problem because I have good network. I read in past that XFCE is lightest on memory usage / resources compared to the other flavours.
[Huawei Nova/Nova Plus Guides, News, & Discussion] Vinnom:
When I first setup my pc, it was similar with yours. It have enough power to run kde our gnome, if you want. Right now, I use gnome... It is the best desktop environment I used so far, but it uses more resources than other (as kde).

You're are right about Xfce. LXDE and LXQt are other that were made thinking about low resources, but I don't like their design lines. Budgie is another DE with low resources in mind (not so much as the previous I mentioned) but is prettier.

I also have dual boot with windows, but I only boot it to play (some steam games, some emulators) or when I need specific windows app.

Enviado de meu HUAWEI CAN usando Tapatalk
[Huawei Nova/Nova Plus Guides, News, & Discussion] #Henkate:
Wut, when did i post this? Lol. Read the next post.

Initially i wanted to post in the off topic thread, but then i decided to post here since OT isnt meant for developing stuff. Probably i have forgot that ive already posted here lol and double posted ( next post).
[Huawei Nova/Nova Plus Guides, News, & Discussion] #Henkate:
At ~11:55 I've started to build with ccache, without Jack.

19:11 - still building. That's 8h for the god sake and it still has to build. It's ridiculous.

At this moment, ccache folder has 11,5 gb, out folder has 21,1 gb and there are 70 gb free.

I don't understand why it's taking so much to build. As I've said, it was taking about 4h 30m to build MM ROMs for my previous phone.

I doubt it'll need at least half of this time with ccache, but I'll see. I may give up on development because this, but I'm not really sure since I won't have to make builds daily, but rather rarely and that's ok in a way...

I have my other card and can use it for Google Cloud Platform (as far as I know the card is acceptable), but I don't like the fact that the card info is being stored. It turned out to be same with Microsoft Azure where card info can't be deleted neither. Also, there's this (at "misc", about gcloud).

EDIT:

Are you ****ing kidding me?

I think I'm done with building ROMs, but I'll continue with the kernel since the build time is about 30m - 1h. I think building kernel should be enough to test sepolicy, since sepolicy's files gets in ramdisk.

EDIT 2:

The kernel was built in 18 mins. Probably ccache helped.

EDIT 3:

If someone is interested in building, then here is the manifest.
[Huawei Nova/Nova Plus Guides, News, & Discussion] Vinnom:
Since I received the notification of your post, I'm wanting to answer but I hadn't the time.

I don't believe it took so much time for you to build a ROM =(

I think my computer can handle it in less than 1 hour, but I still don't have free storage enough for it. However, I setup a machine in Google Cloud Platform and I'm trying to do things there. I already sync things, now I need to see if it build(I'm trying Tesla ROM - one of Ground Zero ROMs team). Lets see if something good come from there (I don't like to use only terminal too, but right now, I don't want to have the trouble to apply GUI in GCP).

EDIT: I just saw the pic! It took so long and yet outputted an error! =/ =/ =/

EDIT 2 :

take a look at this (located here):

For those of you who are having jack issues (like saying you ran out of memory),

follow these steps.

Type this into your terminal, substituting the # with how many GBs of RAM

you have:

$ export JACK_SERVER_VM_ARGUMENTS="-Dfile.encoding=UTF-8 -XX:+TieredCompilation -Xmx#g"

Then go into the root of the source folder and type the following:

$ ./prebuilts/sdk/tools/jack-admin kill-server

$ ./prebuilts/sdk/tools/jack-admin start-server

This will restart the jack server to reflect your new heap limit.
[Huawei Nova/Nova Plus Guides, News, & Discussion] #Henkate:
It didn't even finish. I think it would have gone up to 9-10h lol.

That's what I want...

It's possible to apply a GUI for GCP?

EDIT: Just found this article: https://medium.com/google-cloud/linux-gui-on-the-google-cloud-platform-800719ab27c5. It seems that's quite easy to install a GUI on GCP. Too bad I didn't know about this when I've used it.

I didn't even build with Jack though. Does this still matter in this case?

I'll try to build the ROM again, but not now nor the upcoming days. I must work on the CAF kernel and then sepolicy. It should build faster since first time was with ccache, although it wasn't a complete build. I'll also make a swap partition, just like I had on Mint, but I'm afraid that it will just slowdown the PC.

By the way, if anyone has some knowledge and is willing to help with things, then you should join the IRC channel #lineageos-hwcan. It was created by [MENTION=5418262]gt_o[/MENTION].
[Huawei Nova/Nova Plus Guides, News, & Discussion] Vinnom:
I noticed it didn't finished only when I looked at the pic you shared xD

About using jack to compile, in the pic has a line saying "compiling with jack" or something like that and you had an out of memory error, so that's because when i saw that tip I shared here with you.

About the kernel and sepolicy, I wish you luck :)

Enviado de meu HUAWEI CAN usando Tapatalk