yashsingh1/xdaforums huggingface dataset:
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] reujea0:
Check this https://imgur.com/a/0KM1vFo
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] :
Yes, that is exactly the LineageOTA rest thing that I am aware of.

What I do not know is how to set up the server. I have never used docker or node. If someone know, let me know. I don't even know if it can be done using a free webhost.

Beside that, I mainly used LineageOS code so not really reinventing anything, rather modifying to be usable by me :D

Edit: I figured that composer/docker does not need to be on the server, so I may get this working. I'll try later today.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] reujea0:
Well, most free web hosting services don't offer support for composer and docker. I would recommend that you purchase a simple raspberry pi, or similar alternative. You then register a domain name on namecheap, you can easily get one for 85cents per year. You then make the domain point to the ip of your raspberry pi, you do this by using crontab( curl the link on this site https://www.namecheap.com/support/k...-a-browser-to-dynamically-update-the-hosts-ip ever ylets say 10 minutes). In your routerr you setup port forwarding on port 80 to your raspberry pi. Then follow the instructions on the github. Then you are good to go.

---------- Post added at 11:10 AM ---------- Previous post was at 11:10 AM ----------

Also if you don't mind I'll try to do everything as I said, to see if it works, so I will use your zip for the test.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] papsi177:
What is reason of OTA update? If most of main features are not working..
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] :
Well that wont be happening:D

But you can try for sure!

If something, I will try some free hosting. I read that if I set up docker/composer locally, I can just upload the files to the server and it should work. If not, I will drop this for now.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] :
Why not? I think it's nice change to fixing that one issue daily.

Ps. What do you mean with most main features are not working? Basically everything works except camera-related stuff.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] reujea0:
Could you upload the other zip from your out folder, not the ota but the other one.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] :
Sorry, I made clobber and don't have it anymore.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] :
New build:

* A zip file!

* Cleaned up ramdisk

* Improved kernel

* DT2W (or 4T2W when device is dozing), code from [MENTION=473575]metic[/MENTION]ulus (github)

https://mega.nz/#F!cOQF3CKL!jy7nOLaxaCYEXvfMfX3GbQ
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] papsi177:
I don't know what you already fixed. GPS? IR sensor? WiFi hotspot? WiFi direct? Gyro sensor? HD video playback? Sdcard? Ussd code? Dualsim? Phone profiles? ..And more..
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] :
Gps and wifi hotspot (and hd, but not basic functionality) are broken.

I have removed the extra from ramdisk and vendor. I only have the gps service and files for my device!

I get following error:

IPC communication error 1, ...../GpsiClient.cpp:2213

Then it says "waiting for IPC connection". It seems like all files are there but something is still missing.

Do you know about this? I quess it's permission error, and I can try a fix today.

We (gra_l09) don't have ir or dualsim. Sd is fine, sometimes is get ejected but comes right back (propably caused by Huawei sdcardfs). All sensors are reported fine.

Also, can you link your vendor so I can see what HD codecs and gps blobs I need? I can't find it.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] papsi177:
Hm..You was able access my bitbucket git for long time..Why you didnt useed it??? So, for full gps fix you have at least define gps47531 selinux domain and add few important rules to this domain..Look in logs for avc..
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] :
I have some idea about permissions. I will check today.

Well.. I didn't know I was in a hurry and at that time I mainly focused on ril and other essentials..

Maybe you can allow access for a while again for me to see?
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] mbenjij:
Both sim cards detected on UL00 device.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] Alois024:
Hi, i'm a new person who try this fantastic firmware, i found any bugs:

1. when i put my email, it syncronize, all except the contacts, why?

2. when i open the camera it show me black display and 1 minuts later it crash, i install the app camera restarter, when i press restart camera it show me the notification "camera restarted succesfully" and when i chose a camera app i see black screen, and crash after, why this bug? What is the problem?:confused:
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] :
1. No work done yet, no idea what is issue.

2. Camera does not work yet, as said in op! This also causes other small issues like the inability to change quick settings tiles..
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] reujea0:
idk in which release this is, i think not in the last, but the one before, concerning gps, take a look at this https://xdaforums.com/showthread.php?t=2148381&page=6 , it seemed to fix libgps : LIBGPS: Cannot communicate (write) with a GPSD
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] papsi177:
It is really hard look for a black cat in a dark room, especially if it is not there.

Any daemon will never started in android 7, if it is not defined in Selinux policy..And does not matter is it permissive mode Selinux..And look to the previous posts..
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] :
Can you show your selinux definition for gpsdaemon?
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] papsi177:
This is standart definitions of domain for android 7.x.x(here is in cause gpsdaemon)

