Asus Zenfone 2 | Resources all in one thread

mhp1995

Senior Member
Jan 5, 2014
481
473
83
New Delhi
Hello XDA brothers :cowboy:

First of all i want to thank all the devs for their efforts. I have collected & compiled all the info from various sources, credit as usual goes to original devs
PS: Ok guys this thread will be updated real soon as i was able to get some extra space... Will post the latest developments in the reserved area..I want to thank this really helpful mod @mark manning as this thread will remain active because of him only

*******************************************************************************************************************
INDEX
*******************************************************************************************************************
  1. Drivers | ADB installer
  2. Recovery Related Stuff (Entering Recovery|Stock Recovery | Custom Recovery)
  3. Rooting | Flashing | Applying OTA
  4. Changing from CN to WW version
  5. Unlocking Bootloader (UNOFFICIAL METHOD)
  6. Xposed Framework Installer
  7. Viper4Android Related Stuff
  8. Adjusting DPI without root
  9. NTFS support for OTG devices
******************************************************************************************************************

1) Drivers | ADB installer:


________________________________

2) Recovery Related Stuff (Entering Recovery| Stock Recovery | Custom Recovery)


2.1) Entering Recovery mode

Steps:

  1. Turn off you Zenfone 2
  2. Hold Power button + Volume up
  3. When the phone is vibrating release power button
  4. You can select Normal boot or Recovery boot by pressing Volume up/down button.. To enter Recovery mode choose recovery boot.
  5. Then you will see sleeping android robot. Press power button + Volume up and release the buttons.
  6. You are now in Recovery mode
NOTE: After rooting many users are not able to enter recovery..The dead android bot with error appears...To enter recovery follow these steps:

Method 1:

  1. Enter recovery as you normally do
  2. When you see a dead android bot with an error press and hold power button, then (while holding power button) quickly press Vol up and release and then release power button..


NOTE: IF METHOD 1 FAILS try METHOD 2 it will definitely work

Method 2:

  1. Connect your device and open adb
  2. In adb Type
    Code:
    fastboot erase cache



2.2) Stock Recovery

For STOCK recovery collection: http://www.mediafire.com/folder/setyy42t2cymy#dy87k1a0f8m81



2.3) Custom Recovery


2.3.1) Tethered Recovery

NOTE: YOU MAY STILL FACE SOME BUGS as this project is STILL IN DEVELOPMENT STAGE.. If you experience any bug please report to the OP at http://forum.xda-developers.com/zenfone2/development/alpha-tethered-twrp-asus-zenfone-2-t3123532 or at http://forum.xda-developers.com/devdb/project/?id=10167#bugReporter

credit goes to: TheSSJ , social-design-concepts , vampirefo

Steps:


  1. Replace the recovery.zip in "CWM_Zenfone_2_IntelFB_RecoveryLauncher" from http://forum.xda-developers.com/devdb/project/dl/?id=13221
  2. Start the procedure by using cai_dat_CWM.bat
  3. Type ACCEPT (case sensitive!) and enter
  4. Type T4 and enter
  5. 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)
  6. Unplug your USB cable from the device, too, before flashing, backing up and/or restoring


2.3.2) UN-Tethered Recovery

NOTE: YOU MAY STILL FACE SOME BUGS as this project is STILL IN DEVELOPMENT STAGE.. If you experience any bug please report to the OP at http://forum.xda-developers.com/zenfone2/development/alpha-tethered-twrp-asus-zenfone-2-t3123532 or at http://forum.xda-developers.com/devdb/project/?id=10167#bugReporter

Steps:


