FORUMS
Remove All Ads from XDA

[H918 / T-mo] [1.3b3] EasyRecowvery - TWRP and Root Installer

146 posts
Thanks Meter: 179
 
By bezeek, Senior Member on 1st November 2016, 08:07 PM
Post Reply Email Thread
I don't always follow a new device during the troubled early days of root...
...but when I do, I'm utterly scarred by the chaos and confusion.
Since I've watched the current V20 root exploit evolve from "maybe DirtyCow would work here" into a full-blown war on Nougat's sepolicy, and finally into the emergent "Recowvery"; I thought it might be fun to get my own hands a little dirty and write some wrappers to automate the rooting process with ample error-checking along the way.

>> Please take a moment to check out @jcadduono's Recowvery thread at http://forum.xda-developers.com/v20/...shell-t3490594 for more information, to say "thanks," and to donate if you can afford it. <<

WARNING: ATTEMPT AT YOUR OWN RISK! THIS PACKAGE IS RELEASED AS-IS AND WITHOUT ANY WARRANTY, IMPLIED OR EXPRESSED
THIS PACKAGE MAY MAKE YOUR LIFE EASIER (or harder) BUT NOTHING CAN FULLY PROTECT YOU FROM TROUBLE WHEN ROOTING A DEVICE!
IT IS NOT MY RESPONSIBILITY IF YOU END UP WITH A BRICK IN YOUR POCKET AFTER ATTEMPTING ROOT



Current, Planned, and Not Guaranteed Features:
- Windows support, including a truly die-hard adb check
- Push, exploit, and flash all in one step
- Optional automated SuperSU installation
- Bundled adb for more predictable results
- More error checking than you think you'd need
- Auto-disable dm-verity and forced encryption
- Optional selinux permissive mode
- Restore boot and recovery to stock
- Spawn a root shell for exploration and such
- Grab any recovery.img you'd like to use from /sdcard
- Linux support (needs to be reworked )
- Ability to download latest exploit and recovery at runtime
- Extra helper commands for stuff like trying to break out of bootloops or quickly grab logs
- Basic GUI for Windows

Download:
Latest version: 1.3b3
Grab the latest zip: https://github.com/bziemek/EasyRecowvery/releases
Or browse the source: https://github.com/bziemek/EasyRecowvery
--
TWRP for the H918: in jcadduono's thread, Step 3
no-verity-opt-encrypt: also in jcadduono's thread, Step 3
SuperSU: in Chainfire's beta thread

Instructions:
https://github.com/bziemek/EasyRecow...ster/README.md

Greetz:
Huge shout out to @jcadduono for running with the DirtyCow idea and making this root possible (read more and THANK HIM HERE), Chainfire for taking some time off to do a test install of the latest SuperSU hours before we had a working TWRP, @Darriousx and @slayerh4x for all their hard work testing, and #twrp on Freenode for generally putting up with the lot of us!

Donations:
IF you feel so inclined, PayPal some coffee and beer money to bezeek@gmail.com, or BTC to 1bu5MMgagtbN7QVeciyWfAzRbfk8vmynM
Many thanks to @Pjs187, who furnished the first donation I've received here at XDA!
Attached Thumbnails
Click image for larger version

Name:	easyrecowvery_screenshot_1.png
Views:	5600
Size:	55.3 KB
ID:	3925278  
The Following 74 Users Say Thank You to bezeek For This Useful Post: [ View ] Gift bezeek Ad-Free
 
 
1st November 2016, 08:08 PM |#2  
OP Senior Member
Flag Daytona Beach
Thanks Meter: 179
 
Donate to Me
More
Frequently Asked Questions

Why isn't it working?
First: update your ADB. If you don't have ADB, then you'll want to fix that before you spend another second at XDA. I personally only use official releases from Google, so I might not be much help if you're using something you found at random at XDA or elsewhere on the Internet. You can download Google's latest release of their tools from the very bottom of this page. (I recommend installing or extract them to C:\Android for easy access.) Using the "SDK Manager" included in that download, choose to install "Android Platform-tools" and "Google USB drivers", and remember to run it again once in a blue moon for updates.

If ADB isn't the problem, I'm happy to offer what assistance I can. Please describe what you were trying to do and how, then attach any .log files the script created.

Where is TWRP?
The link to the latest version is linked in this thread under Step 3.
Rename the downloaded file to recovery.img and put it on your internal storage.

Does Data need to be wiped?
For everything to work properly, YES. If you don't have an inherent understanding of what will happen if you don't run a Format Data, then please do so the first time you enter TWRP. This will erase Internal Storage and remove the default encryption so that TWRP can function to the fullest. BACK UP YOUR STUFF FIRST!

