yashsingh1/xdaforums huggingface dataset:
[Honor 7 General] sminki:
Cheers Simon-san! Confirms what I was thinking, but haven't had time to test - "can't open file" indeed.. Only ever previously built Sony kernels and that's handed to you on a plate.

(oh and a quick thanks for the H7 links on "the other site", B121 Full was a real life saver :o)
[Honor 7 General] flibblesan:
No worries. Really wish Huawei would shared the code this time around.. I really don't know what is going on.

I have been told that all focus is on Marshmallow now so fingers crossed they actually release code this time around. They were pretty late with Lollipop so perhaps they thought it was pointless releasing the code (although they really should release anyway because GPL).
[Honor 7 General] seuf:
Petition Signed !
[Honor 7 General] Caleidoscopio:
On huawei website, if you go on "Search Downloads By Product", you can find Honor 7 PLK-L01, but there is nothing to download. Just be a little bit more patient, i think they will upload some in less than one week!
[Honor 7 General] DigiGoon:
Its AWESOME..!! it was not there yesterday [emoji2] [emoji13] [emoji1] [emoji6] [emoji13] it means they are gonna upload something there soon..!!

Sent from my Honor 7
[Honor 7 General] eddydc1:
Maybe they release the code when they release Marshamllow beta? :)

Lähetetty minun PLK-L01 laitteesta Tapatalkilla
[Honor 7 General] Caleidoscopio:
Yes, i Think so Too.

Can't wait for it! :)
[Honor 7 General] sminki:
i can't see them releasing unfinished beta source, why would they? or do you mean 5.0.2 source?

interesting to note, the Mate S came out in September with the source almost immediately following (no-one has compiled that on XDA yet), yet the P8 took seven months for the source to be release (and no kernels/roms for that either)

even with the source in our hands, it's going to be a while before

anything

comes of it.

yes, i am a miserable old bastard, sorry :p
[Honor 7 General] kenshiwara:
The one in charge of updating the Huawei website is different from the one who decides when the updates or source codes should be released. For that employee to add a new entry of "Honor 7" means that he got orders from his manager to do so. Whether or not they will release the codes is still a mysterious question, but they must release something under Honor 7 if they are following a logical pattern in managing their company and departments.

Let's hope for the best! ~ It would be amazing to see the codes. :cowboy:

---------- Post added at 02:20 AM ---------- Previous post was at 02:06 AM ----------

Thank you very much for your support! :cool:
[Honor 7 General] DigiGoon:
Android M beta is released, but still no source codes :confused:
[Honor 7 General] Icetea:
laber, laber, laber.....

all that post bored me!

and the dream comes true...

NO! I didn't think so! I’m sure, that there will be no way to get usable code without reverse engineering! Sorry folks!:cool:
[Honor 7 General] themegaphoenix:
thanks for the support

111 signatures so far!
[Honor 7 General] blazta:
Get Mm here http://xdaforums.com/showthread.php?t=3269520
[Honor 7 General] kenshiwara:
There is no need to be so pessimistic about that. They have released the codes for Honor 6 in the past, why would they not do it for Honor 7?

As you know, releasing the source codes is to their advantage. However, not releasing the codes will decrease the popularity of the device.

Sharing the codes is always a win-win event for all parties and they know that very well. :cowboy:
[Honor 7 General] flibblesan:
Honor know they have to release the code. In fact, HonorEU, Honor UK and Honor France are very keen to provide the GPL kernel source to it's users. The decision to do this is ultimately in the hands of the development team in Shenzen. At the moment they don't have to release source for beta ROMs, only when there is a final version or a device ships with a final version on.

I know there are some people here that just want Huawei/Honor to respect GPL and do the right thing by releasing the code, but it's worrying that there are still a large number of people that are under the impression that having the code will somehow allow a flood of custom ROMs to show up. It's absolutely not the case whatsoever. A custom ROM for a Kirin device is quite a difficult task. Look at codeworks who had a lot of problems bringin CyanogenMod over to the Honor 6. The kernel source needed a lot of modifications to make it compatible with the Cyanogen codebase (which is expected since they don't officially support Kirin powered devices).

Just want people to be realistic here. Yes, they have to release GPL source but this isn't the Holy Grail people think it'll be. Sorry to be realistic here. If you bought the Honor 7 expecting custom ROMs then you really bought the wrong device. Buy a Nexus 6P instead :)
[Honor 7 General] kenshiwara:
Having the source codes will allow us - as developers - to "try" porting a custom rom. We have bought this device primary for its features but we surely like to "attempt" developing and porting to it. Most of us are not users who just want the source codes; in fact, the ones who are requesting the source codes are indeed developers who are passionate about their devices and would like to create a custom ROM for it.

The process of porting a ROM like Cyanogen is long, tedious, and might not work as you have mentioned. Still though, that should not stop us from requesting the codes and trying our best to remind the company about them.

Thank you for your comment and contribution.
[Honor 7 General] Muhammad Rihawi:
[MENTION=7060172]kenshiwara[/MENTION] [MENTION=5391886]DigiGoon[/MENTION]

Guys, Huawei released the open source code yesterday for Honor 7 PLK-L01..... you can download from below link (150Mb)

http://consumer.huawei.com/en/search/index.htm?keywords=honor 7

I hope you can make CM Rom,

does this source code help for Honor 7 Europe version?
[Honor 7 General] kenshiwara:
That's amazing! we have been waiting for those for so long actually. Thank you for pointing that up!

Yes those are precisely the codes for Honor 7 - PLK-L01. This is the European version that we care about. :cowboy:

Porting a rom will take time and it is generally a tedious task. Right now though, we have good hopes of getting a custom rom at least! Without the source codes, it would have been just a dream - (or a matter of reverse engineering which is ridiculously hard).
[Honor 7 General] eddydc1:
Take your time dev's, no hurry
[Honor 7 General] Muhammad Rihawi:
Yeah you are right this for Eourpe i didn't notice..

Is there any devloper has honor 7 who can work on Custom rom?
[Honor 7 General] Szumy:
That's awesome!

I wish you luck developers!
[Honor 7 General] themegaphoenix:
i can try, but no guarantee

my knowledge is limited, and i will rely on xda to help me:)

i only ported mtk roms so far, whcih if you search, its easy
[Honor 7 General] Muhammad Rihawi:
Thank you for your efforts... I hope we have CM Rom soon :)
[Honor 7 General] themegaphoenix:
i think CM is pushing a bit:):) I will try, but for now, it just systemui changes
[Honor 7 General] Muhammad Rihawi:
Thanks :), the most thing i hate in system UI is the multitasking is not like stock android 5 or 6 :(
[Honor 7 General] sminki:
it's good news

it's also a monumental task. plus anyone who has upgraded to 6 will not run anything created with this source - just saying :p

excuse my absence, my h7 is now bricked thanks to the mm update, so i'll be out of action for weeks, or maybe forever...
[Honor 7 General] kenshiwara:
Sorry to know about that.

When you say that your device got bricked, what do you precisely mean? if you can share your exact problem with us we might be able to help.
[Honor 7 General] nishadts:
even a rom based on stock rom will be cool..emui messed up notification pannel
[Honor 7 General] DigiGoon:
Rollback to 5.0

ROLLBACK TO 5.0​

If you wanna rollback from Android 6.0 to Android 5.0 then go to THIS link and download the "Rollback Package", flash it and then flash your B100 or B121 "UPDATE.APP", detailed instructions are given in the "Rollback Package". :) :D​
[Honor 7 General] flibblesan:
Wrong thread? :)
[Honor 7 General] DigiGoon:
Saw that [MENTION=4502149]sminki[/MENTION]'s post that he bricked it so posted here :D, will write this in every thread :)
[Honor 7 General] flibblesan:
Good idea. Slow download though!
[Honor 7 General] themegaphoenix:
Link to the source code

Link

------

just a quick question:

modifying the systemui.apk and signing, and then applying the twrp update, will replace the app right?
[Honor 7 General] sminki:
Excellent, cheers mate. I'm just on the last phase of a TWRP restore :victory:

OP won't mind a slight off topic post

The rollback was successful, my hopes weren't high as I'd actually trashed the /system partition, there wasn't anything marshmallow on there! I'd put 121 system and user back on, with MM boot and recovery (just to send back for repair)

RollBack --> B121 Full --> B121-140 --> TWRP --> Happy

I did learn that with the MM parts written to the eMMC you

can

flash the Chinese PLK-AL10_EMUI3.1_Android5.1_5.11.16 system and user, and it boots to a usable phone!! I was not happy with that though, version still showed as PLK-L01C432B313, a nasty hybrid.

When I initially got the phone I made dd copies of all the partitions, but to restore that would be a) dangerous, and b) requires a booting phone :p

I have also learned that UK Huawei email support is non existent, but I don't care now :silly:

Anyway, with that all out of the way, thanks! back to enjoying the H7...
[Honor 7 General] kenshiwara:
The Android Kernel Source Codes Of Honor 7 - PLK-L01

Great to know that! :cowboy:

I have already posted a thread about that. You could have actually solved your issue much sooner!

