FORUMS
Remove All Ads from XDA

[RECOVERY][OFFICIAL] TWRP for Galaxy S9 (Exynos)

793 posts
Thanks Meter: 6,011
 
By jesec, Recognized Developer / Contributor on 16th March 2018, 12:15 AM
Thread Closed Email Thread
Thread moved to https://forum.xda-developers.com/gal...xynos-t3763464.
The Following 6 Users Say Thank You to jesec For This Useful Post: [ View ]
 
 
16th March 2018, 12:15 AM |#2  
jesec's Avatar
OP Recognized Developer / Contributor
Flag SF Bay Area
Thanks Meter: 6,011
 
Donate to Me
More
Changelog:
Note that this page only includes device-specific changes. For global TWRP changes, go to twrp.me.

Mar 16, 2018 (twrp-3.2.1-1):
Add system_image, vendor_image
Rename display name of /odm to "Carrier Configs"

Mar 15, 2018:
Initial version
The Following User Says Thank You to jesec For This Useful Post: [ View ]
16th March 2018, 12:15 AM |#3  
jesec's Avatar
OP Recognized Developer / Contributor
Flag SF Bay Area
Thanks Meter: 6,011
 
Donate to Me
More
Guides:
Be aware that Android Verified Boot requires data (including those in internal storage) to be cleared after you unlocked bootloader and flash custom binaries. ("to protect user data, all state transitions wipe the data partitions and ask the user for confirmation before data is deleted." - https://source.android.com/security/.../verified-boot)
It is normal to get prompts like "Integrity verification failed. You have to reset the device to factory settings."
However, this will only happen when there is "state transition" so only when you switch from locked to unlocked or vice versa.

Part 1 - HOW-TO FLASH TWRP:
1. In your ROM, go to Settings -> About device. Tap 7 times on Build number to enable Developer options.
2. Go to Settings -> Developer options and enable OEM Unlock option.
Notice: This is "state transition" mentioned eailier.
3. Download and Install Samsung Mobile Phones Drivers.
- Option 1: Download and Install Smart Switch for PC.
- Option 2: Download and Install standalone driver package.
4. Download and extract Odin (Samsung's Flash Tool) to your computer.
5. Download a .tar image of TWRP.
6. Reboot your device to download mode.
- Hold [VOLUME DOWN] + [BIXBY] + [POWER] for approx. 15 seconds.
- Read the warning carefully.
- If you agree, press [VOLUME UP] to get into Download mode. If you don't agree, STOP.
7. Open Odin and place that TWRP tar file in the [AP] slot.
8. Connect your phone.
9. Hold [VOLUME UP] + [BIXBY] + [POWER] on your phone and then press start on Odin.
10. Wait for the phone to reboot. DO NOT release [VOLUME UP] + [BIXBY] + [POWER] or you may not reboot into TWRP.

Part 2 - HOW-TO INITIALIZE TWRP: (for new phones)
1. If you completed Part 1 successfully, you should be in TWRP now. At this point, you will reach the screen asking you if you want to allow system modifications.
2. Select "Keep /system RO". (Don't swipe right or you may not be able to boot into system if you failed to complete next steps. However, you can swipe right to allow modifications if you are confident that you can complete next steps.)
3. Go to "Wipe" menu of TWRP and you will find "Format Data". Press "Format Data" and type "yes" to continue.
4. Go to "Reboot" menu and Press "Recovery" to reboot TWRP.
5. Download the special dm-verity and force encryption disabler zip on your computer.
6. Transfer the zip to your phone.
- Option 1: MTP: Connect your phone with computer and just copy the zip to internal storage. (similar to how you transfer files when in system.)
- Option 2: ADB: Connect your phone with computer and run command "adb push /path/to/zip /sdcard/".
- Option 3: External SD: Copy the zip to an external SD and then insert the card to your phone.
7. Go to "Install" menu of TWRP and flash the zip.

TWRP is initialized and fully functional at this stage.
The Following 3 Users Say Thank You to jesec For This Useful Post: [ View ]
16th March 2018, 01:04 AM |#4  
Junior Member
Thanks Meter: 1
 
More
Quote:
Originally Posted by jesec

Now you can either reboot into system or root, flash custom ROMs via TWRP.

In theory you can, but so far no one including myself has been able to root from this.
See this thread https://forum.xda-developers.com/gal...g-s9-t3763548/

I wiped my data for nothing!
16th March 2018, 02:36 AM |#5  
force70's Avatar
Senior Member
Flag toronto
Thanks Meter: 7,978
 
More
Wow that was fast twrp already.

Nice work Jesec and thank you:thumbup:

Now lets see how long till some dummy asks if it works on the snapdragon lol

sent from my Pixel 2 XL or Note FE
The Following User Says Thank You to force70 For This Useful Post: [ View ] Gift force70 Ad-Free
16th March 2018, 11:40 AM |#6  
Tkkg1994's Avatar
Recognized Developer / Contributor
Flag Coding City
Thanks Meter: 29,213
 
Donate to Me
More
@jesec if this twrp is becoming the official one I suggest you to include some of my features/fixes as for example img flash to specific partitions, OTG fix and more (also people on the s9+ thread reported that usb wasn't working), check my device tree here.

Have a nice day!
The Following 2 Users Say Thank You to Tkkg1994 For This Useful Post: [ View ]
16th March 2018, 04:36 PM |#7  
DJBhardwaj's Avatar
Recognized Contributor
Flag Delhi
Thanks Meter: 2,638
 
Donate to Me
More
Can we flash SuperSU/Magisk instead of the dm-verity disabler? To root as well as for disabling dm-verity at the same time?
16th March 2018, 08:18 PM |#8  
jesec's Avatar
OP Recognized Developer / Contributor
Flag SF Bay Area
Thanks Meter: 6,011
 
Donate to Me
More
Quote:
Originally Posted by Tkkg1994

@jesec if this twrp is becoming the official one I suggest you to include some of my features/fixes as for example img flash to specific partitions, OTG fix and more (also people on the s9+ thread reported that usb wasn't working), check my device tree here.

Have a nice day!

Please follow the contribution and code review process of TWRP if you want to contribute.

I will review the changes.
16th March 2018, 10:37 PM |#9  
After following the instructions exactly in the OP, I flashed SuperSU v2.82-SR5-20171001224502. My S9 is rooted and everything is working great!

Thanks


(NOTE to North Americans: Don't get your hopes up, although I am in Canada, I have the Exynos version SM-G960F)
The Following User Says Thank You to flar2 For This Useful Post: [ View ]
16th March 2018, 11:21 PM |#10  
Paradoxxx's Avatar
Senior Member
Flag Krakow
Thanks Meter: 6,019
 
Donate to Me
More
Quote:
Originally Posted by flar2

After following the instructions exactly in the OP, I flashed SuperSU v2.82-SR5-20171001224502. My S9 is rooted and everything is working great!

Thanks


(NOTE to North Americans: Don't get your hopes up, although I am in Canada, I have the Exynos version SM-G960F)

Will we see a kernel of yours ?

I mean after the news that AOSP GSI images are booting, one of the greatest kernel developer coming to S9 would be like the cherry on the top.
16th March 2018, 11:39 PM |#11  
Quote:
Originally Posted by Paradoxxx

Will we see a kernel of yours ?

I mean after the news that AOSP GSI images are booting, one of the greatest kernel developer coming to S9 would be like the cherry on the top.

Maybe. I got this phone mostly for testing Button Mapper and High Brightness Mode. I couldn't resist trying to build a kernel this morning. It booted after a couple tries, but there was no wifi.
Thread Closed Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes