yashsingh1/xdaforums huggingface dataset:
[Galaxy Note 4 Original Android Development] gekkehenkie11:
Source code for the modem is in the kernel, so if you ask for that, Samsung's reply with a link to the kernel is actually the correct answer.

This is not what Rayman needs, he needs to have RIL source code, but Samsung will never release that, it's Samsung proprietary code. The only way to get it going is to study the log output and to reverse engineer the RIL.

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

@RaymanFX : a few tips, you probably know them already but I'm going to give them anyway:

1) First determine what RIL related services are really necessary. There's stuff in the radio log buffer from services that you might not even need, so first take the samsung stock ROM, edit the the init files (I really like "Android image kitchen") , delete services, see if RIL still works, so determine which services you REALLY need in order to have RIL. So strip it down as much as possible.

2) Then see if you can somehow enable extra log output, I talked about it before, usually there's a combo of settings that enables the RIL to generate more log output. You'll need to reverse engineer the RIL to find out about that. If you want, post a link to the RIL lib and I'll take a look.

3) Then enable that extra log output with the stripped down stock version with only the really needed RIL related services and go from there.
[Galaxy Note 4 Original Android Development] gekkehenkie11:
[MENTION=3463426]RaymanFX[/MENTION], you havent replied yet but I think I can help or at least try :) I can reverse engineer the RIL to find out about extra logging. I can also reverse engineer any function inside the RIL. I mean, you asked for RIL source code, so if you have a specific question about some RIL function, I might be able to give you the answer (like what does funcion X exactly do, why does it say this in the log etc).

Just let me know mate ! Would try to help out gladly.
[Galaxy Note 4 Original Android Development] neoMJ:
I got the following response to a request for Ericsson Thor M7450 RIL source code.
[Galaxy Note 4 Original Android Development] ddaharu:
Will there be another way then?
[Galaxy Note 4 Original Android Development] 557953:
/I think (only from what i've read, I have no skills) it should still be possible but just harder work.

I'm sure [MENTION=3296134]gekkehenkie11[/MENTION] and [MENTION=3463426]RaymanFX[/MENTION] will make progress and the S6 being a Exynos exclusive should help as more Dev's will be working on that platform. No idea if RIL from each phone will be usefull to each other or if they use the same or similar modems but I'm sure have some S6 guys on board can't hurt :)

I'm very much looking forward to donating when it gets released, I'm convinced the community will get there in the end :)
[Galaxy Note 4 Original Android Development] ddaharu:
yes! and having people like you on board makes the time worth while even if development is kinda slow. as you said, I hope it works out in the end. good lock to everyone who's working hard on this.
[Galaxy Note 4 Original Android Development] invisiblesushi:
I think the s6 has samsungs own modem "Shannon something"??? Quote me if im wrong!

Can everyone in this thread try search for other devices with an simmilar modem,

"Ericsson Thor M7450"

It should be possible if we can find other devs witch are working on the same problem, or know how to solve it.
[Galaxy Note 4 Original Android Development] renanterzi:
Maybe this could help...http://www.anandtech.com/show/6800/...category-4-lte-modem-with-carrier-aggregation
[Galaxy Note 4 Original Android Development] RaymanFX:
Hey, thanks for your input :)

I already stripped my vendor tree of all the unnecessary RIL blobs, and it's come down to cpboot-daemon being needed for booting the modem (same as with your Qualcomm variant) and the standard RIL libraries/interfaces (rild, libril, libsecril-client, etc).

I then went ahead and ran a full strace call of the cpboot-daemon to see where it fails, but that didn't yield anything specific..

It looks like the modem actually boots up successfully, but then fails to transfer packages to the Android RIL implementation and thus resets itself continously.

Feel free to take a look at the blobs in my vendor tree (github.com/raymanfx).

Maybe you'll come across something I didn't see in my strace/objdump/strings hackfest.
[Galaxy Note 4 Original Android Development] gekkehenkie11:
I downloaded your RIL and looked at the logging management: the code to determine the logging level is exactly the same as for our device, the 910F. So this will work: http://xdaforums.com/showpost.php?p=59235252&postcount=109

Could you do that and post a radio buffer log for both stock as CM12 with those settings ? I'll then take a look at it and we'll take it from there. We should be able to solve this together man ! :)
[Galaxy Note 4 Original Android Development] renanterzi:
It is so beaultiful to read this
[Galaxy Note 4 Original Android Development] Turkawa:
Agreed!!
[Galaxy Note 4 Original Android Development] RaymanFX:
The issue right now is, that contrary to Qualcomm devices, the N910C doesn't care if you pass it a custom kernel command line via BoardConfig, it just overwrites it with the one from the bootloader each and every time, despite me telling it not to (via kernel defconfig).

I'll try to set these properties via ramdisk (after the kernel command line has been read) and see where that gets me. I'll keep you posted :)
[Galaxy Note 4 Original Android Development] andrew.mackew:
New source code available (N910CXXU1BOC3) :cool:

http://opensource.samsung.com/reception/receptionSub.do?method=sub&sub=F&searchValue=n910c
[Galaxy Note 4 Original Android Development] gekkehenkie11:
With "Android Image kitchen", you can decompile a boot image, then in the 'split_img' directory it created, you can edit the cmdline and then you can recompress it all back into a valid boot disk with just 1 click, really neat tool: http://xdaforums.com/showthread.php?t=2073775 (I use the windows versions but the other versions are probably as nice)
[Galaxy Note 4 Original Android Development] mythos234:
I'm not really on the same level as you are, but there are some neat scripts too to do just that.

https://github.com/xiaolu/mkbootimg_tools/archive/master.zip

The "mkboot" command will extract the ramdisk, the dt.img, the zImage, it'll show the offsets and also give you the commands used to compress the boot.img in the first place.

I just prefer scripts to kitchens when it comes to developing, give this one a try, maybe you will love it as much as I do.

And "mkbootimg" can then be used to recompress everything. My swiss army knife, saves lifes when blind developing.. :p
[Galaxy Note 4 Original Android Development] ddaharu:
keep up the great work guys. I so can't wait!
[Galaxy Note 4 Original Android Development] Ranomez:
I don't know the situation right now but for me it was working great with the LG G Watch about 3 weeks ago, unfortunately I can't test it because my watch broke and I managed to return the device under warranty (replacement not possible) and get a Gear S instead.
[Galaxy Note 4 Original Android Development] ogo2012:
Thanks to the team Team EOS and RaymanFX

You can check the next update.
[Galaxy Note 4 Original Android Development] agentdeep:
Camera totally broken :(
[Galaxy Note 4 Original Android Development] calj17:
[MENTION=3463426]RaymanFX[/MENTION] Just a curious question. The new Galaxy TAB S2 LTE Tablet uses the same Exynos 5433 processor as note 4. Would it be easy for you to port CM12.1 and 13 for it as well?

Enviado de meu SM-N910C usando Tapatalk
[Galaxy Note 4 Original Android Development] doctor78SI:
Which build?
[Galaxy Note 4 Original Android Development] andrew.mackew:
Sept 13 build?
[Galaxy Note 4 Original Android Development] agentdeep:
yep.. I went back to 0820 build, its the most stable for me..
[Galaxy Note 4 Original Android Development] RaymanFX:
I removed some firmware blobs accidentally, it's fixed now.

There'll be a new build tomorrow, with fixed camera (and pretty much everything else fixed as well, except for BT calling) :)

Hey, yes, it should be pretty easy given my knowledge about Exynos SoCs that I was able to gather while working on the Note 4 (and the Note 10.1). Even if it required new edits to the Exynos BSP or custom drivers, I'm sure I'd be able to figure it out.

As a general note to everyone:

With pretty much everything working now (except for BT calling, which I'm still after), I think it's time for an official release thread for our 5.1.1 builds. Apart from that, I'm basically only waiting for Android M sources to surface so I can start working on that. Given the solid codebase I created for Lollipop, it shouldn't take me much longer than a week to figure out the basics and soon thereafter we should have the device working as well as it is right now.
[Galaxy Note 4 Original Android Development] 557953:
Hi RaymanFX

Just wanted to say thank you for all you work and support on this device.

Has helped keep this device "entertaining" for me and many others.

Great to hear you will be working on M also if you say you can manage it in a week lol that's better than waiting till 2016 for Samsung to do it, if ever!

I hope with a solid build maybe we will get some interest from other AOSP rom maintainers :)

Anyway great job once again.
[Galaxy Note 4 Original Android Development] calj17:
Thank you for your support and congratulations for your work. Raymanfx is today the reference in exynos processor cm building

Enviado de meu SM-N910C usando Tapatalk
[Galaxy Note 4 Original Android Development] gusmao100:
which gapps can install. :confused:

some link :angel:
[Galaxy Note 4 Original Android Development] ddaharu:
It works perfectly. I got one and I use it all the time. Do go ahead and use my friend :)
[Galaxy Note 4 Original Android Development] CLShortFuse:
Overview button still doesn't work with the stylus...
[Galaxy Note 4 Original Android Development] muratbaizhanov:
i wonder if android m from [MENTION=3463426]RaymanFX[/MENTION] will have support for fingerprints.

is it possible, do u think?
[Galaxy Note 4 Original Android Development] joelteixeira:
It should, we have the hardware and Android M the API. But until the code is released I think we can't be sure. Maybe some creepy locked code from Samsung prevent its usage outside TW.
[Galaxy Note 4 Original Android Development] hiimimtayaz:
Note 4 running Android M will be an ultimate badass. I've been running Dev preview on my nexus 5 and it has given a new life in battery life with doze & app standby feature, wonder how great NOTE 4 will perform.
[Galaxy Note 4 Original Android Development] :
Nope it wont....
[Galaxy Note 4 Original Android Development] S.Y.:
Although this is certainly not the place for such discussion, I recommend using the PA Gapps. They have been working perfectly for me, here is the link: http://www.androidrootz.com/2015/03/download-android-51x-lollipop-pa-gapps.html

Take my advice and flash the Pico module. That way you can install the Google Apps you need from the Play Store, and the unnecessary ones won't take up space on your system partition.
[Galaxy Note 4 Original Android Development] uschi003:
I had some problems with TK gapps package but open Gapps worked fine for me.

Also remember to install ARM if you didn't knew that already.
[Galaxy Note 4 Original Android Development] andrew.mackew:
Thanks for your excellent work! :good:

I wonder if that issue that got a delay to screen on when receiving a calling is already fixed..

Additionally, the new build with restored camera blobs will come up today?
[Galaxy Note 4 Original Android Development] slowik515:
Do anyone else has problems with the YouTube app? I'm unable to play any video with information about some problem with playing.

Wysłane z mojego SM-N910C przy użyciu Tapatalka
[Galaxy Note 4 Original Android Development] mailme2nani:
As per the Dev, latest build is missing some Firmware Blobs which might causing this issue. Wait for his latest Build (May be today) in which he said he is fixing everything.

Thanks.
[Galaxy Note 4 Original Android Development] eydryan:
3g issues

I'm having serious issues with my 3g connection. I can only get whatsapp and stuff like that to work, anything else just results in a timeout or proxy connection failed. I have wiped everything and flashed a stock firmware with Odin and that seems to work just fine but none of these builds give me internet access anymore. I have flashed multiple teameos builds with full partition wipes, including august 20th, but nothing gives me 3g internet. The APN is fine and I get a connection to 3g, I Just can't use it for anything. :(

I must mention that my network (digi Mobil) is migrating to 4g but it can't be that as official ROMs work just fine.

Any thoughts?
[Galaxy Note 4 Original Android Development] RaymanFX:
You're right, I hardly ever use the stylus, so I didn't notice.

I'll take a look.

I have no idea to be honest, but I'm just as curious as you are.

It all depends on the implementation that AOSP uses to communicate with the fingerprint sensor.

That'll determine how much work is needed to make it play nicely with Samsung's fingerprint HAL (driver).

It seems like we have some problems with our build server, but I'll look into getting the new build out as fast as possible.

However, I discovered a weird regression while testing the camera on a local build: it seems that since the new 5.1.1 update, the proprietary JPEG Encoder from Samsung is broken for us. The camera sensor captures the image, passes it on to the m2m1 kernel streaming node, which redirects it to the JPEG Encoder, which fails for unknown reasons. My initial guess is that this was caused by the recent kernel update.

What does it mean?

Well, it might be possible that the new build won't have photo shooting fixed, and that it'll be broken for the next few builds as well.

Video recording is going to work normally though, because we don't need to encode JPEGs for that. I'm investigating, but unfortunately can't tell how fast I can fix this.
[Galaxy Note 4 Original Android Development] agentdeep:
I just tested my own build and as Rayman said, back camera capture is broken.

Video recording and front camera is working though.
[Galaxy Note 4 Original Android Development] uschi003:
I really like this new ROM I've tried now for some days. But still I get the feeling that the Performance of my Phone ist slightly worse than with my old Sweet Rom v14.

Animations aren't as fluid as I'm used to on my device now. Any idea why this happens? Would love to continue using it but seeing this phone lagging is driving me insane >.<

I'm on the 20150906 build right now as the newer one has some issues.

This happens for example when I'm pulling the notification center down or switch pages in the list of all my installed apps.
[Galaxy Note 4 Original Android Development] white7561:
[MENTION=3463426]RaymanFX[/MENTION] just asking. But u make this rom from scratch? Then . can we do it from nexus M? I see G3 starting like scratch port of nexus M rom. Will be nice if we can get M. With internal Fingerprint driver? And more battery?just hoping M on our note 4 :) will be OP . lolz
[Galaxy Note 4 Original Android Development] PureLife90:
you wasn't kidding when you said the camera sucked on this rom... i can't even get it to connect! i miss aosp soso much. i use to use it all the time on my m8 and g3. it was always my go-to rom! good job other than the camera issue. i can handle poor quality because it doesnt matter much to me. i just wanna be able to take a picture period.
[Galaxy Note 4 Original Android Development] leondestiny:
on latest build, i get system ui black screen reset wallpaper issue sometimes,