# gpsdaemon daemon
type gpsdaemon, domain, domain_deprecated;
type gpsdaemon_exec, exec_type, file_type;

# Started by init
init_daemon_domain(gpsdaemon)

As next for gps47531 daemon

# gps47531 daemon
type gps47531, domain, domain_deprecated;
type gps47531_exec, exec_type, file_type;

# Started by init
init_daemon_domain(gps47531)
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] papsi177:
***.. Is it hard to understand? If you have file in bin folder called glgps47531, you have to add domain called also glgps47531! Not gps47531, it was a example from me! Or you have to rename executable from glgps47531 to gps47531..
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] :
Yes it is called that :P I said "And the sepolicy you had added (also in file_contexts)" which refers to uncommited glgps47531. I'm sorry if I was unclear
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] papsi177:
Ok, sure you defined new domain. I am bad teacher too, because

/system/bin/glgps47531	u:object_r:gpsd_exec:s0

must to be so defined.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] :
Yes, in file_contexts. This one I already had even in github.

Thanks for help. I will continue in the evening
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] :
New build: 1.6

* Update power profiles

* Adjustable in settings (battery->battery saving and performance)

* Changed to interactive

* Scheduler row -> cfq​

* NFC works (give it a little time to load after booting)

* Minor updates regarding GPS, Wifi hotspot and HD playback

File will appear here in 10 minutes:

https://mega.nz/#F!4T5jUKhY!582ayRsiwjWakXacPH9PPA
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] reujea0:
By minor, you mean progress but not fix,right? Either way,well done. As for the OTA, i'll leave it up to your app, I have some trouble getting it to work with the builtin updater and kinda need my phone fully working now.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] :
Yep. Not working but some changes.

So in case of unexpected behaviour, you can easily know issue!
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] McCrintosh:
did anyone try this, i really need upgrade my phone camera no longer works, just keep saying another app is using the camera. please any help.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] :
Maybe you are the first one to try!:crying:
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] reujea0:
Just wanted to ask the phone does not have 5ghz wifi only 2.4, right?
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] beardedwonder:
Correct.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] Alois024:
Hi, i don't understand why the contacts doesn't synchronizes, do you have amy suggestions?
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] reujea0:
I don't think it is due to the rom directly. Try googling your problem, one guy suggested turning off the power saver. If you managed to post this message you should be able to google your problem. If you still can't find a solution, try providing a log, or more detail as to your problem/setup, else it is hard to help you.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] :
Sounds good:silly:

Are you developer?
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] reujea0:
The problem is with hwcfgcamsvr, but I though wouldn't the stock camera use some low level api bypassing it? Obviously one can't easily install it on a custome rom.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] :
Actually hwcamcfgsvr is most likely fine at this time (except for the possible selinux issues). All it does (also given by its name) is that it configures the cameraserver to be able to access the camera device.

It's the camera app that defines what api level to use, but the only old-api camera is not stock Huawei camera. Opencamera, Camera KK and even androids own Camera2 and CMs Snap will work if configured properly (some apps allow setting the api via build.prop).

The stock camera needs hwcamcfgsvr just like any other app. So the camera client/app is not the issue.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] papsi177:
Hwcamcfgsvr is needed by every camera app. You will not able to configure camera sensors without this hardware camera service.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] :
That is what I said
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] reujea0:
If you don't mind, what did you exactly do to almost fix the camera?
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] papsi177:
How did you know that's camera is fixed?:confused:;) when you have a bootloop allways:)
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] reujea0:
Well, we just talked about it, the issue is not the camera app itself. I mean you are welcome to install and try but I strongly think that it won't have much effect.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] papsi177:
Wrong way man..
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] :
No, it should not.

Installing another camera app will not fix the camera. How do you think it worked on 13.0? Where did you get the idea that the stock app would fix anything?
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] reujea0:
How do you want AOSP cam to work if you install the Huawei one and this is if it fixes anything, which is very unlikely?
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] reujea0:
So, I have looked into the Hotspot issue, it seems as though there were selinux denials

07-03 19:27:16.655 3044 3044 I rild : type=1400 audit(0.0:340): avc: denied { write } for ppid=1 ppid_comm="init" name="disable_ipv6" dev="proc" ino=103101 scontext=u:r:rild:s0 tcontext=u:object_r:proc_net:s0 tclass=file permissive=1

. I think we need to add to file_contexts

/system/bin/rild u:object_r:rild_exec:s0

, and then also create a file rild.te like this one https://github.com/LineageOS/android_device_asus_Z00D/blob/cm-14.1/sepolicy/rild.te and it should fix the denials, hence solve the issue.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] :
Unfortunately it's not that easy. Often when the log says "I", it's not an issue. Selinux is set to permissive, which makes it show the issues but they are not most likely disabling any features.

There are exceptions, and they are often "E" as error, regarding security.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] :
New build 1.6.1 https://mega.nz/#F!dfg2xIII!pPIrs7V1fLOSrjouAe5AxQ :

- Fixed rest of power HAL

- GPS fixed (will only work after a reboot)

Also, check out new TWRP: https://xdaforums.com/huawei-p8/development/twrp-huawei-p8-gra-l09-t3811895

Soon this ROM may get F2FS support and that's when this is useful (3.2.2).
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] reujea0:
Try twrp irc, the phone ised to have official support. They could clone your branvh and we could get official builds.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] :
If we had official builds, that would mean that I need ti maintain the device. And I don't have time for that.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] reujea0:
I understand, on the other side it is not as if twrp versions were comming out every day and maintaining the tree is just adding a few lines per year. But the decision is fumly yours and having official builds doesn't give us much other than support by their app and periodic builds.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] Alois024:
Ho, it's me again

I try to resolved the problem but nothing, I search solution on Google but nothing.

I go to Account>Google, wee see that the Google contacts not sync, I try to "refresh" but nothing, when I go to the app contacts I don't see anything, but when my brother call me the phone show me the name, why? This is crazy, I don't understand.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] :
This is propably the issue with syncing:

06-29 21:53:23.768 E/InternalPeopleServiceGrpcClient(11920):	at java.lang.Thread.run(Thread.java:761)

06-29 21:53:23.768 E/FSA2_GroupSyncGrpc(11920): getGroups() failed

06-29 21:53:23.768 E/FSA2_GroupSyncGrpc(11920): boec: INVALID_ARGUMENT: Application credential header not valid. Please fix the client to pass a valid application credential header.

As papsi said, seems like a gapps issue.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] Alois024:
I use gapps stock for arm64, I try to install another gapps? Which?
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] Milan015:
Thanks for your great work, T1mb3 (and others)!! With this rom, the phone is very responsive/fast! You even added last months' security patches! GPS works perfectly now. Fixing the camera and NFC (can't turn it on) would be great, but I'm already very impressed. The battery drain is no serious problem to me.

Again: thank you!! :victory:
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] papsi177:
I think that's camera fix will take a lot time, maybe few month or more..Maybe it will be not fixed at all. I have a feel that's camera issue is inside of camera hal files, which have source not compatible to android 7. Because android 7 have many major changes related to camera..It is really problem.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] :
NFC works for me. Also wifi tethering is just now fixed!

New build today.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] :
1.6.2: https://mega.nz/#F!RDhHgIgL!AAecbdpaipXsR01d2pT6gA

- Kernel upstreamed

- Huawei sdcard replaced with stock Android

- Fix Wifi tethering

For upstreamed kernel, flash the boot.img (found in the same mega folder) on top of the zip.

Note: this is the last build for a while. I'm not quitting, but I'll not be home for a long time.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] reujea0:
What do you mean by upstreamed, 4.4 or .108?
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] :
Some of the android-commits were cherry-picked from google.

Check my github.

https://github.com/aosp-mirror/kernel_common/commits/android-3.10
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] Pawlosek:
Hello,

Is category "what doesn't work" still current? I mean camera and sdcard?
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] :
Yes.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] reujea0:
So if I understand correctly we need a legacy version cam or v1?

---------- Post added at 12:13 PM ---------- Previous post was at 11:40 AM ----------

Also could someone post a log when opening the camera on the latest build?
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] reujea0:
HAs anyone tried with lollipop blobs, they are even older but may be easier to work with.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] papsi177:
Do you have blobs from nougat?:confused::eek: That's will be easier)
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] reujea0:
No, as you know they are version specific, but I though that lollipop might give us less trouble.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] asdfghjkljx:
Long time......
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] papsi177:
Well, if we will undestand why is hwcamcfgsvr crashing...Then we will get a working camera..

This is a crashlog, https://pastebin.com/Lak9J9rz, ...Any ideas will good)

Btw this is full crashlog of camera

https://pastebin.com/HZGKCdNS

So, here is missing only crashed hwcamcfgsvr service...
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] spirtix:
I found a log with very similar errors on you gist.github some time ago. It was probably from LOS13, but it can be a clue anyway...
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] :
Does kernel log have anything useful?
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] uniq:
Awesome news!

I will check out the progress as soon as I have time!

But what I can see from the logs are a lot of "avc: denied" for many modules like audioserver, mediaserver.

