yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy S7 Edge (Exynos) ROMs, Kernels, Rec] lowrider82:
Unless you install the security patch no matter how many reboots you make 1 or 1000 you won't have issues...

I hope chainfire or someone from the community can give us a hand assp as I'm not keen on reinstalling, and as soon as the next firmware update is released(pretty soon that is) everyone will be on the same boat as these new protocols will be integrated :(
[Samsung Galaxy S7 Edge (Exynos) ROMs, Kernels, Rec] lowrider82:
Looking around other forums there still is no solution. Make sure you turn off policy updates to avoid issues!
[Samsung Galaxy S7 Edge (Exynos) ROMs, Kernels, Rec] Provinomico:
Same thing here, I lost root this morning, tried re-flashing a couple of times before coming here for info.

I had flashed it with Odin, and used Flashify to install Xposed, as I also didn't want to go through all the decryption / dm-verity thing.

So, from the last pages I've read, there's no way to gain root again without reflashing the stock ROM and configure the phone from scratch, right? I think I will wait for a few days, hope it can be fixed somehow....
[Samsung Galaxy S7 Edge (Exynos) ROMs, Kernels, Rec] Galactus:
As I discovered from testing, you do not need to decrypt data or flash dm verity.

TWRP installs steps are basically saying YOU MUST ROOT OR FLASH DM VERITY or the phone won't boot properly. Mods can be flashed from an external sd card or ADB push. I am encrypted but I use TWRP to flash mods.

SOME have had better success flashing from TWRP compared to flashing with FlashFire or Flashify
[Samsung Galaxy S7 Edge (Exynos) ROMs, Kernels, Rec] Provinomico:
I had read that, but what difference makes flashing the package from TWRP, than loading it from Odin? the security policy update was related to the recovery image? I might give it a try later tonight, thanks for pointing it out! Did you go encrypted again?

Edit: I installed TWRP and then flashed the supersu package, it didn't work. It showed 'zip installed successfully' when it ended, I rebooted, but then again "superSu couldn't find the su binaries". That's weird, huh? it didn't install, but the phone could boot, something that was stated clearly that wouldn't happened if you flashed TWRP unless you rooted the phone or do the wipping/dm-verity thingy.
[Samsung Galaxy S7 Edge (Exynos) ROMs, Kernels, Rec] Galactus:
I am still encrypted yes. As far as I know, the first time you flash SuperSU it disables the dm verity thing anyway. You don't need to do both. The guide doesn't point it out but it is basically saying:

Do you want Root? If yes then flash SuperSU and you are done. If no then flash dm verity and encryption disabler and you are done.

The guide also assumes that a lot of people don't want encryption, which I most certainly do,. So yeah, your flash failed but because you had root before, the whole issue with dm verity was sorted anyway.
[Samsung Galaxy S7 Edge (Exynos) ROMs, Kernels, Rec] Provinomico:
So, after changing recovery to TWRP it keeps booting because I had it rooted previously, and whatever modifications were made that are needed in the boot process are still there... I suppose it makes sense.

Returning to the original question, there's no way to regain root once the security policy got updated, without reflashing the ROM and starting again from scratch, right? I will wait a bit to see if somebody figures out what changed with the update...
[Samsung Galaxy S7 Edge (Exynos) ROMs, Kernels, Rec] Galactus:
Not sure. There are roughly three threads scattered on the S7 and S7 Edge forums. Each have some people who lose root and can simply reflash and they are rooted again. Others like yourself and like what I had before, could not get root regardless of what we did, unless we wipe the ROM
[Samsung Galaxy S7 Edge (Exynos) ROMs, Kernels, Rec] lowrider82:
Chainfireeee we are in dire need of your awesomeness! :)
[Samsung Galaxy S7 Edge (Exynos) ROMs, Kernels, Rec] koolkeith:
I lost root and flashed the latest beta of SuperSU.zip in TWRP and got root back again. So it worked for me atleast.
[Samsung Galaxy S7 Edge (Exynos) ROMs, Kernels, Rec] Chainfire:
Please try out this SuperSU ZIP and see if it restores root (regardless of security patch):

RC-SuperSU-v2.73-20160517124156.zip

