FORUMS
Remove All Ads from XDA

 View Poll Results: Do you want also a CWM recovery?

Yep
 
65 Vote(s)
53.28%
Nope
 
57 Vote(s)
46.72%

[RECOVERY] (Un-)tethered TWRP 2.8.7.0 for Asus ZenFone 2 (x86)

1,488 posts
Thanks Meter: 1,815
 
By TheSSJ, Senior Member on 31st May 2015, 02:40 PM
Post Reply Email Thread
Hi folks,

finally we compiled a(n un-)tethered TWRP package for our ZenFone 2 (confirmed on ZE551ML and ZE500ML)!

!!! NOTE: If you want to apply a new OTA update, please flash stock recovery first !!!

Also, if you encounter any errors with the official recovery by TeamWin, please don't ask for support here as this is an unofficial build (done with the hard work of many people collaborating in a great manner!)

If you don't want to unlock your Bootloader, you can use the tethered recovery.

Tethered (=after a reboot everything is back to normal)

Features:
- Compiled with CM12 sources (although CM12 and TWRP are not liking each other very much )
- Optimized for x86 (smooth UI now)
- internal and external storages are mounted correctly
- Backup of boot, system, cache and data possible
- Full Crypto and SELINUX support

Bugs:
- Sometimes Backup and Restore hang. Fortunately it doesn't begin these operations so you don't brick your device (any hints on this are welcome!)
- USB Storage mount doesn't appear to work at all (pretty sure I took the correct path to the LUN file)

How to use:
- Download the tethered CWM package from here (method 2): http://forum.xda-developers.com/zenf...one-2-t3114063
- replace the recovery.zip in "CWM_Zenfone_2_IntelFB_RecoveryLauncher" with the one you can find in the download section
- start the procedure by using cai_dat_CWM.bat
- type ACCEPT (case sensitive!) and enter
- type T4 and enter
- Set your timezone when booting the first time into the Recovery, maybe this fixes the backup and restore bug (needs to be done just once)
- Unplug your USB cable from the device, too, before flashing, backing up and/or restoring



Untethered (=permanent recovery)

Features:
- Compiled with CM12 sources
- Optimized for x86 (smooth UI now)
- internal and external storages are mounted correctly
- Backup of boot, system, cache and data possible
- Full Crypto and SELINUX support
- kernel compiled dynamically (thanks to @crpalmer and @jrior001 and all involved for their fantastic work) with permissive Selinux
- USB-OTG support added (Beta supports NTFS file systems)
- Splashscreen can be backed up (to fiddle around and create your own)
- img files flashable now via recovery (thanks to @cangcan, @yakub234go and @vampirefo)
- F2FS support on kernel side

Drawbacks:
- MTP doesn't work

How to use:

Method 1
Get root rights
Unlock your bootloader
Download twrp.img from the download section and put on sd card (or pick the beta version for NTFS support)
Fire up adb or install a terminal emulator and type:
Code:
su
dd if=/sdcard/twrp.img of=/dev/block/by-name/recovery 
reboot recovery
Method 2
Download twrp.img from the download section and put in your adb/fastboot directory
Unlock your bootloader
Boot into bootloader (turn off, keep Vol+ pressed and press the power button until it vibrates - then release ONLY the power button and keep volume up pressed until you see the fastboot GUI
Open up fastboot on your PC and type:
Code:
fastboot flash recovery twrp.img
Then press vol down 2 times until "Reboot recovery" shows up and press power 1 time to boot into recovery

Method 3 (if you have an older version of TWRP already installed)
Place img on your internal sdcard, then reboot to recovery, click install zip, then select "Images..." in bottom right, then you see the img. Tick "Recovery" afterwards and then on OK.


Download folder:
Google Drive

Cheers!

Credits

@social-design-concepts for the great tethering method and the brilliant support and guidance
@vampirefo also his support and guidance
@updateing for the link to the commit for x86 pixelflinger
@jrior001 and @crpalmer for the great work on the kernel source
etc. etc.

Special thanks:
@Drew442 Thanks for the contribution!
Amir J. - thank you too!

TeamWin for their great recovery

XDA:DevDB Information
[RECOVERY][LOLLIPOP ONLY] (Un-)tethered TWRP 2.8.7.0 for Asus ZenFone 2 (x86), Tool/Utility for the Asus ZenFone 2

Contributors
TheSSJ, social-design-concepts, vampirefo, updateing, crpalmer, jrior001, knoneNull, etc etc
Source Code: https://github.com/TheSSJ/device_asus_zenfone2


Version Information
Status: Stable
Current Stable Version: 21_f2fs
Stable Release Date: 2015-07-02

Created 2015-06-04
Last Updated 2016-09-24
The Following 140 Users Say Thank You to TheSSJ For This Useful Post: [ View ] Gift TheSSJ Ad-Free
 
 
31st May 2015, 02:40 PM |#2  
TheSSJ's Avatar
OP Senior Member
Thanks Meter: 1,815
 
Donate to Me
More
Update 07-02-2015
ADB sideload works now (thanks @jrior001 & @crpalmer)! Make sure to download the latest ADB version: http://forum.xda-developers.com/show...php?p=42407269, credits for this to @shimp208

Update 06-30-2015
NTFS Support tested extensively and proved to be stable (not elegant, but functional)
Added recovery partition back to recovery.fstab to make it flashable via recovery itself

Update 06-28-2015
Moved to stable state
Added Beta version for NTFS support (twrp_ntfs.img)

Update 06-23-2015b
Upgraded source to TWRP 2.8.7.0

Update 06-23-2015
Functional TWRP with fast wipe/restore (-DNO_SECURE_DISCARD, thanks crpalmer)
ADB works
Just have fun in fiddleing around with the recovery
If no bugs will be reported we can declare this recovery stable

Update 06-10-2015
Boardconfig parameters changed, seems to back up, restore and flash even with USB cable attached

Update 06-04-2015b
Rolled back to 2.8.5.0 as restoring threw out the error that system was not being able to mount rw
Everything works now!

Update 06-04-2015
Built a version optimized for x86, fixes UI lags
Added Crypto Support again

Update 06-02-2015b
Removed TW_INCLUDE_CRYPTO flag as it caused backup operation to freeze

Update 06-02-2015
Moved to Beta stage
Fixed mounting of external SD

Update 06-01-2015
Completely reworked BoardConfig.mk
Removed all modules
Added @vampirefo 's adbd and adbd-recovery binaries from his TWRP builds (dunno why, but there aren't any binaries in my builds?) - thanks!
Graphics work now (still slow, need to fine tune with the correct boardconfig flags), no double backups, no flickering!

