yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy Mega] krazykipa:
[MENTION=4635190]Patnad[/MENTION], [MENTION=5756210]Nubsta[/MENTION], and for anyone else that needs it, here is a fully working, personally tested image I made for build JDQ39.I527MVLUBNA3. It does not contain the Knox bootloader, so for other people it should be safe to flash from stock MH1 instead of applying the OTA. However I don't have a different stock Mega to test with, so I cannot guarantee it. Assuming that's the case, this ROM will update you to the latest firmware while keeping the Knox junk out of your bootloader, giving you the freedom to downgrade if you need to (hopefully).

It contains the following components from build NA3:

-Prerooted system.img (SuperSu)

-Kernel

-Modem

-TZ (Trust Zone, aka 0xfffffffc fixer)

Steps if coming from another ROM:

-Wipe /data and /cache from recovery

-Pull battery, boot into download mode

-Flash with Odin

-Wait AT LEAST 3min, first boot will take a while

-Done!

Since it is prerooted, flashing this on a device with a Knox-enabled bootloader will set Knox Warranty Void to 0x1. You will see the message "Set warranty bit: system". This should not occur if you do not have a Knox bootloader, though it might increase the flash counter or whatever there is on the old bootloader instead of Knox, I haven't tested that.

Also, the CSC (Consumer Software Customizations) will be set to RWC/Rogers when you flash this ROM.

This can easily be changed by typing *#272*your_imei# (e.g. *#272*123456789012345#) into the dialer.

(Do this if you want to change the preinstalled system apps like My Account carrier apps, APNs, or other settings.)

You will then be able to choose from the following carriers to convert your ROM to:

BMC - Bell
BWA - Sasktel
FMC - Fido
KDO - Koodo
MTA - MTS
RWC - Rogers
SPC - Samsung/Special/Unbranded?
TLS - Telus
VMC - Virgin
CHR - Chatr?

Hope this helps everyone! :good:

ROOT_JDQ39.I527MVLUBNA3.tar.md5: https://mega.co.nz/#!xdUQGQRC!Plfr_2Hs3F4jCc5ETo0Xoke1rELVBoxiA9V8lzNfnlM
[Samsung Galaxy Mega] starmaster10:
Sweet..and hopefully it all works good..nice job on it though..and I am on BWA carrier (sasktel)..and I will maybe flash it to see how it works on my knox enabled rom. :D

Boy that mobile mega app is crap as it never has downloaded any stuff for me as it always comes up with errors, will have to wait till I get home to the pc to download it. ;)
[Samsung Galaxy Mega] Nubsta:
thanks for your hardwork...i will download and leave it for a while for now...gf is enjoying the slimkat at the moment and she got no phone for the pass week due to my awesome rooting skill =) i'm now on a quest to unlock it so she can use it to travel. Thanks again
[Samsung Galaxy Mega] avemitchell:
krazykipa, I need to thank you. No seriously, thank you. I thought my phone was done for! I tried flashing literally every stock ROM and no dice, but yours? Perfect. My phone is now back in working condition, and I can stop panicking! Thank you, thank you, thank you!

Just a little warning though, remove .md5 from the end of the file otherwise it won't work. I thought I might have downloaded it wrong, so I downloaded it 2 more times with the same result. But I can confirm, removing the .md5 at the end of the file works. Thank you again, thank you thank you thank you.
[Samsung Galaxy Mega] krazykipa:
Fixed. Link updated.
[Samsung Galaxy Mega] krazykipa:
Would anybody still running stock rooted MH1 be able to post the OTA update for NA3? You would need to fake your system status with Xposed to pull down the OTA, DON'T INSTALL YET, then copy the update.zip from the /cache partition and upload it. You can then delete it from /cache to make sure you don't accidentally install it. If anybody can do that it would be much appreciated. It is about 220MB in size if I remember correctly.
[Samsung Galaxy Mega] starmaster10:
I had it saved to my ext card and when I updated the know it deleted the one in the internal sdcard and also deleted the one I had copied to my ext. sdcard which I was really surprised it did that..should have cooy it to the pc right away I guess..hopefully somebody can get one uploaded as it is around 200mbs in size packed. :)
[Samsung Galaxy Mega] plpconstructions:
krazykipa.....u rock :good:
[Samsung Galaxy Mega] emreekeesalafee:
THANK YOU krazykipa !! YOU SAVED MY GALAXY MEGA!!!

