yashsingh1/xdaforums huggingface dataset:
[ZenFone 2 General] umo4u:
yesterday was crazy as after rooting installing busybox,xposed,and viper4android i thought to change audio policy.config which landed me big problem that is i lost my sound.after that i put back stock audio policy.config but no solution than i deactivated xposed modules and removed xposed than busybox than unroot than hard reset but phone landed in bootloop and still no sound.i asked for help here and there but only senior member replied thanks to him but his answer did not contain solution so i proceeded further myself.i downloaded official firmware from asus for my device than used flashtool but reply was "failed to write data 'protocol fault (no status)'" so i used this tool to flash https://drive.google.com/file/d/0ByVE4nDVVCeIM1M2cFNjTjRadm8/view?usp=sharing and flashed my device and now everything is working fine now.hope it help others too those who face problem while flashing via adb sideload and getting errors.

---------- Post added at 10:33 AM ---------- Previous post was at 10:28 AM ----------

finally i decided not to root and do other things because many ota are coming ahead and it is time consuming to apply them and landing in problems so wait than do what i do :p my suggestion to other fellow juniors is that wait bros :highfive:
[ZenFone 2 General] locus_ab:
hi everyone.

anybody can tell me how i can replace "read only" file?)

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
[ZenFone 2 General] umo4u:
stock audio policy.config for 551ml

well i extracted and uploaded stock audio_policy.config from system image of 551ml 2.19.40.22 build number https://drive.google.com/file/d/0ByVE4nDVVCeIWHFpSkdoYWN3bkk/view?usp=sharing and to make viper4android system default there is another way to do it which by deleting musicfx but make backup of stock.credit goes to [MENTION=5010777]ansebovi[/MENTION] :cowboy::victory:
[ZenFone 2 General] Okazakee:
why it can't install drivers when i'm in recovery, pls help me, i have to flash firmware from sideload!

drivers are installed but when i go in recovery they're not installed, when try to install them, win won't install them, what can i do?!?
[ZenFone 2 General] percyjones:
This is a great guide, and to have everything in one place helps so much. Ive been a long time lurker, and have rooted a few things with varying levels of success. I figured this we be a great cheap phone to go all in on and really start to play around and tinker.

I have rooted the device, installed xposed and have started to play around.

I love to have my phone up to date at all times, so it would be great if someone could also post a method to unroot before doing an OTA. I know that the one click method is just a matter of running another .bat file. I went with the temp CWM method. Any help would be great, thanks!
[ZenFone 2 General] mhp1995:
Sorry guys was little busy these days... Now i have some free time and will update this thread with lots of new info,tools and guides :good::cool:
[ZenFone 2 General] MIKI0025:
need help

i have ZE551ML (Z00A)

virsion ww 2.13.40.13

recovery ww 2.19.40.22

try to update dont working

i try from adb it is fall in 55%

try to flash 2.19.40.22 fall and 2.14.40.19 to...

i whit root

but stuck in ww 2.13.40.13

plz help....
[ZenFone 2 General] mhp1995:
It won't update like this... you have to update ur phone in a sequential manner or you can flash the entire stock rom via adb and by entire rom i mean each partition i.e fastboot, recovery.img, boot.img and system.img....

For sequential manner you have to update it to: WW 2.14.40.19 and then to a higher firmware till you get the required firmware..

For sideloading the entire rom... Download the full stock rom or download separate partitions and then flash the OTA...

If you want pre-rooted rom just follow #3 Rooting (3.1 Rooting via pre-rooted system.img) in this thread... By this method you don't have to go for sequential updates
[ZenFone 2 General] MIKI0025:
dont work...

i try now to update from link u give me

agin fall...

"error in/sideload/package.zip

(status 7)
[ZenFone 2 General] veeman:
So does the bootloader need to be unlocked in order to root?
[ZenFone 2 General] chubby65:
No you don't need to unlock the bootloader to root
[ZenFone 2 General] TarekVilela:
Methods to root

The 3rd method to root is the best? I mean, it's the easiest and the one which works better, or not?

I'm using a zenfone 2 ze551ml 4gb and my firmware version is ASUS_Z00A-2.19.40

Does all this methods to root works with my firmware version.

Ps: this is my first android, English is not my native language, so things are more difficult for me. Thx
[ZenFone 2 General] Doadi:
For me, 3° method work smooth, easy, very easy, and no issues, update by OTA Ok too... I recomend it.

(Zenfone2 ze551ml rooted)
[ZenFone 2 General] Siddk007:
Help guys!

