CyberSolutions: TWRP - Custom Recovery

Wednesday, March 15, 2017

TWRP - Custom Recovery


TWRP is one of the two main custom recoveries for Android. It’s installed when you root your phone or tablet and enables you to carry out a host of major hacks and tweaks, from creating full backups to flashing ROMs.
What is recovery?
Recovery is small piece of software that runs in the recovery partition on your device.
It is possible to boot into this partition, enabling you to power on and access the files on your phone without loading the Android OS. Because Android isn’t loaded the Android system files are not placed in memory, which means they can be accessed, edited and replaced.
When you install a system update on your device, booting into recovery is part of the process. Every device has a stock recovery installed for this reason, but it has no user-accessible functions.
Replacing the stock recovery with a custom recovery such as TWRP (Team Win Recovery Project) gives you access to the parts of your device that were previously off limits. That’s how you start hacking your phone.

TWRP vs ClockworkMod Recovery: which to choose

The two main stock recovery systems for Android are TWRP and ClockworkMod (CWM).
In most instances you won’t need to make a choice between them; the rooting method you choose for your device will be based on the use of either one or the other.
TWRP and CWM have similar feature sets, and there’s little practical difference between them. They do have different user interfaces and are not compatible with one another. A Nandroid backup made on one cannot be restored using the other.

Flash a ROM or zip

One of the main uses of a custom recovery is to flash a custom ROM.
To do this in TWRP tap the Install button. Assuming you’ve copied a ROM (in .zip format) or other flashable zip file into the device’s internal storage you can sue the Select Zip screen to locate and choose it.

With the zip selected you will be taken to the Confirm Flash screen. You can add multiple zips if you need to, by tapping the Add More Zips button.
When done you need to confirm that you’re ready to flash by swiping your finger along the Swipe to Confirm Flash slider. As soon as you do this, flashing will begin.
Don’t forget that you should always make a full Nandroid backup before you flash anything, no matter how innocuous it is. We’ll get to the backup section shortly.

Wipe data or factory reset
Next along the grid of options is Wipe.
If you flash a ROM, wiping at least some parts of the device, if not all, is necessary. (Follow the instructions for the ROM you’re flashing for guidance on what you need to wipe.)
In TWRP the default option is a factory reset, which wipes the entire device.
Tap the Advanced Wipe button and you can choose the specific partitions to wipe—Dalvik CacheSystem and Cache will be needed for most ROMs. Data will wipe your data, and is often needed. Internal Storage clears your internal store, and is something you would do for a full factory reset but is rarely needed when flashing a ROM.

Either way, make sure you’ve got your data backed up properly, and not just through a Nandroid backup. For an easy way of backing up and restoring app data check out our guide to Helium.
Again, once you have selected the partitions to wipe, you will be required to swipe the slider to confirm. There’s no going back once you do this.

Fix permissions

Fix permissions can be used if you’re encountering a large number of app problems, such as frequent crashes (and we mean frequent—it won’t solve the occasional app force close).
Fixing permissions only takes a couple of minutes to complete, and there are no downsides to doing it.

ADB Sideload

ADB Sideload enables you to connect your phone to your desktop and sideload apps over ADB, which is available through the Android SDK. A common use of this is if you’re replacing a system file with a tweaked version.

File Manager

The File Manager, as its name implies, is a tool for accessing the files stored on your Android device.

Wrap up

TWRP is a powerful tool that gives you full control over the insides of your phone without needing to boot into Android.
It can be used to flash custom ROMs or minor app mods, as well as to create and manage backups. Understanding how TWRP works and what you can do with it will make you far more confident when attempting Android hacks of various kinds. It’s also worth keeping the software updated as new features, and an extra layer of user friendliness are added on a regular basis.

No comments :

Post a Comment