Luckily though [MENTION=5391886]DigiGoon[/MENTION] was really fast at posting the links up and providing help in multiple threads! Special thanks goes to him.

You can refer to this thread for all related downloads and for the kernel source codes of Honor 7 - PLK-L01:

http://xdaforums.com/honor-7/general/android-kernel-source-codes-honor-7-plk-t3272202

I will keep the above thread regularly updated.
[Honor 7 General] sminki:
doubtful, i got mentioned in a thread with the link in it :p

Object and Source should be on separate threads (if you ask me, which nobody did :p), I wouldn't go looking for a solution to an upgrade in a source code thread :silly:
[Honor 7 General] DigiGoon:
I did double posts, sorry :d

Lemme change this into something useful...

FINAL EDIT: I WILL MIRROR THE SOURCE CODES AGAIN :D
[Honor 7 General] DigiGoon:
[MENTION=7060172]kenshiwara[/MENTION] made that thread so we can get all the links from one place, so that we don't have to search for all the links in different threads. :)
[Honor 7 General] DigiGoon:
Mirror

Mirror for kernel source codes: LINK​
[Honor 7 General] sminki:
kernel source compiled successfully, warnings (as expected) but no errors :o

EDIT:

I have yet found a way to split stock boot.img, there's stuff in the header before ANDROID, so the usual tools don't work. Need to do this to get the ramdisk out...

I have flu, so giving up for today.

I also don't think we can run "fastboot boot zImage" with Huawei's bootloader, which is another stumbling block
[Honor 7 General] sminki:
Actually, the "Kitchen" works fine on this, the offset is 4096 bytes...
[Honor 7 General] DigiGoon:
You, should've tried kitchen before to split boot.img
[Honor 7 General] sminki:
I know :silly: i think i said - it's been a while, 2012(ish) since I've done any of this :eek:
[Honor 7 General] DigiGoon:
LOL :D No problem
[Honor 7 General] dryspuri:
Ha

did something wrong again

Tried rollback update.app, firmware back on b300, but when I try to flash the whole package B121, it says software installation failed, Help please

---------- Post added at 04:24 AM ---------- Previous post was at 04:18 AM ----------

actually in rollback document they describe 3rd stage I dont think i get it, do I flash update app again or there is something else
[Honor 7 General] DigiGoon:
Kernel source code on GitHub

I have uploaded our stock kernel source code to GitHub so if anyone wants to fork it and make changes to it, they can do that. :D
[Honor 7 General] sminki:
:good:

So yesterday I compiled the source successfully with a merge with AOSP 3.10.y (with google prebuilt toolchain and linaro)

Extracted the ramdisk from stock boot img and rebuilt with new kernel, flashed....

No boot :mad: That's as far as I've got so far..
[Honor 7 General] themegaphoenix:
Did you try to flash 121 after the downgrade package?

this how it should go:

1- Extract the Rollbackpackage6.0-5.0.2

2- Copy the file named “UPDATE.APP” (of the Rollbackpackage) to the folder named “dload”

3- Power off the phone, and then press the Volume+, Volume-, and Power button at the same time, the phone will enter to the forced upgrade way. This step will bring your phone to the transition version that is B300

4- Now take a 5.0.2 Official firmware end extract it.

5-Copy the file named “UPDATE.APP” (of the 5.0 firmware ) to the folder named “dload”,

6- Go to settings and update it normally, it should now downgrade to 121

7-Power off the phone, and then press the Volume+, Volume-, and Power button at the same time, the phone will enter to the forced upgrade way. This step will bring your phone to the transition version that is B121

Link to 121 rom

---------- Post added at 04:15 PM ---------- Previous post was at 04:12 PM ----------

hey, i am trying to learn how to develop a rom from this source, but is this just the kernel source, or the full code?

and any tutorials to help do this?
[Honor 7 General] DigiGoon:
This is just the kernel source code, we have to make a tree, after that we can build a ROM
[Honor 7 General] themegaphoenix:
and i assume that the tree has been done by now?

why didnt huawei release the full rom? is it because of some close-source software, or just because they didnt want it?

also building the rom should be easy*, right? or did huawei changed a lot, that loads of stuff need to be done to build it?

sorry about all the questions, but i am a noob here trying to learn how the kernel and the other stuff work, because so far i only had experience changing the system.img in mtk devices

plus one more thing, i tried to copy the systemui.apk directly from the device, and then deodexing, but when decompiling with the apk tool it gave an error(cant remember what the error was, but i am guessing that it was because of the headers), how can i decompile the apk, this is, if this is the right way of modifying the files?