Rooted my Zenfone 2 ze550ml using the 3rd method and installed xposed framework and modules.

please clear my one doubt, do i need to uninstall any root apps that i have installed? [MENTION=5650813]mhp1995[/MENTION]
[ZenFone 2 General] mhp1995:
No u dont have to un-install root apps if you are about to perform an OTA... ONLY THING WHICH IS TO BE DONE BEFORE APPLYING OTA IS UNFREEZING OF BLOATWARE AND UN-INSTALLATION OF XPOSED FRAMEWORK...Thats it and you are ready for an update :)
[ZenFone 2 General] monsaunt13:
Just purchased a Zenfone 2 for my dad.

I have a question about rooting.

I wanted to use Method 3 so I've installed the necessary drivers and started checkbeforeaction.bat

In one of the prompts it says If you see '01234567890ABCDEF fastboot' then you are

ready to ROOT your device.

Instead of "01234567890ABCDEF fastboot"

I get "F#######(my serial number)" fastboot in the command window.

In the fastboot menu in my Zenfone the serial number is 01234567890ABCDEF

Does that mean it's not safe to root and i can't use method 3?

Did I miss a step or something?
[ZenFone 2 General] roach9:
I can't unlock the bootloader using method #3. Says cannot find specified program "'fastboot'"

Help me please....
[ZenFone 2 General] mhowladar:
general sim1 slot with bsnl sim

I recently brought asus zenphone 2, and put bsnl sim in slot 1. But its showing sim1 not installed. What to do? How to install it?

Please help. 9831887041
[ZenFone 2 General] VeeJey06:
Did u try any other sim?
[ZenFone 2 General] loganj:
so far so good

i have more than 20 apps disable by hand from console (like pm disable com.asus.weathertime) and phone rooted with the method 3. i can still apply ota without the need to reenable these apps. i already made 2 OTA without any problems and those apps remained disabled still.

of course i hane no clue if xpose will disable them or does something else ..but if it just disabling the apps then there should be no problem.
[ZenFone 2 General] fuzzybuffalo:
He's talking about freezing apps with Titanium Backup.

I use Asus Auto Start Manager and have 7 or 8 apps set to not start on boot up, OTA still works for me.

From what I have read, if you have Xposed framework installed, OTA fails and you get boot loops.

If you have apps frozen with Titanium Backup, OTA fails and you get boot loops.
[ZenFone 2 General] TarekVilela:
You need to install fastboot
[ZenFone 2 General] SquallDNA:
so the odds of getting a bootloop after applying method 3 is great if you apply xposed and titanium backup?
[ZenFone 2 General] fuzzybuffalo:
Yes the odds of bootlooping after applying OTA is great, unless you uninstall Xposed framework and unfreeze any apps frozen with Titanium before applying OTA.

Method 3 is the only method of rooting, that I know of, that does not cause bootloops without uninstalling root first.

So, if you use method 3 to root, you must uninstall Xposed and unfreeze apps before applying OTA.

If you did not use method 3 to root, you must also unroot before applying OTA.
[ZenFone 2 General] SquallDNA:
I dont use xposed so i guess im good. however i'd like to disable some apps i dont use. i even wanted to uninstall them. i assume it will result to bootloop if i do uninstall some system apps and apply OTA. can you confirm that?
[ZenFone 2 General] fuzzybuffalo:
Yes, that's what I have heard.

I use Asus Auto Start Manager, to keep system apps from starting on boot up. I can still take OTA's this way.

You could try moving the system apps to your PC and move them back before OTA, but you would need to watch permissions.
[ZenFone 2 General] Usernamezf2:
Help

Hi Guys,

First of all, thank you for all the knowledge i had reading all the thread.

I bought my zenfone 2 in USA (WW version) a few days ago. Made all the OTA updates and then a a factory reset. Yesterday i Rooted using 3º method - one click - and everything seem fine. The first time i entered in recovery (needed to hold power and hit volume up) i hit "wipe cache" and freeze during wipe, stood there for more than 10 minutes and i was forced to turn it off holding the power buttom. Since then i can´t boot anymore, just stood with the dead robot. I have read all the information in all threads and tried to solve with adb\fastboot using primary the Guide to apply OTA without bootloop in Rooted ZF2 as show http://xdaforums.com/zenfone2/general/guide-to-apply-ota-bootloop-rooted-zf2-t3127835.

but everytime i try i get a message like this :

"target reported max download size of 536870912 bytes

sending `fastboot` <14800KB>...

OKAY [ 0.617s]

writing `fastboot`...

