yashsingh1/xdaforums huggingface dataset:
[Galaxy S 4 General] NickosG:
So there will be no problem with the device's status or anything else right? Thank you!
[Galaxy S 4 General] peppe130:
Right.. After the flash via Odin, you should wipe your /data partition to clean perfectly the device
[Galaxy S 4 General] NickosG:
Do i have to use any app like the Triangle Away to reset counter in the dowload mode? I'm coming from S3 so many questions :P

---------- Post added at 06:30 PM ---------- Previous post was at 05:30 PM ----------

If i root the device will i have to set device status to official and reset the flash counter with the Triangle Away?
[Galaxy S 4 General] peppe130:
You don't have to use Triangle Away.. It doesn't work on new bootloaders..
[Galaxy S 4 General] NickosG:
And how can we change the status to "official" or change the flash counter to 0?

I'm asking because Ed in early pages said tha ti works fine.
[Galaxy S 4 General] edzamber:
It working only if you are in stock without custom kernel or custom recovery, even with new bootloaders. So flash a stock 4.4.2 Rom, Root with Towelroot and GNF1 Kernel, then flash your Rom kernel équivalent. Then use Triangle away.

If after you flash Philz or any custom recovery, custom kernel, flash counter will be increase to 1.

Edit : to have an official system statut use Wanam xposed (there is an option under security menu ;) )
[Galaxy S 4 General] NickosG:
Where can i find this wanam xposed? do i have to install it? Thank you for your time!

If i unroot the phone and install the official firmware after will the flash counter become 1? (only root without using custom rom and kernerl)
[Galaxy S 4 General] edzamber:
Wanam is an xposed framework module.

Look here

http://xdaforums.com/xposed/modules/app-wanam-xposed-customize-stock-t2383484

Yes no need to unroot before, just flash official firmware, Root then use Triangle away.
[Galaxy S 4 General] NickosG:
I mean if i restore the phone to its original state with flashing the official firmware the counter will turn 1? In this case we can never make it 0 and keep the original firmware.
[Galaxy S 4 General] edzamber:
Counter need to be reseted after flashing official firmware because its not reseted by itself. If your flash counter is now 1 or more before flashing official firmware, it will stay the same after flashing official firmware. So you need to root only with Towelroot and GNF1 Kernel, use Triangle away to reset and flash one more time official firmware if you don't want root anymore. If you want to keep root, just flash same kernel as your official Rom number to have wifi back.

That's it.

So :

1- Flash official firmware

2- Flash GNF1 Kernel

3- Root with Towelroot

4- Use Triangle away

5- Flash same Kernel number Rom to keep root and make wifi back OR Flash one more time official firmeware to unroot and make wifi back.
[Galaxy S 4 General] NickosG:
everything went fine! finally rooted with knox 0X0 and status official! thank you both very much!:)
[Galaxy S 4 General] edzamber:
You're welcome :)
[Galaxy S 4 General] fear_factory84:
Hi, is there a newer firmware version that GNG8 that is worth updating and works with this rooting method?
[Galaxy S 4 General] stratommy:
Does it work with I9515? Same hardware as I9505 but comes to market with stock 4.4.2 instead of 4.2.2 afaik.

Thank you!
[Galaxy S 4 General] peppe130:
All firmwares released until now are compatible with this method

No, it works only with i9505
[Galaxy S 4 General] Aimbot91:
Hi guys:)I am new to Samsung devices and l am getting fail error during flashing process:confused: l getting error that there is no PIT partition:confused:Any help with this error:(
[Galaxy S 4 General] peppe130:
Try to change USB port or cable
[Galaxy S 4 General] Aimbot91:
Ok l will try then l report back
[Galaxy S 4 General] Aimbot91:
After changing USB port everything work fine:)Thanks
[Galaxy S 4 General] peppe130:
Perfect ;)
[Galaxy S 4 General] andreas951207:
Where do i get the 100% stock kernel for I9506? From Sammobile?
[Galaxy S 4 General] peppe130:
Yes from SamMobile.. Don't flash these kernels otherwise you will brick your device
[Galaxy S 4 General] andreas951207:
Do i have to download an older firmware version? I have 5.0.1 can i download 4.4.2 without tripping knox?
[Galaxy S 4 General] peppe130:
You can't downgrade
[Galaxy S 4 General] andreas951207:
So i am not able to use the guide in this thread?
[Galaxy S 4 General] peppe130:
I think no..
[Galaxy S 4 General] andreas951207:
Okay thanks :)
[Galaxy S 4 General] buick1356:
Thanks a lot.but it's time to flash a custom recovery and knox 0x0.how do that?
[Galaxy S 4 General] peppe130:
You can't flash a custom recovery without tripping Knox.. Give a look to my signature
[Galaxy S 4 General] mor_1228:
my version is this so stock kernel is not available :

---------- Post added at 11:45 AM ---------- Previous post was at 11:14 AM ----------

i have stock rom of my version and with 7zip i got these files. so is there any way to get stock kernel from it as its not available in ur list.

oops i posted in 9505 thread. is there any similar way for 9500 ? so that i dont trip knox.
[Galaxy S 4 General] peppe130:
I don't know.. Give a look into i9500's section
[Galaxy S 4 General] mor_1228:
can i sue Knox Removal Script from HERE for 9500 ?
[Galaxy S 4 General] peppe130:
You have to change mount points in updater-script.. By the way I don't know if Mobile Odin is compatible with the S4 i9500 variant
[Galaxy S 4 General] khsh97:
When I try to flash gnf1 kernel or gnh7 kernel, the process get failed and I get a message "firmware upgrade encountered issue. select recovery mode in kies". However, when I flash my firmware i9505xxugnh7, It get flashed successfully. I am using windows 7 and odin v3.09 and I have flashed i9505xxugnh7 firmware successfully but when I try to flash kernel only, the flash get fail. What dhould I do now?

Also, can I delete those knox apps and data which are mentioned in updater sctipt using root explorer when I get root access(If the damn kernel flash successfully).
[Galaxy S 4 General] khsh97:
I can flash the whole fitmware on the same usb port and same usb cable but flashing kernel always fail. And I don't like to flash whole firmware again if the kernel flash fail.

Going to try the other usb ports and samsung dous usb cable and will tell you the results.
[Galaxy S 4 General] peppe130:
Try also Odin 3.07
[Galaxy S 4 General] HorusEyE:
I've just read the first post about the 15 steps way to get root access but I still have a few question before doing anything to my phone.

My phone has the following descriptions:

Model Number:

GT-I9505

Android Version:

4.4.2

Baseband version:

I9505XXUGNG8

Kernel Version

3.4.0-2309103dpi@WDD5606 #1 Wed Jul 23 19:12:00 KST 2014

Build Number:

KOT49H.I9505XXUGNG8

SE for Android status

Enforcing

SEPF_GT-I9505_4.4.2_0032

Mon Oct 13 03:51:24 2014

Secure boot satus

Type: Samsung

Security software version

MDF v1.0 Release 2

That said, I need to know if the kernel in step 3 - 3) Download the GNF1 100% stock kernel for I9505 from HERE. - is suitable for my phone or if it depends on the version of my phone/actual kernel/or any other configuration!

Also want to make sure that the suggested "original kernel" kernel_Stock_GNG8.tar.md5 file, in step 7, is the correct one for my case - I9505XXUGNG8 - ???
[Galaxy S 4 General] peppe130:
Alright.. You can proceed bro :)
[Galaxy S 4 General] HorusEyE:
I'm in the Step 6, but towelroot app is not doing anything after I click "make it rain" and it is saying "Please ensure you're connected to the internet" but in step 5 says that after installing GNF1, wireelss won't work!!

What now?

Edited;

Also got a pop up window from Samsung (i guess) telling me to reboot the phone because unauthorized actions were taken and with a reboot they will be set back or something like this!!!
[Galaxy S 4 General] peppe130:
You have to enable Mobile Data (3G)
[Galaxy S 4 General] HorusEyE:
I've edited my last post...

