• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!
  • Fill out your device list and let everyone know which phones you have!    Edit Your Device Inventory

[Recovery][Qualcomm] Official TWRP for the Galaxy S7 edge (hero2qltechn)

Search This thread

tadmahler

New member
Oct 22, 2017
2
0
anyway to get a custom recvery on my SM-G935-R4 usc G935R4TYU4BQE1 was marshmallow 6.0 when i bought it. i am rooted with super su 2.79 with engboot.tar.md5..... im asking you cuz you a awesome developer, any help is and will be appreciated. it is nougat 7.0 now
 
Last edited:

alexxcorn

Member
Dec 18, 2017
9
0
I have the SM-G935U (Unlocked US Model). Could I flash the Chinese firmware via Odin and still use this method of rooting and flashing TWRP? They both have the same chip. Snapdragon 820 Chip. Will I run into bootloop sore any problems with my mobile data LTE? Urgent, thanks. If so which firmware should I flash Hong Kong or China (Open China) from SamMobile.
 

Craz Basics

Senior Member
Jul 2, 2015
1,546
612
I have the SM-G935U (Unlocked US Model). Could I flash the Chinese firmware via Odin and still use this method of rooting and flashing TWRP? They both have the same chip. Snapdragon 820 Chip. Will I run into bootloop sore any problems with my mobile data LTE? Urgent, thanks. If so which firmware should I flash Hong Kong or China (Open China) from SamMobile.
Can't happen. Odin won't flash it and if you use FlashFire it will brick (hard brick, not fixable via Odin)

The reason being that the partitions are different between ours and theirs.
 

Angcrad

Member
Jan 31, 2013
18
1
Hello everyone, I'm having some trouble with the installation, I successfully flashed TWRP 3.2.1-0-hero2qltechn onto my SM-G9350, now, onto step 10, I don't want root as I'm planning to use magisk instead (blame my bank for preventing me from using its app under normal root). Instead, i installed no-verity-opt-encrypt-6.0 and rebooted my phone, it boots back into TWRP.

I tried using no-verity-opt-encrypt versions 5.1, 5, and 4.1 with the same results. If anyone could point me in the right direction, it will be greatly apreciated
 
Last edited:

HeXaLox

Senior Member
Oct 27, 2012
240
42
Hello everyone, I'm having some trouble with the installation, I successfully flashed TWRP 3.2.1-0-hero2qltechn onto my SM-G9350, now, onto step 10, I don't want root as I'm planning to use magisk instead (blame my bank for preventing me from using its app under normal root). Instead, i installed no-verity-opt-encrypt-6.0 and rebooted my phone, it boots back into TWRP.

I tried using no-verity-opt-encrypt versions 5.1, 5, and 4.1 with the same results. If anyone could point me in the right direction, it will be greatly apreciated

did you find a solution? and I am running on a SM-G935V so I am kinda scared to flash the whole twrp... I am rooted on stock tho... and I am really not trying to lose my OS boot.
 

Craz Basics

Senior Member
Jul 2, 2015
1,546
612
did you find a solution? and I am running on a SM-G935V so I am kinda scared to flash the whole twrp... I am rooted on stock tho... and I am really not trying to lose my OS boot.
G935V, and the rest of the USA Qualcomm variants can't boot TWRP as our bootloader is locked, really hating Samsung for it but it is what it is.
 
  • Like
Reactions: HeXaLox

dragononcrypto

New member
Jan 22, 2018
3
0
Hi there please help!

So trying to merely install TWRP via fastboot, which I'm not having luck with. At this point, I should say I am using Linux so am also trying to find ways to do this away from Windows instructions which strangely dominates this development space. I'm pretty competent with Linux so have tested and read up quite a lot already.

So far I've tried (with usb debugging and OEM bootloader unlock developer options on):
  • TWRP and ClockWorkMod apps, both confirm my phone isn't rooted so nothing can be done. ClockWorkMod doesn't recognise the device even, so it's confirmed I'm in need of TWRP. Naturally I tried SuperSU but no luck there rooting the phone either.
  • I'm unable to access Download mode, as the Chinese stock version replaced the Volume Down + Menu + Power Button option with a testing menu - saw a video on the options listed, none are them are useful, it's all factory testing based, including a factory hard reset. No DM mode basically.
  • I've installed Heimdall and attempted to connect to the device but with no DM it doesn't connect. I've also had no luck with the UK ROM either, it decompresses and rejects the package, not sure why this was. I've removed the md5 extentions and decompressed the tars and it all looks in order. I did have to recompress the tars to a tar.gz for Heimdall to read them (previously it was a zip file), my guess is that this was part of the problem.
  • I've sucessfully connected the device using adb and fastboot no problem, utilizing the reboot, backup and unlock oem options without any problem. I therefore attempted to flash the phone after OEM unlock with TWRP img using the Recovery Flash option on fastboot as well as the sideload option, neither worked. Both times it told me there was insufficient space in memory - there's a question below about this.

Questions:
  1. I've read about erasing and reformatting recovery partition in order to fastboot TWRP, should I do this? I have held off doing this, as although the error had read insufficient space, I'm a bit nervous to delete my recovery options incase it doens't work! Would I be able to re-install the stock recovery using fastboot if this went wrong however? Naturally I'm a bit nervous to brick the phone, given that it works perfectly well on 6.0.1, just not able to do any OTA updates.
  2. Would it be better to try and install using the dd install method or is this method too generic for this model?
  3. I feel like I need clarification, is Download Mode not the same as when its in fastboot, and is there anyway to use Heimdall/(J)Odin without being in DM? Ie is there another way to connect to the device using terminal commands if its clearly possible with adb as well as fastboot?
  4. I'm still not able to get root access, which I've also considered to be the problem when it comes rewriting partitions and amending the current stock ROM to not delete TWRP for example. I also hate not having root access. Eventually, I'll need to sort this out to install the UK ROM anyway, so it would be good to know already. Is it not possible to just amend the sudoers file file from terminal somehow like in Debian for example? I even saw the directory path from SuperSU which looked tempting.
  5. Have tried installing latest CROM Service app but it does not install, presumably this is because it's designed for Snapdragon rather than Qualcomm versions? Also phones with DM! I'm also confused by the board name with S7 Edge Snapdragon but never mind!

Summary:
  • I feel like I'm in a loop. I need to root the phone to be able to install TWRP via fastboot (with Heimdall not working), but to be able to root the phone I need to install TWRP in order to install SuperSU.

Specifications:
Model: SM-G9350
Build: G9350ZCU2APD1
OS: 6.0.1 Chinese Stock
Testing with UK ROM: G930FXXU1DPLT
Testing with Recovery ROM: hero2qltechn

Any help or links to it massively appreciated!
dragononlinux
 

benjamen50

Senior Member
Dec 11, 2013
570
101
24
Melbourne
www.mtwo.com.au
If you are flashing no-verity-opt-encrypt-6.0, you should be reformatting the data partition on your phone through TWRP, backup your data on the phone before hand if you haven't already. If you need to keep data after getting it stuck on boot because of the above, reflash matching firmware for your model (home_csc not csc when flashing) and the phone should boot again.

Because the data partition could be encrypted meaning that TWRP won't be able to read the /data partition and may stop the phone from booting after no-verity is flashed.

Do format data / recovery, then flash no-verity, reboot recovery, flash no-verity again, format data partition again to make sure.

When TWRP formats the /data partition it actually changes the file system to ext4 if I recall correctly so that you can flash files that touch the /data partition.
 

dragononcrypto

New member
Jan 22, 2018
3
0
If you are flashing no-verity-opt-encrypt-6.0, you should be reformatting the data partition on your phone through TWRP, backup your data on the phone before hand if you haven't already. If you need to keep data after getting it stuck on boot because of the above, reflash matching firmware for your model (home_csc not csc when flashing) and the phone should boot again.

Because the data partition could be encrypted meaning that TWRP won't be able to read the /data partition and may stop the phone from booting after no-verity is flashed.

Do format data / recovery, then flash no-verity, reboot recovery, flash no-verity again, format data partition again to make sure.

When TWRP formats the /data partition it actually changes the file system to ext4 if I recall correctly so that you can flash files that touch the /data partition.
Thanks your help, are you suggesting flashing with fastboot, or from the sdcard or something? I can download no-verity to my phone and see if this works booting into it form the current recovery.