YOU THE MAN KRAZYKIPA!!! lost wifi trying to root then bricked the mega trying to flash a modem file. followed your instructions and im good as new. thanks a million.

ps tried the CSC mod you mentioned however it dosent seem to work with cwm. maybe ill have to reflash the stock recovery and try again.
[Samsung Galaxy Mega] starmaster10:
Seems like the rom is working good for members in the knox situation which is great..keep up the good work Krazykipa. :)
[Samsung Galaxy Mega] Patnad:
Bluetooth Tethering

Has any of you have Bluetooth tethering in their roms, I am trying out my Galaxy Gear watch with its custom rom and I don't seem to have the option of turning ON bluetooth tethering so my watch can have internet.

Check under Settings > Connections > More Network > Tethering

Let me know if you have bluetooth tethering, im wondering if its blocked by the rom I installed or what..
[Samsung Galaxy Mega] starmaster10:
Actually in the stock rom that I have in my phone there is no bluetooth tetthering..just wifi and usb tethering but the usb selection is grayed out..and I am on the NA3 rom on the i527m. ;)
[Samsung Galaxy Mega] Patnad:
Uhmm this is exactly what I have too, perhaps the Mega 6.3 does not allow bluetooth tethering at all?!
[Samsung Galaxy Mega] starmaster10:
That is what I am thinking also. :)
[Samsung Galaxy Mega] Nubsta:
saved me a 3rd download

jebuss...thanks lol...i download 2 times...and thought my internet is screwy so it's corrupted lol good things i actually read forums lol thanx again all!
[Samsung Galaxy Mega] SaHiLzZ:
[MENTION=3499995]krazykipa[/MENTION] [MENTION=4482939]starmaster10[/MENTION] - I am not able to get adb root access using shell using the command prompt using ADB command prompt.

Here is the output I am seeing:

Is this stock rom w/root has insecure kernel, or if anyone has the same issue?

Is there any custom rom that I can install on i527M that may work?

Thanks.
[Samsung Galaxy Mega] starmaster10:
I have never really done this adb root access thing myself and cannot help much there, but i don't think any custom rom will work as far as i know and i have not tried one yet to see what happens if the build number ends in NA3 (still stock rom but with knox) which i have this build, but before this build you can flash all the custom roms for the mega 6.3 here on the site, but with the NA3 build you can have custom recovery and root access forsure at this time. :)
[Samsung Galaxy Mega] MausHaxxi:
hey thinks it worked,

i flashed one of the recoveries you had linked in your post

and it works fine now, i got root :P

wanted to get rid of all the pre-installed junk i dont even use >.<
[Samsung Galaxy Mega] starmaster10:
That sounds great..and i am glad it worked. :good:
[Samsung Galaxy Mega] WackyJoe:
Dead link?

Uh oh...the link is dead on this. :silly:

Could you post a live link on this one?

Thanks in advance! :o
[Samsung Galaxy Mega] starmaster10:
I will see if I can find the file as I cannot find it at this time..or I will remake it and add it to that link. .kinda weird it dissappeared.. :confused:
[Samsung Galaxy Mega] WackyJoe:
Oh ok, thank you!

Yes please, it's rare to see the i527m and that file can surely help out :p
[Samsung Galaxy Mega] starmaster10:
Okay had to remake the file and updated the link in that post and i'll put the link in this post also..this modem and TZ file is for the sasktel carrier but should still work, if not let me know which carrier and i can make another one up for that carrier. ;)

