yashsingh1/xdaforums huggingface dataset:
[Galaxy Note 4 General] gekkehenkie11:
I did a full sync today, using slayher's blobs. Camera works out of the box, however RIL indeed does NOT ! I checked, mhi.ko is loaded, mhi pipes are up, mdm_helper and mdm_helper_proxy are running, not sure what's going on, need to investigate .. Quite weird indeed. Maybe Slayher's RIL blobs are not good ? Or not from trlte ?

BTW, I just found something out yesterday, in developer options you can increase the size of the log buffers. I was already planning on modding the kernel for bigger buffers, but it's way easier now, just setting an option, quite nice.
[Galaxy Note 4 General] gekkehenkie11:
Ok I think this is the problem:

Just compiled with slayher's blobs:

12-22 12:33:24.790 E/RILD ( 377): Modem config #0: index[0], iftype[10], ifname[rmnet_usb0], mtype[4], proto[10], protover[10], dbg-ifname[]
12-22 12:33:24.790 E/RILD ( 377): Modem config #1: index[1], iftype[10], ifname[rmnet_usb0], mtype[32], proto[1], protover[1], dbg-ifname[IPCDEBUG_UNIX_SOCKET]
12-22 12:33:24.790 E/RILD ( 377): Modem config #2: index[2], iftype[4], ifname[imsd], mtype[8], proto[1], protover[8], dbg-ifname[]

Previous, working version:

12-22 13:25:32.928 E/RILD ( 324): Modem config #0: index[0], iftype[10], ifname[rmnet_mhi0], mtype[4], proto[10], protover[10], dbg-ifname[]
12-22 13:25:32.928 E/RILD ( 324): Modem config #1: index[1], iftype[10], ifname[rmnet_mhi0], mtype[32], proto[1], protover[1], dbg-ifname[IPCDEBUG_UNIX_SOCKET]
12-22 13:25:32.928 E/RILD ( 324): Modem config #2: index[2], iftype[4], ifname[imsd], mtype[8], proto[1], protover[8], dbg-ifname[]

So, it's trying to use the 910T interface now (rmnet_usb0), that's not going to work with the 910F :) Not sure though where it's getting that interface type, if that's inside a blob or from a config file, that we'd need to find out...
[Galaxy Note 4 General] Preaper:
Dude, I've been going crazy the past days. So it's something Slayher changed?

The make clean didn't work. Reverting to Slayhers blobs didn't work. Never noticed that difference you pulled up.

OK lets team up. Find out why this is happening. I need some good news. :)

---------- Post added at 08:11 PM ---------- Previous post was at 08:05 PM ----------

It could also be a change by Cyanogenmod or Google (CM is now using 5.0.2 sources)

---------- Post added at 08:17 PM ---------- Previous post was at 08:11 PM ----------

I don't see any "E/RILD" output messages.

Not even on the ROM that had working RIL. How do you come by it [MENTION=338022]gekkiehenkie11[/MENTION] ?
[Galaxy Note 4 General] gekkehenkie11:
I actually think it's a different problem than you have been reporting. I mean in my case it's not even starting the modem up (since it's trying the wrong interface). You already had it starting the modem up ... It's quite weird indeed, all this ...
[Galaxy Note 4 General] gekkehenkie11:
You mean you're not getting RIL output at all ? the part before the slash is the loglevel, see 'logclass' here: https://developer.android.com/tools/debugging/debugging-log.html

RILD simply means it's comping from RILD.

But if I understand you correctly, I think you never looked at the radio buffer ? You can view it with:

logcat -b radio

Or do you mean you simply are not getting those modem config messages, but you do get other RILD messages ?
[Galaxy Note 4 General] Preaper:
nope, never did "logcat -b radio". I was under the assumption that standard logcat shows all.

Trying it now :)
[Galaxy Note 4 General] gekkehenkie11:
Hehe, then a world of new output is going to open up for you ;)
[Galaxy Note 4 General] gekkehenkie11:
BTW, make sure you set buffer sizes to 4 MB in the developer options, like I suggested, otherwise you might miss the most important pieces (the startup stuff)
[Galaxy Note 4 General] Preaper:
Soo much more data to work with!

