yashsingh1/xdaforums huggingface dataset:
[Galaxy Note 4 General] gekkehenkie11:
Yeah I got that too, he suggested a new mixer_path, that didnt work. I'm also pretty sure it's not just the mixer_path, cause it's not doing stuff that stock is ...
[Galaxy Note 4 General] gekkehenkie11:
[MENTION=3198335]allenjthomsen[/MENTION] could you dial on CM12, 910T, a number, hear something ( doesnt really matter as long as you are ' connected' and hear audio, dial some computer for example), then hangup and get me the radio logcat again ?

adb logcat -b radio -v time -d >radiocall.txt

from dos command prompt

Would be REALLY helpful again !! Thank man :)
[Galaxy Note 4 General] vogli:
I have no idea what the problem is on my phone. I simply cannot get it to the home screen. [MENTION=346046]Preaper[/MENTION] did you get the build completed yet?
[Galaxy Note 4 General] gekkehenkie11:
That's odd. Just today I did a restore to the default branch, a full sync and rebuild it. Only had to copy the libtime_genoff.so into /system/lib after build, cause that somehow didnt work out. After that it booted just fine.
[Galaxy Note 4 General] Beukhof1:
any news on the fix from the ano dev?
[Galaxy Note 4 General] gekkehenkie11:
see few posts above
[Galaxy Note 4 General] Beukhof1:
FACEPALM

Sorry
[Galaxy Note 4 General] gekkehenkie11:
Does any of you devs know how to output a JAVA stackdump to logcat ? Like, I have a problem in JAVA andI want to save to logcat the calling thread, any idea how to do that ?

*EDIT* think I found the solution here: http://stackoverflow.com/questions/7841232/java-android-how-to-print-out-a-full-stack-trace

import android.util.Log;
Log.d("myapp", Log.getStackTraceString(new Exception()));

Works perfectly indeed :)
[Galaxy Note 4 General] gekkehenkie11:
I had 2 problems with RIL, one was that I had no audio and the other was that the connection was very unstable and I lost signal all the time. It seems I've solved that last problem now :) I was comparing radio logs and I saw this difference:

Stock:

01-07 20:11:36.547 I/PhoneFactory( 1157): Network Mode set to 0

CM12:

01-07 17:25:05.624 I/PhoneFactory( 1257): Network Mode set to 9

I then checked how the code comes up with that mode and it simply reads it from settings. So I changed 'preferred network type' from LTE into 3G and rebooted, Network mode was now set to 0 in the logs and no more connection drops since !! :) Now the last part of the puzzle, the call audio :)
[Galaxy Note 4 General] Beukhof1:
Cool! 1 step at the time!

Could you maybe make a new flashable zip with the RIL fix and the fixes for the playstore (or maybe all the fixes from the t-mob version)?
[Galaxy Note 4 General] gekkehenkie11:
As long as we can't even call, I don't think it makes much sense to put a 'user' version out there. Let us focus on fixing audio first.
[Galaxy Note 4 General] gekkehenkie11:
Hmmm I think this the problem :)

01-07 20:57:05.706 I/Telecom ( 1164): CallAudioManager: changing audio state from [AudioState isMuted: false, route; EARPIECE, supportedRouteMask: EARPIECE, SPEAKER] to [AudioState isMuted: false, route; EARPIECE, supportedRouteMask: EARPIECE, SPEAKER]

01-07 20:57:05.826 I/Telecom ( 1164): InCallController: Calling onAudioStateChanged, audioState: null -> [AudioState isMuted: false, route; EARPIECE, supportedRouteMask: EARPIECE, SPEAKER]

seems like it's using the earpiece ? :) I dont have one here to test, a friend of mine will pass by later tonight, I asked him to see if he had one, hopefully it's just as simple as that (I think it is) ;)
[Galaxy Note 4 General] gekkehenkie11:
Dont have time to create a whole zip but here are 2 files to get calls going: flash the CM12 file (the one from the openings post), then flash the attached zip to install MHI, boot it up and then use a tool like 'flashify' (app store) to flash this bootimage: http://s000.tinyupload.com/index.php?file_id=39785283548705657565

And keep in mind what I just said about that LTE/3g setting: You will probably need to change 'preferred network type' from LTE into 3G to get stable RIL.

If this doesn't work somehow, try to replace mhi.ko inside the zip with the one I uploaded before, but I think it should work right away. If not, too bad, dont have time to fix something else up and/or find out what's going wrong.

And oh yeah, make sure you FIRST install that mhi and then install the bootimage with flashify

And if all works, let me know if you have call audio with earphones :)
[Galaxy Note 4 General] stefantumi:
I flashed as boot via flashify, just went to download mode and did nothing :(
[Galaxy Note 4 General] allenjthomsen:
Yes no problem
[Galaxy Note 4 General] gekkehenkie11:
That's odd, are you sure you installed it with CM12 ?
[Galaxy Note 4 General] pbedard:
I too did it reboted to download. Im sure

Sent from my using XDA Premium HD app
[Galaxy Note 4 General] stefantumi:
He he yes :) but let's not forget that the image is named bootfix.img if that matters ;) .. I changed the name to boot.img and put it in the cm.zip then I flashed it and it booted
[Galaxy Note 4 General] spleef:
Did it cite any of the ailments?
[Galaxy Note 4 General] stefantumi:
Just got the earpiece out of my frozen car [emoji14] it didn't work, no sound :(
[Galaxy Note 4 General] lycan_codex:
I tried it too. Instead of flashing the boot.img after install, i hae replaced the boot.img from the CM12 zip itself and flashed it. No audio with headset, loudspeaker or earpiece.
[Galaxy Note 4 General] gekkehenkie11:
Hmm that's too bad, I had hoped it was simple as that. But the phone connection itself ? Stable after changing that setting I mentioned, right ? Will look into the audio issue now with highest priority but don't have much time the coming few days ...
[Galaxy Note 4 General] lycan_codex:
The pone connection is rock stable. No signal drops. I always use 2G anyways :) Thanks man!
[Galaxy Note 4 General] gekkehenkie11:
Great ! I think it will work correctly too with LTE, but only if your carrier supports it. It seems the selection of LTE/3g/2g doesn't go well, since stock version in my case selected 3g (correctly) but CM12 selected LTE which my carrier doesnt even support, so that was the problem. But I think the problem is just that the auto selection doesnt work well and if you set it to LTE and your carrier actually supports it, it probably works.

Anyway we went from no RIL at all, to unstable RIL without audio to stable RIL without audio. Now just that last step and I'm going to make it my daily driver. I hate touchwiz and just love how fast the system is on CM12 :)
[Galaxy Note 4 General] fattire:
I think you guys are beyond this stage, but I posted this quickly thrown together checklist for the sprint port and maybe it'll trigger something. Just things maybe to look for/consider. Like I said, at this point it appears to be an audio thing but who knows if this helps...
[Galaxy Note 4 General] gekkehenkie11:
BTW just saw this in the log, this seems to be the camera problem:

12-17 23:03:14.368 E/Vold ( 305): Failed to find mounted volume for /storage/sdcard1/Android/data/com.android.camera2/cache/
12-17 23:03:14.368 W/Vold ( 305): Returning OperationFailed - no handler for errno 0
12-17 23:03:14.368 W/ContextImpl( 3610): Failed to ensure directory: /storage/sdcard1/Android/data/com.android.camera2/cache
12-17 23:03:14.369 E/Vold ( 305): Failed to find mounted volume for /storage/usbdisk/Android/data/com.android.camera2/cache/
12-17 23:03:14.369 W/Vold ( 305): Returning OperationFailed - no handler for errno 0
12-17 23:03:14.369 W/ContextImpl( 3610): Failed to ensure directory: /storage/usbdisk/Android/data/com.android.camera2/cache
12-17 23:03:14.370 E/Vold ( 305): Failed to find mounted volume for /storage/sdcard1/Android/data/com.android.camera2/files/
12-17 23:03:14.370 W/Vold ( 305): Returning OperationFailed - no handler for errno 0
12-17 23:03:14.370 W/ContextImpl( 3610): Failed to ensure directory: /storage/sdcard1/Android/data/com.android.camera2/files
12-17 23:03:14.371 E/Vold ( 305): Failed to find mounted volume for /storage/usbdisk/Android/data/com.android.camera2/files/
12-17 23:03:14.371 W/Vold ( 305): Returning OperationFailed - no handler for errno 0
12-17 23:03:14.371 W/ContextImpl( 3610): Failed to ensure directory: /storage/usbdisk/Android/data/com.android.camera2/files
12-17 23:03:14.439 D/AndroidRuntime( 3610): Shutting down VM
12-17 23:03:14.440 E/AndroidRuntime( 3610): FATAL EXCEPTION: main
12-17 23:03:14.440 E/AndroidRuntime( 3610): Process: com.android.camera2, PID: 3610

