yashsingh1/xdaforums huggingface dataset:
[AT&T Samsung Galaxy S 4 General] TheDogman:
Here is what I did. A simple test from speedtest.n e t ... I connected the VPN ... and went to the website ... and ran the test. I went from 24.5+mbps off the MK2 stock rom with stock built in VPN ... to less than 50kbps with FMLD loader flashed. Both NB1 and NC1 exhibit the same results off a premium 5 connection SOLID VPN which I use in a corporate environment. It does connect. BUT the throughput is where you will see a HUGE decrease. It is kind of deceiving in the fact that it connects and 'appears" to work fine. The SETTINGS panel fills in for the Lockscreen properly too.

It is only when you actually run data through the VPN and then you will see what I am talking about.

Maybe it is totally on my phone(s). I don't think so though because when I revert back to factory stock using the exact same VPN setup I have NO issue at all with speeds. I get whatever the device / connection is capable of running at. I have tested now for the better part of the day on 3 different Galaxy 4 devices and all three exhibit this behavior. This is an awesome rom and a great fix for keeping MK2 intact. I only offer this information in an attempt to help people (including myself).

I Odin stock MK2. Then Root with SafeRoot. Reboot. Then install SafeStrap. Then reboot to Recovery. Wipe as per OP instructions. Install NB1 / NC1 Rom into stock slot using SafeStrap. Reboot to Download mode. Then Odin proper kernel. Reboot to download mode. Then Odin flash FMLD loader. Then reboot into Rom. Everything appears to be fine ... BUT ...

Maybe I am doing something wrong there in my setup routine? If so then please do correct me! I love this method. I'd love to figure out my issue! It could be that I am the only one who has this issue. I have even tried new downloads and fresh files all to no avail. If anyone else has this issue and figures out the work around i'd love to hear about it. Thanks everyone!
[AT&T Samsung Galaxy S 4 General] Mhjeff301:
Hi.

Yes I did remember to flash the kernel in step 6.

After completing step 6 that's when the phone reboots to the Samsung Galaxy S4 logo and just hangs there forever.

I've repeated steps 1-6 four times now, all with the same result.

I only have a working phone through step 4 except without wifi.

When I perform step 5 5. (Flash the ROM zip in the "Stock Slot.") I noticed it says "failed" in red as I said in my original post.

I then go step 6 and reboot into download mode and and flash the I337_NB1_Stock_Kernel when the phone reboots it just sits on the Samsung Galaxy S4 logo until I end up having to pull the battery.

One thing I did notice after performing step 2 and going into Settings/About Device, it says the Baseband version is I337UCUFNC1 and the Build number is JSS15J.I337UCUEMK2. Anyway I'm stuck with Android 4.3 and no wifi.

Any ideas?
[AT&T Samsung Galaxy S 4 General] muniz_ri:
The downgrade file does not flash the mk2 modem that is why your baseband is still nb1. Anyway, make certain you are using safestrap v3.72 and that you wipe. Or, you may have a bad download. Try re-downloading the rom.
[AT&T Samsung Galaxy S 4 General] muniz_ri:
My guess is the same as your guess.....bootloader mismatch issue. If you want i can package an odin flashable nb1 or nc1 bootloader file and send via pm. Up to you.
[AT&T Samsung Galaxy S 4 General] Mhjeff301:
My Baseband is NC1, not NB1 after the downgrade.

I am using SS 3.72 and I did remember to wipe everything except the SD card.