Update 05-31-2015
Included USES_ION flag into boardconfig.mk
Removed cpu temperature to reduce redraws

a little more stable now!
The Following 34 Users Say Thank You to TheSSJ For This Useful Post: [ View ] Gift TheSSJ Ad-Free
31st May 2015, 03:38 PM |#3  
Pilz's Avatar
Senior Member
Flag Texas
Thanks Meter: 2,603
 
Donate to Me
More
Nice I can't wait for the BL to be fully unlocked so we van get native TWRP.
31st May 2015, 05:08 PM |#4  
jejemc's Avatar
Senior Member
Flag paris
Thanks Meter: 434
 
Donate to Me
More
Hello recovery or rest and it just temporary? thank you
31st May 2015, 08:02 PM |#5  
TheSSJ's Avatar
OP Senior Member
Thanks Meter: 1,815
 
Donate to Me
More
Quote:
Originally Posted by jejemc

Hello recovery or rest and it just temporary? thank you

Hi,

yes, after rebooting no trace of TWRP is left
I have updated the zip now. It is a little stabler after I removed the CPU temperature, but still I have the feeling there are 2 GUIs sharing the same screen. Weird - I have to do more research - maybe I have to write my own UI updater...

Cheers
The Following 6 Users Say Thank You to TheSSJ For This Useful Post: [ View ] Gift TheSSJ Ad-Free
31st May 2015, 09:11 PM |#6  
cjvzla's Avatar
Senior Member
Thanks Meter: 24
 
More
the gears are slowly moving! i hope BL gets unlocked by the time my ZF2 arrives..

is this for any ZF2 variant or just 551ML (4gb ram/2gb ram versions)?

thanks for taking the time with this (hopefully) awesome device!
1st June 2015, 02:59 AM |#7  
Senior Member
Thanks Meter: 4
 
More
This is awesome..thanks for your contribution! I am hoping for some custom roms..the stock ZenUI isn't the greatest :/
1st June 2015, 03:24 AM |#8  
Recognized Developer
Thanks Meter: 8,265
 
Donate to Me
More
Quote:
Originally Posted by TheSSJ

Hi folks,

I managed to compile a tethered TWRP package for our ZenFone 2!

Do you have a link to your device repo?

Are there specific instructions for using it to build a tethered recovery (I'm familiar with building twrp, including within CM, but I haven't looked much into what the tethered exploit does to boot the recovery).
The Following 2 Users Say Thank You to crpalmer For This Useful Post: [ View ]
1st June 2015, 08:48 AM |#9  
Member
Thanks Meter: 3
 
More
It seems I have successfully completed a Backup! As mentioned, the interface is painfully slow at times, but this is serious progress. Has anybody tried restoring a backup yet?
1st June 2015, 09:03 AM |#10  
Member
Flag KOTTAYAM
Thanks Meter: 45
 
Donate to Me
More
Could you please develop twrp or cwm for asus 450cg
1st June 2015, 09:44 AM |#11  
Senior Member
Flag Ha Noi
Thanks Meter: 210
 
More
NOTE:
1 backup successfully
2 Use Very lag
3 flash zip not work
Post Reply Subscribe to Thread

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

Advanced Search
Display Modes