Method 1:

  1. Root your device (See #3.1 in this thread)
  2. Unlock your Bootloader (See this thread http://forum.xda-developers.com/zenfone2/general/congrats-to-bootlocker-unlocked-t3138547)
  3. Download twrp.img , unpack and put on sd-card
  4. Open adb and type
    Code:
     su
    dd if=/sdcard/twrp.img of=/dev/block/by-name/recovery 
    reboot recovery
Method 2:

  1. Download twrp.img , unpack and put it in your adb/fastboot directory
  2. Unlock your Bootloader (See this thread http://forum.xda-developers.com/zenfone2/general/congrats-to-bootlocker-unlocked-t3138547)
  3. Boot into bootloader
  4. Open up fastboot on your PC and type:
    Code:
     fastboot flash recovery twrp.img
  5. Reboot into Recovery
_____________________________

3) Rooting | Flashing | Applying OTA
3.1) Rooting Zenfone 2



NOTE:
If you root via METHOD 1 you can update SuperSu app as well as update binaries but PLEASE DON'T apply any OTA update as the phone WILL GET STUCK IN A BOOTLOOP...Manually flash the firmware via adb...

If you root via METHOD 2 you CAN UPDATE VIA OTA/NO BOOTLOOPS BUT YOU HAVE TO UNROOT FIRST BEFORE APPLYING OTA

If you root via METHOD 3 you CAN UPDATE VIA OTA/NO BOOTLOOPS AND UN-ROOTING BEFORE APPLYING ANY OTA IS NOT NECESSARY.

Method 1 (PRE-ROOTED SYSTEM.IMG) :



Credit goes to: shakalaca , keepfishes

First things first: (get this straight, don't download the wrong firmware and flash the wrong thing)
ZE550ML = Z008
ZE551ML = Z00A

Files Needed:


  1. Drivers for Asus Zenfone 2 installed on PC
  2. ADB installed on your PC (https://drive.google.com/file/d/0B0MKgCbUM0itVVFWRC02Q0VBQnc/view?usp=sharing)
  3. Flash Tools (http://forum.xda-developers.com/attachment.php?attachmentid=3301263&d=1431011927)
  4. Pre-rooted system.img and recovery (https://mega.co.nz/#F!k4MHiAgL!dVuOKeH3eokcwPSNI79ffw) (Download the correct firmware according to your phone)
  5. WinRar
Steps:

  1. Download the pre-rooted system.img folder (Download the correct firmware according to your phone ZE550ML = Z008 , ZE551ML = Z00A )
  2. Download and run WinRAR . Click on the '.zip' part of the system.img file. You will see that WinRAR puts all the parts together and offers you an option to extract the one big system.img. Go ahead and extract it to the folder the other parts of the ROM are in.
  3. Unzip the FlashTools.zip and copy the following 4 downloaded files and paste it into extracted flashtools folder:
    1. boot.img (~ 11MB)
    2. droidboot.img (~ 13MB)
    3. recovery.img (~ 11MB)
    4. system.img (~ 2GB)
  4. Disconnect your phone from PC/Laptop.. Power it off. Once it is off, hold down the volume up button and hold on to the power button until the phone vibrates. After the vibration stops, release the power button and continue pressing the volume up button until the green Android robot appears. You should see a blue line below saying "Waiting Fastboot command"
  5. Now connect your phone via USB to your computer.
  6. At the flashtools folder press Shift + Right Click.. Then select "Open command here"...
  7. Copy and paste the following commands in the command prompt window (line by line) and press enter after each line. WAIT for the process to complete before copying and pasting the next line:
    Code:
    fastboot flash  fastboot  droidboot.img
    fastboot flash recovery recovery.img
    fastboot flash boot boot.img
    fastboot flash system system.img
  8. The last step will take quite a while before it returns to the blinking cursor. Once it does, it's done and you can plug out the USB and press the power button, reboot your phone and when it starts up, your phone is ROOTED! You should see a # sign in the status bar

Method 2 (ROOTING VIA TEMPORARY CWM):

Credit goes to: @29y6145 , social-design-concepts , Chinaphonearena

NOTE: This is a TEMPORARY CWM with the primary purpose of INJECTING SuperSU onto your Asus Zenfone 2. It doesn't permanently replace recovery and YOU CAN UPDATE VIA OTA USING THIS METHOD BUT PLEASE UNROOT FIRST BEFORE APPLYING ANY OTA...

Steps:


  1. Download the Asus Zenfone temporary CWM package
  2. Unzip the package
  3. Copy SuperSU.zip to the base of your SD card
  4. Enable USB debugging
  5. With your phone on, attach it to PC via USB
  6. Run 'cai_dat_CWM.bat' from the CWM package
  7. In the black command window that opens, type ACCEPT
  8. Type T4
  9. Phone will reboot into fastboot and you'll see commands being issued from the PC cmd window copying the temporary recovery
  10. You may see some funked up images on your display for a bit. Remove the USB cable and within 30 seconds should then see it booted into CWM
  11. Select install update
  12. Navigate to SuperSU.zip and install

Method 3 (1 CLICK ROOT TOOL):

credit goes to: shakalaca for this tool , saurabhrck for informing me about the updated tool

Note: You need Asus Zenfone 2 drivers and ADB installed on ur PC

Steps for rooting if you are a WINDOWS user:


  1. Download the 1 Click Root Tool for Zenfone 2 from https://mega.co.nz/#!R8k0zACY!xaiNnxyAijsUwJL3l9koo1Iyr-pIjQmwVkVE8A_lv8Y or from https://drive.google.com/file/d/0B936USMlQhtKbmZLZDE3N1JMazA/view?usp=sharing
  2. Unzip and connect your phone to PC
  3. Run CheckBeforeAction.bat .... You will get confirmation to proceed to next step
  4. Now run Root_zenfone.bat
  5. Your Device will be rooted automatically

Steps for rooting if you are a LINUX user:

  1. Download 1 Click root tool from MEGA https://mega.co.nz/#!R8k0zACY!xaiNnxyAijsUwJL3l9koo1Iyr-pIjQmwVkVE8A_lv8Y
    or from Google Drive https://drive.google.com/file/d/0B936USMlQhtKbmZLZDE3N1JMazA/view?usp=sharing
  2. Unzip and run root.sh


3.2) Flashing Zenfone 2 via ADB


Tools Required:
  1. Asus USB Drivers
  2. ADB installed on your PC/Laptop
  3. Asus Zenfone 2 Firmware from the Official ASUS support website
Method:

  1. Turn off your Zenfone 2
  2. Go to recovery mode
  3. Select apply update from ADB
  4. Connect your zenfone 2 with USB cable to your PC/laptop
  5. Open command prompt in Windows (in the same folder where ADB is located)
  6. Check connection by typing adb devices in the command prompt.. If connection successful there will be a list of Zenfone 2 device.
  7. Type
    Code:
    adb sideload file.zip (where file.zip is the file name of the Asus firmware)
  8. Wait until the process is complete



3.3) Applying OTA

credit goes to: ansebovi

For applying OTA please see this thread:

http://forum.xda-developers.com/zenfone2/general/guide-to-apply-ota-bootloop-rooted-zf2-t3127835

_____________________________

4) Changing from CN to WW version



Credit goes to: vivix

Please follow these steps to change your firmware from CN version to WW version:

NOTE: PLEASE DOWNLOAD THE CORRECT RECOVERY IMAGE...
ZE550ML = Z008
ZE551ML = Z00A


  1. Download the latest recovery image (For Z00A=2.19.40.22 , For Z008= 2.19.40.13) from http://www.mediafire.com/folder/setyy42t2cymy#dy87k1a0f8m81
  2. Boot to fastboot mode (Power + Vol Up)
  3. Using ADB command prompt flash files by using fastboot commands :
    Code:
    [/B][/FONT][CODE] [FONT=Century Gothic][B]fastboot flash recovery recovery.img
    [/B][/FONT] [FONT=Century Gothic][B] fastboot flash boot boot.img
    [/B][/FONT] [FONT=Century Gothic][B] fastboot flash fastboot droidboot.img
    [/B][/FONT]
    [*]Reboot phone
    [*] Download the latest OTA... For Z00A= 2.19.40.22 click here ......... For Z008=2.19.40.13 click here
    [*]FOR Z00A users: Rename OTA file from UL-Z00A-WW-2.19.40.22-user.zip to UL-Z00A-CN-2.19.40.22-user.zip to get notification about update available.
    [*]FOR Z008 users: Rename OTA file from UL-Z008-WW-2.19.40.22-user.zip to UL-Z008-CN-2.19.40.22-user.zip to get notification about update available.
    [*] Update via notification about new update available
    [*] Wait till update will finish (approx 10 min)



_____________________________

5) Unlocking Bootloader (UNOFFICIAL METHOD)

Credits goes to: ravian29, shakalaca

NOTE: Please note that this method is not recommended by Asus and is the un-official method of unlocking bootloader...Please proceed at your own risk..

For unlocking your boot-loader please visit this thread: http://forum.xda-developers.com/zenfone2/general/congrats-to-bootlocker-unlocked-t3138547

____________________________

6) Xposed Framework Installer