*easy = the hardness to build a rom for a qualcom device
[Honor 7 General] sminki:
no one has publicly said that they have

The Linux

kernel

is covered by the GNU GPL* - Huawei have respected this! :victory:

Android is covered by the Apache Licence**

EMUI is proprietary, despite being based on Android, they are not obligated to publish their own changes.

* - from wikipedia: "GPL guarantees end users (individuals, organizations, companies) the freedoms to run, study, share (copy), and modify the software

** - wiki again: "The Apache License is permissive in that it does not require a derivative work of the software, or modifications to the original, to be distributed using the same license"

*** - a more learned person than I, please correct me :angel:

Simply put, no

[MENTION=832112]flibblesan[/MENTION] 's wise, yet largely ignored post in this very thread #50 says almost everything that needs to be said.

quite possibly the worst platform to learn the Linux kernel on, with MediaTek's total disregard to GNU GPL :p

Please note, this is not a personal attack or anything else. I'm just answering some questions that I felt needed answering.

It still won't stem the flow of "I WANT CM13 ROM!!!" comments, but hey... :silly:

personally, not interested in CM on Honor, but if there's no choice ... :o
[Honor 7 General] themegaphoenix:
That makes

I only learnt mtk modifying because the software was so bad, but there were so many tutorials to port ROMs, that I guess it is worth it. I thought that the whole Android was covered by GPL, guess I was wrong:(

Is the procedure to port a ROM the same as any other device?
[Honor 7 General] sminki:
licensing in general is a minefield, but all we need to worry about on here is:

http://xdaforums.com/showthread.php?t=2645321

http://www.xda-developers.com/xda-developers-and-the-gpl

in short -

post a kernel, post the source ;)​

...

actually all i need to worry about at the moment is getting the damn thing booting (haven't tried today)
[Honor 7 General] sminki:
Today's playtime reveals that the first 4095 bytes of the boot img are taken up with secureboot. I know almost nothing about that*. It has been suggested I replace those bytes with zeros, unfortunately it hasn't worked, but saying that, i filled that space with the first 4095 bytes of a stock image and it still doesn't boot... :eek:

- i should add at this point i'm and trying to repackage the

stock

kernel and ramdisk!

EDIT: *I am reliably informed that:
[Honor 7 General] themegaphoenix:
isn't secure boot a marshmallow thing?

well, they were working with google, and it would explain the (a bit) stable beta marshmallow rom

edit----

i hope this link will help you

Link
[Honor 7 General] sminki:
thanks, I was just looking at that myself ;)

Android 4.4 it was available.

I think the marshmallow thing is secureboot + full device encryption.
[Honor 7 General] themegaphoenix:
are we closer now to a bootable rom?

edit---

found this file about verity in the source:

path:

PLK_kernel_source\Documentation\device-mapper\verity.txt

alternative, i pasted the file in pastebin:

Link
[Honor 7 General] DigiGoon:
Don't ask again about how close we are to a bootable ROM, makin a ROM is nkt an easy task, and [MENTION=4502149]sminki[/MENTION] is just tryinv to boot the kernel from the source provided by Huawei. So, keep in mind and don't ask again.
[Honor 7 General] sminki:
Yes, it's a long journey, need more people getting their hands dirty (hint hint! :p)

Taking the day off today anyway :D
[Honor 7 General] Freebob94:
Hello, any news here?

Envoyé de mon PLK-L01 en utilisant Tapatalk
[Honor 7 General] sminki:
not from me
[Honor 7 General] sminki:
actually, i've made some progress today...

:o
[Honor 7 General] eddydc1:
Great job [MENTION=4502149]sminki[/MENTION], bootable kernel :)
[Honor 7 General] emu1982:
Nice work [MENTION=4502149]sminki[/MENTION]
[Honor 7 General] samcro94:
[MENTION=4502149]sminki[/MENTION]

Thanks for your work it gives us hope for a custom rom !
[Honor 7 General] Freebob94:
That's a good new for all H7 user, thank you sminki.

Envoyé de mon PLK-L01 en utilisant Tapatalk
[Honor 7 General] themegaphoenix:
Well done! We started the new year well:)
[Honor 7 General] sminki:
...and my birthday today too :p

I've now got some TCP congestion algorithms added, along with some I/O schedulers. Seems to work...

Having problems getting CPU governors compiled, but I'll keep going and probably post something for people to test tomorrow. Governors is what the cool kids want :silly:
[Honor 7 General] Freebob94:
So, happy birthday simnki and thank you for your hard work.

