yashsingh1/xdaforums huggingface dataset:
[Honor 4C ROMs, Kernels, Recoveries, & Other Develo] :
[MENTION=6435663]hackslash[/MENTION] [MENTION=7354786]XePeleato[/MENTION] regarding the screen of "sleep of death" while not charging where's this handeld?

Because if you don't charge it if the screen is off over some time (like 10 seconds) it won't wake up.

However if it's charging (or at this state. It's charged) since battery calibration is broken) it says charged. There's actually no issues to wake up the phone while screen has been of.

I'm not sure if a third party app could help us since most of them will most likely force close.

I've even tested other music players. Video players to see if I could get video playback working with mx player but it's no

Luck since something causes it to crash. Not even viper won't work for audio. This is also strange it has to be some sort of issue. Logcat won't give us much except app fails to start (not actually much info there so it can't help.) I've only gotten one video player to work but it didn't play any video. Don't know if it's due to trying to play in hw or sw mode :/

I've also noticed two lib files balong-ril and some other file isn't in system/lib not sure why it isn't since stock is having thus files there.

Also what is it with audioril.lib=libhuawei-audio-ril.so?where's this file stored it is most certain not in system folder. ?
[Honor 4C ROMs, Kernels, Recoveries, & Other Develo] XePeleato:
About the screen not turning on, is fixed in CM14 and in AOSP6, so whenever we trace the bug, we'll do our best to fix it if it's possible to do so.

About the balong-ril libs, those are not present in system/lib simply because the library in charge of the RIL services is libril.so, and it works on the 64bit level, so there's no need to have a 32 bit library.

About the audio-ril lib, it's a mistery because the exact same configuration is present in EMUI, so I assume it's fine to leave it that way.
[Honor 4C ROMs, Kernels, Recoveries, & Other Develo] :
Hmm I think it's strange because huawei uses it on their own system but for what reason? Yeah I noticed that too I wonder if it's a hidden lib maybe?
[Honor 4C ROMs, Kernels, Recoveries, & Other Develo] XePeleato:
In my opinion it's fine to leave it like that beacuse RIL worked without touching that parameter.
[Honor 4C ROMs, Kernels, Recoveries, & Other Develo] :
Curious. How good is it working for you? I've seen people got 3G but I only got e ? maybe it's in wrong slot?

Well reason why media playback wasn't working by default is clearly because media_codecs was missing. I could remove the Googles video related info since cm use their own files
[Honor 4C ROMs, Kernels, Recoveries, & Other Develo] XePeleato:
I haven't tested it thoroughly, but it that issue is related to the signal strength. If the signal is excellent the phone will not recognize it, it's easy to fix since you just have to tweak a couple of variables, until you find the sweet spot.
[Honor 4C ROMs, Kernels, Recoveries, & Other Develo] :
I see I must learn how to check the libraries then [emoji14] fun thing is I found a dissasembler which could assemble the file but didn't work on windows 10
[Honor 4C ROMs, Kernels, Recoveries, & Other Develo] hackslash:
The signal strength issue cab be easily fixed by tweaking the HuaweiRIL.java file. See the telephony repository in the Honor 4C Github group. The values are tweaked but aren't tested.

As for disassembling the libraries it us not that easy as it seems. You can use IDA to disassemble them but the hard part is to convert that machine code to readable code using cheat sheets and I have no expertise in this regard.
[Honor 4C ROMs, Kernels, Recoveries, & Other Develo] :
i'll check it out, though which one is that you have modified? i'm not sure which part you changed because there is two folders which contains same paths but different files :confused:

EDIT: wait i was dumb there :P don't mind my comment
[Honor 4C ROMs, Kernels, Recoveries, & Other Develo] hackslash:
Nothing to worry. I'm also dumb most of the times. We all act dumb at some points in our life. That is what makes us human ;)
[Honor 4C ROMs, Kernels, Recoveries, & Other Develo] Zizo17:
:laugh:
[Honor 4C ROMs, Kernels, Recoveries, & Other Develo] lin-vip:
good
[Honor 4C ROMs, Kernels, Recoveries, & Other Develo] :
Well I'm not sure here since there's basically two folders in main project one is test? Is that the new config.

Also ill have to build each file manually and get smashed back with allots of errors :G i know it's my java version that stinks :G
[Honor 4C ROMs, Kernels, Recoveries, & Other Develo] XePeleato:
Are you talking about tweaking signal? Do as in this commit: https://github.com/HuaweiHonor4C/an...mmit/bb21543789c22f0e49e367c588fbbacd227eb2cd

From line 550, it's just a matter of finding the right numbers for the highest level of signal strenght.
[Honor 4C ROMs, Kernels, Recoveries, & Other Develo] XePeleato:
It's fine, you can quote me. So, have you tried to change the values? It's a nice finding!
[Honor 4C ROMs, Kernels, Recoveries, & Other Develo] :
Nope I didn't find where to actually change it in framework of cm yet their code is somewhat similar on places but thus I quoted here was actually in the constructor part of the code. Also it was pretty late when I tried my first dirty version of a modified framework since basically stole a complete method from original signal strength from huawei but it didn't help us much since when I realize now. It wasn't much about the signal strength in the code I used ? oh well ill look into it more today. Since I can't compile the framework of its own with my java ill have to try backport it trough smali. Though much code is similar it's just that cm has some extra lines here and there and has codes about old ril and such [emoji14]
[Honor 4C ROMs, Kernels, Recoveries, & Other Develo] :
Well i'll have to reconstruct the whole "layout of CM signal strength to actually be able to view the code easier, right now CM has "similar code" but in different places where setgsm is on cm "line" it isn't on huawei, so if i reconstruct it "somewhat" it'll be easier to work with
[Honor 4C ROMs, Kernels, Recoveries, & Other Develo] :
[MENTION=7354786]XePeleato[/MENTION] [MENTION=6435663]hackslash[/MENTION] does https://github.com/laststandingdroi...mmit/ab6bc44aa77c0890552f81b63704833073b7b1c1

Looks correct or did I mess up the top unknown values?

EDIT, while i was annoyed over that i broke the "ril" connection i then thought why am i looking into the framework.jar in CM when it's stored in telephony-common file [emoji14] so i broke it because i edited values in wrong file [emoji23] now i've hopefully edited the values right.

now i compiled the framework file with the new values, but it could be that it needs the new "edits" that's in the branch edit I'm not sure but all values in huawei-ril is set to LTE?

I've tried to modify it but can't tell if it works (since any connection related on phone always takes ages)

I'm posting the telephony-common file here

http://www40.zippyshare.com/v/NTCuvoIn/file.html

If someone is willing to test.
[Honor 4C ROMs, Kernels, Recoveries, & Other Develo] :
So I've found out some things.

If u use sim slot two with one card it'll have a hard time recognize it. If u use 2 sim cards it'll actually recognize sim 2 fast.

If u have the sim on slot two. Ull get only E

If you use it on sim slot 1 you will get 4G

Now I don't know if it'll drop the connection on sim slot two. But it seems like it doesn't (no mobile data) but it can reach full strength. So it seems to be a sim reading issue if u only have one sim connected in slot two.

It did drop the connection even without cellular data.

And last thing is. If u change the mobile data from Sim one to sim 2. The data of sim one will be lost.

And if someone calls it'll break the data of both slots and come back after a while to later die [emoji14]

So. It has some sort of sim related bugs [emoji14]
[Honor 4C ROMs, Kernels, Recoveries, & Other Develo] :
Why the mud is this? Huawei mate 7 have Huaweiprocessing. So and we don't? But it's defined in phones audio policy
[Honor 4C ROMs, Kernels, Recoveries, & Other Develo] hackslash:
The whole system partition is a mess with configurations of so many Huawei/Honor devices.
[Honor 4C ROMs, Kernels, Recoveries, & Other Develo] keikari:
Wondering could this help

I did some googling with google translator english to china and found this web page http://www.mppgmyanmar.com/2016/02/23/huawei-firmware-download-china-region/.

There is file called Che2&CHM&CHE&ALE开源代码（Android 6.0， EMUI4.0，kernel，中国区） Isn't Che2 our device? The first chinese stuff means "open source" second means "china". Don't know if it has chinese stuff inside. I remember someone somewhere saying about open source stuff not released for android 6 on our device or p8lite so I just wondered could this help?
[Honor 4C ROMs, Kernels, Recoveries, & Other Develo] :
Hmm even If it is it might not help us at all since people say their code is corrupt

Since the majority of needed kernel stuff is already done. It boots etc. I'm not a kernel expert though
[Honor 4C ROMs, Kernels, Recoveries, & Other Develo] XePeleato:
We already have it, and have already worked on it, it isn't relevant at this time.
[Honor 4C ROMs, Kernels, Recoveries, & Other Develo] :
Ah I see didn't know u had it
[Honor 4C ROMs, Kernels, Recoveries, & Other Develo] :
I'll try see if I can build with xepeleatos fixes for wifi (not sure if it's uploaded) ill only need to know what java version is needed [MENTION=7354786]XePeleato[/MENTION] [MENTION=6435663]hackslash[/MENTION] since sometimes they say different. I'll try build as much as I can until the time I won't be able to build every day (can be any day) or I still can build every day. But might not be able to implement new fixes etc.