I'll try and redownload everything again and run through it all again.
[AT&T Samsung Galaxy S 4 General] duggerdude:
IM so happy I could kiss you, no homo. But seriously I'm as giddy as school girl on prom night. Lol
[AT&T Samsung Galaxy S 4 General] TheDogman:
I appreciate that offer Muniz_ri but then I cannot go back to MK2 if problems arise. I LOVE the fact that I can ALWAYS get back to stock MK2 and start over should something go terribly wrong. I will figure it out somehow and when I do I will post my results in case others need that same support. Thanks for everything you've done up till now. Lets all keep trying to find new things to improve our toys and help each other out! Best regards! :victory:
[AT&T Samsung Galaxy S 4 General] muniz_ri:
Good luck to you. And you may want to consider flashing other 4.4 ROMs from the following list to determine if the issue is limited to my ROM or if it also affects other 4.4 ROMs: http://xdaforums.com/showpost.php?p=51130834&postcount=3
[AT&T Samsung Galaxy S 4 General] muniz_ri:
You may also want to try the KeepRoot ota zip and see if you have better luck with that. There is also an MK2 wifi fix called bypasslkm you may want to look into while you sort out the 4.4 flashing issue: http://xdaforums.com/showthread.php?t=2663545
[AT&T Samsung Galaxy S 4 General] Memo.Ray:
Does that mean we should do NC1 from scratch, or is it going to be the same if we had NB1 100% Stock Rooted ROM then flashed OTA update to NC1? The main question is, is there an advantage to flash again and go straight up to NC1 100% Stock Rooted ROM without going through NB1 Rooted ROM?

Thanks!
[AT&T Samsung Galaxy S 4 General] muniz_ri:
I recommend you flash the nc1 rom right after downgrading to mk2. No need to first flash nb1. Just follow the instructions in the nc1 rom thread.
[AT&T Samsung Galaxy S 4 General] duggerdude:
Alright I have NC1 and followed the NB1 instructions but used the NC1. If your coming from MK2 do exactly the same thing download the NC1 rooted ROM and and just follow the NB1 instructions at http://xdaforums.com/member.php?u=772094
[AT&T Samsung Galaxy S 4 General] Memo.Ray:
I have already followed the instructions at NB1 and upgraded to NC1 using the OTA package, It is up and running, but I found that there is a ROM for NC1 which muniz_ri recommended to use where you can just go directly straight to NC1. I wasn't sure if there is any benefit (fixes, stability, etc...) of flashing again and do that, or if the net result is the same.
[AT&T Samsung Galaxy S 4 General] muniz_ri:
The advantage is the safestrap apk works on the nc1 rom but not after the ota process. If you are already on rooted nc1 via the ota reboot into safestrap, wipe, flash nc1 rom, kernel then reboot.
[AT&T Samsung Galaxy S 4 General] Memo.Ray:
Aha, that is what I was trying to understand. Thanks!
[AT&T Samsung Galaxy S 4 General] loganfarrell:
If he were coming from the NC1 ota, would he not have already flashed the NC1 kernel? Is it not redundant?
[AT&T Samsung Galaxy S 4 General] muniz_ri:
You are correct. Thx
[AT&T Samsung Galaxy S 4 General] Memo.Ray:
Oh well, I have re-flashed already. Flashing is very quick, it's setting up the phone with custom apps/accounts/settings that is time consuming. Al running well now.

Thank you guys.

p.s. will try VPN and report back in a day or two.
[AT&T Samsung Galaxy S 4 General] Memo.Ray:
I did little work to test VPN and here is what I got:

I was hoping that I can test VPN over speedy LTE, but it didn't work for me over LTE and this has nothing to do with this ROM. I think has to do with ipv4 private addresses given for us over AT&T LTE network which then get NAT'ed breaking VPN tunnel end-points. Moving on...

I did setup a basic VPN server at my home's router. On a public WiFi I ran speedtest and got 8Mbps/1.4Mbps. I VPN'ed to home and ran speedtest several times but it failed every single time to run long enough to get a measurement before ending with speednet network error. I wasn't sure if speedtest was VPN sensitive somehow, or if VPN is not working as it should. This took me to the third test, which was carried in the same sitting but Instead of relying on speednet, I ran a udp iperf server on a Linux box behind my home router. I then ran iperf client on my phone (via VPN) and I was able to push about 0.8Mbps, which is a little less than 60% utilization of the 1.4Mbps upload speed I had (I was uploading to home from the public WiFi perspective). I wouldn't call that great, but it is not bad either, and it is far better than what our friend TheDogman reported (50kbps). I was able to browse through the router's config pages quickly and also to the internet with acceptable speed.