---------- Post added at 09:15 PM ---------- Previous post was at 09:10 PM ----------

I have the same output - so we're looking at the same issue.
[Galaxy Note 4 General] gekkehenkie11:
So it's showing "ifname[rmnet_usb0]" in those 3 modem config lines ?
[Galaxy Note 4 General] Preaper:
Yes exactly.

see: http://pastebin.com/KusdKkyr
[Galaxy Note 4 General] gekkehenkie11:
Hehe nice, so we're looking at the same problem: it's trying the USB interface to the modem (the 910T way), while it should use the mhi pipes (the 910F way)

I'm going to see if I can find out where it gets that interface type. Most probably it's hardcoded into the libsec-ril.so
[Galaxy Note 4 General] allenjthomsen:
Its coded into lib ril and libsec ril
[Galaxy Note 4 General] Preaper:
Working RIL:

D/RILJ ( 1159): RIL(context, preferredNetworkType=9 cdmaSubscription=1)
D/RILJ ( 1159): Starting RILReceiver
D/RILJ ( 1159): [3648]> GET_HARDWARE_CONFIG
D/RilRequest( 1159): [3648]< GET_HARDWARE_CONFIG error: com.android.internal.telephony.CommandException: RADIO_NOT_AVAILABLE ret=
I/PhoneFactory( 1159): Creating SubscriptionController
I/RILJ ( 1159): Connected to 'rild' socket
D/SubController( 1159): SubscriptionController init by Context
D/SubController( 1159): [SubscriptionController] init by Context

Non working RIL:

D/RILJ ( 1169): RIL(context, preferredNetworkType=9 cdmaSubscription=1)
D/RILJ ( 1169): Starting RILReceiver
D/RILJ ( 1169): [3648]> GET_HARDWARE_CONFIG
I/RILJ ( 1169): Connected to 'rild' socket
D/RilRequest( 1169): [3648]< GET_HARDWARE_CONFIG error: com.android.internal.telephony.CommandException: RADIO_NOT_AVAILABLE ret=

---------- Post added at 09:31 PM ---------- Previous post was at 09:30 PM ----------

Yeah figures:

root@c7492e12e7b6:/home/cmbuild/android/vendor# grep -r rmnet_mhi0 *

Binary file samsung/trlte/proprietary/bin/qmuxd matches

Binary file samsung/trlte/proprietary/lib/libsec-ril.so matches

Binary file samsung/trlte/proprietary/vendor/lib/libqmi_client_qmux.so matches

Binary file samsung/trltetmo/proprietary/bin/qmuxd matches

Binary file samsung/trltetmo/proprietary/lib/libsec-ril.so matches

Binary file samsung/trltetmo/proprietary/vendor/lib/libqmi_client_qmux.so matches

root@c7492e12e7b6:/home/cmbuild/android/vendor# grep -r rmnet_usb0 *

Binary file samsung/trlte/proprietary/bin/qmuxd matches

Binary file samsung/trlte/proprietary/lib/libsec-ril.so matches

Binary file samsung/trlte/proprietary/vendor/lib/libqmi_client_qmux.so matches

Binary file samsung/trltetmo/proprietary/bin/qmuxd matches

Binary file samsung/trltetmo/proprietary/lib/libsec-ril.so matches

Binary file samsung/trltetmo/proprietary/vendor/lib/libqmi_client_qmux.so matches
[Galaxy Note 4 General] gekkehenkie11:
*EDIT* never mind, was not looking good
[Galaxy Note 4 General] Preaper:
Ok, compared the wokring ril log with the non working

On the working RIL log you'll see: E/RILD ( 391): [NIF] Interface(rmnet_mhi0) is up.

This never happens in the non-working RIL log. Since this is the first difference, the root cause must be close to this.
[Galaxy Note 4 General] gekkehenkie11:
Correct. Yeah the root cause is that it's using the wrong interface. 910T uses USB interface, 910F uses MHI interface. Now on latest version with Slayher's blobs, it wants to use the USB interface (=910 method) and that's why it fails. Question is however, where does it load the config (where does it select usb instead of mhi). Maybe it's just hardcoded into the libsec-ril. Or maybe it's getting it elsewhere ...
[Galaxy Note 4 General] gekkehenkie11:
Actually, I think I've found it, going to check ...
[Galaxy Note 4 General] Preaper:
right now I'm looking at hardware/ril/rild/rild.c