I527M-MH1.tar
[Samsung Galaxy Mega] sugarsweetcandy:
Hey all,

First, I want to thank everyone in this thread for the tremendous help you've given us all, especially shabbypenguin, starmaster10 and krazykipa! You guys are amazing!

So I'm having a hard time fixing my i527M with this Knox problem.. I've read and reread each and every post in this thread and successfully 'fixed' it with lots of flashing. Basically, I got it working to the point of booting (very long), but no WiFi.. That was by flashing MH1 stock, and then flashing TZ and MODEM from the NA3 update. No WiFi is not an option.. so I tried starting over with krazykipa's NA3 Tar that has kernel, rooted system, boot, tz and modem from NA3, but the phone just hangs at the Samsung Galaxy Mega boot screen after multiple successful flash attempts (I waited around 5-10 mins at the boot screen, but it just hangs there)

So what next? When I could boot it, I had build number MH1 with NA3 baseband. This might be the problem right? I'll be trying CM11 to see if it works. It seemed to fix Nubsta's WiFi.

Is there anything else I can do to get it to stock with working WiFi? (tried MH1 stock, with MODEM and TZ from NA3. tried krazykipa's 'custom made' NA3 with prerooted system. I also did full wipe after each and every flash)

EDIT: Alright, tried the CM11 ROM Nubsta proposed and its working flawlessly (boots fast and WiFi working). I get the warranty bit: kernel at boot, but that's not problem. Still wondering if there's any way I could get it to stock with working WiFi?
[Samsung Galaxy Mega] starmaster10:
Since knox is in the phone you will not be able to go back to the stock rom MH1, your phone will have the NA3 rom which is the stock rom..but samsung did not include the whole rom of this NA3 just and update to change the kernel, baseband, modem etc to put it NA3 only, once they come out with a full like say 4.4 kitkat rom then it will put everything back in order for the phone but will still have the knox, but at least the wifi and other things will work correctly.

If your phone is working good with CM11 i would just keep using it that way or try flashing the NA3 rom that [MENTION=3499995]krazykipa[/MENTION] has provided and see if the wifi and other stuff work correctly..but do a full wipe before flashing the NA3 rom by [MENTION=3499995]krazykipa[/MENTION]. :)
[Samsung Galaxy Mega] fleagalbaum:
After thus fix for my mega. I can flash custom ROMs but I haven't found a kernel that will work yet.
[Samsung Galaxy Mega] CPR Cambridge:
Finally got the file :good:

What a joy to see the phone boot up. Our customer will be so pleased. Thanks for all the hard work.
[Samsung Galaxy Mega] EyeBalos:
Hi,

I just got a BNIB sgh-i527m locked to Rogers. I'm new to the Samsung scene having been a long-time HTC users and familiar with rooting and flashing ROMs.

Been reading this thread and want to proceed cautiously to avoid problems with Knox. So before I even start using the phone, is there a way to do a full backup (like a nandroid backup) of the sgh-i527m so I can restore to the phone to brand-new state in case I mess up with Knox?

Thanks!
[Samsung Galaxy Mega] EyeBalos:
Hi SM,

Many thanks for the very detailed post. I will give it a shot and post back here.

Best regards,

EB
[Samsung Galaxy Mega] starmaster10:
You are very welcome. :D
[Samsung Galaxy Mega] Frezi Evan:
Great..
[Samsung Galaxy Mega] rich204:
I'd like to know if there's a fix for this brick error? (knox error 0fffffffc)

I've been reading this thread and still can't figure it out. At this point I'd like to make this i527m work so i could sell it. All I did was unlocked the phone cause it was on telus then flashed the rogers stock rom then the knox error 0fffffffc happened.
[Samsung Galaxy Mega] bigboy0723:
bricked phone

Anybody have any idea how to restore this phone back to stock rom. It cannot be detected by Kies and Odin. When I put this into the download mode, all it shows is :

Odin mode

Product name:sgh-1527m

current binary: Samsung official

system status: official

