[ZenFone 2 General] mhp1995:
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​

*******************************************************************************************************************

Drivers | ADB installer

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

Rooting | Flashing | Applying OTA

Changing from CN to WW version

Unlocking Bootloader (UNOFFICIAL METHOD)

Xposed Framework Installer

Viper4Android Related Stuff

Adjusting DPI without root

NTFS support for OTG devices

******************************************************************************************************************

1) Drivers | ADB installer:

ASUS USB DRIVERS (FOR INSTALLING THESE DRIVER SEE THIS https://software.intel.com/en-us/articles/installation-instructions-for-intel-android-usb-driver)

15 sec ADB installed

________________________________

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

2.1) Entering Recovery mode

​

Steps:

Turn off you Zenfone 2

Hold Power button + Volume up

When the phone is vibrating release power button

You can select Normal boot or Recovery boot by pressing Volume up/down button.. To enter Recovery mode choose recovery boot.

Then you will see sleeping android robot. Press power button + Volume up and release the buttons.

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:

​

Enter recovery as you normally do

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:

​

Connect your device and open adb

In adb Type

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://xdaforums.com/zenfone2/development/alpha-tethered-twrp-asus-zenfone-2-t3123532 or at http://xdaforums.com/devdb/project/?id=10167#bugReporter

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

Steps:

Replace the recovery.zip in "CWM_Zenfone_2_IntelFB_RecoveryLauncher" from http://xdaforums.com/devdb/project/dl/?id=13221

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

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://xdaforums.com/zenfone2/development/alpha-tethered-twrp-asus-zenfone-2-t3123532 or at http://xdaforums.com/devdb/project/?id=10167#bugReporter

​

Steps:

Method 1:

Root your device (See #3.1 in this thread)

Unlock your Bootloader (See this thread http://xdaforums.com/zenfone2/general/congrats-to-bootlocker-unlocked-t3138547)

Download twrp.img , unpack and put on sd-card

Open adb and type

su
dd if=/sdcard/twrp.img of=/dev/block/by-name/recovery
reboot recovery

Method 2:

Download twrp.img , unpack and put it in your adb/fastboot directory

Unlock your Bootloader (See this thread http://xdaforums.com/zenfone2/general/congrats-to-bootlocker-unlocked-t3138547)

Boot into bootloader

Open up fastboot on your PC and type:

fastboot flash recovery twrp.img

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 M

ETHOD

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:

Drivers for Asus Zenfone 2 installed on PC

ADB installed on your PC (https://drive.google.com/file/d/0B0MKgCbUM0itVVFWRC02Q0VBQnc/view?usp=sharing)

Flash Tools (http://xdaforums.com/attachment.php?attachmentid=3301263&d=1431011927)

Pre-rooted system.img and recovery (https://mega.co.nz/#F!k4MHiAgL!dVuOKeH3eokcwPSNI79ffw) (Download the correct firmware according to your phone)

WinRar

Steps:

Download the pre-rooted system.img folder (Download the correct firmware according to your phone ZE550ML = Z008 , ZE551ML = Z00A )

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.

Unzip the FlashTools.zip and copy the following 4 downloaded files and paste it into extracted flashtools folder:

boot.img (~ 11MB)

droidboot.img (~ 13MB)

recovery.img (~ 11MB)

system.img (~ 2GB)

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"

Now connect your phone via USB to your computer.

At the flashtools folder press Shift + Right Click.. Then select "Open command here"...

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:

fastboot flash fastboot droidboot.img
fastboot flash recovery recovery.img
fastboot flash boot boot.img
fastboot flash system system.img

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:

Download the Asus Zenfone temporary CWM package

Unzip the package

Copy SuperSU.zip to the base of your SD card

Enable USB debugging

With your phone on, attach it to PC via USB

Run 'cai_dat_CWM.bat' from the CWM package

In the black command window that opens, type ACCEPT

Type T4

Phone will reboot into fastboot and you'll see commands being issued from the PC cmd window copying the temporary recovery

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

Select install update

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:
​

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

Unzip and connect your phone to PC

Run CheckBeforeAction.bat .... You will get confirmation to proceed to next step

Now run Root_zenfone.bat

Your Device will be rooted automatically

Steps for rooting if you are a LINUX user:
​

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

Unzip and run root.sh

3.2) Flashing Zenfone 2 via ADB

Tools Required:

Asus USB Drivers

ADB installed on your PC/Laptop

Asus Zenfone 2 Firmware from the Official ASUS support website

Method:

Turn off your Zenfone 2

Go to recovery mode

Select apply update from ADB

Connect your zenfone 2 with USB cable to your PC/laptop

Open command prompt in Windows (in the same folder where ADB is located)

Check connection by typing adb devices in the command prompt.. If connection successful there will be a list of Zenfone 2 device.

Type

adb sideload file.zip (where file.zip is the file name of the Asus firmware)

Wait until the process is complete

3.3) Applying OTA
​

credit goes to: ansebovi

For applying OTA please see this thread:

http://xdaforums.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

Download the latest recovery image

(For Z00A=

2.1

9

.40.

2

2 , For Z008=

2.1

9

.40.

13

)

from http://www.mediafire.com/folder/setyy42t2cymy#dy87k1a0f8m81

Boot to fastboot mode (Power + Vol Up)

Using ADB command prompt flash files by using fastboot commands :

[/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://xdaforums.com/zenfone2/general/congrats-to-bootlocker-unlocked-t3138547

____________________________

​

6) Xposed Framework Installer

​

To install Xposed Framework on Zenfone 2 follow these steps:

Download Xposed Installer from https://drive.google.com/file/d/0B7ujzTEVERI_T3I4bUtrWUJlRzQ/view?usp=sharing

Connect your zenfone 2 with USB (USB debugging enabled)

Extract the downloaded folder and launch InstallXposedFramework.bat (phone will reboot)

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
​

Make sure you have rooted, installed busy box and set the SE-Linux to permissive on your phone

Download the Viper4Android zip file from http://www.mediafire.com/?cnqqdme51qy9ft4

Extract the zip file and copy "ViPER4Android_FX_A4.x.apk" on your phone

Install the apk and open it... You will be asked to install the drivers..Click "Yes" and reboot your phone

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

th

ese

will cause the loss of sound

Find and Remove this 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)

[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://xdaforums.com/attachment.php?attachmentid=3374586

7.3) Convolver Samples for Viper4android
​

Here is the collection of Convolver Samples for Viper4android (around 390)..

http://xdaforums.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

adb devices

3) If you see your phone go ahead and type

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:

Click to download vold_with_NTFS

Unpack archive and replace /system/bin/vold

Set permissions 755 (rwxr-xr-x): chmod 755 /system/bin/vold

Reboot

STOCK VOLD FILE :
​

credit goes to: GeneralPag for uploading the stock vold file

https://docs.google.com/uc?id=0B4lokICL3cTDaVVzRnBSOGdHcGM&export=download

​