of course unless I get my hands on "FAT" links with high speeds it is hard to paint a full picture. :)
[AT&T Samsung Galaxy S 4 General] kpirnie:
it worked great for me... but then again my i337 is not on att networks.

its on metropcs

Rockin it from my Blue Chrome Themed Deadly Venom SS 3.0.2 NC1 S4 (team: [MENTION=4631220]Venom0642[/MENTION] [MENTION=2284570]ted77usa[/MENTION] [MENTION=833788]rebel1699[/MENTION]) ~ 20GB free cloud https://copy.com?r=vtiraF
[AT&T Samsung Galaxy S 4 General] muniz_ri:
Sounds like you did alot work. Thanks so much, I believe [MENTION=5563274]TheDogman[/MENTION] will be interested in your findings.
[AT&T Samsung Galaxy S 4 General] Memo.Ray:
Question about troubleshooting/backups.

I added some modules through Xpose framework last night and they worked fine, until I added a couple that caused the phone to loop at ATT logo. I followed this by a stupid move: wiping system and nothing else and restarting thinking I will be able to boot back to safestrap recovery, and maby flash the rooted STOCK ROM. That proved to be not the case. I had to go back to square zero: flash ATT stock ROM via Odin and redo the whole procedure at the OP.

Are there shortcuts to handle issues like this? rebooting to recovery and disabling the bad modules from there?

More importantly: are safestrap's backup/restore options complete safe and functional with this ROM? Are there any side effects for restore operation such as messing up with KNOX or something similar? I'd like to have a safe restore point with all of the setups, configs, and apps that I use that I can quickly recover after a "stupid" move :), so that I don't have to go back to square zero again.

Would appreciate any information about this.
[AT&T Samsung Galaxy S 4 General] alfizzle:
i would like to perform this root method but im a little confused. i have att 1337 s4 i think its 4.3 but 4.4 bootloader i dont remember, i rooted w saferoot after receiving a warranty phone w 4.4. im not sure if im on NB1 or MK2 so i dont know which steps apply to me in particular(screenshot attached) with that said im not sure if im already past step 2 and 3 at this point because im already rooted and have safestrap. Also which of the 2 download files do i use??? I337UCUFNB1_100%_Stock_Rooted_ROM or I337UCUFNB1_Stock_Rooted_ROMwBL?? what is the difference?? will this erase the phone? sorry for all the questions i just like to cover all my bases before i dive in, and thus far no bricks haha... i did read alot too but didnt see the answer. info would be greatly appreciated as this would probably be the last i will have to do w this phone finally!!
[AT&T Samsung Galaxy S 4 General] muniz_ri:
I have zero experience with Xposed, but when you wiped system you also removed safestrap since safestrap resides in system. It's not much of a shortcut but when you do that you can reflash the downgrade file to get back to that semi working mk2 and continue the steps from there.

And yes, safestrap backup and restore functions work flawlessly without issue.
[AT&T Samsung Galaxy S 4 General] Memo.Ray:
Thank you [MENTION=4708661]muniz_ri[/MENTION]. I assumed that I need NB1 stock in order to downgrade to the semi-working mk2. Now that I think of it, NB1 stock is not required since the downgraded mk2 is replacing the whole image anyway.

XPOSED (http://xdaforums.com/showthread.php?t=2285074) is an interesting project here at xda. I only knew about it a couple of days ago while trying to get some battery stat app to work on Android 4.4.x. Andoid battery stat API has been overhauled in kitkat making it hard for these applications to function. XPOSED provide so many modules that can change the behavior of Android or "expose" new features. I discovered it is the perfect thing to have with this ROM. This ROM is the "official stock ROM" technically, and with XPOSED it can be changed as desired while maintaining its "official" state. You end up with a semi-custom ROM without flashing a custom ROM.
[AT&T Samsung Galaxy S 4 General] Memo.Ray:
Just to share my experience with Xposed if anybody decides to get it with this ROM, which I highly recommend. It has a long list of modules to choose from. I've used a few including Bootmanager (controls what apps run at start up), YouTube AdAway (no more add layers in YouTube!), and "Wanam Xposed", a very useful module giving you a tremendous amount of customization options, including controlling the notification area, carrier label, poweroff menu, and turning tether provisioning on or off ( no need to flash the Tether-AddOn if you use this), and much more! All running stable with no issues.

If you decide to start trying modules, I recommend doing a safestrap backup first - I got bitten once. ;)
[AT&T Samsung Galaxy S 4 General] archerymodz:
Haven't posted a review of the ROM so I shall now...ROM runs great thanks [MENTION=4708661]muniz_ri[/MENTION] and anyone else who worked on this. I have no problems what so ever. And I too use xposed and wanam and also the settings list "mod/hack" whatever you would like to call it.