My 6.0.1 must be an uprade from 5.0, as it still has the option encrypt the phone, as far as I understand this became mandatory from 6.0 install (but not from OTA's). At the moment it's not encrypted, do I still need no-verity, data wipe etc?

Should I not just try the device-specific TWRP image after downloading it to the sd card, maybe wipe the recovery if there's it still says there's insufficient space? I'm considering the theory if I can wipe it, I can restore it. Correct me if I'm wrong?\

Pretty sure I still need to unlock the OEM bootloader with fastboot, so might as well try it from there.
 

drnism

Member
Dec 23, 2018
9
0
Team Win Recovery Project 3.0.2-0



This is for the Chinese SM-G9350 Qualcomm model only! Do not flash on Exynos models!
If you have a SM-G9300 or SM-G9308, look here instead!


WARNING #1: Flashing a custom recovery to your device will trip the Knox warranty bit on your phone. Check with your mobile provider to see if they will still cover warranty on Knox bit triggered devices. If you understand this risk, continue on.
You generally don't have to worry, as it's incredibly hard to brick a Samsung device, and physical damage warranties should be exempt from Knox triggering.

WARNING #2: The Galaxy S7 edge stock boot image has dm-verity, which prevents you from booting if you swipe to enable system modifications!
SOLUTION: Follow the full rooting steps below in order to allow system modifications without the risk of a boot loop!


WHAT IS TWRP?

Oh come on, you know what it is - don't try to fool me!
In case you're serious, though...

Team Win Recovery Project is a custom recovery for Android devices.
It allows you to back up and restore your data, flash custom ROMs to your device, repair broken file systems, and root your device.

DOWNLOAD

You can find the device page here:
http://teamw.in/devices/samsunggalaxys7edgechina.html
There is a download link there, as well as instructions on how to flash it.

I highly recommend using Odin 3.12.3+ to flash when possible.
You can find a zip containing Odin as well as Samsung's Mobile drivers here:
https://build.nethunter.com/samsung-tools/

FULL STEPS FOR OBTAINING ROOT

Follow these instructions until someone nice comes along and makes a video from them (without ads):

  1. In your ROM, go to Settings -> About device. Tap 7 times on Build number to enable Developer options.
    Transparent.gif
  2. Now go to Settings -> Developer options. (above About device)
    You need to enable OEM unlock, otherwise you might end up with boot problems or be unable to flash later on.
    Transparent.gif
  3. You will need to unlock your bootloader now. To do this, download the app "CROM Service By Samsung Electronics Co., Ltd." from the Galaxy Apps store and run it.
    Follow the instructions in the CROM Service app to allow your device to accept custom images in download mode.
    Transparent.gif
  4. Extract Odin_3.12.3.zip to your computer.
    Transparent.gif
  5. Install Samsung Mobile Phone Drivers for Odin to find your device.
    Transparent.gif
  6. Download a .tar image of TWRP for hero2qltechn.
    Transparent.gif
  7. Reboot your device into Download mode. To do this, select reboot from the power menu and hold the [Volume Down] + [Home] buttons while your device reboots.
    Once you reach the Download mode warning screen, press [Volume Up] to continue.
    Transparent.gif
  8. Open Odin and place that TWRP tar file in the [AP] slot and disable Auto-Reboot, then press [Start].
    Transparent.gif
  9. Hold [Volume Down] + [Home] + [Power] to get out of Download mode and immediately swap to [Volume Up] when the screen blanks.
    If you don't see then TWRP boot splash try again from step 7.
    Transparent.gif
  10. At this point, you will reach the screen asking you if you want to allow system modifications.
    By swiping right, you will trigger dm-verity, and if you don't follow step 10 you will be unable to boot!
    If you are going to root your device and follow the rest of these steps, then it is safe to swipe right and enable modifications.
    Transparent.gif
  11. If you want to be rooted with SuperSU:
    Download the latest SuperSU by Chainfire.
    Without exiting TWRP, transfer the SuperSU zip to your device over MTP* and flash it using [Install] in TWRP.

    If you want to be rooted with something else or just want a bootable system:
    Download the latest no-verity-opt-encrypt zip.
    Without exiting TWRP, transfer the no-verity-opt-encrypt zip to your device over MTP* and flash it using [Install] in TWRP.
    It will allow your system to boot after swiping to enable modifications or using backup/restore in TWRP.
    It should also allow you to use [Format Data] and prevent encryption, allowing you to use your data partition and internal storage inside TWRP.
    Transparent.gif
  12. Go to [Reboot] -> [System].
    Transparent.gif
  13. Wait 2-5 minutes for your device to finish setting itself up.
* MTP, known as Media Transfer Protocol, is the same way you transfer files from your PC to your device when booted into system.


CHANGES
  • v3.0.2.0 - Official release on twrp.me

FEATURES
  • MTP support
  • USB Mass Storage support
  • Micro SDcard and USB OTG storage support
  • f2fs file system support (read, write, format, backup & restore)
  • exFAT file system support (read, write, format, backup & restore)
  • NTFS file system support (read, write, format)
  • ADB root
  • Full SELinux support
  • Built in android 6.0 tree

KNOWN ISSUES

CONTACT & SUPPORT

You can find us on IRC at #twrp on chat.freenode.net.
You can also post in this thread and I will attempt to answer any questions you may have.

SOURCE CODE

TWRP: https://github.com/omnirom/android_bootable_recovery (android-6.0)
Device tree (USA): https://github.com/jcadduono/android_device_samsung_hero2qlte (android-6.0)
Device tree (China): https://github.com/TeamWin/android_device_samsung_hero2qltechn (android-6.0)
Kernel: https://github.com/jcadduono/android_kernel_samsung_msm8996 (twrp-6.0)

CONTRIBUTIONS

Gerrit for TWRP: http://gerrit.omnirom.org/
Gerrit for officially supported devices: http://gerrit.twrp.me/

XDA:DevDB Information
Team Win Recovery Project - Samsung Galaxy S7 edge China, Tool/Utility for the Samsung Galaxy S7 Edge

Contributors
jcadduono, Team Win & friends
Source Code: https://github.com/TeamWin/android_device_samsung_hero2qltechn


Version Information
Status: Stable
Current Stable Version: 3.0.2-0
Stable Release Date: 2016-09-09

Created 2016-09-10
Last Updated 2016-11-22

Does this work for S7e docomo?
 

beko 25

New member
Feb 5, 2017
4
0
hello my friend

hello my friend
i need to root magisk my Samsung Galaxy S7 Edge Duos SM-G9350 oreo 8 version i'm a beginner can you teach me how please
 

CrazyPwnage

New member
Jul 24, 2019
1
1
Mine shows up in stock recovery as g935PVPS5BQK1 . If I'm in right area then that's fine for me I'll continue as is but just wanted to make absolutely sure before I carry on.

Sent from my Alcatel A502DL using XDA Labs
 
  • Like
Reactions: YngMk717

Top Liked Posts

  • There are no posts matching your filters.
  • 3
    As a joke, here you go USA!

    https://idlekernel.com/twrp/hero2qlte/twrp-3.0.2-0-hero2qlte.tar.md5

    It works for all USA variants of the S7 edge, but you can't flash it! Muahahahaha!
    2
    Team Win Recovery Project 3.0.2-0



    This is for the Chinese SM-G9350 Qualcomm model only! Do not flash on Exynos models!
    If you have a SM-G9300 or SM-G9308, look here instead!


    WARNING #1: Flashing a custom recovery to your device will trip the Knox warranty bit on your phone. Check with your mobile provider to see if they will still cover warranty on Knox bit triggered devices. If you understand this risk, continue on.
    You generally don't have to worry, as it's incredibly hard to brick a Samsung device, and physical damage warranties should be exempt from Knox triggering.

    WARNING #2: The Galaxy S7 edge stock boot image has dm-verity, which prevents you from booting if you swipe to enable system modifications!
    SOLUTION: Follow the full rooting steps below in order to allow system modifications without the risk of a boot loop!


    WHAT IS TWRP?

    Oh come on, you know what it is - don't try to fool me!
    In case you're serious, though...

    Team Win Recovery Project is a custom recovery for Android devices.
    It allows you to back up and restore your data, flash custom ROMs to your device, repair broken file systems, and root your device.

    DOWNLOAD

    You can find the device page here:
    http://teamw.in/devices/samsunggalaxys7edgechina.html
    There is a download link there, as well as instructions on how to flash it.

    I highly recommend using Odin 3.12.3+ to flash when possible.
    You can find a zip containing Odin as well as Samsung's Mobile drivers here:
    https://build.nethunter.com/samsung-tools/

    FULL STEPS FOR OBTAINING ROOT

    Follow these instructions until someone nice comes along and makes a video from them (without ads):

    1. In your ROM, go to Settings -> About device. Tap 7 times on Build number to enable Developer options.
      Transparent.gif
    2. Now go to Settings -> Developer options. (above About device)
      You need to enable OEM unlock, otherwise you might end up with boot problems or be unable to flash later on.
      Transparent.gif
    3. You will need to unlock your bootloader now. To do this, download the app "CROM Service By Samsung Electronics Co., Ltd." from the Galaxy Apps store and run it.
      Follow the instructions in the CROM Service app to allow your device to accept custom images in download mode.
      Transparent.gif
    4. Extract Odin_3.12.3.zip to your computer.
      Transparent.gif
    5. Install Samsung Mobile Phone Drivers for Odin to find your device.
      Transparent.gif
    6. Download a .tar image of TWRP for hero2qltechn.
      Transparent.gif
    7. Reboot your device into Download mode. To do this, select reboot from the power menu and hold the [Volume Down] + [Home] buttons while your device reboots.
      Once you reach the Download mode warning screen, press [Volume Up] to continue.
      Transparent.gif
    8. Open Odin and place that TWRP tar file in the [AP] slot and disable Auto-Reboot, then press [Start].
      Transparent.gif
    9. Hold [Volume Down] + [Home] + [Power] to get out of Download mode and immediately swap to [Volume Up] when the screen blanks.
      If you don't see then TWRP boot splash try again from step 7.
      Transparent.gif
    10. At this point, you will reach the screen asking you if you want to allow system modifications.
      By swiping right, you will trigger dm-verity, and if you don't follow step 10 you will be unable to boot!
      If you are going to root your device and follow the rest of these steps, then it is safe to swipe right and enable modifications.
      Transparent.gif
    11. If you want to be rooted with SuperSU:
      Download the latest SuperSU by Chainfire.
      Without exiting TWRP, transfer the SuperSU zip to your device over MTP* and flash it using [Install] in TWRP.

      If you want to be rooted with something else or just want a bootable system:
      Download the latest no-verity-opt-encrypt zip.
      Without exiting TWRP, transfer the no-verity-opt-encrypt zip to your device over MTP* and flash it using [Install] in TWRP.
      It will allow your system to boot after swiping to enable modifications or using backup/restore in TWRP.
      It should also allow you to use [Format Data] and prevent encryption, allowing you to use your data partition and internal storage inside TWRP.
      Transparent.gif
    12. Go to [Reboot] -> [System].
      Transparent.gif
    13. Wait 2-5 minutes for your device to finish setting itself up.
    * MTP, known as Media Transfer Protocol, is the same way you transfer files from your PC to your device when booted into system.


    CHANGES
    • v3.0.2.0 - Official release on twrp.me

    FEATURES
    • MTP support
    • USB Mass Storage support
    • Micro SDcard and USB OTG storage support
    • f2fs file system support (read, write, format, backup & restore)
    • exFAT file system support (read, write, format, backup & restore)
    • NTFS file system support (read, write, format)
    • ADB root
    • Full SELinux support
    • Built in android 6.0 tree

    KNOWN ISSUES

    CONTACT & SUPPORT

    You can find us on IRC at #twrp on chat.freenode.net.
    You can also post in this thread and I will attempt to answer any questions you may have.

    SOURCE CODE

    TWRP: https://github.com/omnirom/android_bootable_recovery (android-6.0)
    Device tree (USA): https://github.com/jcadduono/android_device_samsung_hero2qlte (android-6.0)
    Device tree (China): https://github.com/TeamWin/android_device_samsung_hero2qltechn (android-6.0)
    Kernel: https://github.com/jcadduono/android_kernel_samsung_msm8996 (twrp-6.0)

    CONTRIBUTIONS

    Gerrit for TWRP: http://gerrit.omnirom.org/
    Gerrit for officially supported devices: http://gerrit.twrp.me/

    XDA:DevDB Information
    Team Win Recovery Project - Samsung Galaxy S7 edge China, Tool/Utility for the Samsung Galaxy S7 Edge

    Contributors
    jcadduono, Team Win & friends
    Source Code: https://github.com/TeamWin/android_device_samsung_hero2qltechn


    Version Information
    Status: Stable
    Current Stable Version: 3.0.2-0
    Stable Release Date: 2016-09-09

    Created 2016-09-10
    Last Updated 2016-11-22
    2
    I flashed this twrp but recovery won't boot. Get blue screen with red writing up top that says custom binary blocked by secure boot (recovery.img). I have gs7 edge AT&T version. Now what?

    this recovery is for unlocked bootloaders only. IE chinese and hong kong models only.
    2
    I have the SM-G935U (Unlocked US Model). Could I flash the Chinese firmware via Odin and still use this method of rooting and flashing TWRP? They both have the same chip. Snapdragon 820 Chip. Will I run into bootloop sore any problems with my mobile data LTE? Urgent, thanks. If so which firmware should I flash Hong Kong or China (Open China) from SamMobile.
    Can't happen. Odin won't flash it and if you use FlashFire it will brick (hard brick, not fixable via Odin)

    The reason being that the partitions are different between ours and theirs.
    1
    Mine shows up in stock recovery as g935PVPS5BQK1 . If I'm in right area then that's fine for me I'll continue as is but just wanted to make absolutely sure before I carry on.

    Sent from my Alcatel A502DL using XDA Labs