edit i see it needs open jdk 7

only thing bugging me is bison build-essential curl flex git gnupg gperf libesd0-dev liblz4-tool libncurses5-dev libsdl1.2-dev libwxgtk2.8-dev libxml2 libxml2-utils lzop maven openjdk-7-jdk pngcrush schedtool squashfs-tools xsltproc zip zlib1g-dev

tells bison: extra operand ‘curl’

EDIT: My bad it was download info only
[Honor 4C ROMs, Kernels, Recoveries, & Other Develo] MarcoPLs:
[MENTION=6435663]hackslash[/MENTION] please take a look at hwcomposer fix for huawei p9 which was suggested by it developer on p8lite cm12 thread

https://github.com/Huawei-Dev/andro...mmit/79d0e2e4bace8dc82ba01821f34226aef7c4ebd0
[Honor 4C ROMs, Kernels, Recoveries, & Other Develo] :
cool if i succeed to download sources this day (should be done) i could deff try to cherry pic it, just need to download the device tree and such =)
[Honor 4C ROMs, Kernels, Recoveries, & Other Develo] :
[MENTION=4435346]LastStandingDroid[/MENTION] you should release your own builds :D
[Honor 4C ROMs, Kernels, Recoveries, & Other Develo] :
That my friend is nothing I can promise. Depending on how fast I can fix everything (get sources etc) though Ubuntu gives you easy access to download needed tools. Also I'm going to try build dual boot patcher (so it'll be compatible for our device) hopefully.
[Honor 4C ROMs, Kernels, Recoveries, & Other Develo] hackslash:
Roger that :) I'll implement it and will soon release some test releases.
[Honor 4C ROMs, Kernels, Recoveries, & Other Develo] :
I'll try do that later. Going to merge all files needed for the device setup. But won't fixe it now since I'm going to do last renovation of my apartment which me and my girlfriend is going to move to. That's why I try to get most stuff working now. Since later on a baby will take most of my time ?
[Honor 4C ROMs, Kernels, Recoveries, & Other Develo] :
http://xdaforums.com/showthread.php?p=69045297