Knox kernel lock: 0xfffffffc

Knox warranty void: 0xfffffffc

csb-config-lsb: 0x30

bootloader apswrev: 2

write protection: enable

I bought this phone used and I have no idea what the history is. Can anybody help?

Thank you.
[Samsung Galaxy Mega] verticleman76:
Galaxy Mega Fix

I was following the posts here forever. I got into the situation where my Mega because of the Knox screwed up my phone after a update went through it :silly:. But with the tricks in here at least my phone is working and itès rooted properly and running CM11 perfectly. At least Ièm not on stock 4.2.2 anymore :p:D:good:

---------- Post added at 12:35 PM ---------- Previous post was at 12:25 PM ----------

Hey " bigboy0723 ", I had the same problem as what you were having yesterday. Took me most of the day to find the answer here in this thread, but I did find the answer. Start reading from page 13 onwards and the answer will appear to you! Just keep reading. I forgot the page where a new modem was made and it did the trick to let my phone boot up with everything working again. Think it's on pages 20-26 or something like that. But the answer is in here. You will find it!:good::fingers-crossed:
[Samsung Galaxy Mega] starmaster10:
Forsure the method is in this thread to get it out of that situation..but just trying to find what page as I could not quite remember which page myself..but it should help in the situation. :)
[Samsung Galaxy Mega] verticleman76:
It was on page 24. I had to look it up cause I had to book mark it. The files that made it work again were these ones:

MODEM: https://mega.co.nz/#!EEV3lCbK!JvpNxG...diRgyOS7ShTBuI

TZ: https://mega.co.nz/#!QB8DTQSa!BIKsfz...xFXiHzbIO_H9mU

PIT: https://mega.co.nz/#!ocN13LDJ!y3mJEV...0oOesILkJQWZEA

That is the fix right there that made the phone jump start again!:D
[Samsung Galaxy Mega] verticleman76:
Thats where I found out it booted up my phone without any probs.
[Samsung Galaxy Mega] bigboy0723:
Hello Verticalman76,

Thanks for the reply. I downloaded those 3 files, flash it with heimdall. It flashed successfully but the phone is still stuck at the Samsung Logo screen. When I check the download screen, both the knox kernel lock and knox warranty void have changed.

Odin mode

Product name:sgh-1527m

current binary: Samsung official

system status: official

Knox kernel lock: 0xfffffffc ---------------> becomes 0x0

Knox warranty void: 0xfffffffc-------------> becomes 0x1

csb-config-lsb: 0x30

bootloader apswrev: 2

write protection: enable

I try to restore from Kies, no luck (Kies cannot see it), I tried to ODIN.3.09 same thing, no com port is detected. Just wonder can I fashed stock rom using heimdall.

It looks like this is the only one that can communicate with the phone.

Thank you very much.
[Samsung Galaxy Mega] starmaster10:
[MENTION=4737922]bigboy0723[/MENTION] check this post by [MENTION=3499995]krazykipa[/MENTION] and download the ROOT_JDQ39.I527MVLUBNA3.tar.md5 rom from that link and before flashing with odin or heimdall MAKE sure to remove the .md5 ext at the end of that file so it only shows ROOT_JDQ39.I527MVLUBNA3.tar as if you do not remove the .md5 it will not flash according to other members, but this is the NA3 rom since you have knox on your phone this should get your phone back working and your phone will be rooted at the same time flashing this rom. ;)
[Samsung Galaxy Mega] verticleman76:
You maybe able to try that. All I really know is in the 3 files there the modem itself did not work, so at the bottom of the thread or post a new modern was posted up that did the trick. I used Odin to flash the modern. It had the Knox Disabler in the modem itself. I'll see if I can find the link for it :D

---------- Post added at 05:46 AM ---------- Previous post was at 05:41 AM ----------

Here is the link for the modem I used. It should work this time.