DO NOT REPOST THAT LINK PLEASE
[Samsung Galaxy S7 Edge (Exynos) ROMs, Kernels, Rec] ratsalad:
Sorry for the noob question here, but how do I install this with stock recovery and a security policy disabled SU?
[Samsung Galaxy S7 Edge (Exynos) ROMs, Kernels, Rec] Chainfire:
You can't, you need to use TWRP.

I'll update the CF-Auto-Root's only when I know the ZIP works.
[Samsung Galaxy S7 Edge (Exynos) ROMs, Kernels, Rec] ratsalad:
Okay, thanks CF, appreciate the reply :)
[Samsung Galaxy S7 Edge (Exynos) ROMs, Kernels, Rec] lowrider82:
Which beta is that? With beta 2.73 i confirm it doesn't work

---------- Post added at 03:51 PM ---------- Previous post was at 03:05 PM ----------

Hi cf.. I just flashed the file You shared through twrp and it didn't restore root for me
[Samsung Galaxy S7 Edge (Exynos) ROMs, Kernels, Rec] Chainfire:
I need TWRP's /tmp/recovery.log file to be able to diagnose at all.
[Samsung Galaxy S7 Edge (Exynos) ROMs, Kernels, Rec] lowrider82:
Excuse my ignorance, where exactly do I find the file? Then I can send to you
[Samsung Galaxy S7 Edge (Exynos) ROMs, Kernels, Rec] snej81:
Not sure if this below post from the Q&A subforum already have been posted in this thread, but if correct it is very useful to help find out which security protocol you are running. A bit strange English though ;)

http://xdaforums.com/showpost.php?p=66894821&postcount=45
[Samsung Galaxy S7 Edge (Exynos) ROMs, Kernels, Rec] Chainfire:
It hasn't been posted and it's also not really relevant.
[Samsung Galaxy S7 Edge (Exynos) ROMs, Kernels, Rec] lowrider82:
Yep indeed, i have the problematic numbered protocol
[Samsung Galaxy S7 Edge (Exynos) ROMs, Kernels, Rec] snej81:
Thanks for your reply. I have confirmed to be running the ``old´´ security protocol, so my thought was that if i disabled automatic updates of the policy, I would be good to go (as long as disabled)?
[Samsung Galaxy S7 Edge (Exynos) ROMs, Kernels, Rec] Chainfire:
You'd think so, but I have seen at least one person comment that they got the policy update even when these updates were disabled.

However, half of the things people say here should be taken with a bucket of salt.