To install Xposed Framework on Zenfone 2 follow these steps:


  1. Download Xposed Installer from https://drive.google.com/file/d/0B7ujzTEVERI_T3I4bUtrWUJlRzQ/view?usp=sharing
  2. Connect your zenfone 2 with USB (USB debugging enabled)
  3. Extract the downloaded folder and launch InstallXposedFramework.bat (phone will reboot)
  4. Now launch InstallXposedInstaller.bat to install Xposed apk on your phone. Enjoy Xposed on your zenfone 2
_____________________________

7) Viper4Android Related Stuff

NOTE: NEED ROOT FOR THIS, BUSYBOX INSTALLED AND SE-LINUX MODE SET TO PERMISSIVE


7.1) Installing Viper4Android on Zenfone 2

  1. Make sure you have rooted, installed busy box and set the SE-Linux to permissive on your phone
  2. Download the Viper4Android zip file from http://www.mediafire.com/?cnqqdme51qy9ft4
  3. Extract the zip file and copy "ViPER4Android_FX_A4.x.apk" on your phone
  4. Install the apk and open it... You will be asked to install the drivers..Click "Yes" and reboot your phone
  5. Enable Master switch for Viper4android on Headphones/Speaker/Bluetooth and tweak.


7.2) Enabling V4A on MXPlayer / PowerAmp / Youtube:



credit goes to: KaiStone

To make V4A work on these apps just push this audio_policy file in " /system/etc/"

Alternatively you can also edit audio_policy file manually by searching and editing "/system/etc/audio_policy.conf" file

NOTE: Please double check before removing any code as removing codes other than these will cause the loss of sound

Find and Remove this code:
Code:
deep_buffer {
        sampling_rates 48000
        channel_masks AUDIO_CHANNEL_OUT_STEREO
        formats AUDIO_FORMAT_PCM_16_BIT
        devices   AUDIO_DEVICE_OUT_EARPIECE|AUDIO_DEVICE_OUT_SPEAKER|AUDIO_DEVICE_OUT_WIRED_HEADSET|AUDIO_DEVICE_OUT_WIRED_HEADPHONE|AUDIO_DEVICE_OUT_ALL_SCO
        flags AUDIO_OUTPUT_FLAG_DEEP_BUFFER
      }
Consider to Remove (Consider Only, NOT NECESSARY until you doubt that you are facing some difficulties)

Code:
[COLOR=Red][COLOR=Black]codec_offload {
    outputs {
      codec_offload {
        sampling_rates 8000|11025|12000|16000|22050|24000|32000|44100|48000
        channel_masks AUDIO_CHANNEL_OUT_MONO|AUDIO_CHANNEL_OUT_STEREO
        formats AUDIO_FORMAT_MP3|AUDIO_FORMAT_AAC
        devices   AUDIO_DEVICE_OUT_EARPIECE|AUDIO_DEVICE_OUT_SPEAKER|AUDIO_DEVICE_OUT_WIRED_HEADSET|AUDIO_DEVICE_OUT_WIRED_HEADPHONE
        flags AUDIO_OUTPUT_FLAG_COMPRESS_OFFLOAD|AUDIO_OUTPUT_FLAG_NON_BLOCKING
      }
    }
  }
[/COLOR][/COLOR]
STOCK AUDIO_POLICY.CONF FILE IN-CASE YOU MESSED UP:

credits goes to: fuzzybuffalo

http://forum.xda-developers.com/attachment.php?attachmentid=3374586




7.3) Convolver Samples for Viper4android
Here is the collection of Convolver Samples for Viper4android (around 390)..
http://forum.xda-developers.com/zenfone2/general/collection-convolver-samples-389-t3140299



______________________

8) Adjusting DPI without root

Credit goes to BurritoBashr

To adjust the DPI follow the steps below, THIS DOES NOT REQUIRE ROOT.

NOTE: I have used the DPI 250 here you can adjust the DPI according to your own taste. The default DPI is 480


1) Enable USB Debugging
2) Start ADB and check if you see your device by typing
Code:
adb devices
3) If you see your phone go ahead and type
Code:
adb shell wm density 250
4) Reboot your phone to apply the effects system wide.


_____________________________

