Post Reply

[RECOVERY][hercules] TWRP touch recovery [2014-09-12]

OP Dees_Troy

12th July 2012, 08:35 PM   |  #1  
Dees_Troy's Avatar
OP Senior Recognized Developer
Flag KC MO
Thanks Meter: 9,479
1,602 posts
Join Date:Joined: Mar 2008
Donate to Me
Team Win Recovery Project 2.x, or twrp2 for short, is a custom recovery built with ease of use and customization in mind. Its a fully touch driven user interface no more volume rocker or power buttons to mash. The GUI is also fully XML driven and completely theme-able. You can change just about every aspect of the look and feel.

Phone look:

Tablet look:

-Fix a bug that causes weird graphics glitches and touch issues

-Add MTP support to recovery thanks mostly to bigbiff with a little help from Dees_Troy
-Add command line capabilities - you can now execute various TWRP features via adb instead of the touchscreen
-Add support for color in the console and give error, warning, and highlight lines different colors
-Track backup and restore progress based on file sizes to provide a much more accurate indication of progress
-Improve handling of /misc thanks to mdmower
-Improve setting of time on Qualcomm devices thanks to [NUT]
-Allow using images on slidervalue GUI objects thanks to Tassadar
-Allow using variables and addition and subtraction in variables for easier theming
-Add support for 1440x2560, 280x280, and 320x320 resolutions and update 240x240
-Allow ui.xml file to include additional xml files to help break up the theme and make TWRP easier to maintain
-Other minor fixes and improvements

Over the course of the last year or so, bigbiff has worked to migrate various Java functions from Android's MTP implementation to bring you a fully C++ based MTP implementation that allows you to transfer files to both emulated storage and Micro SD cards. It's confirmed to work on various Nexus devices but we may have to make some changes on other devices to keep Windows happy. Windows is very picky about USB IDs and its drivers. We have tested it on Windows 7 and 8 as well as Ubuntu 14.04 Trusty. MTP is enabled by default, but we do toggle it off and on automatically during certain operations such as if you choose to wipe a storage partition. You can enable or disable MTP under the mount menu in TWRP. For more about what MTP is here.

Note: Due to a weird bug with our MTP setup, you cannot copy a zip file to the root of storage with Windows. You can change the .zip to something else like .txt and then copy it to the root and rename the file back to .zip once it's copied to the device. You can also copy the zip into any subfolder.

Command line support is also now available. You can perform various OpenRecoveryScript commands via the adb shell. Depending on what you are doing you may wish to do a "twrp set tw_mtp_enabled 0" and then reboot to prevent the MTP auto toggle from killing your adb interface. You can use this option to create and restore backups, wipe, install zips, and more. Via adb shell, type twrp followed by a space then enter the OpenRecoveryScript command and hit enter. Find more OpenRecoveryScript commands here.

-Add GUI option to change or repair file systems on individual partitions. The change is destructive so backup your data including internal sdcard first. This option should make it a little easier to migrate a device from ext4 -> f2fs, for instance. You will find this option under Wipe -> Advanced Wipe, then select only one partition and then press the Repair or Change File System button. If a developer has added f2fs support for your device and we don't have it in TWRP, please contact me via PM to arrange for it to be added.
-Various bugfixes to backup and restore
-Improvements to USB storage handling
-Added a class to search for files to make finding the correct brightness file automatic in most cases
-Various other bugfixes and tweaks

-Faster graphics rendering by disabling alpha blending on fully opaque objects thanks to Tassadar
-Allow sideloading from /tmp on encrypted devices
-Check for a crypto footer before asking for a password to prevent user confusion
-Additional checks for validity to auto generated backup names
-Text wrap in the console output
-Proper caps lock support in the keyboard
-Mouse support via USB OTG for devices with a broken digitizer
-Improve scanning of storage locations for OpenRecoveryScript
-Haptic feedback for buttons, keyboard, and vibration at the end of longer running actions thanks to Samer Diab
-Fixed ext4 wiping when no selinux contexts are defined for that partition (e.g. sd-ext)
-Update SuperSU to 1.93 and improve installation process
-Added selinux contexts restoration to fix permissions
-Load RTC offset on Qualcomm devices to fix the date/time in recovery
-USB Mass Storage fixes Add SELinux support checking
-Add Disk Usage class to better handle excluded folders (e.g. Google Music cache)
-Add 4.4 decrypt support
-Add some toolbox utilities to TWRP (namely to support SELinux functions not supported in busybox)
-Various SELinux fixes and bug fixes

Note: 2.7 marks the first time that we are dropping support for older devices. We are doing this because of the SELinux support needed to install 4.4 Kit Kat ROMs. The non-TWRP parts of the recovery image have to be built in at least a 4.1 tree and the kernel that is included in the recovery image has to support writing SELinux contexts. We don't own most of the devices that we support so we depend on outside testers and developers to help us update devices. In many cases we can't find someone readily. Come to #twrp on Freenode if you want to help bring your device up to date. You can tell right away if your device will support 4.4 ROMs in 2.7. Boot TWRP and press the console button (the square-ish button either in the bottom middle or upper right) to view the console output. If it doesn't say "Full SELinux support" in the console, then your device still needs some work. Help us help you.

Most devices can be updated quickly and easily with the TWRP Manager app:
Play Store Link
1) Install TWRP Manager from the Play Store
2) Open TWRP Manager and provide root permissions
3) Hit Advanced->Install Recovery
4) Verify the correct device name on your screen then press Install Recovery if the correct device is showing
You can find more information and download links on our website!

If you have found a bug, please consider posting it to our github issues log. It's pretty much impossible for us to keep up with the more than 40 threads that we have for the devices that we "directly" support. If you have a significant problem that cannot be answered in this thread, your best bet is to PM me directly, contact us via our website, or find us in our IRC channel below. If you see someone that's struggling, feel free to point it out to us. We need your help to help us keep track of all of our devices! Thanks!

Live support is available via #twrp on Freenode with your IRC client or just click this link.
Last edited by Dees_Troy; 12th September 2014 at 09:15 PM.
The Following 146 Users Say Thank You to Dees_Troy For This Useful Post: [ View ]
12th July 2012, 08:53 PM   |  #2  
tennandcoz1's Avatar
Senior Member
Thanks Meter: 112
861 posts
Join Date:Joined: Feb 2011
Thanks brother

Sent from my SGH-T989 using xda premium
The Following User Says Thank You to tennandcoz1 For This Useful Post: [ View ]
12th July 2012, 09:10 PM   |  #3  
casonswag's Avatar
Senior Member
Flag Jacksonville
Thanks Meter: 898
3,973 posts
Join Date:Joined: Aug 2011
Love this recovery about to give this a go! So its a .img we gotta use odin and or terminal emulator to flash it?

Sent from my SGH-T989 using xda premium
Last edited by casonswag; 12th July 2012 at 09:17 PM.
12th July 2012, 09:11 PM   |  #4  
Lanaka's Avatar
Flag Honolulu, HI
Thanks Meter: 8
39 posts
Join Date:Joined: Aug 2011
Wohoo! FINALLY TWRP on the GS2! Loved it on my Evos, and gonna love it on my GS2!
12th July 2012, 09:18 PM   |  #5  
casonswag's Avatar
Senior Member
Flag Jacksonville
Thanks Meter: 898
3,973 posts
Join Date:Joined: Aug 2011
Originally Posted by Lanaka

Wohoo! FINALLY TWRP on the GS2! Loved it on my Evos, and gonna love it on my GS2!

We been had it bro this just a update!

Sent from my SGH-T989 using xda premium
The Following 2 Users Say Thank You to casonswag For This Useful Post: [ View ]
12th July 2012, 09:46 PM   |  #6  
mstrk242's Avatar
Senior Member
Flag Chicago, IL
Thanks Meter: 261
824 posts
Join Date:Joined: Apr 2010
Ability to name my backups, that's fantastic. Going to be very useful for me.
12th July 2012, 09:50 PM   |  #7  
AJ26T's Avatar
Senior Member
Flag nj
Thanks Meter: 180
1,139 posts
Join Date:Joined: Jun 2007
Should be able to flash it right through

Sent from my SAMSUNG-SGH-T989 using Tapatalk 2
12th July 2012, 09:55 PM   |  #8  
diego9016's Avatar
Senior Member
Thanks Meter: 163
580 posts
Join Date:Joined: May 2012
GooManager only shows the 2.1.8 to install through OpenRecoveryScript.
Any ideas on how to install v2.2.0 through the app?
12th July 2012, 09:56 PM   |  #9  
casonswag's Avatar
Senior Member
Flag Jacksonville
Thanks Meter: 898
3,973 posts
Join Date:Joined: Aug 2011
Oh well i just used terminal n its running flawless i love u can rename the backups and restores!

Sent from my SGH-T989 using xda premium
12th July 2012, 10:08 PM   |  #10  
Vinsane's Avatar
Senior Member
Flag Dallas
Thanks Meter: 113
1,283 posts
Join Date:Joined: Jul 2010
Originally Posted by AJ26T

Should be able to flash it right through

Sent from my SAMSUNG-SGH-T989 using Tapatalk 2

Which one? There is a and img

Sent from my SGH-T989 using XDA App

The Following 2 Users Say Thank You to Vinsane For This Useful Post: [ View ]
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Top Threads in T-Mobile Samsung Galaxy S II Android Development by ThreadRank