If you're rooted disabling these updates is a smart thing to do, regardless of which version you were running. That's why I say the number you are running isn't really relevant. If you haven't hit the issue, disable the update, if you have, it's no longer going to help.
[Samsung Galaxy S7 Edge (Exynos) ROMs, Kernels, Rec] snej81:
I am not rooted and have been wondering if I dare to root now when this protocol are messing things up, not sure which protocol I was running from the beginning. If I already had the new `bad´´ protocol, I was not sure the CF-autoroot would work at all. Now I at least know which protocoll I have, so I guess i´ll at least give it a go and hope for the best :good:

Thanks again for your replies!
[Samsung Galaxy S7 Edge (Exynos) ROMs, Kernels, Rec] koolkeith:
It was 2.72.
[Samsung Galaxy S7 Edge (Exynos) ROMs, Kernels, Rec] pd56:
I lost root. I got back after nan restore, disable automatic updates and no problem.

I wanted to try the RC-SuperSU-v2.73-20160517124156.zip, flashed with TW and open again auto updates, my phone working ok and i have not lost root since 7 hours now with multi reboots.
[Samsung Galaxy S7 Edge (Exynos) ROMs, Kernels, Rec] Provinomico:
I just tried 2.73 BETA with no luck, I've attached the recovery.log file, hope it helps! :)
[Samsung Galaxy S7 Edge (Exynos) ROMs, Kernels, Rec] Chainfire:
You managed to lose the backup of the stock boot image. You will need to flash this back before you can re-root with SuperSU v2.73.
[Samsung Galaxy S7 Edge (Exynos) ROMs, Kernels, Rec] Provinomico:
That was a quick answer! I don't recall doing anything that could have resulted in losing the backup. What I did to root the phone was flashing CF-Autoroot with Odin, to install Flashify and xposed. But then again, the ROM was operator branded so maybe the backup wasn't present from the beginning?

Anyway, what do I have to do to get back the backup? flashing the boot.img from the original firmware with Odin will do?

Thanks for your help!
[Samsung Galaxy S7 Edge (Exynos) ROMs, Kernels, Rec] Fevax:
Doesn't work for me too, i will flash stock bootimage and let you know :)
[Samsung Galaxy S7 Edge (Exynos) ROMs, Kernels, Rec] AnGrY sCoTsMaN:
[MENTION=7253997]Guardian of the Galaxy S5[/MENTION] really! Why are you posting this sh#t here when you already have your own thread in the guides section. It's not even relevant to cf auto root.
[Samsung Galaxy S7 Edge (Exynos) ROMs, Kernels, Rec] Chainfire:
Your post is considered spam because:

- it's not about CF-Auto-Root or even SuperSU, and as such off-topic for this thread

- it's not a solution in reply to someone posting a problem

- it's advertising a service that already has its own thread

That doesn't mean your service or your contributions aren't welcome on XDA, they just have no place in this thread.

Posts like yours clutter up threads and actually make it harder for people to find the answers they are looking for. With over 5 millions users, if everybody did this, every single thread would become unreadable, and we might as well close XDA.

Please, do not try to argue this - it would only take the thread further off-topic, and it will not change the outcome - just follow the rules as they are.
[Samsung Galaxy S7 Edge (Exynos) ROMs, Kernels, Rec] lowrider82:
How to flash stock boot.img without reflashing the whole rom?can anyone advise?
[Samsung Galaxy S7 Edge (Exynos) ROMs, Kernels, Rec] cm2003:
Hello.

First of I want to tell you, that your work and support is really highly appreciate. Although it's my first android experience since my s5 about two years ago, I remember that I've used cf auto root also back then.

I'd like to root my s7 edge now too.

Currently I've got the most recent firmware installed with the new security patch.

At the current state, is it possible to root my device? Or do I have to wait for a new version, which afaik you are working on already.

Any advice would be great!

Cheers Andre

Gesendet von meinem SM-G935F mit Tapatalk
[Samsung Galaxy S7 Edge (Exynos) ROMs, Kernels, Rec] bsm123:
Hi, I just used CF-autoroot and rooted my s7 edge. Everything went fine initially and Rootchecker showed rooted. SuperSU also worked fine. I used Rom Toolbox to remove my system installed Whatsapp so i could install TBO whatsapp. Had some separate problems with that due to version issues. But now, when i use root checker, it shows no access. Also SuperSU suddenly wont startup. It says SU binary not found, SuperSU cannot start and that I have to manually re-root. Does this mean that my phone got un-rooted? Was it because of removing the system installed whatsapp that the SU binary got removed as well?

On a separate note, a lot of apps couldnt open after i initially rooted, but i just un-installed them and re-installed and they were fine. However iFlix still has an error whereby it won't let me play any videos. I read that it probably doesnt work on rooted devices. Just wondering if RootCloak or HideMyRoot would work for me? I don't want those apps to mess up my phone if they're not stable or might cause bootloops and stuff.

Please help.

Thanks
[Samsung Galaxy S7 Edge (Exynos) ROMs, Kernels, Rec] --Yo--:
Edited, sorry for not reading 2 pages back.

---------- Post added at 09:17 AM ---------- Previous post was at 09:12 AM ----------

Ups, just found a thread stating that there was a "ninja" update we didn't see or approve which removed root from all our devices, wtf!
[Samsung Galaxy S7 Edge (Exynos) ROMs, Kernels, Rec] lowrider82:
No solution yet :( trying to figure out the stock boot.img part but doesn't look like this solves it either
[Samsung Galaxy S7 Edge (Exynos) ROMs, Kernels, Rec] Fevax:
[MENTION=631273]Chainfire[/MENTION] With stock boot.img, SuperSU 2.73 works great again... Tnks!
[Samsung Galaxy S7 Edge (Exynos) ROMs, Kernels, Rec] thek4jjj:
Thanks, phone did freeze at one point and I thought it bricked, simply held the volume, home and power button together and then the reboot brought it back to life fully rooted. Appreciate the forum :good:
[Samsung Galaxy S7 Edge (Exynos) ROMs, Kernels, Rec] lowrider82:
Hi Fevax, can you advise what you did to reflash stock boot.img?where did you get it from and how did you flash it?
[Samsung Galaxy S7 Edge (Exynos) ROMs, Kernels, Rec] Provinomico:
Yeah, that'd be great, I've been trying to download the complete stock rom from sammobile to extract the boot image, but it's painfully slow and the download gets interrupted. Glad to hear it gets fixed, and I wonder if flashing CF-autoroot with Odin would also restore root without having to use TWRP.
[Samsung Galaxy S7 Edge (Exynos) ROMs, Kernels, Rec] Fevax:
I download the last firm using SamFirm, with nature binary... extract, you get 5 files, take the AP and extract again (7zip) make the md5 from boot.img and flash with odin...

Easy/Lazy way: THIS is the boot.tar.md5 from APD1 firmware, just download it and flash it with odin... :)
[Samsung Galaxy S7 Edge (Exynos) ROMs, Kernels, Rec] kittiyut:
This is awesome! Many thanks for the link!

I did managed to download the whole ROM from SamMobile - it took over a day! - extracted and got the 5 files, but wouldn't know how to proceed to get the boot.img (despite the suggestion). Thanks again.

I do have 3 questions, however:

1. Does it matter that the downloaded boot.tar.md5 is different from my Asian APD1 firmware?

2. Where do I put the .md5 file in ODIN, in PDA?

3. And then redo the CF-Auto Root via ODIN?

Cheers!
[Samsung Galaxy S7 Edge (Exynos) ROMs, Kernels, Rec] koba:
Is there a Chance to get Knox 0x0 in Future?

Gesendet von meinem SM-G935F mit Tapatalk
[Samsung Galaxy S7 Edge (Exynos) ROMs, Kernels, Rec] bsm123:
Back to my problem which I had losing root. Shouldnt the apps that don't work with rooted phones, work now that I lost root? going to try to reflash cf auto-root again when I get home and try. Its safe to reflash over right? I've also disabled the security policies as some mentioned before. I think that's probably how I lost my root.
[Samsung Galaxy S7 Edge (Exynos) ROMs, Kernels, Rec] Fevax:
1- if is APD1 firm i think will work...

2- yeap

3- flash SuperSU 2.7 from twrp :)
[Samsung Galaxy S7 Edge (Exynos) ROMs, Kernels, Rec] kittiyut:
Thanks, but I don't have TWRP :(

Darn it!
[Samsung Galaxy S7 Edge (Exynos) ROMs, Kernels, Rec] lowrider82:
Million thanks. Is it possible to flash this also from twrp or has to he odin?
[Samsung Galaxy S7 Edge (Exynos) ROMs, Kernels, Rec] Fevax:
that boot.tar.md5 is for odin
[Samsung Galaxy S7 Edge (Exynos) ROMs, Kernels, Rec] lowrider82:
Got it thanks. It's just I don't have access to my pc right now for odin and was hoping to do just using the phone since I have twrp.
[Samsung Galaxy S7 Edge (Exynos) ROMs, Kernels, Rec] Kapitein187:
I had an annoying Samsung screen on every startup, asking for approval for some kind of smart sharing option (upto 1gig files sharing blabla). Kept canceling but it returned after every start up. So i accepted...

Right after that I lost my root.....
[Samsung Galaxy S7 Edge (Exynos) ROMs, Kernels, Rec] Provinomico:
If you have TWRP be sure to make a backup of the boot partition first, it saved me. I flashed the boot image that Fevax posted and got a boot-loop. I also tried the boot image extracted from a complete stock ROM that finally got downloaded from some site, and also a boot-loop. I'll have to dig deeper into this when I return from work today...

Anyway thanks to Fervax for posting the image!
[Samsung Galaxy S7 Edge (Exynos) ROMs, Kernels, Rec] Fevax:
you will get a bootloop if you don't flash the SuperSU again... just press vol - and pwr, and go quickly to recovery (cmon, just like when you flash twrp) and flash supersu, that does the magic :P
[Samsung Galaxy S7 Edge (Exynos) ROMs, Kernels, Rec] Provinomico:
Hadn't thought about it, I just tried to quickly flash it after waking up this morning :p

Still, why wouldn't it boot? because I have a custom recovery? If i had also flashed the original stock recovery would have booted?
[Samsung Galaxy S7 Edge (Exynos) ROMs, Kernels, Rec] lowrider82:
Does it matter what country rom that boot.img was extracted from?
[Samsung Galaxy S7 Edge (Exynos) ROMs, Kernels, Rec] bsm123:
Well reflashing auto-root didn't work. Still unrooted. Any idea why those apps That require unroot arent working? Feel like flashing back stock and rooting again
[Samsung Galaxy S7 Edge (Exynos) ROMs, Kernels, Rec] vvv1vvv:
Thank you very much. It worked for me. First I flashed with Odin TWRP 3.0.2-0 then, i used TWRP for the .zip you provided.

Root is back after the security patch.

Cheers!
[Samsung Galaxy S7 Edge (Exynos) ROMs, Kernels, Rec] plopingo:
Everything fine, OEM unlock / usb debuging enable but when I try to flash after the reboot I don't have supersu and I'm not root. Any idea ?

(I'm not using a custom recovery)
[Samsung Galaxy S7 Edge (Exynos) ROMs, Kernels, Rec] akirainblack:
This has also started happening to me.

I had root, then found I'd lost it for some reason.

Checked USB Debugging and OEM Unlock were enabled.

Rebooted into download and flashed autoroot via Odin.

All appeared to go as normal uncluding the notice at the top of the screen about SELinux but I didn't gain root.

SM-G935F on the latest version of the BTU ROM. (G935FXXU1APD3/G935FBTU1APD3/G935FXXU1APD1/G935FXXU1APD3)

Redownloaded the latest autoroot for the phone and attempted again with the same result.
[Samsung Galaxy S7 Edge (Exynos) ROMs, Kernels, Rec] plopingo:
I think samsung patch something because I lost root like you I don't know how

We need to use custom TWRP now I think
[Samsung Galaxy S7 Edge (Exynos) ROMs, Kernels, Rec] lowrider82:
Please read the last few posts before you post
[Samsung Galaxy S7 Edge (Exynos) ROMs, Kernels, Rec] Chainfire:
SuperSU v2.74 and updated CF-Auto-Roots to deal with the lost root issue: https://plus.google.com/+Chainfire/posts/XMFgencRR11
[Samsung Galaxy S7 Edge (Exynos) ROMs, Kernels, Rec] vladdar:
Thx. Is it necessary to flash v.2.74 over v.2.73 if i get back root with boot.img and 2.73?
[Samsung Galaxy S7 Edge (Exynos) ROMs, Kernels, Rec] Kapitein187:
Hero :cool:, thanks! :good:
[Samsung Galaxy S7 Edge (Exynos) ROMs, Kernels, Rec] kittiyut:
Can I now redo the CF-Auto-Root (via ODIN) with the new file? Or do I have to flash boot.img first?

Quite confusing. (I don't have TWRP, Stock ROM, rooted with CF-Auto-Root and lost root from the security update)

Thanks!
[Samsung Galaxy S7 Edge (Exynos) ROMs, Kernels, Rec] ratsalad:
Excellent work CF, knew we could rely on you :good:

Thank you :cool:
[Samsung Galaxy S7 Edge (Exynos) ROMs, Kernels, Rec] ianmacd:
ODIN should work, as long as your boot image back-up hasn't been mislaid. ODIN worked for me on an identical set-up to yours.

Try it. if it doesn't work, you'll have to dig boot.img out of a stock firmware and flash that prior to retrying the SuperSU ZIP file with ODIN.
[Samsung Galaxy S7 Edge (Exynos) ROMs, Kernels, Rec] kittiyut:
No, unfortunately it didn't work for me :(

I have the stock firmware and the 5 extracted .md5 files, but don't know how to extract boot.md5 from the AP_.xxxx.md5 file.
[Samsung Galaxy S7 Edge (Exynos) ROMs, Kernels, Rec] Provinomico:
I don't think so, as long as it's from the same firmware version, the one I flashed was from a Thailand ADP1 ROM, everything's fine now.
[Samsung Galaxy S7 Edge (Exynos) ROMs, Kernels, Rec] kittiyut:
When you say "quickly" - what exactly does that mean? (never flashed TWRP before and really don't want to)
[Samsung Galaxy S7 Edge (Exynos) ROMs, Kernels, Rec] Provinomico:
It doesn't really matter, you can press the keys whenever during the bootloop, the next reset after pressing the keys will load the recovery.
[Samsung Galaxy S7 Edge (Exynos) ROMs, Kernels, Rec] kittiyut:
So that means I can just use the boot.img file posted by fervax?
[Samsung Galaxy S7 Edge (Exynos) ROMs, Kernels, Rec] ianmacd:
Something like this in Linux (or Windows with Cygwin installed):

$ tar xvf AP_G935FXXU1APD1_CL7538748_QB9125704_REV00_user_low_ship.tar.md5 boot.img

will extract boot.img for you.

I don't know how important it is to use the boot.img from your own specific firmware. You might be able to get away with using one that someone else has already posted from their own firmware, but do verify that it's a safe thing to do before you take that route.
[Samsung Galaxy S7 Edge (Exynos) ROMs, Kernels, Rec] Provinomico:
If your rom is an ADP1, you can, but if I were you I would flash TWRP first, and create a backup of your current boot partition, just in case. If everything goes OK you can flash the original recovery afterwards.

BTW I spoke too quickly, I flashed SuperSU after reflashing the stock boot image, and the phone is still unrooted, I assumed it worked as the bootloop got fixed after flashing SuperSU... but still no root. Will try the new v2.74 CF just posted today.
[Samsung Galaxy S7 Edge (Exynos) ROMs, Kernels, Rec] kittiyut:
Glad you were quick to reply, I was just going to flash boot.tar.md5 and then the new beta SU.zip! Glad I didn't.

Can I flash TWRP without wiping? I don't care for custom roms, don't care about warranty, don't care about encryption. Just don't want to reinstall everything from scratch!
[Samsung Galaxy S7 Edge (Exynos) ROMs, Kernels, Rec] Fevax:
or just open the file with 7-zip and extract :)
[Samsung Galaxy S7 Edge (Exynos) ROMs, Kernels, Rec] Provinomico:
Yeah, just flash the zip with Odin, when you boot into recovery, just swype to allow system modifications, go to the backup section select the boot partition and a destination -in your case, the external sdcard, as TWRP wont be able to read the internal memory if you don't wipe it first.

Then you can flash the boot.img posted before, enter recovery and flash SuperSU. Hope it works for you! If anything goes south you can just restore the backup from your boot partition.
[Samsung Galaxy S7 Edge (Exynos) ROMs, Kernels, Rec] Fevax:
You have to flash boot.tar.md5 and then the new beta SU.zip to have a bootable device again :) or flash everything by odin :P
[Samsung Galaxy S7 Edge (Exynos) ROMs, Kernels, Rec] Provinomico:
So, it didn't work the first time, after flashing the boot image from stock, and then SuperSu (v2.72 or v2.73, can't remember which one I tried) from TWRP.

I tried flashing the boot image again with Odin, booting into download mode again to cut the bootloop, and flashing v2.74 of CF-Autoroot. Now it's fixed for good :)

BTW interesting post Chainfire, so this v2.74 will block future policy updates that would ruin root again... anyway, now that we know what/how it happened, it isn't that big of a deal. What do we lose by not having those policy updates applied? -not much I guess-

Thank you for the quick update you managed create in such short time!
[Samsung Galaxy S7 Edge (Exynos) ROMs, Kernels, Rec] kittiyut:
Thanks both Provinomico & Fevax I now have root back!!! Yay!!!

Here's what I did:

-Flashed TWRP, made boot partition back up and then flashed Fevax's boot.tar.md5 - boot looped as expected.

-Went into Recovery (TWRP) and flashed the newest beta SU.zip

-Two longer reboots (thought it was a boot looped) and finally got my phone back.

-And YES I HAVE ROOT BACK!!! Nothing needs to be wiped. Awesome!

Thanks again to Fevax, Provinomico, and of course, ChainFire (for the updated files).

TWRP wasn't as scary as I thought!