I saw some Sony thread, same problem there (I found it via googling the above errors: http://xdaforums.com/xperia-z1/orig...-0-alpha-v0-1-lollipop-xperia-t2930638/page74 ).

Anyway, first call audio. I saw some other thread they had it up without call audio, turned out mixersettings + something in the driver that needed fixing, will look into all that next, but really short on time coming few days ...
[Galaxy Note 4 General] gekkehenkie11:
Looking forward to your log, that will help a lot (again!) !
[Galaxy Note 4 General] Preaper:
Tonight I have some hours, I'll use them to merge all the fixes of the last days into my repo's. I think it is important to have a central place where we consolidate our work.

Hopefully there will be time left to fix the build error.
[Galaxy Note 4 General] allenjthomsen:
Hangouts me so we can talk [MENTION=3296134]gekkehenkie11[/MENTION] ajthomsen28@gmail.com
[Galaxy Note 4 General] allenjthomsen:
here is the radiocall.txt zipped for you
[Galaxy Note 4 General] gekkehenkie11:
Thanks mate ! One last thing, could you do the same (place a call) and send me the main logcat buffer ? So like:

adb logcat -v time -d >callmain.txt

Again for CM12 910T. Thanks again !! Ah and please be sure NOT to use headphone, just normal way of calling. And about hangouts: I never even used that thing, but you can always drop me messages here of course.
[Galaxy Note 4 General] allenjthomsen:
here you go callmain.txt
[Galaxy Note 4 General] gekkehenkie11:
Thanks again, incredibly useful !! I already saw the exact same thing:

12-18 05:24:50.508 I/Telecom ( 2396): CallAudioManager: changing audio state from [AudioState isMuted: false, route; EARPIECE, supportedRouteMask: EARPIECE, SPEAKER] to [AudioState isMuted: false, route; EARPIECE, supportedRouteMask: EARPIECE, SPEAKER]

Which would suggest that it uses the earpiece, but obviously it's not. Or maybe with 'earpiece' it just means that: the 'speaker' close to your ears and they use 'headphones' for headphone. Either way, this proves that this is not the culprit. I'm leaving right now to do some stuff, be back in 5-6 hours, hopefully will have some time tonight to look into all this. Thanks again mate !!
[Galaxy Note 4 General] allenjthomsen:
No problem glad i can help
[Galaxy Note 4 General] pbedard:
Guys ho we do u do an extract-files.sh
[Galaxy Note 4 General] allenjthomsen:
Hangouts me ajthomsen28@gmail.com
[Galaxy Note 4 General] pbedard:
Ok got i now
[Galaxy Note 4 General] ll1l1l1l1l1ll11ll1:
Hello there,

Try these:

1) cm12 for n910f image with working in-call sound and camera:

## filedropper.com/cm-12-20141218-unofficial-trltexx ##

2) my device tree and a guide to duplicate my work (readme.txt included inside)

## filedropper.com/n910f-build-stuff-for-cm12 ##

Hope that helps.
[Galaxy Note 4 General] shadowsami4:
downloading !!!!! i will test it !!!! oh yea thanks
[Galaxy Note 4 General] jazzypit:
ho you are the best man i try it tonight. data work ?
[Galaxy Note 4 General] ll1l1l1l1l1ll11ll1:
Yes, mobila data is working, both 3G and 4G.

