yashsingh1/xdaforums huggingface dataset:
[Galaxy S 4 General] melodystyle2003:
Can this way be applied on a GNJ8 kernel phone (4.4.2)?

I tried with odin 3.07 and 3.09, both ran with admin priviledges, but it wrotes FAIL! when i tried to install the GNF1 kernel.

<ID:0/004> Added!!
<OSM> Enter CS for MD5..
<OSM> Check MD5.. Do not unplug the cable..
<OSM> Please wait..
<OSM> Kernel_Stock_GNF1.tar.md5 is valid.
<OSM> Checking MD5 finished Sucessfully..
<OSM> Leave CS..
<ID:0/004> Odin v.3 engine (ID:4)..
<ID:0/004> File analysis..
<ID:0/004> SetupConnection..
<ID:0/004> Complete(Write) operation failed.
<OSM> All threads completed. (succeed 0 / failed 1)
<ID:0/004> Removed!!
[Galaxy S 4 General] jasperx:
Okay so I flashed the official fw for my carrier from sammobile with mop, (ended up using everroot anyway as a precaution xd). I did a factory reset before and after the flash although i honestly don't see why that was needed. Knox is still 0x0, everything looks good except status says custom but I suppose that's normal since I'm rooted. Now I haven't flashed any special bootloaders yet, according to the guide I'm supposed to flash ambasadii's bootloader but again I don't see what's the point? Should I?
[Galaxy S 4 General] theodroid:
Thanks. :) I have again some questions: :D

If I install Lollipop via Android settings, can I root later or downgrade to KitKat?

If I rooting now, with KitKat NG8 firmware with your method, is the root will survive to the update (by updating via Android settings)?

And finally, if I flashing the Lollipop firmware and SuperSU zip with Mobile Odin, will I keep my apps and data?
[Galaxy S 4 General] jasperx:
No, at least not until new version of mop gets released which may be weeks or months from now.

If you update from Android settings to 5.0.1 you can't downgrade to a 4.4.2 kernel to towelroot, it doesn't work, that's you have to use mop and attach the supersu during the upgrade.

It should work. I just flashed it earlier today but did a factory reset, in hindsight I don't see why it was necessary (just use titanium backup if you don't want to risk it).
[Galaxy S 4 General] theodroid:
Ok thank you, I will probably root KitKat, and maybe I'll install Lollipop rooted later with this procedure :) :

http://xdaforums.com/galaxy-s4/general/rooted-stock-lollipop-5-0-1-knox-0x0-t3061536
[Galaxy S 4 General] ShaXee:
my phone gets reboots

after i installed knox removal script via odin..my phone gets reboots and coldn't ON just showing samsung logo and again reboots ?? plz help me what to do ?

I have GNG2 based phone and my phone shows 0x1 flaged knox
[Galaxy S 4 General] kponto:
Peppe, I´ve done this procedure and it was OK up to flashing the modem.bin file. After this, when I went to flash NON-HLOS.bin, I get the fail message in Odin, saying that there is no PIT partition. Is this because the .pit file is missing? If so, where can I get it to Lollipop?

---------- Post added at 11:52 AM ---------- Previous post was at 10:52 AM ----------

Fixed! I got the .pit file here http://xdaforums.com/showthread.php?t=2265477 and flashed the NON-HLOS.bin file via Odin. After that, wi-fi is back to work. :laugh:
[Galaxy S 4 General] andre_m_silva:
My experience rooting lollipop

Hi, I've got a I9505 and after reading this thread for a while I decided to post here my experience to help clear any remaining doubts.

Steps I've made to update to Lollipop and root it without tripping Knox:

1- I had 4.4.2 rooted with towelroot.

2- Downloaded supersu and the lollipop firmware from sammobile to my external SD Card (the firmware needs to be extracted from the zip file)

3- Downloaded Mobile Odin Pro (yes, you have to buy it but it's worth it)

4- In Mobile Odin: tapped on "open file" and selected the tar.md5. Then deleted the Modem fields and put the SuperSu zip in OTA/Update ZIP. Optionally I checked the Wiped Data/Dalvik because in major upgrades like this one it's better to start from zero to avoid issues and problems. Also I chose to enter in download mode after flash completion.

5- Unzipped the two .bin files (Modem and NON-HLOS) in my PC with 7zip, and when the phone entered in download mode after a successfull flashing, I flashed each file at a time through Odin from the PC using CP field. (remember to untick the Auto Reboot option).

6- Rebooted phone normally, and when it was ready for use, rebooted again in stock recovery (Power + Home button + Vol Up), and chose the wiped data/factory reset to delete all the trash I still had in internal memory.

7- All ready, just remember to install again the SuperSu from PlayStore. And because I still have the bootloader from Kitkat I can downgrade to it anytime I want.

From what I've tested I'm really satisfied with this new version, no problems for now.
[Galaxy S 4 General] peppe130:
Odin can't connect properly to the device. Try to change USB port or cable

No, you don't have to flash the bootloader

Please list all the steps you did

Good :)
[Galaxy S 4 General] ShaXee:
steps

I did all the steps as mentioned above and my phone gets rooted successful but when i flashed knox removal script via odin my s4 gets restart and stuck at bootloop??

Note: before rooting my phone i remeber that knox status was 0x1.
[Galaxy S 4 General] peppe130:
This method isn't for 0x1 users.
[Galaxy S 4 General] ShaXee:
now what should i do ?? plz help me
[Galaxy S 4 General] peppe130:
Flash your stock firmware via Odin and then do a wipe data
[Galaxy S 4 General] ShaXee:
can you please provide me a link that how can i get right stock firmware for my device and from where ??
[Galaxy S 4 General] peppe130:
Get it from SamMobile
[Galaxy S 4 General] ShaXee:
i already checked there are many firmwares available but i m unable to select which firmware is compatible with my s4...
[Galaxy S 4 General] melodystyle2003:
I had another samsung device installed on my pc so i had to unistall the samsung drivers, reboot and reinstall the usb samsung drivers again in order to make odin to work as should.

For each kernel flashing i had also to try 4-5 times or so to get a success flashing message (i tried also many pc usb ports).

Now i am rooted, with knox 0x0, so this work worth the time spent. Thanks OP for posting this guide.
[Galaxy S 4 General] tommiyau:
Anyone know if this is required for the new 4.4.2 released in au I9505XXUGOB2 or if the original towel root roots? Can't take the chance of updating and loosing root hoping some one else can advise. Thanks
[Galaxy S 4 General] peppe130:
This method works on all KitKat 4.4.2 firmware. You can also update your firmware via Mobile Odin keeping root access
[Galaxy S 4 General] HorusEyE:
Hello peppe130.

As you may (or may not) recall, I've rooted my phone (GT-i9505) using your method. But now when new ROM updates are "officially" available, I still get the notification and download the firmware automatically but when it tries to install it, it says it could not be installed and to try again using Kies.

My question is:

Is this update the update that is at Sammobile site which is this:

http://www.sammobile.com/firmwares/download/44627/I9505XXUHOB7_I9505TPHHOB1_TPH/

Can I download this and install with Odin without messing with my knox flag?
[Galaxy S 4 General] peppe130:
You can always flash your stock firmware without tripping your Knox flag ;) But you'll lose root access
[Galaxy S 4 General] HorusEyE:
But can't I get the root access again after having upgraded using your method? Or you method wont work after updating?
[Galaxy S 4 General] n3n3:
Peppe130 this kernel work in i9515l?
[Galaxy S 4 General] peppe130:
No, this method won't work

No, it's obly for i9505
[Galaxy S 4 General] n3n3:
I have i9515l 4.4.2, rooted. If i upgrade to lollipop, but dont upgrade bootloader, change root?
[Galaxy S 4 General] peppe130:
If you upgrade to Lollipop, anyway, you will lose root access
[Galaxy S 4 General] n3n3:
Peppe130, GNF1 100% stock kernel for I9505, this kernel is kitkat?
[Galaxy S 4 General] peppe130:
Are all KitKat
[Galaxy S 4 General] n3n3:
Peppe130, i rooted my kk change kernel compatible with towelroot, upgrade kk, change kernel, root, put back kernel stock.

In lollipop its possible kernel kk, towelroot, put back kernel lollipop after this?
[Galaxy S 4 General] peppe130:
You can't flash a KitKat kernel on a Lollipop ROM/firmware. It's not compatible and the device won't boot. I wrote this 1 million times
[Galaxy S 4 General] n3n3:
I confused,

