[Android General] zainifame:
Team Win Recovery Project 3.0.2-0

How it looks :

Notice

: I don't own the device my self, so i need some one to test this method.

This will allow you to install TWRP and flash SuperSU!

Step 1 : Unlocking your bootloader

You need unlock bootloader first before installing twrp.

You will also need adb and fastboot. You can download them in a portable small form factor here :

[ADB FASTBOOT][LINUX&WINDOWS]

Start by turning on developer options in Settings -> About device -> Software info -> Build number. (tap 7 times until it's enabled)

Now navigate to Settings -> Developer options -> OEM unlock. (turn it on)

Don't ever turn OEM unlock or Developer options off when using a custom ROM or recovery. This could lose to loss of all your data.

Enable usb debugging on developer option, and extract adb and fastboot to a folder on your PC.

Type adb start-server and make sure to check the notification on your phone to accept debugging authorization.

You can reboot into fastboot mode with adb reboot bootloader once authorized.

If it fails to authorize or show the notification on your phone, you may need to try other USB ports.

You can check the status of your bootloader lock with the fastboot getvar all command.

ex. (bootloader) unlocked:yes

Step 2 : Running recowvery

You can find the recowvery binaries (you need to download all of these) at :

Here

You're now ready to follow the recowvery installation instructions.

See here (running section)

Bonus: There's also a full write up on that page on how recowvery works if you're into that kind of stuff.

Step 3 : Flashing TWRP & Rooting

Once you've got your permissive shell in adb, you will have access to your partitions via dd.

You should transfer TWRP to your internal storage (name in twrp.img) using MTP, or you can also just use adb push. (mentioned here)

Download TWRP build here.

This step requires that you've used dirtycow to replace /system/bin/run-as with recowvery-run-as. If you've rebooted since doing that, you will need to go back and do that again.

adb push twrp-3.0.2-x-xxxx.img /sdcard/twrp.img
adb shell
$ run-as exec dd if=/sdcard/twrp.img of=/dev/block/bootdevice/by-name/recovery
"<wait for it to complete>"
$ reboot recovery

You should be inside TWRP now. It will ask you if you want to enable system modifications. You should swipe yes, otherwise your OS will replace TWRP on next boot.

Flash the latest zip from here to turn off forced encryption at boot and allow you to boot a modified system. If you're flashing SuperSU.zip, it will also do this for you so this won't be necessary.

Warning: If you don't flash either no-verity-opt-encrypt or SuperSU, you will probably end up in a horrifying never-ending boot loop of "corruption"!

Latest SuperSU : here

To disable encryption after flashing SuperSU or the no-verity-opt-encrypt zip, you must use the [Format Data] button on the Wipe page in TWRP. No other options will work.

Back up all your internal storage and apps data that you can to your PC. You can use Titanium Backup with SuperSU before doing this step if you like.

Warning: Using [Format Data] will wipe all your apps and data (including internal storage) off the phone, giving you the out-of-the-box experience of a new phone!

Once this is done, you should be able to backup/restore/use any function of TWRP without any issues.

Flashed SuperSU? You're done! Boot up (it will reboot a few times) and set up your SuperSU Manager to your liking and give this post a thanks! :D

Step 4 : Have fun!

:)