Will be good too ;) ill try later to build. Now I don't have time :)
[Honor 4C ROMs, Kernels, Recoveries, & Other Develo] :
So build progress seems to be doing just fine atm. It hang over night but it's ok. So far all major folders been built :) and it's doing well.

So far I've implemented hw composer fix. (untested) and audio "patch"* this is just a fast merge. I'll probably have to check the files if they have too much code related to p9 lite (so far i didn't find any code specific for it) kernel is same as before (based on hackslash build) wifi fix / isn't included. Sorry I didn't check xepeleatos repo :)

*audio patch is not modified yet. It might not need any modification. I'll check it later. I've also added some missing info about audio utils or whatever it was see https://github.com/Meticulus/androi...mmit/8f9f5efb275af7208180bcec2879d5da661e19a8

And of course all credits goes to hackslash xepeleato Meticulus surdu_petru

Without them I wouldn't take my energy to build since I'm lazy :)

Edit first zip built. Well see if it'll work EDIT, zip file works if camera.default.so is removed (this is strange that it's added idk why)

applied wifi patch see if it'll work

[MENTION=7354786]XePeleato[/MENTION] is https://github.com/XePeleato/Hi1101_HisiWifi the wifi fix u tried?
[Honor 4C ROMs, Kernels, Recoveries, & Other Develo] XePeleato:
It's the patch I made, and yes, it worked for me.
[Honor 4C ROMs, Kernels, Recoveries, & Other Develo] :
what source should i use for kernel? i don't see which one i should use
[Honor 4C ROMs, Kernels, Recoveries, & Other Develo] XePeleato:
It doesn't matter as long as it works, I used the ESAL v2 source and it worked great.
[Honor 4C ROMs, Kernels, Recoveries, & Other Develo] :
Problem is that it nags about /home/laststandingdroid/android/system/kernel/arch/arm/configs/hw_cm_cherryk_defconfig file tried using XperiaFan pre-built toolchain same issue. With his files I get wifi.c file throwing errors and kernel gives me undeclared (first use in this function)