This sort of looks like an SEpolicy vs SElinux issue. Since 7.0 they changed a lot with permissions against Stagefright vulnerability. I could be wrong.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] :
setup is not responding
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] :
What setup? You need to format with TWRP and flash boot.img and system.img via fastboot.

You don't need to quote the whole post thanks.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] Speedo.thc:
Hi, i'am little sure he did not wipes data's..
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] :
in the first reboot the phone stops in a black screen as it cannot start the set up of the phone

it shows " setup wizard is not responding"

(of caurce i made a full wipe from TWRP)
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] papsi177:
What about bootloader? Unlocked?
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] :
It is indeed not working. I may have copied some bad blob (camera). I will now fix it!

Sorry:D
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] :
yes it is

i can not even install TWRP if the bootloader is locked

---------- Post added at 09:34 AM ---------- Previous post was at 09:32 AM ----------

ok take your time

thank you so much sir :)
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] papsi177:
Sure, i am stuped idiot)
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] :
[MENTION=5464246]papsi177[/MENTION] [MENTION=5300098]Speedo.thc[/MENTION] [MENTION=9099976]ahmadsiddeeq0[/MENTION]

It's now fixed and uploading to mega. Same link.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] :
sorry still the same :confused:
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] :
It takes a few seconds to load. For me it worked just minutes ago. Report if it works or not please

Edit: I haven't tried with gapps but should be the same I quess.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] spirtix:
Did you flash gapps?
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] :
no

---------- Post added at 11:51 AM ---------- Previous post was at 11:15 AM ----------

it booted

gapps working :good:

magisk working :good:

xposed installer working :good:

the only problem is the camera :crying:

thank you :highfive:
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] :
Good to know. Thanks
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] reujea0:
I was wondering if video decoding worked, if yes what formats, and does 60fps hd work on youtube(didn't on lin13)(i think its due to vp9)?
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] :
New build with some gps stuff done and some performace improvements.

https://mega.nz/#F!oeRFnJDA!c3IIWNPnipiauUHh7_87gg
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] uniq:
Nice

[MENTION=7280252]T1mb3[/MENTION] Just installed version3 seems to work fine at first glance (obviously camera/sensors not yet). Needs further testing., but for now I can tell you:

- Sound works great

- Volume buttons work

- WiFi works fast

- YouTube videos load fast (struggles with 1080p 60fps, probably hw codecs)

- LTE works (measured same speed as on other device with same sim)

- Calls work (but proximity sensor to disable screen does not)

- Screen recorder / sound recorder works

- Phone gets hot really fast playing YouTube (probably hw codecs)

- Bluetooth no devices found

- Screen rotation does not work (unless app can force rotation) (motion sensor MPU)

- Black screen when Edit Quickdrawer, pressing powerbutton shows normal Power off, Restart overlay box
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] TAHA000007:
I have installed version 3

-sound some quite

-devices fast heating

-battery is fast draining (linageos battery use first)

-I have a bug:I want to change notification center shorcuts,When I touch edit seymbol (pencil) my device ise freezing, I have black screen If dont restart my phone,I dont use anything

-I have a problem my memory card-Android system doesnt support this card.How solve this problem?

+performance is great (my think)

anyway.Thanks for This project.I love stock android rom and I will following this project.I am waiting optimization for these problem.Thanks for everything Apologize my bad english
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] :
I think I can fix overheating to be same as in Lineage13 by enabling some services. Battery may drain faster though.

What is your cpu governor? You should try to set it to interactive using some app
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] papsi177:
No, kernel part is OK.

P.S. It is really very disappointing, because all others features are working great, performance is more better as on los13, battery life too..Security also in enforcing mode by me..Only camera big, big splinter in the ass)
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] :
I know..

Maybe some day.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] papsi177:
Big **** is that's camera stuff can not to be easy ported from other similar device, which have android 7.0...and similar IMG mechanism. basically it can be, but need really hard work on it..
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] HuskyChan:
Should we make a discord server for this?
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] :
No
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] HuskyChan:
Is there any progress being made regarding the camera , and are you the only one working on it right now while T1mb3 is away?
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] spirtix:
I think I'm the only developer working on it open source (papsi has closed source ROM for Honor 7). I firstly need to fix GPS on Honor 7, so there's no progress on camera, but we've found some resources regarding to battery drain. :)
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] HuskyChan:
Also I wonder how does Huawei P8 Lite still get updates , and has so many more people creating custom ROMs for it? Like Project Open Kirin just released Oreo for Huawei P8 Lite.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] reujea0:
It is a different soc, so it is quite different, plus I think they got official nougat so oreo isn't that far off.