Sent from rooted NC1 SGH-I337 with tethering addon.
[AT&T Samsung Galaxy S 4 General] mugsy77:
I think I'm losing it ;)

I downloaded I337_Downgrade_to_MK2.rar twice and get corruption extracting via winrar and 7zip.

md5 matches, too, thus the insanity: b28e94bcaf3afb3269dd82a6ef026e19

Any tips on if file is corrupt or I'm going nuts please? :confused:
[AT&T Samsung Galaxy S 4 General] muniz_ri:
I just uploaded that file today but will reupload. In the meantime try this one: https://mega.co.nz/#!0g0jDCzC!cWMzwaQIvU-cj2-dDoVZjMcU8_QcKjsTzPTLcPzs1Tg
[AT&T Samsung Galaxy S 4 General] mugsy77:
Thanks! I'll give it a whirl and report back. Thanks so much!

***Worked like a champ man! Thx for alt link!***

New md5 is: fac95b4cc7743fae34bc42ebfbaf751a
[AT&T Samsung Galaxy S 4 General] TheDogman:
Hey Jafar! Yes this is quite interesting since I have tested this VPN every possible way myself. Inside the LAN. Outside the LAN. On different hardware. At WORK on the corporate VPN. With every possible scenario and setting. Funny thing? All of the configurations display the exact same result with my phone(s). I even tested THREE different phones to be sure mine wasn't somehow broken physically. I don't disbelieve you achieved 0.8Mbps for speeds (I would have LOVED to actually seen that with my own eyes) since I could not achieve hardly anything no matter type of connection or configuration I set the hardware to. Ironic that a person (me) with a BA in Computer Science and a degree in IT/IS cannot figure out a simple little VPN. Thank you though for sharing and I will continue to search for my answers. I appreciate all the input and comments sharing your ideas. -smiles-

edit: Jafar ... the VPN works flawlessly using MK2 Rom ... in any / all configurations on my test bed. ATT LTE or CDMA ... or plain WiFi ... so while your "test" sounds conclusive it is hardly so considering the fact that when I switch to the STOCK MK2 ROM? Everything ... and I mean everything regarding VPN works flawlessly. It is ONLY when using the FMLD Bootloader do I have issues on NB1 or NC1. If your test was conclusive the VPN would not function on my phone when using MK2 stock (and it does perfectly). Thank you though for your input. I DO appreciate it. :)
[AT&T Samsung Galaxy S 4 General] alfizzle:
if i posted my question in the wrong area please let me know where i can get an answer. thanks
[AT&T Samsung Galaxy S 4 General] TheDogman:
Your question is very convoluted. First thing you need to do is give us positive information.

1. What ROM are you on? Give us more exact details and we will be GLAD to help. -smiles-

"I think it's a 4.3 but maybe 4.4. I think it's MK2 but maybe it's NB1. I think it's a Galaxy S4 ATT I337 ... but maybe it's not." (kidding)

Please provide exact ROM ... Model ... OS ... blah blah blah. Without proper info we cannot give proper instructions. Thanks!
[AT&T Samsung Galaxy S 4 General] Memo.Ray:
Hey Dogman, I didn't claim my test was scientific or conclusive, and definitely I was not trying to prove you wrong. In fact I pointed out a couple of issues/limitations like VPN not working over LTE, speedtest not working over VPN, but I can't just say the cause is this ROM. I didn't have time to reflash the stock ROM to test if it is different so I reverted to iperf. I used udp to minimize the overhead and get a better estimate of the actual bandwidth. Moreover, udp is less sensitive to tunnels than TCP. I have been engineering "custom" tunnels in the Linux kernel for the last couple of years so I know exactly what I'm talking about. :)