9) NTFS support for OTG devices
Credit goes to sorg
NOTE: PLEASE BACKUP YOUR VOLD FILE BEFORE DOING ANYTHING.

Steps:

  1. Click to download vold_with_NTFS
  2. Unpack archive and replace /system/bin/vold
  3. Set permissions 755 (rwxr-xr-x): chmod 755 /system/bin/vold
  4. Reboot
STOCK VOLD FILE :

credit goes to: GeneralPag for uploading the stock vold file
https://docs.google.com/uc?id=0B4lokICL3cTDaVVzRnBSOGdHcGM&export=download


 
Last edited:

vincexda

Member
May 11, 2005
47
11
0
Hi there,

In point 12, the links to the recovery images are dead....do you have an alternative location where they can be found?

Many thanks

*** Update ***
Sorry for the HUGE quote of the entire message I originally posted! I've now trimmed that out. And thanks again for the updated links.
 
Last edited:
  • Like
Reactions: chmac7

kanagawaben

Senior Member
Apr 18, 2015
1,877
801
113
Minamiashigara
Can I root with pre-rooted image following the steps in this thread if I am already on the more recent firmware update version? And if you are rooted is it still possible to keep root and OTA if you don't upgrade SU and SU binaries?
 
  • Like
Reactions: Mandrakerj

yurgade

Senior Member
May 10, 2015
81
12
0
upgrading chinese rom to ww rom - step 12.
could you explain how do i use adb? and where do i store the recovery images on my pc or phone?
is the CN version worthwhile after changing to ww rom? i got the 64gb for 337$, cancel the order or keep it?
thanks
 

Aceofzeroz

Senior Member
Apr 18, 2013
891
1,022
0
Brown's Town
Can I root with pre-rooted image following the steps in this thread if I am already on the more recent firmware update version? And if you are rooted is it still possible to keep root and OTA if you don't upgrade SU and SU binaries?
For your second question, I know that one is correct. If you're on the most recent firmware update, then you'll need to flash the same pre-rooted firmware. Check out shacka's links to see if it's there, and if not then keep checking until he uploads it.;):cool:

Sent from the Ace's MB865 using Tapatalk
 
  • Like
Reactions: kanagawaben

kanagawaben

Senior Member
Apr 18, 2015
1,877
801
113
Minamiashigara
For your second question, I know that one is correct. If you're on the most recent firmware update, then you'll need to flash the same pre-rooted firmware. Check out shacka's links to see if it's there, and if not then keep checking until he uploads it.;):cool:

Sent from the Ace's MB865 using Tapatalk
Thanks. Was actually able to get the earlier firmware version pre-rooted image flashed and working following the steps in this thread, although it didn't work properly first time of trying (kept getting some error message about android.media). Once I had deleted user data and reflashed the pre-rooted image it worked fine. However, when I tried to do OTA I got stuck in a bootloop despite not having updated su or binaries - I guess some legacy of having previously been on the latest firmware? Anyway, sorted it out and all working fine and fast now on rooted and debloated 2.14.30.11 so I'm happy to stick with that until a more major update comes along (Android 5.1 for example).
 
  • Like
Reactions: Aceofzeroz

yosephxu

New member
May 13, 2015
1
1
0
Surabaya
Error!

I followed the instructions on "3) Rooting Zenfone 2" to root my ZE551ML / Z00A, and rebooted the phone.

Now my phone is messed up:
- it wont take me to homescreen ("Unfortunately, System UI has stopped", "Unfortunately, the process android.process.media has stopped")
- i can get past lockscreen
- tried rerooting again to no success
- phone wont boot to recovery (error & dead android with red triangle)

Note that the phone isnt bricked, and Im not stuck in a bootloop.

What do I do? Please help.. :(
 
  • Like
Reactions: prapromtha

kanagawaben

Senior Member
Apr 18, 2015
1,877
801
113
Minamiashigara
Sounds similar to the problems I initially had. Try entering into fastboot mode then connect to your computer and do a fastboot -w command to wipe your cache and data. Then try to flash the images as per the root guide on this thread again.
 
  • Like
Reactions: mhp1995

crisjune

Member
May 14, 2015
15
2
0
after doing #12, update CN version to WW version

is it possible to receive an OTA Update via wifi after i upgrade my CN version to WW version. 2.15.40.13 has been released and yet i cant receive that ota update. is it possible?