Envoyé de mon PLK-L01 en utilisant Tapatalk
[Honor 7 General] themegaphoenix:
Happy birthday sminki!
[Honor 7 General] Szumy:
Good job and happy birthday

Wysłane z mojego PLK-L01 przy użyciu Tapatalka
[Honor 7 General] sminki:
first kernel posted.. http://xdaforums.com/honor-7/development/kernel-kernel-stock-h7-gcc-linaro-4-9-3-t3285157
[Honor 7 General] kisszsp1314:
OK，wonderful.but I have only plk-al10
[Honor 7 General] Szumy:
Small step for us, big step for custom Rom dev :) So it does not work on MM ?

Wysłane z mojego PLK-L01 przy użyciu Tapatalka
[Honor 7 General] omkarpranavxxx:
Please work on PLK-UL00 to emui is soo messed up would love to run stock android experience
[Honor 7 General] Summacity:
Any news about this? Lurked everyday for last two weeks now.
[Honor 7 General] themegaphoenix:
check this thread first:

http://xdaforums.com/honor-7/general/long-t3290753

it has the reason why the development is so slow

in short, if you expected custom roms, you bought the wrong device:(
[Honor 7 General] Summacity:
Yes, I'm aware of all this. I have unlocked the bootloader, flashed TWRP:s chinese version and rooted. Just what came up in my mind is that why would Huawei offer bootloader unlocking on their own site IF they don't intend to release the sourcecode etc. I'm somewhat confused about this.
[Honor 7 General] M4rnN:
Source Code

I don't know much about the kernel source code etc.. but could this help? I found it on the huawei support site.

Go to the consumer . huawei .com and search honor 7. under the result of MediaPad x1 7.0, there will be a support post with a download link. I think this could help?

I am a new user so cannot post links, but tuen [dot] into '.' and [slash] into '/' and it should work

download-c [dot] huawei [dot] com [slash] download [slash] downloadCenter?downloadId=62086&version=204465&siteCode=worldwide
[Honor 7 General] Mostar088:
Yeah i saw that too, does that help?

Honor 7 Open Source（PLK-L01_Android5_0_2_EMUI3_1_kernel_EN)
[Honor 7 General] DigiGoon:
GOOD NEWS

Awesome News..!!​

Yesterday Huawei released Android 6.0 kernel sources, here is the direct link and here is page link [MENTION=4502149]sminki[/MENTION], [MENTION=7060172]kenshiwara[/MENTION]
[Honor 7 General] Fred6681:
Android 6.0 Kernel source code on GitHub

Hello,

For those who are interested i have uploaded kernel source code for android 6.0 on GitHub

Do not hesitate to use, modify and redistribute

.
[Honor 7 General] Fred6681:
The last kernel not build, missing files
[Honor 7 General] ElyanoSantos:
I want help for custom rom H7 .
[Honor 7 General] DigiGoon:
I want help too, lets make it together. :)
[Honor 7 General] produstoandaluz:
Good news!! Hope it could be possible to create a custom ROM finally!! Anybody else with experience is interested?

I have no enough knowledge but I can help with testing :)
[Honor 7 General] DigiGoon:
Device tree

Anyone tried to make a device tree for CyanogenMod 13 or AOSP 6.0?

And those who wanna help in building the ROM, please be active on the forum so we can work fast. :)
[Honor 7 General] ElyanoSantos:
I want to help but I am available on weekends and yet because I really have a very big day in my work , it's hard for me week I sold out at night ☺.
[Honor 7 General] Dattel01:
Tried to set up an environment for building my own twrp but failed with the prequisites..maybe you know a good source to learn how to start...

Coming from c# programming cornor with a little Android coding excurse..
[Honor 7 General] DigiGoon:
Okay, tell me where you got stuck?
[Honor 7 General] Dattel01:
i followed these instruction on a clean ubuntu 14.04.4 LTS within a virtualbox.......

https://github.com/lj50036/platform_manifest_twrp_omni

first of all i underestimate the need of space for the sources... so i did that step twice :) but with a bit more space for the build partition on the second try.

i thought it would be a good start by pulling a default omni-rom/twro from repository and making it step by step from scratch...

my problems starts when i have to enter a device name at the "lunch" command...

i know that there is no prepared device configuration for the H7-plk yet - but there should be any hint, how to get the current available devices for the build.props and so on...

i also own an old nexus4 to... but i also failed to start the "lunch" with the "mako" devicename...

so as current conclusion: if i failed to build for a well known device, there will be no chance for me in building for a brand new device tree :(

maybe you know a better point for me to start over

Update: decided to start over with a CM13 buildenvironment for the nexus4 to celebrate a small success for myself.... ;)