and i have issues with youtube playback on both chrome and the official youtube app, and my other issue i have is with the camera.

it just wont start, sending pictures in whatapp wont work either . hopefully this will be fixed in the next build.

(what is the best gapps to use with this) ?
[Galaxy Note 4 Original Android Development] :
I made one myself that flashes the latest gapps including android m wallpapers and system sounds and bootanim....... Gonna upload and give you a link
[Galaxy Note 4 Original Android Development] slowik515:
About YouTube. For a long time playing anything in Opera Browser (this with newer rendering engine) causes that sound is d-synched with a video. This occurs on every build.

Wysłane z mojego SM-N910C przy użyciu Tapatalka
[Galaxy Note 4 Original Android Development] agentdeep:
I just tried building from the latest sources and now it's totally broken. It won't even boot :(
[Galaxy Note 4 Original Android Development] pappschlumpf:
Change MALLOC_IMPL := dlmalloc in BoardConfig.mk to

MALLOC_IMPL := jemalloc

and start a clean build. If you look into logcat you'll see that you've many many libc allocation errors.
[Galaxy Note 4 Original Android Development] andrew.mackew:
Could you please give me some directions on how to build? I used to build CM.. but there is no instructions for teameos..
[Galaxy Note 4 Original Android Development] RaymanFX:
Fixed that one, the vendor was broken (didn't actually copy the files).

That's not the real issue, dlmalloc allocates just fine here.

Regarding the other bugs, BT calling (both carkit and BT headsets) should be fixed now.

I also know what's killing our camera right now, it's indeed the JPEG Encoder like I thought at first.

Samsung killed the m2m1 shot streaming node in their 5.1.1 kernel update (probably becaused they removed the dependency on it in their camera HAL), but we can't use the updated HAL from Lollipop because of incompatible ION APIs (thus being married to the Kitkat camera drivers).

I have a dream, that one day, we'll get this camera/ION mess proper <Insert MLK holding a Note 4 here>.

EDIT: The camera will be working again in the next build :)

If our build server isn't back online tomorrow, I'll compile a build locally and upload it for you guys.
[Galaxy Note 4 Original Android Development] :
Hey fellas. After trying TouchWiz 11.1 on my note 4 almost 3 days, I realized one thing. That I will never be going back to touchwiz ever again. Root is completely unstable and even if it is stable for some people some of the things will be wrecked and will require xposed and xposed makes ot even worse.... I think are really really great and talented developer for giving us a second and right now only choice to have a rom that meets our needs and gives us great battery life
[Galaxy Note 4 Original Android Development] leondestiny:
i am also on tw 5.1.1 and its terrible.

i get only 37 to 43 k benchmark with antutu LOL

with Cm 12.1 i always get about 52-54k benchmark..

the tw 5.1.1 only in the begining feels normal but atm. it is very choppy .. i am only staying on it until the next cm build comes out and cant wait for that.. i might flash an older build "06.09" build cause that one was okay for using yt and whataspp without fcs.

CM >>>>>>>>>>>> TW anyday
[Galaxy Note 4 Original Android Development] uschi003:
I'm starting to think that I did something wrong :/ Performance on TW was way better for me.

Do i need to do something special while installing this ROM? I did a factory reset in TWRP, flashed the ROM, flashed Gapps.

This ROM has micro stuttering as a system wide feature for me :/ Bad battery-performance included btw.

I'd really appreciate some help
[Galaxy Note 4 Original Android Development] RaymanFX:
Here's the promised build: https://copy.com/l9EKG6MTFjGY4QBN

Changes:

Open source IR blaster HAL

Fixed camera

Fixed bluetooth calls (someone needs to confirm this)

Allow pictures taken by the cam to be saved to the external SD card

As for the bluetooth calling fix, I need you guys to test this with both, a headset and carkit.

Happy flashing and provide some feedback :)
[Galaxy Note 4 Original Android Development] ravijani:
Ty so much?
[Galaxy Note 4 Original Android Development] CLShortFuse:
YouTube works again, as well as web MP4.