There are multiple steps involved in determining the dev it's going to use.

It first tries to open a pipe named qemud:gsm

If that fails it reads a kernel property android.ril to find out what device to use
[Galaxy Note 4 General] gekkehenkie11:
I've found it. libsec-ril.so is loading the modem configuration from the library itself. It's loading a table and the second parameter in the table is 'rmnet_mhi0' in the working version and 'rmnet_usb0' in Slayher's version. Long story short, Slayher is using 910T blobs in the TRLTE directory, so his repo is wrong.

Going to see if I can contact him on IRC to discuss this.
[Galaxy Note 4 General] gekkehenkie11:
Ok, everything is solved, blobs indeed were wrong for our device, Preaper is fixing it up right now :)
[Galaxy Note 4 General] gekkehenkie11:
Ok, I'm on lollipop 5.0.2 now and RIL, call audio etc all works :) Key was indeed to use 910F blobs AND make sure you use the two audio config files + mixerpath files from that same firmware you pulled the blobs from (they're firmware dependent). I don't have a nice zip for you guys though, I think Preaper will make that tomorrow, if not, I will do it. But just wanted to give you guys heads-up that 5.0.2 is coming tomorrow for 910F ;)
[Galaxy Note 4 General] kman79:
Awesome work!

Just curious if you by chance also narrowed down what could be causing the increased battery drain?
[Galaxy Note 4 General] SalmanAndrew:
you are the man where is the donation button im donating as soon as i get 5.0.2!!!!!!!!!!
[Galaxy Note 4 General] fattire:
You can submit a pull request which checks the build flavor/carrier and will use the right audioconfig/mixerpaths.. or you can overwrite it by putting some new PRODUCT_COPY_FILES or whatever AFTER it pulls in trlte-common (and copies them the first time)... probably best to have each flavor do their own, but for now you can make a device tree repo where it will work.

(I can't guarantee 100% it will overwrite the copied files from trlte-common-- makefiles work in weird orders-- but you can give it a shot)
[Galaxy Note 4 General] Beukhof1:
Great job man! Cant wait. When are you guys opening a ROM thread? It would be easy to see if there are updates and maybe read a change log.
[Galaxy Note 4 General] albireox:
It would be nice for Santa to bring us a nice cm12 build for our device. Even nicer if it's a little early. Anyway great job guys.
[Galaxy Note 4 General] cedricf25:
I have compile from Preaper's repo. Compil good. Works very good.

Now : I have no vibrator

Thanks for hard job ! ;)
[Galaxy Note 4 General] Huntyz:
Good job on getting cm12 working, cant wait to try it out on my note 4 :)
[Galaxy Note 4 General] SunsetMania:
OMG GREAT JOB :D No More Touch Wizzzzz *-* (Gulum)

Lolipop Relase for 910F Awesome ! And befor Samsung xD !!!!!!!
[Galaxy Note 4 General] utopiate:
Hey gekkehenkie11, have you uploaded the latest builld?
[Galaxy Note 4 General] gekkehenkie11:
No, I'm waiting for preaper. If everything went right, he now has a build with all correct blobs etc. My current version is hacked together, so you'd need to flash first the CM12 install and then my blobs again. The result is the same of course, but one build/one zip would be nicer :) I'm not sure if [MENTION=346046]Preaper[/MENTION] is busy today, if not, I will upload my version. Either way, you're going to have Lollipop 5.0.2 today :)
[Galaxy Note 4 General] :
whats the changelog between the zips you upload a few days ago and the one that will be uploaded shortly? the move to 5.0.2 or were any specific 910F/T bugs fixed?
[Galaxy Note 4 General] gekkehenkie11:
Well as discussed here the last few days, RIL didn't work anymore and that's because the shared TRLTE directory in Slayher's repo didnt contain our device specific blobs. That's solved now (but it worked already on the older versions). Other than that, I don't think we're having device specific issue's anymore and it's just Slayher's branch that's updating now.