Download the GNF1 100% stock kernel for I9505 from HERE.

4) Reboot your phone into download mode, put the tar.md5 kernel file in PDA/AP and click on Start.

5) After this step, your Wi-Fi will not work. Don't worry, it will work again when you will flash the kernel matched to your ROM version.

[ROOT][I9505][Knox 0x0] How to gain root permissions on GNG8 or higher firmwares - If room is kitkat version only.

its correct?
[Galaxy S 4 General] HorusEyE:
And is there any working method for that last update?
[Galaxy S 4 General] peppe130:
Only KitKat

You can upgrade via Mobile Odin keeping root access
[Galaxy S 4 General] n3n3:
Tks Peppe
[Galaxy S 4 General] O-T:
If you reboot, restart or use software to get into download mode 5) is always the result. Too many flashing guides appear to be copy-paste work where mandatory POWER OFF is missing. Even this one advice to reboot. [emoji33]

[quote name="KingP1n" post=60490797]Go to the modem thread pg. 263...I believe they offer the WiFi fix thru odin[/QUOTE]

Modem.bin + non-hlos.bin was not properly flashed. Reason explained.

No need to search for the hoax called "wifi fix" or flash a second time.

Simple solution:

POWER OFF, boot to download mode (pwr + voldown, volup to confirm) , PC Odin 3.0x flash ANY complete stock Lollipop.

Even if Knox apps and libs are removed from system and data partitions a Knox featured bootloader will still limit further flashing.

Hope [MENTION=5650065]peppe130[/MENTION] find this interesting and keep up the good work to help guiding.
[Galaxy S 4 General] latouffe:
Hey guys.

Could you please advise if its possible to root a I9505XXUHOB8 lollipop using Towelroot method? To get the knox 0x0?

Many thanks
[Galaxy S 4 General] peppe130:
It is not possible. Towelroot works only on KitKat firmwares
[Galaxy S 4 General] latouffe:
And is there a way to root the lollipop without tripping knox?

Because my phone received Lollipop yesterday and i dont want to OTA before im 100% certain i can root.
[Galaxy S 4 General] peppe130:
You can't gain root access on Lollipop without tripping Knox. You are still on KitKat?
[Galaxy S 4 General] latouffe:
Still on Kitkat rooted with Towelroot.

So then im not updating :(.

Its my last Samsung phone. I cant stand Knox.
[Galaxy S 4 General] peppe130:
Triangle Away works on new bootloaders? Are you sure Ed? :)
[Galaxy S 4 General] fear_factory84:
Chainfire in his thread say yes.

But why my counter is 0 and system status is official? Am I lucky? :D
[Galaxy S 4 General] edzamber:
Yep, no problem.

You have to use Triangle away v3.26 ;)

Posté via Pyrana v44 by Alan-B

http://xdaforums.com/showthread.php?p=53646684
[Galaxy S 4 General] peppe130:
Wow I didn't know this! And on new bootloaders Traingle Away just set system status to official?
[Galaxy S 4 General] edzamber:
Exactly.

It remove Flash counter as well :)

http://www.mediafire.com/?oc42xkm5d34wg24

Posté via Pyrana v44 by Alan-B

http://xdaforums.com/showthread.php?p=53646684
[Galaxy S 4 General] kosmo_kramer:
Hi,

After testing this method on my I9505, I also like to try on my Tablet P605 but do not have the required kernel.

Does anyone know of a method to get the kernel from the original rom?

Thanks in advance.

nKramer
[Galaxy S 4 General] peppe130:
You can't try this metod on your tablet because ROMs in first page are only for i9505
[Galaxy S 4 General] kosmo_kramer:
peppe130, thanks for your quick reply.

Yes, I know I can not use these ROMs, but the method is the same and can adapt with the correct ROMs.

The only doubt I have is how to create files with the kernel (from P605 Roms NE2 and NG1)

Thanks in advance.

nKramer
[Galaxy S 4 General] fear_factory84:
maybe you can see this and ask advice to them:

http://xdaforums.com/showthread.php?t=2783922
[Galaxy S 4 General] peppe130:
Sorry, my fault.. I thought I was in the other my thread about ROMs. To extract the kernel from a firmware tar.md5, you have to rename and delete the md5 extension and then extract the boot.img using 7zip or WinRAR
[Galaxy S 4 General] kosmo_kramer:
Thanks peppe130,

After extracting the boot.img file I have to create the tar.md5? How can I do that?

Cps

nKramer
[Galaxy S 4 General] peppe130:
Ask to [MENTION=4507636]edzamber[/MENTION] .. I don't remember the name of the tool.. In the meanwhile you can use this https://www.dropbox.com/s/tejxbi9j08q4bba/[Script][Tool] Img To Tar.MD5.zip?dl=0
[Galaxy S 4 General] edzamber:
The Better thing is to create tar with Cygwin (put boot.img into Cygwin/NameOfYoyrComputer/

And use Cygwin Terminal with theses commands :

tar -H ustar -c >Kernel_stock_firmewareName.tar

Then use TarMd5 Packager tool to build tar into tar.md5 (put your kernel.tar into TarMd5 Packager/Package and launch TarMd5 program file, choose 2, select your kernel file, yes)

Cygwin :

https://www.cygwin.com

TarMd5 Packager :

http://xdaforums.com/attachment.php?attachmentid=2038027&d=1371066389

Posté via Pyrana v44 by Alan-B

http://xdaforums.com/showthread.php?p=53646684
[Galaxy S 4 General] christty31:
i have used triangle away v3.26 on my I9505 stock I9505XXUEMKF JB 4.3 and after reset triangel away said that is official ... BUT in phone status is custom, why? :(
[Galaxy S 4 General] edzamber:
Have you Check Periodic System modified Reset ?

Posté via Pyrana v44 by Alan-B

http://xdaforums.com/showthread.php?p=53646684
[Galaxy S 4 General] christty31:
it's checked, but is greyed out...

under it it says "only available in Play version"
[Galaxy S 4 General] edzamber:
Hummm that's why...

Posté via Pyrana v44 by Alan-B

http://xdaforums.com/showthread.php?p=53646684
[Galaxy S 4 General] christty31:
so...i have to install the latest Triangle away version from play store, correct?
[Galaxy S 4 General] edzamber:
To have this option, Yes you need.

Posté via Pyrana v44 by Alan-B

http://xdaforums.com/showthread.php?p=53646684
[Galaxy S 4 General] Trancicted:
Yes, it worked perfectly. Didn't know about that. Thanks!

btw, is there any chance that samsung makes previous kernels incompatible with newer firmwares? I can't see why this would work with all the other (kitkat) firmware updates in the future.
[Galaxy S 4 General] peppe130:
You can upgrade via Mobile Odin
[Galaxy S 4 General] Danygold:
Kitkat 4.4.2 rooted with towelroot

Hello can you help

I have a galaxy s4 GT-I9505 running Kitkat 4.4.2 already rooted with towelroot

I also have Mobile ODIN Pro v4.20 installed

the latest SuperSu working and also Busybox

I also Have Odin3 v3.09 installed on my computer

but I have a problem with my ext sd card! cant be mounted tried many card to no avail even tried to change the hardware slot

my usb mass storage working fine

Question?

Can I Update to the official android 5.0.1 firmware without losing root and keep Knox warranty 0x0

And if yes can you help me how to do it

I did download the firmware from Sammobile I9505XXUHOB7_I9505AUTHOB2_AUT.zip

and the Kernel_I9505XXUH0B7.tar.md5

also the boot-loader BL_I9505XXUHOB7.tar.md5 and Knox+Removal+Script.zip and the modem CP_I9505XXUHOB7.tar.md5

How should I proceed I am new in that work it was so easy with towelroot and From the time that I have root I would really miss it and did not update to lollipop 5.0.1 in fear of losing root

I leave in Nepal and doing this work put my mind elsewhere after the big earthquake

Thanks you in advance for the good work you are doing
[Galaxy S 4 General] tigger69:
I'm on stock I9505XXUGNJ3 Will this work on my phone?

Thx
[Galaxy S 4 General] J.Erik.C:
I have used this method to update to lollipop. Result the phone does the update then starts to boot for the second time. I see the SAMSUNG logo new animation and wait , wait ,wait.

Nothing happens. What can I do?
[Galaxy S 4 General] peppe130:
Wipe data?
[Galaxy S 4 General] J.Erik.C:
Ehm, i am a newbie of this. How do i wipe data. What will happen, i lose all data on my phone?
[Galaxy S 4 General] peppe130:
From recovery.. Yes, you will lose all your data
[Galaxy S 4 General] J.Erik.C:
Ok, not good. Only on the phone i guess. I will remove the SD.

But why did this happen? What did i do wrong?

I followed your steps.

What should I do now, after the Factory Recovery. Update via OTA to lolipop?
[Galaxy S 4 General] peppe130:
This happened due incompatibility between the old firmware and the new one
[Galaxy S 4 General] J.Erik.C:
wipe data , dont work. still new logo not accessing S.O :crying:

- I solved the problem: updating via Odin the same sammobile firmware. It worked after 2 reboots. But i don't think i have root access. I'll check
[Galaxy S 4 General] peppe130:
You won't have root access after flashing via Odin
[Galaxy S 4 General] tigger69:
Which stock kernel do I need, thx
[Galaxy S 4 General] peppe130:
I don't know ????? Tell me your firmware
[Galaxy S 4 General] tigger69:
Which number is my firmware, I thought that number was it
[Galaxy S 4 General] beta3:
My phone is on I9505XXUHOB8

What kernel should I use in step 3 and 7?

3) Download the GNF1 100% stock kernel for I9505 from HERE.

7) Reboot your phone into download mode and flash via Odin your original kernel, matched to the ROM version you are using. You can find HERE a kernel stock collection.
[Galaxy S 4 General] peppe130:
Towelroot is only for KitKat firmwares. It doesn't work on Lollipop
[Galaxy S 4 General] AusShadoX:
I'm having issues with odin always failing to flash the kernel!