Progress is currently.

Sensors work by default.

Boot.img is broken (as hackslash said) if you use pre-built kernel it'll fail.

Audio doesn't work. Seems more broken than before (even media playback isn't working) hw composer seems to work (not sure though) but I noticed there's less flickering when the flicker is coming. Flashes less but it's still there.

WIFI Doesn't work "Yet" its has compile issues, i'm looking into it (maybe bad setup by me, or broken path)

Vendor files is missing by default. (will fix that later)
[Honor 4C ROMs, Kernels, Recoveries, & Other Develo] :
[MENTION=7354786]XePeleato[/MENTION] how do i fix No private recovery resources for TARGET_DEVICE cherryk

make: *** No rule to make target 'kernel/huawei/hi6210sft/arch/arm64/configs/hisi_hi6210sft_defconfig', needed by '/home/laststandingdroid/android/system/out/target/product/cherryk/obj/KERNEL_OBJ/.config'. Stop.

make: Leaving directory '/home/laststandingdroid/android/system'

Should I clean work folder since it's the issue or its the build output folder that causes it?

even if its set up it gives me that error
[Honor 4C ROMs, Kernels, Recoveries, & Other Develo] XePeleato:
Try to compile the kernel alone, without CM, and let me know if it works that way.
[Honor 4C ROMs, Kernels, Recoveries, & Other Develo] :
No gives me efi errors and stuff maybe I use wrong toolchain?

errors: include/linux/hisi/hi6xxx-iomap.h:22:23: fatal error: asm/sizes.h: No such file or directory

arch/x86/platform/efi/efi.c: In function ‘efi_init’:

arch/x86/platform/efi/efi.c:643:5: error: ‘struct efi’ has no member named ‘config_table’

efi.config_table = (unsigned long)efi.systab->tables;

^

arch/x86/platform/efi/efi.c:644:5: error: ‘struct efi’ has no member named ‘fw_vendor’

efi.fw_vendor = (unsigned long)efi.systab->fw_vendor;

^

arch/x86/platform/efi/efi.c:645:5: error: ‘struct efi’ has no member named ‘runtime’

efi.runtime = (unsigned long)efi.systab->runtime;
[Honor 4C ROMs, Kernels, Recoveries, & Other Develo] XePeleato:
First try to compile the kernel without the changes, and then apply them. I'd try the source at my Github account since I have tested it.
[Honor 4C ROMs, Kernels, Recoveries, & Other Develo] :
hmm LD init/mounts.o

ld: no input files

but if i run more threads at same time it'll give me errors: include/linux/hisi/hi6xxx-iomap.h:22:23: fatal error: asm/sizes.h: No such file or directory

arch/x86/platform/efi/efi.c: In function ‘efi_init’:

arch/x86/platform/efi/efi.c:643:5: error: ‘struct efi’ has no member named ‘config_table’

efi.config_table = (unsigned long)efi.systab->tables;

^

arch/x86/platform/efi/efi.c:644:5: error: ‘struct efi’ has no member named ‘fw_vendor’