https://drive.google.com/file/d/0B-IB0EhC5DIuLTRXVWV3ZDd2Wjg/edit
[Samsung Galaxy Mega] starmaster10:
No that rom would not work for the i9205 mega as this stuff in this thread is mostly for the i527m mega.:)
[Samsung Galaxy Mega] verticleman76:
I have the I527M. It's this one I'm using here. I'm running CM11 on it. That's why it's coming up as a I9205! It's a different kernel that I'm using.
[Samsung Galaxy Mega] starmaster10:
Ahh..gotcha..hehe..i am confusing myself even today..:silly:
[Samsung Galaxy Mega] verticleman76:
The link I just posted up I got from you! And that's the one that worked for me. So that one is for the I527M and flash that one in Odin and it will work!!! If done right. I didn't want to go back to the stock 4.2.2 anymore. During this whole threading and the prob with the phone and the stock was a nightmare! Rather go for a real ROM just to avoid anymore probs again.
[Samsung Galaxy Mega] starmaster10:
Forsure..as I will be going to a 4.4 kitkat rom also as I have tried many..but just choosing the one that suits me the best..goung to try the C-rom and see how that one is. :)
[Samsung Galaxy Mega] verticleman76:
The CM11 that I am using right now is great. Everything works and fast but smooth. Battery life is great also. Get 2 days worth of battery life. I 'm not sure where I got this but I still have the files. If you got a email Addy I can send you them and try it out if you wanted. But it makes my phone run so much faster.
[Samsung Galaxy Mega] bigboy0723:
Just want to report some of my progress to fix my Rogers Mega i527m. It is a busy evening with lots of up and down

- After flashing the 3 files last night, it unlocks my knox kernal and nothing more.

- This evening, I use another cable and surprisely I am able to connect to Kies. So, I did a firmware upgrade and initialization. It went thru

successfully. But upon booting up, it gave an error like "the image is too big" then it hung there.

- Then I boot it up to the download mode and notice that the Knox kernel lock: 0xfffffffc and Knox warranty void: 0xfffffffc, it basically back to square one.

- I then use heimdall to reflash those 3 file. After that the phone booted up, then proceed the android upgrade etc and finally boot up successfully

- Then I notice that the wifi is not working and start up now takes more than 2 min.....seems to be too long

I am not sure what is wrong with the wifi and the boot time. When I check the phone info, this is what it shows

Baseband version

I527MVLLUBNA3

Kernel version

3.4.0-1251310

dpi@DELL167 #1

Thu Aug 1 16:25:28 KST 2013

Build number

JDQ39I527MVLUAMH1

The Kernel looks funny.....not 100% though.

I am thinking of putting a custom rom might be the stock rom is corrupted. not sure.
[Samsung Galaxy Mega] verticleman76:
It would be best to go for a Rom. There are lots out there to choose from so good luck with it. At least your phone is somewhat working again too.
[Samsung Galaxy Mega] starmaster10:
Okay the kernel and build number are the original stock and baseband is the newer NA3 and this will give problems, i would still flash this rom if you like the ROOT_JDQ39.I527MVLUBNA3.tar, just check my post here and go to [MENTION=3499995]krazykipa[/MENTION] post with the link in that post of mine and try this rom as i am sure your wifi will work again as the kernel and build number have to be updated and the build number should be what your baseband shows (I527MVLLUBNA3), and kernel will be different also...or you can try a custom rom like [MENTION=5205081]verticleman76[/MENTION] has mentioned. :good:
[Samsung Galaxy Mega] bigboy0723:
Just a little update, I have been struggling for the past 2 days, trying to put back the stock rom on my Rogers i527M with no success.

I have tried all the suggested solutions and still experienced certain degress of problems. I ended up putting the custome rom CM11 and the phone is now fully functional. I might put back the stock rom when Rogers releases the Kitkat upgrade (I hope). But for now, I am a happy man..