Also, I had problems with my camera again, it didnt work on 5.0.2 and I had the same problems before. So I looked into that today and solved that. So let me explain that. The problem/confusion before was that on the 910F rom only camera.apq8084.so existed and CM12 needs camera.vendor.apq8084.so. I found out that HAL loads the hardware module based on system properties, one being 'camera', the other being the board name (apq8084), so that's how it determins the module name it looks for, that's exactly the same on CM12 as TW 4.4.4. However, and that's my theory, the camera module doesn't work out of the box on CM12. That's why they wrote a 'wrapper' library: camera.apq8084.so that's basically a small wrapper that loads camera.vendor.apq8084 (which is the camera.apq8084.so from 4.4.4). So basically on CM12 you need both files (the 9 kb file is the wrapper and the 300kb is the module). So if anyone wonders, that's how it works :)
[Galaxy Note 4 General] more2come:
I've been following your progress since the beginning of the thread and I am using your build with Gapps right now. It is amazing, how smooth it is and how flawless it works, even in this early state! I'm looking forward to your 5.0.2 build, keep up the great work! :)
[Galaxy Note 4 General] gekkehenkie11:
*EDIT* preaper also just post his build, on the next page ! It's easier cause it's just one flash file. Besides I still didnt change some basic system properties like the device name, I think Preaper did, so best to use his version, see the next page !

Original post:

Ok guys, I think Preaper must be busy, so for those who can't wait, here's my Lollipop 5.0.2 version already:

https://mega.co.nz/#!eJISFZDa!9OUqZgfdYcurBGyQVHfNIl0GMmxighK-O3INDT-DAO0

And then install the blobs:

https://mega.co.nz/#!HYQhwDxC!BKFcKucAWmg46bdD06HA7rDaeuN7xS_gAoJG1mXEcz0

As usual, big thanks again to everybody who's working on this, especially [MENTION=3041959]fattire[/MENTION] and [MENTION=2457777]slayher[/MENTION] for their continued hard work !
[Galaxy Note 4 General] gekkehenkie11:
Hey Preaper :) Everything works ? In that case I will delete my post, it's easier to just have one flash file :)
[Galaxy Note 4 General] Danifamous:
just to confirm, you still need to flash blobs?
[Galaxy Note 4 General] gekkehenkie11:
Nope, with preaper's file only need that ! In fact, do NOT use blobs with his build !
[Galaxy Note 4 General] Preaper:
Havent had the time to test every aspect. But you can call and hear the other person. Vibrator doesn't seem to work yet.
[Galaxy Note 4 General] gekkehenkie11:
Ok, for now I'll leave my build up as well, but I highly encourage everybody to use preaper's build. Mine is more 'hacked' together ;) And I still didnt change that 910T into 910F ;)

BTW, does your S-pen work ? I had it up but it doesn't work anymore (it stopped working, already on my previous 5.0.1). Haven't looked into that yet ...

I already re-installed the 'markers' app. First time I installed it, the s-pen worked right away. But even after re-installing the app, no go ...
[Galaxy Note 4 General] Preaper:
The s-pen works. It shows a funny cursor :)

You need to have this in your roomservice.xml for it to work I believe:

<project name="CyanogenMod/android_hardware_samsung" path="hardware/samsung" remote="github" />

---------- Post added at 09:27 PM ---------- Previous post was at 09:24 PM ----------

Ah bummer. The camera app FC in my build.

[MENTION=3296134]gekkehenkie11[/MENTION], yours does work? can you pastebin me the output of "adb shell find /system" ?
[Galaxy Note 4 General] gekkehenkie11:
Yes it works, see: http://xdaforums.com/showpost.php?p=57702403&postcount=1128

;)

Long story short, the original propriatery.txt file was correct (renaming the camera.apq8084.so into camera.vendor.apq8084.so, so use that)
[Galaxy Note 4 General] Preaper:
something is wrong with a binary I use

E/HAL ( 328): dlopen failed: could not load library "libqc-opt.so" needed by "camera.vendor.apq8084.so"; caused by cannot locate symbol "utext_openUChars_51" referenced by "libqc-opt.so"...