Tried 3 different versions of Odin, different usb ports (and different computer!), 3 different usb cords (all official Samsung cords too).

When it fails, the phone is soft bricked, restarting it back into download mode i can flash my stock/original kernel back to recover but i can't flash the GNF1 kernel to root first :(

Phone is an Australian sold I9505 (Optus brand) - I9505XXUGNH6 (same as someone earlier in the thread posted up to get the kernel made, which i use to recover the phone when odin fails).

Any ideas? Knox is still 0x0 after all that, really hoping to root asap (all my datas backed up from my old phone on titanium.....)
[Galaxy S 4 General] peppe130:
Are you using the Odin that I linked in first page? Install also these drivers https://www.dropbox.com/s/sufcswxe2bj3s3w/SAMSUNG_USB_Driver_for_Mobile_Phones.exe?dl=0
[Galaxy S 4 General] Athan:
I have a Samsung Galaxy S4, GT-I9505, with the Build number showing as KOT49H.I9505XXUGNJ3. Using Odin 3.90 (as per the link in the OP) to try to flash Kernel_Stock_GNF1.tar.md5 (also from the OP) results in it rebooting and About > Kernel Version showing "3.4.0-1854187 dpi@SWDD5920 #1 Thu Jun 5 15:49:25 KST 2014", is that correct? I ask because Baseband version and Build Number still show a string with GNJ3 in them and when I then run TowelRoot and tap "make ir ra1n" I get "Please ensure you are connected to the internet". Subsequently following the rest of the OP guide results in running Mobile Odin eliciting no SuperSU prompt, and thus it doesn't get root.

Does Towelroot insist on an internet connection? Wifi doesn't work at this point, and the phone isn't yet unlocked (waiting on the code from Three) to allow me to use my SIM and thus mobile data. Will it start working once that is resolved, or has the flashing of the older kernel somehow gone awry ?

---------- Post added at 06:28 PM ---------- Previous post was at 06:12 PM ----------

Huh, following all the steps again, and this time paying attention as to if WiFi had merely stopped connecting to my AP, and re-entering password for that if needs be, has resulted in it working. I swear on the first attempt I did indeed have WiFi staying greyed out, and the kernel version hasn't changed in 'About' at any point either.

And by working I mean I did the Mobile Odin Knox Removal Script thing, flashed, had a reboot with it going via the recovery, showing Mobile Odin running the script. It then continued the boot, looked like an Android update with it optimising all apps, and now I have a phone showing a SuperSu prompt in the status bar.