Also got apop up window. Please check again last post... I have no 3G at this moment! No other way to do it?

Can I undo things util I have 3G available? Will knox flag turn 0x01?
[Galaxy S 4 General] peppe130:
Flash your GNG8 stock kernel.. Knox won't ever trip by flashing official stuff
[Galaxy S 4 General] HorusEyE:
Hi agian...

Does these tools like Odin works under linux via Wine? Or there are any replacement tools that I can use?
[Galaxy S 4 General] peppe130:
There is an Odin version written in Java for Linux systems.. I prefer the Windows version, is safer
[Galaxy S 4 General] HorusEyE:
I have Windows 8.1 installed on a VirtualBox machine but I can't make my SGS to be detected under VirtualBox.

Edited;

I can't either make my SGS to be detercted by the Java version of Odin.

---------- Post added at 07:28 PM ---------- Previous post was at 06:52 PM ----------

Well, I made things in a Windows laptop...

Is it mandatory to install mobile Odin from PlayStore? Do I have to pay for the application?
[Galaxy S 4 General] peppe130:
You should pay.............
[Galaxy S 4 General] HorusEyE:
Ok, I can pay...

But for now I have installed Lite version and also MobileODIN_FlashKernel_I9505-v7.0.zip because I have Android 4.4.2 but when I start Mobile Odin, a window pops up saying that:

What should I do?
[Galaxy S 4 General] peppe130:
Ignore that message.. Check pm box
[Galaxy S 4 General] HorusEyE:
Ok, I have ignored the message.

The tutorial says to ticj "Enable EverRoot" and "Inject SuperUser". By default "Inject Mobile Odin" is also ticked... Should I leave it ticked or remove it?
[Galaxy S 4 General] peppe130:
You have to tick them.. leave them ticked
[Galaxy S 4 General] HorusEyE:
Ok, I'm in the last step of the tutorial but I have to wait to let my phone charge up over 50% to click the "Flash Firmware" button...

Thanks for all the guidance you gave me...

I'll donate a couple of bucks to you tomorrow if knox is still at 0x00! heheh

Thanks and great job!
[Galaxy S 4 General] peppe130:
If you have 20-30% of battery, you can proceed :)
[Galaxy S 4 General] HorusEyE:
Ok, I think everything went good... I'm going to check now the KNOX flag!

Edited;

KNOX flag 0x00...

I can now use SuperSU, right?
[Galaxy S 4 General] peppe130:
Let me know :)
[Galaxy S 4 General] HorusEyE:
Everything's done... KNOX 0x00.

But looks like SuperSU is hanging in the first time I run it when it is searching for APPS and LOGS... It's like busy for ever!

Edited;

Ok, somehow the application just stopped working. Then I restarted it and now it's working and it has a pop up window saying:

I should pick the "Normal" option, right?
[Galaxy S 4 General] peppe130:
Yes always "Normal"
[Galaxy S 4 General] HorusEyE:
Looks like everything is great now!
[Galaxy S 4 General] khsh97:
I tried the other usb ports but flash failed. I tried the previous usb port and the kernel flashed successfully. Instead of using mobile odin, I deleted all those app and data using root explorer. wipe dalvik cache using titanium backup and wiped cache partition using recovery. Then I flashed my firmware kernel GNH7 and it flashed successfully. I have now root access with knox 0x0. Thanks Peppe130...!!!

One odd thing is that my device status says "official". Is it due to I didn't used mobile odin to flash knox removal script?
[Galaxy S 4 General] HorusEyE:
Isn't it due to flashing back the original ROM, assuming you did it?
[Galaxy S 4 General] peppe130:
I don't know.. Also my status is Official and I have a custom kernel and a custom recovery.. Boh
[Galaxy S 4 General] HorusEyE:
Hi once more...

Today I got the following message:

I have never got this message... Was it due to rooting my phone?
[Galaxy S 4 General] peppe130:
Hi :) Is a simple message.. It's not due to root ;)
[Galaxy S 4 General] HorusEyE:
Good to know!