I guess I need another libqc-opt.so (or camera.vendor.apq8084.so).

---------- Post added at 10:30 PM ---------- Previous post was at 09:53 PM ----------

.zip with working camera is coming :)
[Galaxy Note 4 General] jazzypit:
Thanks i m wait
[Galaxy Note 4 General] pbedard:
Guess its a universal build ??
[Galaxy Note 4 General] Preaper:
the newest build:

https://mega.co.nz/#!61d3QArJ!pdoA6VFaoO7pilOU2swwlBvROjn4cDyyirbT18Wnl6M

with working camera :) . No need to wipe your device if you come from my previous buid.

Still no working viberator. I'll look at that next.
[Galaxy Note 4 General] jef_00:
Thank you so much did you have to flash gapps if yes which gapps?
[Galaxy Note 4 General] Tom540:
Just wanted to say to all of the devs thank you so much for your hard work finally getting Lollipop to our N910F! It runs beautifully, only think I found is for me call volume is a little quiet?
[Galaxy Note 4 General] albireox:
Please check a few posts back.
[Galaxy Note 4 General] Preaper:
Just look here and pick a bundle that suits you: http://xdaforums.com/showthread.php?t=2397942
[Galaxy Note 4 General] jef_00:
Thankyou!!!! Flash now!
[Galaxy Note 4 General] mike13ftw:
I flashed the rom 1 hour ago and i have to say that its very fast smooth and responsive . But i have one problem . My samsung flip cover doesnt work now . is there anyway to make it work ? I found an app called hall monitor but it doesnt lock the device only shows the time when the cover is closed
[Galaxy Note 4 General] fattire:
Funny cursor??!!! That is art, man! ;)
[Galaxy Note 4 General] hermeticist:
If I'm not mistaken, the flip cover works with Samsung proprietary software available only on stock ROMs.
[Galaxy Note 4 General] Eddster3000:
WARNING!!! A BIG "THANK YOU" post (sorry if it is not etiquette to do this)

Like many others I have watched this thread develop from a query of "is it possible?" through to a working ROM and read every single post along the way.

Much of (sorry no... ALL of) the development language has gone well over my head but that has only helped me decide that one of my missions for 2015 is to learn more about Android other than just how to flash a ROM and I thank all of the Devs on this project for that.

Adversity didn't even feature on these Devs radar. It didn't work so they dug deeper, obstacles were faced and beaten, people came together (even a Dev that wanted to remain anonymous), people dedicated their free time in a massive way. There was a point where [MENTION=3296134]gekkehenkie11[/MENTION] went out and bought new hardware to do this project and said they had to travel but still took the development with them (you must have an understanding partner!!). Ideas were bounced and solutions were found and I'm sure I speak for everyone reading this thread when I say "Thank You". If y'all put put a Donation link up to further this project I will be more than happy to pass a donation your way! If you already have then let me know and I'm all over it!

I Know that [MENTION=3041959]fattire[/MENTION] and [MENTION=2457777]slayher[/MENTION]have also done a HUGE amount of work and we have all benefited from their skills so I thank them also!

I hope that [MENTION=3296134]gekkehenkie11[/MENTION] and [MENTION=346046]Preaper[/MENTION] and ALL of the other Devs on this 910F project continue to pool their skills because this ROM is a sure fire leader in the Note 4 life cycle.

One more thing... Dev's .... It's the Festive Season so whichever part of the world you're in TAKE A BREAK and enjoy it with your Family and Friends. You have already given us the best present so stop racking your brains and CHILL Da F OUT!!!
[Galaxy Note 4 General] SalmanAndrew:
you need touchwiz for the s view cover. your best shot at a well modified touchwiz is going to xnote, and flashing his rom if the sview cover is important.
[Galaxy Note 4 General] Cpt.Curry:
My in call volume is incredibly low can someone upload a patch to fix this
[Galaxy Note 4 General] SalmanAndrew:
until that gets patched the volume essentially is the other way around lower the volume bar to raise the volume! it worked for me and it was also spoken about couple of pages back :)
[Galaxy Note 4 General] hermeticist:
That same thing happened on the Sprint Galaxy S2 Epic 4G Touch early in development.
[Galaxy Note 4 General] gekkehenkie11:
Thanks for your kind works ! I don't need donations, just a press on the 'like' button is enough ;)