efi.fw_vendor = (unsigned long)efi.systab->fw_vendor;

^

arch/x86/platform/efi/efi.c:645:5: error: ‘struct efi’ has no member named ‘runtime’

efi.runtime = (unsigned long)efi.systab->runtime;
[Honor 4C ROMs, Kernels, Recoveries, & Other Develo] XePeleato:
Are you using the included script? The error appears because the kernel should be compiled with an 'out' directory
[Honor 4C ROMs, Kernels, Recoveries, & Other Develo] :
Yup all files included

[MENTION=7354786]XePeleato[/MENTION] is this

cd /usr/src/linux-4.X

make O=/home/name/build/kernel menuconfig

make O=/home/name/build/kernel

sudo make O=/home/name/build/kernel modules_install install

if so it's still not working, i have built kernels before but the setup was different
[Honor 4C ROMs, Kernels, Recoveries, & Other Develo] hackslash:
Make a seperate directory 'out' in the top level of the source. After then execute the commands:

make ARCH=arm64 CROSS_COMPILE=/path/to/toolchain cyanogenmod_hi6210sft_defconfig O=out
make ARCH=arm64 CROSS_COMPILE=/path/to/toolchain -j# O=out

Your current method of building isn't correct because you're not providing the architecture information and you are trying to use menuconfig to manually enable/disable all variables as set in defconfig. You should simply pick the defconfig file (first command) and then build the kernel (second command) specifying the 'out' directory (where are compiled outputs will be stored) in both cases.

However, [MENTION=7354786]XePeleato[/MENTION] mentioned there is a build script in the kernel sources. You can simply find that script (it's a .sh file) and execute it in terminal (./build.sh or whatever).
[Honor 4C ROMs, Kernels, Recoveries, & Other Develo] :
Oh yeah I forgot that it's executable but i used defconfig. but you're correct the arch was most likely wrong, will resync repo and try again thnx

as said earlier i have compiled kernel but was for samsung and it was easier since i only was needed to add the toolchain path but it was just pure stock kernel though

EDIT Thanks it does now compile the kernel, added the wifi patch so now i'll compile it again,

Great work [MENTION=7354786]XePeleato[/MENTION] and thanks [MENTION=6435663]hackslash[/MENTION] for telling me (noob tutorial) sorry Xepeleato i probably read your comment too fast =)
[Honor 4C ROMs, Kernels, Recoveries, & Other Develo] :
The wifi patches makes it fail to build [MENTION=7354786]XePeleato[/MENTION] could you try download sources are re apply them or zip the ones you last used?
[Honor 4C ROMs, Kernels, Recoveries, & Other Develo] XePeleato:
What's the problem? That would help more than zipping what I made (that's uploaded to github anyway)
[Honor 4C ROMs, Kernels, Recoveries, & Other Develo] :
[MENTION=7354786]XePeleato[/MENTION] this:

/home/laststandingdroid/android/system/kernel/huawei/hi6210sft/drivers/huawei_platform/connectivity/hisi/hisiwifi/hwifi_cfg80211.c: In function 'hwifi_cfg80211_set_power_mgmt':

/home/laststandingdroid/android/system/kernel/huawei/hi6210sft/drivers/huawei_platform/connectivity/hisi/hisiwifi/hwifi_cfg80211.c:2946:9: error: stray '\' in program

HWIFI_DEBUG("current status is HWIFI_DISCONNECTED,reject set power save");

^

In file included from /home/laststandingdroid/android/system/kernel/huawei/hi6210sft/drivers/huawei_platform/connectivity/hisi/hisiwifi/hwifi_bus.h:18:0,

from /home/laststandingdroid/android/system/kernel/huawei/hi6210sft/drivers/huawei_platform/connectivity/hisi/hisiwifi/hi110x.h:19,

from /home/laststandingdroid/android/system/kernel/huawei/hi6210sft/drivers/huawei_platform/connectivity/hisi/hisiwifi/hwifi_cfg80211.c:25:

/home/laststandingdroid/android/system/kernel/huawei/hi6210sft/drivers/huawei_platform/connectivity/hisi/hisiwifi/hwifi_utils.h:231:61: error: statement with no effect [-Werror=unused-value]