And after rooting the phone, will I still get the official updates automatically? Or is that over?
[Galaxy S 4 General] peppe130:
You need to update via Odin or Mobile Odin ;)
[Galaxy S 4 General] HorusEyE:
And is the root process reversible??? If so, I could revert it every now and then to check if any official updates were released!!! Because I'm affraid of tripping the knox flag if I update via Odin or Mobile Odin!
[Galaxy S 4 General] peppe130:
Who told that flashing via Odin or Mobile Odin trips Knox?
[Galaxy S 4 General] HorusEyE:
So, how do I check for official updates and how do I actually install them? Where do I download official ROMs? Or what does trips knox??? I thought It was to flash ROMs that would trip the knox flag!
[Galaxy S 4 General] peppe130:
If you want to keep Knox 0x0, you must not flash custom kernels or custom recoveries.. You can flash only stock firmwares via Odin/Mobile Odin or other stock stuff
[Galaxy S 4 General] HorusEyE:
Ok...

So if I want any official ROM, the place to go is Sammobile, right?
[Galaxy S 4 General] peppe130:
Yes, right.. SamMobile is the way
[Galaxy S 4 General] HorusEyE:
When a perform a search for my phone's model, 2 results comes up:

Galaxy S4 LTE (GT-I9505)

and

GT-I9505 (Galaxy S4 LTE)

they are exactly the same, right?
[Galaxy S 4 General] peppe130:
Yes are the same
[Galaxy S 4 General] Hhunted:
Upgraded to lolipop, looking forward to a workaround like this to work on Lolipop.
[Galaxy S 4 General] peppe130:
And you lost root access?
[Galaxy S 4 General] Hhunted:
Yeah, I lost root access. Maybe it was me doing something in Odin that caused it, not sure.

I used this method http://xdaforums.com/galaxy-s4/general/i9505xxuhoa7-odin-files-100-t3043983 to gain root without tripping knox. My device is supplied by my work and I can't take the risk of loosing the warranty due to knox being tripped.

Now I can't use Titanium backup to restore my phone and apps and history, so it's a slight pain in the behind.
[Galaxy S 4 General] peppe130:
You have also updated the bootloader?
[Galaxy S 4 General] Hhunted:
I presume so. To be honest I loaded everything as the guide advised except for the Pit file.
[Galaxy S 4 General] peppe130:
So now you can't gain root access without tripping Knox..
[Galaxy S 4 General] Wacko:
So its possible to update a rooted Kk to lp without losing root access, by not flashing the bootloader?
[Galaxy S 4 General] peppe130:
Just flash AP, kernel and SuperSU v2.46 via MobileOdin..
[Galaxy S 4 General] tonyeliza01:
Has anyone tested this to see if it works? I followed your excellent guide peppe130 on rooting i9505 without tripping knox. I have Goldfinger installed at moment. I would like to try out Lollipop but want to make sure I don't lose root or trip knox. Peppe130 could you explain what to do in Mobile Odin? For example where do I put the AP file? Do I put it in OTA/Update Zip in MObile Odin? Kernel I guess goes in Kernel in Mobile Odin. Do I not select Inject Superuser option in Mobile Odin instead of flashing SuperSU v2.46?
[Galaxy S 4 General] peppe130:
Don't worry.. My tester will try this procedure.. By the way, if you don't upgrade the bootloader, you can always downgrade to KitKat
[Galaxy S 4 General] Hhunted:
I wish I wasn't so impatient to try LP. At the same time I like LP more than KK.
[Galaxy S 4 General] Amon Rama:
Hi, I am a complete noob to android. I want to root my Galaxy S4 i9505 Black Edition without knocking the knox counter or anything. Altough I live in Europe and we're technicly allowed to root and maintain warranty.

I run now stock 5.0.1 lollipop.

So please someone just reply witha link to a good tutorial that will keep the knox counter in place and all fine. Don't tell me to search, I'm not really good at it. i barely found this thread. Thank you for your udnerstanding.