*EDIT* I got NFC working partly too now, I can now switch the service on (module is loaded) but it seems unstable ...
[Galaxy Note 4 General] :
Just want say a big thank you :)

All seems to work flawlessly even Vibration , Cam etc.

Antutu gives me a crazy score over 52.000 :cool:
[Galaxy Note 4 General] Er. Aditya:
last i tried i had many problems restoring apps via titanium backup just user apps....is this is a known bug ?? thanks alot :highfive:
[Galaxy Note 4 General] Preaper:
Haha - I hadn't pulled your commit yet so the next release of mine will introduce an even funnier cursor :laugh: :p
[Galaxy Note 4 General] albireox:
No problems here. Just use supersu from chainfire.
[Galaxy Note 4 General] Preaper:
So there still are some changes in Gekkehenkie11 build and mine. Primarily the vibrator stuff.

I believe these changes are cause by Gekkehenkie shuffling blobs around. His are based around Slayher his t-mobile blobs, and then he has been manually replacing them on his phone with ano dev his blobs - except for the onces that caused issues.

My build is based on the N910F blobs and the Cyanogenmod build package. There has been no 'hacking' the rom. By which I mean the output of the build is what I flash. I don't change any files in the outputted .zip.
[Galaxy Note 4 General] ll1l1l1l1l1ll11ll1:
Remove kernel config options CONFIG_TACTILE_ASSIST and CONFIG_VIBETONZ.

See here: ## github.com/slayher/android_kernel_samsung_trlte/commit/af2d147f23abee96439e2d9398e58cd74213b55b ##
[Galaxy Note 4 General] fattire:
That is correct!
[Galaxy Note 4 General] Preaper:
YES! Finally a guide how to extract those system.dat files!

http://www.xda-developers.com/android/easily-extract-lollipop-dat-files/

---------- Post added at 09:14 AM ---------- Previous post was at 09:14 AM ----------

Thansk! I'll apply that now and rebuild.
[Galaxy Note 4 General] jazzypit:
I have a problem when i m Try to call a friend. You didnt hear sound before you are in contact with this person.its strange.
[Galaxy Note 4 General] Preaper:
Sounds pretty normal to me?
[Galaxy Note 4 General] jazzypit:
Sound is good when i m in communication but between the time that you wait for heard other person you did't heard. Anything. Sometime yes sometime no
[Galaxy Note 4 General] albireox:
Is there a logical explanation for the occasional stuttering that appears somehow randomly? It can be solved by turning the screen off and then on?

Otherwise pretty great build congratulations guys.
[Galaxy Note 4 General] fattire:
I got the smart cover thing to work (sleep when cover is closed, back on when it isn't, unless a call is in progress). Gekke or someone, we can test manana... night.
[Galaxy Note 4 General] kman79:
On the most current build posted by Preaper or the first build? That was present on the first build, but have yet to see it on the most current build.
[Galaxy Note 4 General] albireox:
On all builds released until now (3 I think) I had this behavior.
[Galaxy Note 4 General] Preaper:
I'll be eyeballing your repo's and pick it up asap :)

---------- Post added at 12:34 PM ---------- Previous post was at 12:31 PM ----------

We need the build number, otherwise it's unclear what version you are using.

But keep these messages coming. In the short term I'll be focussing on the issues I can reproduce locally. There are enough of those :)
[Galaxy Note 4 General] albireox:
Your latest build which I'm using right now has the issue. But still can't find a correct scenario to reproduce it. It seems to be random.
[Galaxy Note 4 General] :
could you make a bug list and maybe incorporate it in the first post like fattire did in the tmo version? or actually is everything the same now between the versions and we can just check the tmo thread for bug updates. secondly, now that this is in a semi-beta stage and nightlys/more builds will start to be uploaded on a frequent base, shouldn't a new thread be opened?

I know its been said a few times but instead of waiting for the mods you/gekk can just open a new one for actual general talks of CM and not dev process.

as said before thanks gekk, preaper, the anonymous dev, fattire and slayher for their hard work:)