FAILED <remote: Permission denied

>

finished. total time: 0.767 "

The only thing varies is the name of image i tried to write (wrote "fastboot flash fastboot droidboot.img" in this example). I´m sure i have everything ready in my computer (all the drivers, installed adb fastboot, archives in the same folder, etc..). I'm also can´t enter in recovery from bootloader, when i select it in bootloader only show the dead robot again and if i try to use the method of holding power button ant tap volume up sometimes shows the information that can´t mount a lot of things as in the photo i´m attaching. It only show this message for a short period of time (i had to made a movie with another phone and then made a screenshot to read that)

I´m all lost. Adb\fastboot AND recovery just don´t work. Anyone have an idea what can i do to have my phone back ?

One thing that can be important ( or not ) is that everytime i enter in bootloader it shows 123456789ABCDEF as serial number, but the screens quickly flashes (sometimes weirdly, like puting the robot image up than normal or just showing half of a robot) and then appears the original serial number. Sometimes it stood in 123456789ABCDEF, but i can´t see a pattern there.

Thank you in advance.
[ZenFone 2 General] fuzzybuffalo:
Have you tried

fastboot format cache

wait until it finishes, Do NOT power off using the power button, that is what caused your problem in the first place.

and then try fastboot flash boot boot.img
[ZenFone 2 General] Usernamezf2:
Thanks for your asnwer .

Tried it now. Didn´t work too

Appears :

"erasing `cache`...

FAILED <remote: Permission denied>

finished. total time: 0.159s"
[ZenFone 2 General] fuzzybuffalo:
Did you go ahead anyway and try fastboot flash boot boot.img?

Edit: Also try fastboot flash recovery recovery.img.

What version are you on? 2.19.40. ??

When you first hooked up the phone to your computer, did you put the checkmark in "always allow remote access from this computer?

The tethered recovery worked for me before I unlocked bootloader.

You might try and see if the tethered recovery will wipe your cache.

http://xdaforums.com/zenfone2/development/alpha-tethered-twrp-asus-zenfone-2-t3123532

[RECOVERY] (Un-)tethered TWRP 2.8.7.0 for Asus ZenFone 2 (x86,full NTFS support)

Also, a guy earlier was getting the Permission Denied error, but when he fastboot flashed something, sometimes it would work, even though he got Permission Denied.

You might try flashing a pre-rooted system image.
[ZenFone 2 General] Usernamezf2:
I tried tethered and i can enter in twrp (it´s a relief seing my phone responding for something). In twrp i tried to clear cache, made a wipe and even tried to flash the stock rom i downloaded from asus site, but still can´t boot. The (very) good news is recovery is now working, even though i still can´t use adb\fastboot yet (shows the same messages)

i also tried to "apply update from adb" option in recovery and apply the rooted system image via adb sideload i got in another thread but shows "error: protocol fault <no status> on my computer and "you need adb 1.0.32 or newer to sideload to this device" on phone". That´s strange. I have the newest adb in my computer.
[ZenFone 2 General] fuzzybuffalo:
Great, in the other thread, I saw someone with a similar problem, said they had to clear cache after flashing stock rom before it would boot.

fastboot clear cache

The other thing you can try is if your stock recovery is working, you can copy the stock Asus ROM to external sd and rename to MOFD_SDUPDATE.zip reboot to recovery and it should install automatically.

If you copy file to internal sd, do not rename, leave it named UL-Z00A-WW-2.19.40.20-user.zip or what ever version you downloaded.

On external sd needs to be renamed to MOFD_SDUPDATE.zip
[ZenFone 2 General] Usernamezf2:
As i put in last message:

i also tried to "apply update from adb" option in recovery and apply the rooted system image via adb sideload i got in another thread but shows "error: protocol fault <no status> on my computer and "you need adb 1.0.32 or newer to sideload to this device" on phone". That´s strange. I have the newest adb in my computer.

I will try this MOFD_SDUPDATE.ZIP WAY. can i put the pre-rooted image in my sd card and rename it or it have to be the original firmware?
[ZenFone 2 General] fuzzybuffalo:
On your computer type adb version to get your version number.

In MOFD_SDUPDATE.zip the zip is not capitalized.

I have not used the pre-rooted images, but if it is one of shakalaca's from this thread

http://xdaforums.com/zenfone2/orig-development/rom-pre-root-img-t3079590

[ROM] Pre-root system.img