I couldn't crash CM Camera or Google Camera, so that's good.

I'll check Bluetooth calling later today.

Overview button with stylus still doesn't work.
[Galaxy Note 4 Original Android Development] doctor78SI:
Where is the new built ROM available for download? In teameos site is still 13th.
[Galaxy Note 4 Original Android Development] agentdeep:
go back one page
[Galaxy Note 4 Original Android Development] jiansheng:
Please update main thread please ?
[Galaxy Note 4 Original Android Development] andrew.mackew:
Thank you very much! :)

Just one issue I found so far.. seems that NFC is not working.
[Galaxy Note 4 Original Android Development] mailme2nani:
:(, BT Calling not working with my Sony BT Headset

Update: better than earlier. Before I used to hear nothing during BT calling. Now I am hearing disturbing sound when other side people talk and they are hearing disturbing sound when I am talking.
[Galaxy Note 4 Original Android Development] RaymanFX:
Ugh, just noticed that too; more breakage brought by the COH4 config update.

I pushed the fix to my device repo, so the next build will have it working again.

Okay, well that's better than before, but obviously still needs some work.

I'll look into it when I'm in the mood, because honestly, I'm more thrilled to work on Android M (once Google drops the sauce).

Rumors are that we'll see M at the end of this month, so I hope I can at least start with the bringup before my semester starts.
[Galaxy Note 4 Original Android Development] ddaharu:
I might be wrong here but I think you're the most consistent, most diligent developer ever. Thanks for all your great work man. Your work is greatly appreciated.
[Galaxy Note 4 Original Android Development] doctor78SI:
What about charging? Is it fast charging or normal? Will it overheat the phone? In the past I read that charging was not as it should be.

So far the rom works great. The only thing so far that bothered me were animations but I turned them all of and now is fine. There seemed to be some kind of lag with them.
[Galaxy Note 4 Original Android Development] ddaharu:
Yes it does get hot. I think it's mostly trying to quick charge, which I heard that you shouldn't use all the time by the way, but honestly I'm not getting all that if lag though.
[Galaxy Note 4 Original Android Development] da4kgr3y:
Thank you, I will look through this bird, maybe UK will support AOSP.
[Galaxy Note 4 Original Android Development] ogo2012:
Thank you very much for your work. We are waiting, hope and trust.

Great news. Good luck to you!
[Galaxy Note 4 Original Android Development] agentdeep:
[MENTION=3463426]RaymanFX[/MENTION]

Thanks so much for the sources, I managed to build a CM for my personal use ;)
[Galaxy Note 4 Original Android Development] :
Guys I'm experiencing a weird bug. When I open the dialerand want to dail sth the first number that I tap it automatically starts dialing
[Galaxy Note 4 Original Android Development] Konskl:
[MENTION=3463426]RaymanFX[/MENTION] hello sir. I found a bug. I'm not sure whether this has been reported before but i have found that with the latest 18/09 build the audiofx equalizer FC after some time of playback music and also the small room, large room etc.. mods do not function. Just wanted to report I'm sure you'll figure it out yourself. Thank you again for your support ;)
[Galaxy Note 4 Original Android Development] joelteixeira:
[MENTION=3463426]RaymanFX[/MENTION], I don't know if is it working for others but, as a daily IR blaster user, I would like to let you know that IR isn't working on latest build (Sep 18). As always thank you for this brilliant work. Even with some little glitches this ROM is so much better than stock.

Edit: FWIW, the remote I use is this one:

https://play.google.com/store/apps/details?id=com.remotefairy
[Galaxy Note 4 Original Android Development] doctor78SI:
[MENTION=3463426]RaymanFX[/MENTION] the battery life on this rom is awsome. Much much better than on any other stock customized rom. The only thing that worries me is charging. Could you elaborate on that subject pls?
[Galaxy Note 4 Original Android Development] garfi:
Guys

"When someone calls u screen wakes after a few seconds"

is that bug fixed ?