While I was on iOS I was using jailbreak, and on Symbian I was using CFWs.
[Galaxy S 4 General] peppe130:
Hi, what bootloader do you have? By the way there isn't a way to gain root access directly on Lollipop
[Galaxy S 4 General] Amon Rama:
It's all stock. I bought it new from a store one week ago with 4.4.2 and updated it to Lollipop.
[Galaxy S 4 General] peppe130:
Please install this app https://play.google.com/store/apps/details?id=com.electricsheep.asi , go to System > Build Info and send me a screenshot
[Galaxy S 4 General] Amon Rama:
I sent you a PM with the screenshot.
[Galaxy S 4 General] peppe130:
Unfortunately you can't gain root access without tripping Knox since you have the Lollipop bootloader
[Galaxy S 4 General] Amon Rama:
Ok, thanks for your help. Please let me now if in the future a solution becomes avaible.
[Galaxy S 4 General] au.windroid:
thanks 4 sharing................
[Galaxy S 4 General] egi70:
Hi Peppe, I am on stock XXUGNK4 rooted with Knox 0x0. I am thinking to flash I9505XXUHOB7 and then root with your method. Where do I find the stock kernel for HOB7? Will that trigger Knox to 1?

Thanks!
[Galaxy S 4 General] peppe130:
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 ;)
[Galaxy S 4 General] peppe130:
In this way the bootloader won't be flashed and your can downgrade to KitKat whenever you want
[Galaxy S 4 General] peppe130:
[MENTION=535343]all[/MENTION] don't use KitKat kernels on Lollipop. They aren't compatible and furthermore Towelroot doesn't work on Lollipop.
[Galaxy S 4 General] egi70:
Quick, smooth and smart ;)! Grazie!
[Galaxy S 4 General] peppe130:
Nothing! One more thing.. After you flashed the firmware, you will need to flash the Modem and the NON-HLOS via Odin PC :)
[Galaxy S 4 General] egi70:
..sorry, I am a bit lost here...:( If I download (ongoing now) the HOB7 from Sammobile, I will have only one file. Where do I retrieve the "modem" part only? What is NON-HLOS and where do I find it? thanks
[Galaxy S 4 General] peppe130:
Yes sorry.. You have to extract the tar.md5 file. You can use 7Zip on Windows. Obviously extract the tar.md5 file once you have copied it on your phone
[Galaxy S 4 General] theodroid:
Root with Lollipop without tripping Knox counter

Hi. I am currently using the NG8 firmware (not rooted) on my S4 but yesterday Android asked me for the OB7 Lollipop firmware. :D

I would like to install the update but I wonder if I could root my S4 later, with Lollipop, without tripping the Knox counter (because I don’t want lose the warranty).

Does this method (Towelroot) is compatible with Android 5.0 and more ? :confused:

If it will work with Lollipop, where can I find the OB7 stock kernel ?

And if I don't like Lollipop, can I go back to KitKat ?

Thanks in advance!:good: Sorry if my english is bad, it’s because I’m speaking french…
[Galaxy S 4 General] peppe130:
Read the last two pages :)
[Galaxy S 4 General] theodroid:
Thanks for your answer. So if I understand, I need to upgrade via Mobile Odin app (not from Settings > About device > Software Update) by moving the firmware tar.md5 file and SuperSU zip on the phone. After this, I need to open the tar.md5 file (firmware) in Mobile Odin, then I need to delete the Modem field and put the SuperSU zip in OTA/Update Zip. Finally, I press Flash firmware button. :)

By using this method, I will be able to have Lollipop rooted without tripping Knox counter and be able to downgrade to KitKat ? :confused: :D
[Galaxy S 4 General] anonlee123:
Hi, will the knox removal script work on 5.0.1?

Any steps for these?

Thanks
[Galaxy S 4 General] jasperx:
Hi folks, just want to double check a few things before I flash lolipop.