About the in-call sound: the volume is reversed. So, when you are in a call, press vol-down to increase it.
[Galaxy Note 4 General] jazzypit:
Sound is just for in call or is work for all
[Galaxy Note 4 General] lycan_codex:
Downloading it now. Will report in 20 minutes. A ROM Thread is badly needed now. Also, If N910F works, it should work for N910G as well.

---------- Post added at 11:48 PM ---------- Previous post was at 11:12 PM ----------

Success. It works. Mine is N910G Indian Snapdragon version. Bye bye Touchwhiz. Thanks everyone!
[Galaxy Note 4 General] Charper99:
Can someone please tell me why it always says download failed when downloading from filedropper
[Galaxy Note 4 General] shadowsami4:
i'm uploading it on mega ! give u the link very soon
[Galaxy Note 4 General] Charper99:
Many thanks from myself and others
[Galaxy Note 4 General] Li-Pol:
GAPPS, please :)
[Galaxy Note 4 General] Planet X:
Will try it now on my 910F. Do you will keep updating and maintaining this ROM?
[Galaxy Note 4 General] shadowsami4:
LINK !!! https://mega.co.nz/#!IFV3lD5A!l0lQI5coQ5U0RPUxq5ff9u_UqNJxEguSQpRpM47Exho

I've already modified the updater script by removing the first instruction for checking the device model.
[Galaxy Note 4 General] lycan_codex:
Just FYI. This new CM version has very noticeable lag unlike the previous version. But no complaints as of now as this is an alpha rom. I am just glad that wifi, calls and Mobile data and camera work. Thank you guys.
[Galaxy Note 4 General] dsac:
any idea if this will work on TMOB/CAN version?
[Galaxy Note 4 General] lycan_codex:
There is a seperate thread open in T mobile section with everything working! You can download from that location.
[Galaxy Note 4 General] gekkehenkie11:
Nice work mate !! :good: Congrats ! Wonderful to see others are working on it and have actually made great progress. At this point I think we need one central branch we all work on. Not sure what the best way to proceed is though, maybe [MENTION=263774]Reaper[/MENTION] can integrate everything into his branch and we can all work on that ?
[Galaxy Note 4 General] :
can confirm that everything works!!! in call audio camara and data. **(there is a noticeable lag at the moment ,however its better then nothing)

good-bye touchwize :)
[Galaxy Note 4 General] Preaper:
Hadn't had the time yet. I'm working on it now. Just cherry picked a bunch of the commits on slayher his repo - hope this solves the compilation issue I had

---------- Post added at 09:12 PM ---------- Previous post was at 08:55 PM ----------

I'll maintain a central branch, mainly because I want to see every step involved in porting this thing :)
[Galaxy Note 4 General] wonderwout:
Thanks, flashed and all is working calls, Internet, sms. Only minor observations so far is it took phone a while to select LTE network and also wifi 5g took a bit of time to detect.
[Galaxy Note 4 General] Preaper:
Nice work. I just did a diff with your device folders to compare them to mine and you changed a lot. The mixer_paths.xml and various supplicant config files must come from the original rom.

I might just start over and use this as my base, hmm.
[Galaxy Note 4 General] gekkehenkie11:
Can you post the diff here ? Saves me some time ;)

*EDIT* nah never mind, I'll check out the diffs myself tonight.
[Galaxy Note 4 General] Preaper:
Sure. The files in the ../docker-cyanogenmod/android/device/ folder correspond to my git repo.
[Galaxy Note 4 General] Beukhof1:
New rom is working great everything works here. Only problem is is that its laggy and the phone gets a little hot.
[Galaxy Note 4 General] fattire:
FWIW I've noticed with this phone that when it does a ton of emmc stuff, such as flashing and/or the "updating apps..." message after flashing, that it gets pretty hot and spews thermal warnings in logcat. Usually cools down shortly thereafter tho.

Congrats on getting a working version... so what's next? Sprint? Verizon?
[Galaxy Note 4 General] Beukhof1:
i hope optimising this version. I feel even after updates there is still more lag than gekkehekkie's build.

Are any of you guys planning on setting up a rom thread?
[Galaxy Note 4 General] SalmanAndrew:
I Grabbed the Gapps from Temaseks Thread working perfectly on this rom..

http://xdaforums.com/galaxy-note-3/development/hlte-spr-vzw-temaseks-unofficial-t2953375
[Galaxy Note 4 General] andrew.mackew:
Any chance for N910C?
[Galaxy Note 4 General] SalmanAndrew:
woudnt have a clue mate im on n910G. sorry.
[Galaxy Note 4 General] Beukhof1:
i think these guys only make snapdragon versions.
[Galaxy Note 4 General] gekkehenkie11:
Exynos is really a different thing. Since Exynos/Samsung dont care too much about open source development (in fact, they want you to use TW), quite a few needed sources are missing. So development for Exynos is much harder, don't expect a stable build anytime soon (in fact, I highly suggest to just forget about custom roms at all on Exynos and just try to make the best out of Touchwiz, debloat, optimize kernel etc)
[Galaxy Note 4 General] gekkehenkie11:
I looked quickly at your stuff, it mainly seems you changed the mixer settings and replaced some proprietary binaries, right ? I haven't looked in that, but what went wrong in the first place, I mean does blobs that we were using weren't pulled from 910F ?

Anyway again, very nice work mate, huge leap forward again with this rom !!
[Galaxy Note 4 General] jazzypit:
bluetooth doesn't work for me. other people can confirm this ? it start but doesnt found my lg watch and paired to my car

sometime the phone begin hot and lag

music application crash the first start and work after

root work well with titanium backup
[Galaxy Note 4 General] Beukhof1:
BT works fine here with my Gwatch R / Up24 and my car radio.

Lag is the same here.
[Galaxy Note 4 General] :
BT works great here as well. so far everything I tested works(gps wifi texts calls data s-pen).

- when I tested with benchmarks my score was the same as with the touchwiz stock rom, which was excellent, but there's still that lag. so I guess its from the UI. changing the transition animations from x1 to off in dev options in settings helped a bit
[Galaxy Note 4 General] jazzypit:
strange i have the g watch R and wen i activate bluetooth nothing appears in bluetooth settings and android wear settings.

maybe the gapps i installed. which gapps are you installed ?
[Galaxy Note 4 General] DBDPCG:
I think you need to reset the watch before pairing it with a " new phone " , at least it was this way with my moto 360, also does every have sound on earpiece and loud speaker in call? I only have audio with earphones , also lag and battery drain and heat , but I'm not too concerned as the rom is in it's very early stages.
[Galaxy Note 4 General] isaakmg:
Great works guys....the rom work fine....One question....The lag isn't apreciated but the hot is too much hot for the phone for me.... What's the cause?

When this problem is resolve we have a rom funtional 100 %....

:)
[Galaxy Note 4 General] jazzypit:
ok it work thank you
[Galaxy Note 4 General] Beukhof1:
Ok guys after a few hours of usage this is what i noticed (compared to gekkehenkie's build):

- Battery drain (screenshot)

- Overall lag

- Phone gets to hot (even when screen is off)

- Really long boot time

Hope this helps
[Galaxy Note 4 General] lycan_codex:
Can anyone provide an alternate link to gekkehenkie11's build? File dropper is inaccessible in my organization.
[Galaxy Note 4 General] DBDPCG:
Shadowsami4 has uploaded it to mega , here you go mate :

https://mega.co.nz/#!IFV3lD5A!l0lQI5coQ5U0RPUxq5ff9u_UqNJxEguSQpRpM47Exho
[Galaxy Note 4 General] lycan_codex:
Hi. Can you also upload gekkehenkie11 (OP's) original CM 12 zip as well to mega site or any other site as well. Thanks in advance.
[Galaxy Note 4 General] DBDPCG:
No worries , let us know how it goes , I thought the working build was produced from the one with no RIL already , but you never know , also just wanted to add that I noticed the lag after I flashed gapps , furthermore the phone feels much cooler and there's less lag after 6 hours that I've flashed it , not sure about the battery drain though.
[Galaxy Note 4 General] utopiate:
ok so I've tried this several times. Upon initial install calling works fine however, after a reboot I get 'no service'. Any ideas?

gonna try installing without gapps
[Galaxy Note 4 General] Beukhof1:
Cool! let us know especially if the lag is gone and if the phone gets hot?!
[Galaxy Note 4 General] lycan_codex:
Will do. Can you please re-upload the OP's zip in any other file sharing site?
[Galaxy Note 4 General] DBDPCG:
Unfortunately I can't download it as well ,download fails half way ...
[Galaxy Note 4 General] shadowsami4:
in about 5 min i'll upload the first build on mega, give u the link immediatly when it's done

Edit : this is the link to gekkehenkie11's build : https://mega.co.nz/#!pVdQBS5L!E7CYZq0W4m9LCSwNfmitljmQNOoyjFaYKqXw6y9DMoE
[Galaxy Note 4 General] utopiate:
hmm yep its gapps related. After installing gapps and rebooting I lose calling
[Galaxy Note 4 General] :
you should try different gapps, as its working properly for others here.. I used the latest ones -pa_gapps-modular-full-5.0.1-BETA4-20141218
[Galaxy Note 4 General] Er. Aditya:
Any links buddy ?? Il be flashing it on 910G

So much wanted this to happen
[Galaxy Note 4 General] utopiate:
Tried that one, same result
[Galaxy Note 4 General] lycan_codex:
Doesnt work...obviously we need to copy more files from the system image. It just shows the boot animation and boot loops if you just replace the boot.img
[Galaxy Note 4 General] DBDPCG:
Try with earphones , my earpiece and speaker phone stopped working after I flashed gapps but ear phones still work, honestly it's not a deal breaker for me as I always talk with earphones but I need to look for the like crazy every time I get a call lol I flashed the 5.0.1gapps as well
[Galaxy Note 4 General] Planet X:
My experience was also no trill engine. And no option to switch long press left key on. Calling was fine with sound on my 910F. B.t.w. I used Banks minimal Gapps (5.0.x) and they work fine. Even camera was working and made some nice shots with it.
[Galaxy Note 4 General] :
..got rid of the lag!

change the launcher from google now to Nova and it should get rid of the lag. someone please confirm :P

EDIT: btw in order for LTE to work if your carrier support it you need to specifically choose it under the carrier settings as 3G is selected by default and not LTE.
[Galaxy Note 4 General] utopiate:
So i tried the modular package which results in the same issue - no calling after a reboot.
[Galaxy Note 4 General] jazzypit:
same lag with nova. i think its general
[Galaxy Note 4 General] lycan_codex:
Guys, I just dirty flashed OP's build first and then flashed directly the working zip (without wiping) and installed gapps and the lag is gone! I am yet to observe lag.
[Galaxy Note 4 General] :
with working call audio?
[Galaxy Note 4 General] isaakmg:
Yes, but the problem is the teamptrue of the Note when the screen is off....Very high.....

How resolve this?
[Galaxy Note 4 General] lycan_codex:
That is true...the lag is gone...not as fast as OP original build. Also gets heated up pretty quick. Let's wait for the newer builds. Thanks again everyone!

There are other manual ways to force only LTE or 3G or 2G, dial *#*#4636#*#* , select phone and choose LTE only or WCDMA only.
[Galaxy Note 4 General] gekkehenkie11:
I can confirm the battery drain. Overnight it drained 5% per hour, while in 'deep sleep', no wakelocks happening ! Battery itself says 'miscellaneous' drained .. Quite weird actually ...

Other than that, everything seems to work quite well !
[Galaxy Note 4 General] gekkehenkie11:
As I suspected, it's a problem in the 'common' stuff with 910T, they have the same battery drain: http://xdaforums.com/showpost.php?p=57554928&postcount=1029

I don't think my first build had such a drain, will verify that later, but that would mean it must be in something that Slayher later added ...
[Galaxy Note 4 General] gekkehenkie11:
And yeah I also have the impression it's a bit slower than the first build, again will need to confirm if that's really the case or if it's just my mind playing tricks on me :)
[Galaxy Note 4 General] lycan_codex:
It is not just you. The animations and some benchmarks show significant lower marks. Seems to be the effect of thermal throttling. How did you manage to cook the ROM perfectly in the first place ;) atleast with regards to the overall speed and usability.