---------- Post added at 06:32 PM ---------- Previous post was at 06:28 PM ----------

Except after all that, and updating SuperSU as it asked, my kernel version HAS now changed: "3.4.0-2309103 dpi@SWDD5519 #1 Tue Oct 7 17:32:45 KST 2014"
[Galaxy S 4 General] vouager:
Work this Mehtod with 5.01 ?????
[Galaxy S 4 General] peppe130:
No, only KitKat
[Galaxy S 4 General] nonline:
How about in the future?
[Galaxy S 4 General] peppe130:
Title updated.
[Galaxy S 4 General] filipepro:
Hi!

I manage to root on 4.4.2 and after upgrade to 5.0.1 without losing root using odin mobile.

Now I'm at i9505XXUHOB7 and CSC TPHHOB1 and want to change to i9505XXUOD7 and CSC do MEOHOD2. Is it possible change versions in ODIN mobile and not trip Knox and keep ROOT? Can you explain how should I do?

Will this do the trick?

"You can't upgrade to Lollipop via Odin and then gain root access.. You need to upgrade from Mobile Odin.. Download the firmware, move the tar.md5 on your phone, download the SuperSu zip v2.46 and move it on your phone.. Then in Mobile Odin press on Open file and select the tar.md5. Automatically all fields will be filled out. Just delete Modem fields and put the SuperSu zip in OTA/Update ZIP. Tap on Flash firmware and you are ready "

Thanks
[Galaxy S 4 General] FARIDs:
Thank you
[Galaxy S 4 General] peppe130:
Yes this should work
[Galaxy S 4 General] filipepro:
Read some somewhere that mobile odin doesn't work on lollipop. Is that True? If so how can I do it?

(everoot should be ticked or not?)
[Galaxy S 4 General] peppe130:
EverRoot should not be ticked.. Someone says that Mobile Odin doesn't work on Lollipop but for me worked.. Try at your own risk
[Galaxy S 4 General] filipepro:
Sorry, but one more thing... I'd like to do a data and cache wipe to get a clean startover. Can I thick "Wipe data and cache" on Mobile ODIN and still not losing root?

By the way in further times, what's the correct way do do a wipe without losing root? Is it option on recovery or doing mobile ODIN procedure again?

Thanks again!
[Galaxy S 4 General] peppe130:
To lose root, you should do a wipe /system.. Wipe data doesn't remove root
[Galaxy S 4 General] filipepro:
Hello. I did it and I kept root... A little thing odd is wifi can't turn on. Any suggestions? (I already did a restart).

The Modems fields in Mobile ODIN should be cleared or can leave the modem included on the tar.md5?

Thanks
[Galaxy S 4 General] peppe130:
You have to flash at least the NON-HLOS via Odin
[Galaxy S 4 General] Xanishftw:
Hello. I have Knox bootloader and 4.3 updated. Will your guide work on this? Thanks.
[Galaxy S 4 General] _hito_:
hey [MENTION=5650065]peppe130[/MENTION], thank you very much for the awesome tutorial. I am having a strange problem. Instead of not working wifi I've working wifi but my s4 is not detecting my sim anymore, if I dial *#06# or go to the status from settings it just hangs for some seconds and then restart, I tried to flash I9505XXUHOD7_I9505BTUHOD2_BTU firmware but odin keeps failing, I tried this on Odin 0.34 and 0.39. And I cannot flash any other kernel or modem via odin, my version remains same after odin. I tried this but could not get any luck :(. Any help please or suggestions please. :)

4.4.2 Kitkat.

Baseband version: I9505XXUFNB8
[Galaxy S 4 General] peppe130:
No, this works only on KitKat firmwares

Have you tried using Odin 3.07? Have you tried to change your cable or USB port?
[Galaxy S 4 General] _hito_:
It's not what I supposed. Well it's a shame that I got a Refurbish Model of i9505. On the back side under the battery it says i9505 but actually is sph-l720 :mad:

It's my luck that it's working now and I am using it..

I got fraud by the seller :o

Thanks for your cooperation man, and thanks for the awesome thread :good:

Have a good day. :)
[Galaxy S 4 General] Xanishftw:
Is there any way you know? Thanks
[Galaxy S 4 General] peppe130:
No sorry