Thank you everyone for your help especially "vericalman76" and "starmaster10". You guys are awesome. :good: :good: :good:
[Samsung Galaxy Mega] starmaster10:
That is great to hear..and you cannot go back to the MH1 rom once Knox is present in your phone..it will be the NA3 rom which they do not have a whole rom for that from samsung..but custom roms are pretty good and have some nice features. .and you are welcome and enjoy the custom rom. :D
[Samsung Galaxy Mega] verticleman76:
Your very very welcome. Glad we could all help out. So what do you think of the CM11? Works well?
[Samsung Galaxy Mega] bigboy0723:
So far, the CM11 is great. Phone boots up almost instantly and runs very smooth.

I only notice a small issue, the back button is not as sensitive as the menu button. I am not sure if it is a hardware issue related to my phone as I bought it used. Just curious do you experience this too?

Thanks
[Samsung Galaxy Mega] verticleman76:
It's software related. I have the same issue. Maybe if a update comes out soon it should fix the problem. But other than that it's a great ROM. And surprising the battery life is amazing on it too. 2days worth of battery or more. So hopefully a update will happen soon.
[Samsung Galaxy Mega] d4ndr0id:
The wifi doesn't work because once you trip knox, it makes your stock Rom inoperable. Only fix currently is to go custom Rom which is what I also did with my 2nd mega which came with the knox bootloader. We should petition samsung to remove knox from their devices, this takes away our ability to control our stock roms!
[Samsung Galaxy Mega] bigboy0723:
I never know about that, the impression that I have is once knox is triggered, it voids your warranty. Samsung is bad, it should al least allow us to put back to stock. :(
[Samsung Galaxy Mega] starmaster10:
I still have the stock rom installed with knox triggered as I have custom recovery and device is rooted and my wifi works great.

Samsung does not offer the whole rom with knox in it the NA3 one..but once they come out with the whole rom hopefully with knox in it to be flashed with odin..that would at least make things alk working again..but wifi should still work..this is on my i527m version it works without any problems. :)
[Samsung Galaxy Mega] verticleman76:
knox is a bomb that needs to be defused. Why the hell would Samsung make such a stupid security?:banghead: They can do so much better.
[Samsung Galaxy Mega] starmaster10:
I agree with you on that one. :good:
[Samsung Galaxy Mega] EyeBalos:
Hi SM,

It's been over a month since your reply and I only got to root the phone last night. Bottom line is it worked. The only "snag" I ran into was that Odin 3.07 with the "auto reboot" unchecked would not turn off my phone. The phone would remain on "downloading" mode even after Odin showed the Pass! sgn. Rather than risk any consequence of manually powering it off, I repeated the Odin flash of TWRP but with the "auto reboot" checked. Odin rebooted the phone as normal and I simply powered off the phone and then rebooted into TWRP recovery to backup the ROM and install SU.

Thanks again,

EB
[Samsung Galaxy Mega] starmaster10:
That sounds great..and you could have just unplugged the usb cable and powered off the phone and rebooted and it would not have harmed anything by leaving the auto reboot unchecked, this is done if you are flashing a custom recovery as after flashing the phone must reboot into the recovery mode right away again otherwise the stock recovery will be put back in..this is why to leave the auto-reboot box unchecked and manually power down the phone and reboot it.

But you can do it with the auto-reboot box checked also..you just have to make sure you can get back into the recovery mode right away again..but it worked out for you and enjoy and you are welcome. :good:
[Samsung Galaxy Mega] nsnobel2:
very slow downloading from MEGA, do you have any other link like 4shared or mediafire?
[Samsung Galaxy Mega] krazykipa:
I just tried downloading and I am getting 4.6MB/s down on my maximum of 6MB/s... I don't think it'll be any faster on another site, and they also have size limits for free uploads.
[Samsung Galaxy Mega] starmaster10:
Here is a link for the rom which [MENTION=3499995]krazykipa[/MENTION] put together from my goggle drive in case anybody needs it and the rom is winzip packed to make it smaller in size and just unpack the zip file to get the .tar file. :D

Rom: ROOT_JDQ39.I527MVLUBNA3.tar