then I do not think you can, they are fastboot images.
[ZenFone 2 General] Usernamezf2:
What a shame, i have 1.0.31 version of adb. I tried to install again with a newer version but still have the same old version. how can i subscribe that ? it must be installed since my galaxy s2 and can´t install a new version
[ZenFone 2 General] fuzzybuffalo:
If you are using windows, and have your drivers installed,

In the one_click_unlock zip, in the tools folder, the top 4 files are all you need to run adb and fastboot

just extract those 4 files to any folder and open a cmd prompt in that folder.

You also need any files you want to sideload or flash in the same folder.

Get the ZF2_one_click_unlock_by_sorg_v2.zip from this thread

http://xdaforums.com/zenfone2/general/tool-one-click-bootloader-unlock-root-t3155884

[TOOL] One-Click bootloader unlock (no root required)
[ZenFone 2 General] Usernamezf2:
I tried MOFD_SDUPDATE.zip way, but said "E:failed to map file"

I tried this way first using flashtools like is sugested in method 1 to unroot. i´m very surprised i have an old version of adb, because i used exactly the link there
[ZenFone 2 General] fuzzybuffalo:
What file are you trying to use?

The MOFD_SDUPDATE.zip way will only work with stock Asus files.

Edit: They just updated adb not to long ago, so it could handle the larger files.
[ZenFone 2 General] Usernamezf2:
Stock asus files. Just downloaded from asus site
[ZenFone 2 General] fuzzybuffalo:
So you did this...

The other thing you can try is if your stock recovery is working, you can copy the stock Asus ROM to external sd and rename to MOFD_SDUPDATE.zip reboot to recovery and it should install automatically.

and got this error...

I tried MOFD_SDUPDATE.zip way, but said "E:failed to map file"

That looks like a windows error, not an error from the ZenFone?
[ZenFone 2 General] Usernamezf2:
No, the archive is in the phone, in external sd. When I made this the phone wasn't plugged in.
[ZenFone 2 General] fuzzybuffalo:
Hmmm, I don't understand that error.

Have you tried this with adb sideload...

If you are using windows, and have your drivers installed,

In the one_click_unlock zip, in the tools folder, the top 4 files are all you need to run adb and fastboot

just extract those 4 files to any folder and open a cmd prompt in that folder.

You also need any files you want to sideload or flash in the same folder.

Get the ZF2_one_click_unlock_by_sorg_v2.zip from this thread

http://xdaforums.com/zenf...-root-t3155884

[TOOL] One-Click bootloader unlock (no root required)

Are you still getting Permission Denied errors, because the only other thing I can think of is fastboot flashing the images.

Maybe someone else will chime in here.
[ZenFone 2 General] Usernamezf2:
Yes, it´s weird. I don´t understand too.

I tried another fold ( the one i used for temporary CWM package once it made the adb connection at least to install the temporary recovery) and tried the adb sideload - the exactly same thing happened if i try via adb\fastboot - . first seems to work, but when it was on ~50% "serving " (actualy installing after a 47% of "opening" and " verifying" ) update as i can see on the phone - on computer only shows "serving". tried with last stock recovery i downloaded from asus site another error:

Very strange, seems to have a connection, just can´t write anything on the cell phone.
[ZenFone 2 General] Usernamezf2:
Now it worked !!! I don't know how and why. Tried again the "temporary cwm package" and installed the Asus stock rom. Still strange because i still can´t make any adb\fastboot contact (i can´t root using any of the 3 methods) and can´t use temporary CWM package anymore - it stuck on the "Teamwin" logo.

Thanks for your help. I think i will have to have a stock phone for a while. At least it´s working.
[ZenFone 2 General] zironia:
If your after using windows copy fastboot files to c:\windows\windows32\ then it will find fastboot.
[ZenFone 2 General] Usernamezf2:
I don´t have this folder in my computer. It´s windows 8 64bit. must be a different folder in my case, isn´t it ?
[ZenFone 2 General] zironia:
Start | Run | Paste or type: %SYSTEMROOT%\System32 should get your there. It's hidden in windows 8
[ZenFone 2 General] Usernamezf2:
It find the fastboot and adb, but the thing is it can´t write anything on phone. When i type "adb devices" only shows blank, like "list of devices attached" and an empty line.

If i plug my phone started, since it´s working now, i can see the serial number via fastboot, typing "adb devices", but not in bootloader. I don´t know how, but in someway it seems i have some kind of corrupted bootloader, which is causing leak of a proper connection on bootloader
[ZenFone 2 General] fuzzybuffalo:
That's great, at least you got it booting up.

I meant to mention that earlier, my bootloader also shows 0123456789ABCDEF as the serial number, but when I do