I'm currently running stock 4.4.2 GNG8 with root thanks to this guide. I'm pretty sure I've done steps 1-8 ages ago although I can't say I remember steps 9-15 being there at the time (half a year back?) :confused:

I'd like to upgrade to 5.0.1 using this method in order to keep knox at 0x0.

Download mode shows Binary as Samsung Official, System status Official, kernel lock 0x0 and warranty 0x0, write protection and eMMC burst mode both enabled.

I downloaded Mobile Odin Pro 4.20 but it shows up a warning saying:

BOOTLOADERS: Using mobile ODIN on Android 4.3+, also requires you to be using correct bootloaders for the firmware you're flashing, or it will likely result in (soft-)bricks.

I'm guessing this implies ambasadii's bootloader for the OB7 firmware? Or should I be running a special bootloader already for 4.4.2? Afaik I'm not using any bootloaders at this time, I got suckered into downloading GNG8 OTA and lost my (towel)root so I downgraded, towelrooted again and reflashed the stock GNG8 kernel back. Never did anything else. Then it says:

IMPORTANT: Using Mobile ODIN on this device will void your warranty, as the KNOX counter will be triggered. This is not reversible! Mobile ODIN also requires the reactivation lock to be turned off.

Is this just a warning that pops up the first time you run it and safe to ignore or should I take a step back and look at what I'm doing wrong? In the case I can ignore it (I don't plan on installing any custom roms), do I have to finish steps 9-15 in this guide or can I just go flash 5.0.1 with everroot enabled from here?
[Galaxy S 4 General] peppe130:
Yes you got it ;) You can remove the tick from EverRoot options

Yes it could work but no one has tested Mobile Odin on Lollipop

You can ignore that message and you don't need to do all steps.. Disable EverRoot
[Galaxy S 4 General] egi70:
Do you mean that after flashing firmware +su with mobile odin i need:

a. Extract directly on my phone with 7zip the 2 files: modem.bin and NON-HLOS.bin.

b. Flash with Odin PC the 2 .bin files:confused:

But in (b) shall the 2 files be converted first in .tar.md5 before flashing?

Moreover if i use Odin PC in step (a) why the 2 .bin files should be extracted in my phone?. .it does not make any sense to me..

Has all this new procedure been tested to not trigger the knox flag?

Thanks
[Galaxy S 4 General] peppe130:
The firmware need to be extracted on your PC and then you have to put the two bin files in PHONE filed in Odin. Flash them one at a time. Know will not be triggered since we are flashing official stuffs
[Galaxy S 4 General] jasperx:
Thanks for the reassurance on MOP but now you have me confused even further. I was under the impression that EverRoot was the only way to get root going from 4.4.2->5.0.1 and to keep knox at 0x0 (as per Tyxerakias' instructions here). Wouldn't disabling it during the flash just give me 5.0.1 without root (and not able to downgrade since I'd use the OB7 bootloader provided in that guide)?

Btw, I have the OTA ob7 upgrade from my carrier ready to install on my phone. Can I just install that directly and get prompted to add SuperSU (newer versions of mop should kick in automatically during the installation right?) or do I have to redownload the .tar.md5 from sammobile and copy it to an external sd card along with UPDATE-SuperSU-v2.46.zip?

Many thanks!
[Galaxy S 4 General] peppe130:
You have to download the firnware from SamMobile.. And you have to put the SuperSu zip into OTA/Update ZIP in MOP. Just this
[Galaxy S 4 General] jasperx:
Alright thank you. So basically Mobile Odin Pro is not needed then? The guide says you need to check EverRoot during the flash (a pro feature), you're saying not to - implying that one doesn't need the pro version in order to keep root when upgrading to lolipop?

Sorry for all the questions, I've been reading numerous threads over the last few days and when I finally thought I was ready to flash I'm coming across opposing instructions lol.

Thanks again :good:
[Galaxy S 4 General] peppe130:
You can't flash without Pro version..
[Galaxy S 4 General] jasperx:
Ahh okay now it makes sense haha. Learning things as I go, I'm a noob xD Wish me luck :D