DEFINE_PREFIX_POST_ARRAY(buf_pre, buf_post) \6

^

/home/laststandingdroid/android/system/kernel/huawei/hi6210sft/drivers/huawei_platform/connectivity/hisi/hisiwifi/hwifi_cfg80211.c:2946:9: note: in expansion of macro 'HWIFI_DEBUG'

HWIFI_DEBUG("current status is HWIFI_DISCONNECTED,reject set power save");

^

/home/laststandingdroid/android/system/kernel/huawei/hi6210sft/drivers/huawei_platform/connectivity/hisi/hisiwifi/hwifi_cfg80211.c:2967:40: error: dereferencing pointer to incomplete type

if(cfg->hi110x_dev->pm_info->in_suspend)

^

/home/laststandingdroid/android/system/kernel/huawei/hi6210sft/drivers/huawei_platform/connectivity/hisi/hisiwifi/hsdio.c: In function 'hi110x_sdio_probe':

/home/laststandingdroid/android/system/kernel/huawei/hi6210sft/drivers/huawei_platform/connectivity/hisi/hisiwifi/hsdio.c:2005:51: error: dereferencing pointer to incomplete type

hi110x_dev = hi110x_alloc(&func->dev, &hi_sdio->io_dev);

and much more
[Honor 4C ROMs, Kernels, Recoveries, & Other Develo] XePeleato:
The funny thing is that I didn't even modify those files, could you try to apply the patch manually? Just the one that modifies hsdio.c and includes one line.

https://github.com/XePeleato/Hi1101_HisiWifi/commit/38aadfa6ff647662e333ec676382fe4bb1894e82
[Honor 4C ROMs, Kernels, Recoveries, & Other Develo] :
which one would it be ?
[Honor 4C ROMs, Kernels, Recoveries, & Other Develo] XePeleato:
The one that's green, following the link I posted above
[Honor 4C ROMs, Kernels, Recoveries, & Other Develo] :
strange that all other files would cause build error
[Honor 4C ROMs, Kernels, Recoveries, & Other Develo] :
Arrgh sometimes i get ahead of myself, i make changes and compile but i didn't save the changes .___. darn this is getting over my head soon ^^ at least kernel has the proper fix atm :)

the only thing bothering me is that theres always references to other vendors in the source code of kernel, better to try strip things down but it'd be a pain job.
[Honor 4C ROMs, Kernels, Recoveries, & Other Develo] XePeleato:
So what's the problem now? Maybe I missed something, but I don't think I did.
[Honor 4C ROMs, Kernels, Recoveries, & Other Develo] :
I tried to build with the changes made in file but forget to save ?

Solved it for now

But WiFi c nags about my changes
[Honor 4C ROMs, Kernels, Recoveries, & Other Develo] :
[MENTION=7354786]XePeleato[/MENTION] unfortunately I don't seem to be able to implement your WiFi fix since I assume you need sources from older versions of android as well (since it links to files cm13) doesn't have. So in order to get it working ill have to download complete sources I assume. And that'll take more time. So I won't try implement it as of now.
[Honor 4C ROMs, Kernels, Recoveries, & Other Develo] XePeleato:
Oh well, I have the full CM13 source downloaded, so since tomorrow I'll have some free time, I can compile the needed files and send them to you in order to test them, and fix the repo if I find out that there's something missing.
[Honor 4C ROMs, Kernels, Recoveries, & Other Develo] :
Well I only downloaded cm13 and saw some files in hostapd or similar contained netd stuff or something else which I didn't have. Downloading them and place it in correct folder fixed it. But came more errors. So I guess you got some more files than I do :)

But replacing files won't work. Since it gives error on compile. But if I revert it works so it's my side the error comes on
[Honor 4C ROMs, Kernels, Recoveries, & Other Develo] :
Just a little hint here. It might be no work done today (ill come back later about it)

Update today I can still continue but most likely Sunday I won't. Tomorrow I can't tell edit again seems like Saturday won't either work. It's either Monday or Tuesday as I can start again. Apologize for this but real life is going to get tougher ?