fastboot devices, it shows my regular serial number. And fastboot works for me.

The only thing I can suggest is to start over. Remove all the Asus drivers and adb and fastboot and reinstall it all.
[ZenFone 2 General] Usernamezf2:
Did it a lot of times and nothing. Seems the problem is in the phone. When i enter in bootload, usually first appears 0123456789ABCDEF, then the screen flash weirdly (sometimes the robot appears yellow or gray, sometimes, half a robot, sometimes the image goes up a little than normal) and finally appears the regular serial number. Sometimes keep showing 0123456789ABCDEF.
[ZenFone 2 General] chooks06:
I may be wrong but I noticed that the serial number will show the correct after the screen refreshes if i hold on to the volume up after releasing the Power button.

Sent from my ASUS_Z00AD
[ZenFone 2 General] fuzzybuffalo:
Yepper, that's exactly what mine does, sometimes it refreshes and shows the correct serial number and sometimes after the refresh it still shows 0123456789ABCDEF. It does not seem to affect the way fastboot works though.

He keeps getting permission denied errors when he tries to fastboot flash something, he's the second person I've seen with that error.

And I still can't figure out what is causing that error.
[ZenFone 2 General] chooks06:
I might be repeating something that may have been posted before. If fastboot can work, why not try using fastboot to erase cache and use fastboot to reboot? It could be an intermittent issue.

Sent from my ASUS_Z00AD
[ZenFone 2 General] airjyp:
i wanna asking in zenny . how to turn off the vibrate when the popup battery 15% showed? thanks !
[ZenFone 2 General] Usernamezf2:
No, fastboot don´t work, that´s the problem.

---------- Post added at 04:04 PM ---------- Previous post was at 03:44 PM ----------

Does this happen with everyone who made root using method 3? When you tipe "adb devices" shows anything (0123456789ABCDEF or normal one?) mine shows nothing. When you tipe "adb version" shows which version ? Mine shows 1.0.31, even after a several times i deleted the old and installed newer versions.
[ZenFone 2 General] nagbenjy:
I rooted using method 3. Mine shows the correct serial number. adb version shows 1.0.31.
[ZenFone 2 General] fuzzybuffalo:
Yepper, In his OP he has a picture of the error message, that keeps saying failed to mount cache.

The first thing I asked him to try, was fastboot format cache.

No, I used method 3 also, and adb devices shows the normal serial number. My adb version is 1.0.32.

Normally if adb devices does not show anything, it's a driver problem or USB Debugging is not turned on.

Since you can boot up your phone now, did you go into Settings -> Developer Options and turn on USB Debugging?
[ZenFone 2 General] aziz07:
[MENTION=225651]op[/MENTION] maybe you should add the command wm size ''resolution'' in DPI section. e.g. 'wm size 720x1280' will set the reolution to 720P.

You will need soft buttons or PIE control as physical button mapping will be displaced.
[ZenFone 2 General] Usernamezf2:
yes, it was the first thing i did
[ZenFone 2 General] vali.cheche:
hello, I have a ZF2 that came with some issues, CN SKU and an outdated WW OS that was acting up even after full reset.

I changed the fw to WW and upgraded to the latest WW version by sideload.

However, due to heating and instability issues I want to return the device and I want to flash it's loader/recovery back to CN.

But I can't find CN boot/recovery stock images. Only WW ones. :))

Can anyone please help? Thank you.

[EDIT]: Solved, http://xdaforums.com/showpost.php?p=61984051&postcount=275

Thanks.
[ZenFone 2 General] jbanter:
Hi all, sorry if this has been posted before, I did a search but couldn't find the information (maybe I didn't know the right keyword to look up for). So I want to root my ZE551ML. As I understood this will void the warranty. Does that mean if I unroot my warranty will be restored or it doesn't matter because once rooted the warranty is gone?
[ZenFone 2 General] Ginuz:
you can always unroot, hwvr asus is not san sung, Asus had different policy, on some device like laptop or ultrabook in case of hardbick, they will not only give back new device but even the money payed for the device.

don't exist triangle and counter for zenfone to see if is real unroot so..
[ZenFone 2 General] fuzzybuffalo:
[MENTION=6834544]Usernamezf2[/MENTION]

Did you get your Permission Denied error fixed?

I knew there was something you could do, but I could not remember what it was...

Before you connect your phone to your PC.

In Settings -> Developer Options -> below USB debugging there should be Revoke USB debugging authorization.

If you do that you should get the pop-up again on your phone.