P.S. When it comes to computer science degrees, I did spend a lot more time in school than you did ;), no bragging, but to make it clear that you can't use "degrees" to claim that your results are more believable than mine. Let us keep those pieces of papers aside and focus on finding and fixing the issue. If there are issues, I'd be happy and interested to have them fixed. :)
[AT&T Samsung Galaxy S 4 General] TheDogman:
Assuming you "spent more time in school" than I did is a very ignorant remark. I don't know you from Adam. Assuming you are more educated than me proves this ignorance even further. I too have been in the engineering field and have been for the last 20+ years. I too could stake claims to try to prove my superiority such as you have but that would leave me standing on that same plank of ignorance which you apparently claim. If you read my OP you will clearly understand that I didn't use "degrees" to "prove" my results. I made a JOKE about myself in fact which you clearly took the wrong way. You are the one who brought up the "challenge" regarding who was the more educated by stating your claim that you "spent more time in school than I did". Obviously you cannot discern between 'joke" and "comparison" regarding my original statements.

Either way I agree with one of your statements, that there are still issues which we both (seem) to agree upon concerning the VPN. I am and have been working to find a solution to the VPN issue. I, unlike some others, don't believe in arguing. I don't believe in ignorance. I don't believe in measuring dicks. I forge ahead to find a solution if possible and share it so the community becomes better as a whole. If and when I find something NEW and useful to add to this thread I will do so. Thanks for trying to help Jafar.
[AT&T Samsung Galaxy S 4 General] muniz_ri:
I have been reading that others are having similar vpn issues after taking the 4.4 update on other samsung devices, e.g. galaxy s5, note. The issue has been resolved after subsequent firmware updates. Can someone test vpn on other 4.4 custom roms? It will let us know if the issue impacts only my rom or the gs4 4.4 firmware in general. Thx
[AT&T Samsung Galaxy S 4 General] Memo.Ray:
Oh man, you can't take things easily can you! I was kinda joking as you said you did. I didn't assume, you said you had a BA :). I didn't say I had anything or better educated, I just said I spent more time in school, maybe making coffee for the dean ;). I didn't say you are ignorant, but you rained me down with these terms. Anyway, I really don't want to take this discussion in the wrong direction, I'm not superior to anyone, and educated enough to survive but I want to learn more, that is why I am on this thread.

I don't use VPN, and you seem to be the only one concerned about it on this thread, correct me if I'm ignorant in this regard. I honestly did the test to try and help you, to identify an issue where we can start fixing the problem, if it has to do with this ROM.

Cheers.
[AT&T Samsung Galaxy S 4 General] muniz_ri:
Major VPN bug in Android 4.4 leaves enterprise users with packet loss, connection err

See here: http://phandroid.com/2013/11/12/android-kitkat-vpn-bug/
[AT&T Samsung Galaxy S 4 General] loganfarrell:
Not that I care in the slightest avout VPN, but it's good to know it's an issue on Google's end and not [MENTION=4708661]muniz_ri[/MENTION] 's end. The way he makes these ROMS doesn't even touch any of the VPN configuration, so it's silly to automatically blame him. Anyways, is it possible to change the configuration on the ROM end that does decrease the packet size so that transfers work?
[AT&T Samsung Galaxy S 4 General] muniz_ri:
Thanks, brutha! And I never believed anyone was blaming me but there definately was some jumping to conclusions. Anyway, I don't know enough or care enough to make that happen. My focus now is on fixing the Safestrap FC's on my OTA zips. I believe a much larger number of users will benefit from that. We'll let Google sort out their VPN issues.
[AT&T Samsung Galaxy S 4 General] Memo.Ray:
Why am not surprised to tee such explanation. This kind of problems is one of the issues I was referring to when I said TCP is sensitive to tunnels. That is probably why udp worked when everything else didn't, since with udp I can dictate the datagram size. I repeated the same test as before and got the same results. I tried iperf with TCP and it didn't work, but with udp I got the following:

$ iperf -s -u -i 1 -l 1000

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

Server listening on UDP port 5001

Receiving 1000 byte datagrams

UDP buffer size: 208 KByte (default)

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

[ 3] local 10.0.0.2 port 5001 connected with 10.0.0.1 port 55111

[ ID] Interval Transfer Bandwidth Jitter Lost/Total Datagrams

[ 3] 0.0- 1.0 sec 95.7 KBytes 784 Kbits/sec 2.724 ms 0/ 98 (0%)

[ 3] 1.0- 2.0 sec 97.7 KBytes 800 Kbits/sec 3.193 ms 0/ 100 (0%)

[ 3] 2.0- 3.0 sec 97.7 KBytes 800 Kbits/sec 2.533 ms 0/ 100 (0%)

[ 3] 3.0- 4.0 sec 97.7 KBytes 800 Kbits/sec 2.953 ms 0/ 100 (0%)

[ 3] 4.0- 5.0 sec 97.7 KBytes 800 Kbits/sec 2.903 ms 0/ 100 (0%)

[ 3] 5.0- 6.0 sec 97.7 KBytes 800 Kbits/sec 2.442 ms 0/ 100 (0%)

[ 3] 6.0- 7.0 sec 96.7 KBytes 792 Kbits/sec 2.752 ms 0/ 99 (0%)

[ 3] 7.0- 8.0 sec 97.7 KBytes 800 Kbits/sec 2.421 ms 0/ 100 (0%)

[ 3] 8.0- 9.0 sec 97.7 KBytes 800 Kbits/sec 2.718 ms 0/ 100 (0%)

[ 3] 9.0-10.0 sec 97.7 KBytes 800 Kbits/sec 2.614 ms 0/ 100 (0%)

[ 3] 10.0-11.0 sec 96.7 KBytes 792 Kbits/sec 2.831 ms 0/ 99 (0%)

[ 3] 11.0-12.0 sec 97.7 KBytes 800 Kbits/sec 2.472 ms 0/ 100 (0%)

[ 3] 12.0-13.0 sec 97.7 KBytes 800 Kbits/sec 2.636 ms 0/ 100 (0%)

[ 3] 0.0-13.2 sec 1.25 MBytes 798 Kbits/sec 2.407 ms 0/ 1312 (0%)

Which gave the same bandwidth as my earlier test. The point that I tried to make with udp test is it's not a bandwidth problem. Thanks for digging more into it muniz_ri.
[AT&T Samsung Galaxy S 4 General] muniz_ri:
I will get you started with the following to reduce the chances of you bricking your very expensive device. But I recommend you do alot more reading before you begin flashing your device.

To determine your bootloader version see Post# 4 here: http://xdaforums.com/showthread.php?t=2680868
[AT&T Samsung Galaxy S 4 General] TheDogman:
It's awesome that we finally have some direction regarding the VPN issue. I may have jumped to the conclusion that it was a ROM issue and for that I sincerely apologize Muniz. I KNEW there was an issue but couldn't put my finger on top of it. Now we know which direction to go. Thank you to all who have dug in and tried to help root out the VPN issue. Cheers!

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

Whatever you say Jafar. Lets move on. I see no point in continuing the discussion. Cheers.

---------- Post added at 01:20 AM ---------- Previous post was at 01:17 AM ----------

I agree Logan. I was mistaken to make such a hasty conclusion regarding the ROM Muniz was nice enough to build for us. :highfive:
[AT&T Samsung Galaxy S 4 General] kpirnie:
just tossin this out... but maybe xposed or tasker can...

Rockin it from my Blue Chrome Themed Deadly Venom SS 3.0.2 NC1 S4 (team: [MENTION=4631220]Venom0642[/MENTION] [MENTION=2284570]ted77usa[/MENTION] [MENTION=833788]rebel1699[/MENTION]) ~ 20GB free cloud https://copy.com?r=vtiraF