Is no-verity-opt-encrypt necessary?
YES, but not totally. This ZIP makes it possible to allow system modifications, and prevents a couple easy ways to end up with corrupt data or bootloops.
Download that from Step 3 in the thread above, and put it in the folder named zips next to EasyRecowvery.
If you're going to install SuperSU right away, you shouldn't really need it.

What is selinux?
selinux is a major security feature, and also a major pain in the butt depending on who you ask.
If you don't know if you need it in "permissive" mode, just leave it be. You can always reflash later.

Why isn't TWRP showing Internal Storage?
These phones use encryption out of the box. In order for TWRP to function properly, you will need to use the Wipe Data feature after installation.
This will blow away everything on your Internal Storage, so make sure you don't have anything important in there!
The Following 12 Users Say Thank You to bezeek For This Useful Post: [ View ] Gift bezeek Ad-Free
1st November 2016, 08:08 PM |#3  
OP Senior Member
Flag Daytona Beach
Thanks Meter: 179
 
Donate to Me
More
Changelog

1.3b3
Add more sanity checks
Add note about formatting data
Separate log for ZIP flashing
Rename bundled adb.exe to adb-recowvery.exe (maybe)

Older Versions

1.3b
Bundle adb.exe (can be toggled in Extras menu)
Improve and fix adb and device checks

1.2b
Add experimental support for auto-rooting.
Add an extra mode to flash no-verity-opt-encrypt.
Add an extra mode just to reboot into recovery.

1.1b-hotfix
Add the "zips" folder needed by the new version.

1.1b
Skip several versions and change versioning style.
Redesign the menu system.
Auto-flash no-verity-opt-encrypt.
Update Recowvery to latest version.
Tweak prompts, formatting, and fix typos.
More aggressive connection handling.
Fix the restore feature.
Allow disabling integrity verification (untested).
Increase logging verbosity.
Fix line endings in EasyRecowvery.cmd

beta5
Take a nap.
Fix some issues with various prompts.
Adjust some formatting.
More testing.

beta4
Improve adb checking code.
Reluctantly accept that we should try recovery.img.img.
Misc. tweaks to prompts.

beta3
Fix several parentheses that might be causing trouble.

beta2
Fix a bug causing EasyRecowvery to fail when run from another directory.

beta1
Initial release.
The Following 7 Users Say Thank You to bezeek For This Useful Post: [ View ] Gift bezeek Ad-Free
1st November 2016, 08:15 PM |#4  
Senior Member
Thanks Meter: 82
 
More
WOW! This is what i've been waiting for. Thanks man!
1st November 2016, 08:17 PM |#5  
chrisrj28's Avatar
Senior Member
Flag Sacramento, CA
Thanks Meter: 653
 
More
Thanks for this. Will help a lot of users who are Leary about the cureent manual process
1st November 2016, 08:25 PM |#6  
Member
Thanks Meter: 20
 
More
Awesome...
1st November 2016, 09:06 PM |#7  
slayerh4x's Avatar
Senior Member
Thanks Meter: 66
 
More
Awesome man, so cool to watch all this develop. Glad I could be part of it.
1st November 2016, 09:29 PM |#8  
Senior Member
Thanks Meter: 31
 
More
definitely looking forward to this. sweetness!!!!
1st November 2016, 10:12 PM |#9  
Senior Member
Thanks Meter: 219
 
More
It has been amazing watch all this develop in the past weeks. I have been flashing and rooting for about 10 years and this is the first time I've seen it all from the beginning. It is really amazing what a few of these guys are capable of...but this time for me I was left speechless. Gentlemen, (and ladies?) Thank you for all of your free time and dedication for making this possible for the average end user like me. We all don't show enough gratitude and I'm sure I'm not the only one amazed my all of your capabilities. Keep up the unbelievable work, and a nice donation is coming to everyone who contributed if I can find a way to donate to you all. Point me in the direction, and the cash flow will be on its way. Thank you again.

Sincerely,
dmoney4eal
The Following 2 Users Say Thank You to dfogelstrom For This Useful Post: [ View ] Gift dfogelstrom Ad-Free
2nd November 2016, 01:12 AM |#10  
Senior Member
Thanks Meter: 26
 
More
@bezeek you might want to add the "I am not responsib...." disclaimer. One for your protection but mostly so people are aware of the possible consequences.
The Following 2 Users Say Thank You to whowatchlist For This Useful Post: [ View ] Gift whowatchlist Ad-Free
2nd November 2016, 01:45 AM |#11  
Senior Member
Flag Kansas City
Thanks Meter: 824
 
Donate to Me
More
If only I had the T-Mobile variant I would of already wrote this and put it in this thread lol, anyone want to donate? :c
Post Reply Subscribe to Thread

Tags
h918, recovery, recowvery, root, t-mobile

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes