yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy Note 8 Questions and Answers] Kalm_Traveler:
ok well I ended up upgrading in the middle of the night since the phone wouldn't finish booting (seemed to stay indefinitely at the T-Mobile boot logo) after that patch attempt. I left everything odexed for comparing true unmodified stock to stock, but i don't think this would have any impact. If I'm wrong someone please tell me.

At the moment I have everything set up again on basically stock SK Telecom (debloated, but no CSC magic, no 950F file, etc) so I'm going to take a quick TWRP backup and try splitting up the latest patch into separate files to narrow down what is causing the boot issue. Hopefully that will be discovered and easily fixable so we can get back to the CSC stuff. It seems fairly clear at this point that the CSC pieces are working just fine, and that the hiccup lies somewhere with the wifi calling apps/libraries things that it uses exclusively.

Will update again once I have been able to get the new files flashed without bricking the phone.
[Samsung Galaxy Note 8 Questions and Answers] masri1987:
Paying close attention!
[Samsung Galaxy Note 8 Questions and Answers] Kalm_Traveler:
Thanks! I have a new build with pretty much only 950U files now, from the latest firmware but wifi calling is still not connecting at home. I'm going to dig into logcat again to try and figure out why. As far as I can tell everything should be in place now.

*EDIT*

If you guys want to try it and if someone running a 950F or F-based ROM can try it and let me know if wifi calling works (just to confirm that is still the case) here is the latest, version 9d

I'm not seeing anything obvious in the logcat so far but I'll dig through it more and hopefully something will stand out. The only message I've seen so far that seemed related is RCS Settings saying that VOWifi (voice over wifi) is not enabled... which is kind of obvious.

Also should ask if anyone else on an N950N and a router that is supposed to auto-detect which type of WIFI the device supports (802.11 B/G/N/AC) has been having weird connection issues. On stock, my wifi at home would usually disconnect/reconnect nonstop. With this latest patch, I baked in the wifi settings from the 950U for North America and this seems to have solved my wifi disconnect loop, it stays connected fine now.
[Samsung Galaxy Note 8 Questions and Answers] Pinan:
Not here. I'm solid with a WRT54G running DD-WRT.
[Samsung Galaxy Note 8 Questions and Answers] Kalm_Traveler:
ahh the old trusty WRT54G! I meant like one of the newer routers that can do 2.4 gHz and 5 gHz. Mine has both with the same SSID (as does my company's internal wifi) but for some reason with stock N950N wifi files, when I'm at home the phone constantly disconnects / reconnects. At work it didn't seem to do that, but I replaced the wifi files in /system/etc/wifi that have to do with wifi config with the N950U files and now it's working just fine at home.
[Samsung Galaxy Note 8 Questions and Answers] Pinan:
Ahhhh. Nope. Old school here. Heh :p :)
[Samsung Galaxy Note 8 Questions and Answers] Kalm_Traveler:
I think I might try grabbing the wpa_supplicant bin from the 950U since it is quite a bit larger than the one in the N firmware, and it seems to be related here.... any suggestions are more than welcome though as this is just going to be trial and error until the final missing piece is located.
[Samsung Galaxy Note 8 Questions and Answers] masri1987:
flashed it ontop of renovate last release they had, wifi calling works, signal and data speeds good, volte button works but the actual setings placement for it in the connections settings isn't there.
[Samsung Galaxy Note 8 Questions and Answers] Kalm_Traveler:
thanks for confirming - so the package still works as expected on F-based ROMs which is good to know. As far as the menu, the CSC is almost 100% stock N950U. Do we know if they have a VoLTE option in connection settings? I didn't remove anything, and as I recall the VoLTE toggle button is not stock, I had to add it.

*EDIT*

Also, I swapped out /system/bin/wpa_supplicant and /xbin/cpustats and dexlist binaries since they are different between N and F firmwares, and I switched the /system/bin/eris binary from the 950U one to the 950F one because I noticed that the U version mentioned some Snapdragon-specific things.

Nothing seems different, and the Logcat messages don't seem to have changed either so I am nearing running out of ideas.

There are a few more apps, libraries, and Java runtimes that I know are related to this that can be replaced, and I was thinking it might also have something to do with the app data for some or several of these, something that is set during initial OS setup. I have not actually tried wiping /data/ after any of these patches.
[Samsung Galaxy Note 8 Questions and Answers] masri1987:
it's usually right underneath the roaming option in the connections settings.

Also, i'm back to having problems with data speeds and signal dropping as before and don't have my good EFS backup. I know it has nothing to do with ur zip but i'm SOL right now since i gotta fly out and moving this weekend lol
[Samsung Galaxy Note 8 Questions and Answers] Kalm_Traveler:
have you tried clearing NV settings in the service menu?

I was not showing any carrier aggregation combos anymore, and as far as I'm finding online that data is part of the NV items on the EFS partition so I tried that NV Rebuild option in the service menu and now I have 15 CA combos again.

actually now that you mention it the combos are all wrong, they are bands 1 3 and 5...
[Samsung Galaxy Note 8 Questions and Answers] masri1987:
i fixed it somehow, and it didn't include your zip, I instead used the CSC built into the weta rom, he has a t-mo specific option. VoLTE seems to be enabled automatically without an option to disable either.

Wifi calling works.

the CSC is not from the latest build but from n950uoyn1aqi5

when i flash the stock bqk6 csc i had those problems again

I'll check carrier combos in a moment

how do i clear nv again

---------- Post added at 01:30 AM ---------- Previous post was at 01:16 AM ----------

i have 14 carrier combos
[Samsung Galaxy Note 8 Questions and Answers] Kalm_Traveler:
NV clear is in the service menu, UE Setting & Information -> Setting -> System

Which bands are on your carrier combos?
[Samsung Galaxy Note 8 Questions and Answers] masri1987:
i'm trying to upload it, but i'm now even getting an error trying to upload via wifi.

I'm thinking of just going to odin the original base before this update
[Samsung Galaxy Note 8 Questions and Answers] masri1987:
Finally it let me upload after I rebuilt nv and rebooted
[Samsung Galaxy Note 8 Questions and Answers] Kalm_Traveler:
4 5 12 13 17 I wonder why you have those... Very odd indeed.

On a maybe good note I'm looking at logcat again and I see 2 things that may lead to the final fix. So EPDG is a component that seems to be a switcher for changing telephony between LTE and Wifi, and I'm seeing 2 problems.

Problem 1 is that EPDG smart wifi says it is unable to find status about connected wifi, during the time when it is trying to handover the voice function,

Problem 2

Netd says the epdg1 iface is down, and epdg says that the IPSec service is not running.

All of this is pointing to a connection problem, since the vpn connection isn't happening, phone service can't be switched over to wifi.

I'm getting close guys. Any day now.
[Samsung Galaxy Note 8 Questions and Answers] masri1987:
funny you mention that because when i first flashed 7d zip it was over weta's t-mo csc and i got force close on epdg and ims , i'm gonna try flashing ur zip over weta without any preloaded csc from fresh odin
[Samsung Galaxy Note 8 Questions and Answers] Kalm_Traveler:
Let me know if that works. I'm thinking there might be one or two more pieces that need to be added to the zip, but also I might need to edit the script to have it delete some app data for imsservice or something.
[Samsung Galaxy Note 8 Questions and Answers] masri1987:
it didn't work, i mean it did, no force closes, but my speeds and signal were trash.

So i'm going back to the base version prior to the new update and just running renovate since i know that works well
[Samsung Galaxy Note 8 Questions and Answers] masri1987:
Is bqja from New firmware? I'm on old base renovate everything working from a backup I found .
[Samsung Galaxy Note 8 Questions and Answers] Kalm_Traveler:
Yes that is the current one. That ROM you're using has the old bootloader and PDA, and you're using an older 950F OXM CSC so not actually a tmobile usa CSC. USA tmobile is OYN multi CSC.

This is what I'm on and I just ran speedtest on the top servers near me:
[Samsung Galaxy Note 8 Questions and Answers] masri1987:
I flashed your ZIP and this is what I got now

Everytime I tried the new base my signal drops and speeds are show so I'm on the old renovate ROM with a fandangled old base efs and new base baseband. Somehow.

I won't be able to mess with this again until I get to my destination after New year's . For now speeds and signal strength are good and normal

WiFi calling and volte working fine
[Samsung Galaxy Note 8 Questions and Answers] Kalm_Traveler:
very interesting, I wonder if being on the old bootloader has anything to do with it. I haven't tried an F-based ROM yet and I have to take on-call today for a week so I wouldn't be able to for a bit anyway but that is good information.

I see on Sammobile that the Germany DTM 950F has a newer firmware from a few days ago so I am downloading N950FXXS2AQL2 for it now, as well as a newer T-Mobile N950USQU2BQLA. There is not yet a newer 950N firmware.

-----------------

I'm pretty sure at this point that I need to just clear the data for some app/apps but will be doing more research over the weekend since I'll be on-call and thus not out enjoying the festivities.
[Samsung Galaxy Note 8 Questions and Answers] masri1987:
k well so far the current set up works, i've made two backups of it to go back to it in case i reach a bad setup as i did before, lmk if u want me to test it out, i'm free all day today sat and sunday then i take flight monday
[Samsung Galaxy Note 8 Questions and Answers] Kalm_Traveler:
thanks! will do - I just finished extracting both 950F and 950U newer firmwares and found one thing that may be of interest to us aside from the Wifi Calling stuff.

In most of the CSCs on that 950F, they have a file called cp.xml which contains:

<CP_FEATURE>

<CP_Version>2</CP_Version>

<CP_Downlink256QAM>on</CP_Downlink256QAM>

<CP_Uplink64QAM>on</CP_Uplink64QAM>

<CP_4X4MIMO>on</CP_4X4MIMO>

</CP_FEATURE>

So it looks like that would make sure both 256QAM and 4x4 MIMO are enabled at the CSC level - no more having to manually go in the service menus to do it.
[Samsung Galaxy Note 8 Questions and Answers] masri1987:
Ah because right now even if u enable it in the service menu it doesn't do anything , do you think this will have a result?
[Samsung Galaxy Note 8 Questions and Answers] Kalm_Traveler:
yeah doesn't seem to do anything when I enable them (though at the moment I'm not getting the correct CA bands on the combo list). According to this map https://www.google.com/maps/d/u/0/v...US&ll=37.708632113799084,-99.767967671875&z=6 I should be able to get 4x4 MIMO in my area.
[Samsung Galaxy Note 8 Questions and Answers] Kalm_Traveler:
gonna punch something... I'm putting that newer build together and it kept FCing systemui, wifi calling, phone, and ims settings upon reboot but come to find out my de-odexing utility rather than actually de-odexing decided to simply delete all the odex files and leave the apks and framework jars as is.

Re de-odexing everything again this time to make sure it actually works, then I can rebuild the new patch with complete framework files and apps to try again.

Happy New Years everyone! :)
[Samsung Galaxy Note 8 Questions and Answers] Kalm_Traveler:
ahh I rebuilt it finally after properly de-odexing my 950F and 950U sources and trimming things down until it wouldn't FC (for some reason the RcsSettings app from the 950F was causing SystemUI, IMS Service, and com.sec.epdg to FC forever upon reboot so I couldn't even get into the OS to figure out why - had to just keep deleting things from the zip and restoring + reflashing the edited zip until it would finally boot).

I've reflashed it so much tonight that the battery was about to die so I haven't tested wifi calling yet, but on an odd note I have 12 CA combos now, all using the correct T-Mobile bands 2,4, and 12 (a few days ago when I checked after resetting NV settings I had wrong band combos, and prior to that NV Items clear I had no combos showing up for the last month).

This does me zero good AFAIK since the only map I found linked on the previous page shows no Carrier Aggregation support anywhere near my city, but it does show I should be getting 4x4 MIMO.

Another odd change is that I'm getting full bars in my usual testing spot, which with the T-Mobile signal scale I have only been getting 4 of 5 bars (the number of bars is arbitrary because it is not uniform across carriers - IE 5 bars of T-Mobile is not the same actual signal strength as 5 bars of AT&T for example - or at least in my case 5 bars on the SK Telecom CSC was only 4 bars when I switched to T-Mobile CSC).

If someone is bored and wants to try this one (I'm just waiting for my battery to charge so I can test wifi calling), also [MENTION=2694397]masri1987[/MENTION] if you want to try it on a 950F-based ROM and let me know if it's working there that would be great.

here is version 9J: https://mega.nz/#!xjxjESwb!pW_lgWnnJBKzJUGGgSr3o_EHA23ShoRJhjHJb5v5m9w

This is mostly 950F files (December 2017 DBT firmware), with the standard 'T-Mobile CSC pack' files from the December 2017 T-Mobile 950U firmware. I also tweaked the CSC files so the APN settings are editable, changed the IP version from ipv6 to ipv4/ipv6 (hoping this will help with wifi calling) added in that cp.xml file to force-enable 4x4 MIMO and 256QAM, and added the 950U's gps.conf file. Still using the S8+ T-Mobile TMB_keystrings.dat file from TEKHD's S8+ T-Mobile pack since we had trouble with that 950U keystrings file in my earlier patches.
[Samsung Galaxy Note 8 Questions and Answers] masri1987:
I'm already on the plane right now, have WiFi lol. Will flash it when I land in Hawaii. Problem is there is only 4x4 mimo in Honolulu and no where else on the islands. So I'll let u know.
[Samsung Galaxy Note 8 Questions and Answers] masri1987:
I have 14ca combos now instead of 12

Speeds and signal is consistent
[Samsung Galaxy Note 8 Questions and Answers] Kalm_Traveler:
Your band combos are funny, if you are feeling bold can you do that NV items clear again?

Mine are attached. Glad your speeds are good. Mine are too, I'm just unsure of why the signal bars went up lol
[Samsung Galaxy Note 8 Questions and Answers] masri1987:
When you do nv clear do you reboot right after or wait ?
[Samsung Galaxy Note 8 Questions and Answers] Kalm_Traveler:
I reboot, not sure if it matters.
[Samsung Galaxy Note 8 Questions and Answers] masri1987:
we share some CA combos but i have weird ones too like the first one on my screenshot.

I did the nv rebuild, didn't reboot, still 14 CA combos.
[Samsung Galaxy Note 8 Questions and Answers] Kalm_Traveler:
yeah I am not sure why you have bands 13, 17, and 41 included there. I had non-TMO bands before the reset but as you see at the moment mine are all 2,4, 12 which are T-Mobile bands...

as far as patch progress I am checking another idea now because in the logcat I noticed that it keeps saying that EPDG (The service that switches telephony between Wifi and LTE networks and initiates the Wifi Calling IPSec VPN connection as needed) is a "user binary" which seems odd to me since it is in /system/priv-app just like everything else so I am digging around to see if that is the problem now.

WIth this current patch I don't get errors anymore but the handover still isn't happening and that is the only odd thing standing out to me in the log file. I'm not sure what determines if it is a user binary or system binary so I'm going to do some research.
[Samsung Galaxy Note 8 Questions and Answers] Kalm_Traveler:
[MENTION=2694397]masri1987[/MENTION] i was getting those bad speeds again, restored my oldest EFS partition and everything is fine again. If it happens again I'm going to pull a copy of the bad one and compare all the files to what they are currently to figure out what is messing up.

well, last night I was looking at the logcat and noticed GameManager kept trying to check things, but I deleted the apps so I realized the .jar file was still there. WIth that in mind I deleted the game manager .jar as well as the jar files for the Korean DMB TV service thing since it is useless outside of Korea, rebooted and everything seemed fine.

Went to sleep, woke up and mobile data wasn't working. status bar said 4G/LTE but nothing would connect and VoLTE/RCS icons were gone. Decided to try wifi, it worked and Wifi Calling connected. Wifi Calling test call worked great, so I rebooted, mobile data still not actually working, re-applied the CSC patch and cleared cache/dalvik cache in TWRP and rebooted.

This seemed to fix the mobile data, reconnected to Wifi and wifi calling is still working...

Made a test call and everything worked fine,
[Samsung Galaxy Note 8 Questions and Answers] Kalm_Traveler:
ok I need someone else to test this on stock N950N firmware. I've rebooted 6 times today and every time Wifi Calling connects almost instantly.

I tested calling out to my work phone, calling from the work phone to my Google Voice number answering on the Note 8 (on work wifi), and did the same back and forth with a Vonage VOIP line at home - everything works 100%

The only change I made from version 9j is removing all the DMB-related files that exist on the N firmware only - which is what I believe finally fixed the wifi calling for me. The only other thing I did on my device was deleting /system/framework/gamemanager.jar at the same time as deleting the dmb files but Game Manager exists on all variants so I'm pretty sure it has nothing to do with the wifi calling finally working.

Kalm's N950N T-Mobile patch version 9L

After installing the zip please clear cache/dalvik cache before rebooting, just because this is what I did so all steps are accounted for.

Again I need confirmation from someone else on the stock N950N (Korean model) firmware that this works for them - Confirmation that it works for custom ROMs is fine but they are all based on F variant firmware which already had most of the necessary underlying framework so I am more concerned about making sure this 100% works for everyone on the stock N firmware.
[Samsung Galaxy Note 8 Questions and Answers] Kalm_Traveler:
Working great on airport and Delta sky club wifi too, been switching back and forth and toggling wifi calling off and on.

If someone else can confirm that 9L works for them too I think we're good, folks!

*edit*

Working on gogo in-flight Wifi too!

Seriously need someone else to confirm so we know for sure finally.
[Samsung Galaxy Note 8 Questions and Answers] shouren04:
Do you have to add any line somewhere for this to get loaded?

I made sure 256QAM & 4X4MIMO were disabled, added the cp.xml file to OMC>TMB & rebooted. Checked the service menu & they still showed disabled.

EDIT: I found in omc.info cp set to no, changed it to yes but I still get the same result.
[Samsung Galaxy Note 8 Questions and Answers] Kalm_Traveler:
yeah that was what I was going to suggest. Can you swap to a different CSC then change back to that one? I am not sure it looks at those settings between reboots but you may be right, it might just ignore them based on something else we're missing.

On the Wifi Calling note I'm on day 4 or 5 now, multiple reboots, airplane mode, wifi calling toggle on and off, and everything is still working perfectly.

Once someone besides me can confirm that this 9L patch works for them on a 950N base I will replace the 1st post with only the relevant info and current patch version.

*EDIT*

I think it not loading cp.xml is due to the contents.db SQLite database file in each omc/<whatever csc code>/etc/ folder.

I'm at Disneyland this weekend but when I get home Sunday night I'll try adding cp.xml in there and see if it makes a difference.
[Samsung Galaxy Note 8 Questions and Answers] masri1987:
Nice!! i'll try to roll back to N firmware this weekend to verify, but i flashed this on my 950f based rom and it's working as intended there
[Samsung Galaxy Note 8 Questions and Answers] Kalm_Traveler:
thank you for the data point and for sure if you have time to try it on stock N firmware please let us know. I am 99.9% sure this is it as I made incremental changes this time around, and as I mentioned deleting the DMB tv stuff was the final change I made before the wifi calling started working (with the caveat that I deleted that gamemanager.jar at the same time).

Since all the previous T-Mobile CSC patches for S8/S8+, S7, etc only worked on F variants (usually specifically indicating that it won't work on N variants) it can be assumed that this is the same thing that would need to happen for them.

Basically from F to N, N is missing /bin/eris binary, vsimservice.apk. SmartEpdgTestApp.apk (this may not be necessary), EpdgService.apk. , epdgmanager.jar, 3 eris libs in /lib64, as well as a few files in /system/etc like a folder of EPDG security certs (for multiple carriers), epdg and eris config files, and that's about it. Add a few files and delete all the DMB TV crap and you're ready for adding the usual T-Mobile stuff.

Once you can confirm it works on stock N, I have a few minor tweaks to make it as streamlined as possible, hopefully make sure that cp.xml is used to enable 256QAM and 4x4 MIMO like it is supposed to, etc but this will also mean I can keep the patch updated as newer security updates etc are released.
[Samsung Galaxy Note 8 Questions and Answers] masri1987:
I'll try to get on N firmware by the end of the weekend No promises though as I may not have time ( finally on the island of oahu but will be moving stuff all weekend into new place), i'm on the latest Weta 3.2 and using ur t-mo csc speeds are great and signal is stable (unlike before when i tried the new base roms)
[Samsung Galaxy Note 8 Questions and Answers] masri1987:
hey [MENTION=4375750]Kalm_Traveler[/MENTION] you know there's a new firmware for us? N950NKSU2BQL4 ....

edit 1: Derp, nvm, sammobile stated this was released jan 2 2018 so thought it was new but it ain't

Edit 2 : maybe i wasn't derping, the build date is 12\15 and release date is 1\2\2018 so it is new?
[Samsung Galaxy Note 8 Questions and Answers] Kalm_Traveler:
Thanks! I have BQK6 from last month so I'll have to update next week when I'm home.
[Samsung Galaxy Note 8 Questions and Answers] masri1987:
Should I flash your zip on the latest Odin?
[Samsung Galaxy Note 8 Questions and Answers] Kalm_Traveler:
Yes that's the theory, should fix all the things on a fully stock flash.
[Samsung Galaxy Note 8 Questions and Answers] masri1987:
it didn't boot at all, and i cleared cache and dalvik, i have to restore my old rom because going out tonight. .

and what i mean is it just got stock on samsung screen
[Samsung Galaxy Note 8 Questions and Answers] Kalm_Traveler:
So you Odin flashed the new stock ROM, Odin flashed TWRP, wiped data and flashed the 'no verity' patch before this one and it wouldn't finish booting?
[Samsung Galaxy Note 8 Questions and Answers] masri1987:
I booted it up before rebooting and flashing your zip.
[Samsung Galaxy Note 8 Questions and Answers] Kalm_Traveler:
hmm thank you for letting me know. I am flying home tonight so I can look into this with the newer firmware this week.

Off the top of my head this is the setup have:

November's 950N firmware Odin flashed

Odin flashed TWRP

TWRP wiped data

TWRP flashed no verity/encryption patch

TWRP flashed SuperSU

TWRP flashed IronKernel (which is 950F based)

TWRP flashed the 9L version of my patch

Haven't done anything else on this. Wifi Calling still working properly after about a week now? Many reboots, toggles, etc...