yashsingh1/xdaforums huggingface dataset:
[ZenFone 2 General] Nono-Skorium:
What was the version, before going back to factory reset? A stock rom?

I'm using method 3 to root and unroot my phone since July and never get big trouble. How is that possible? Read the following,

* Do not uninstall any applications from stock version, just disable them and remove all cache and data for these apps. This is important to avoid dead bot on boot, or update failure that not show up again.

* When getting notice of OTA update, do not apply them if rooted. Unroot your phone first or you will get your dead bot at startup. (See note thereafter)

* Unroot your zenphone with unroot.bat with usb debbuging enable on your phone.

* On restart check your are unroot properly by lunching a root checker or an app that needs root to work. If not rooted, you can apply OTA without any problem

* Once update is completed, restart your phone once, before you root it again with usb debugging enable. You should be root again and do your root things.

Note for dead bot on boot:

For those unlucky guys who click update now without removing the root, you will get an update failure on restart with the dead bot. In this situation, restart your phone. It should restart normally without applying the update, and the update won't show up anymore.

If you do this and want this last update, you will have to download it from Asus website, in the download section for the Zenfone 2 (select the good one CN for china, WW for world wide). Then copy the file like it is, on the internal storage of the phone. It should see quickly there is an update available and will ask to apply it. This update will reinstall your phone with all factory apps, remove root, etc... But all your other apps should be untouch, data/message won't be removed *but doing a backup is still a good idea*. You will have to disable again factory apps and root the phone again after the update is complete (these updates are longer than OTA updates, care about your battery level before updating).

Also, if you have removed factory apps with a root remover tool this is the only way to update your phone, unless you are not removing factory apps again and unrooting your phone before update.

Of course I want to let you know this is how I'm doing all my OTA updates without problems, but I cannot be 100% sure if this will work for you and I'm not responsible if you brick your phone completelly. I have tested and practiced these steps for all OTA, because I got happy to be root and removed my factory apps and had to find a solution later on my dead bot screen. Because I'm also part of those unlucky guys who tap update now, and said "**** I forgot to remove my root"... Because, I found a workaround that work well for me and taken notes of every small changes I have done, before doing more change/mess.

Hope this will help, good luck guys :)
[ZenFone 2 General] Vykrom0d:
All stock. I did not install any OTA updates, as I was already on the latest one, the .165 build before rooting. I did not touch any of the system apps. Did everything according to the instructions.

Now the phone starts and runs well, but entering recovery briefly flashes the "installing system update" screen, before showing the dead bot with an error. It can still be entered with the power+vol-up combo described in the first post, but still, this is annoying.
[ZenFone 2 General] Nono-Skorium:
I have to install the latest OTA released few days ago. I will do this today and see if something goes wrong then. I will let you know by today.

Edit:

As you will read bellow no problem for me, but I have .164 build not .165

I have a Z00AD model, maybe you have another model? If so, we will have to wait someone with the same to see if you was unlucky or if there is a problem with the root tool. Another option try to download the tools again, I got issue once because the download was corrupted. Since it is working I keep it safe on 2 USB sticks, backup the backup!

Last OTA update, Phone rooted with version WW...160,

* root removed using unroot.bat + phone restart = OK,

* OTA update install + restart phone =OK,

* root phone using root.bat. = OK.

I'm always running checkBeforeAction.bat before unroot and root to make sure everything is fine.

Zenfone 2 with WW_2.20.40.164 (relased Jan 7th, 2016) rooted successfully with method 3.
[ZenFone 2 General] Vykrom0d:
I also have the Z00AD. Or so it says in system info. BTW, I didn't install any OTA updates while rooted of course, but isn't this method supposed to let you do so without the neccesity to unroot the phone before updates?

BTW, it may be silly, but can you please try installing Pou and see how fast this app turns on and/or if there are any problems?
[ZenFone 2 General] TheEgonSpengler:
Yes, the Oneclick root kit / option 3 to root.

Still works as of the Jan updates, I updated then was like "oh **** forgot root, oh well **** it" and ran it anyway. Went flawlessly, I don't advise doing these things without confirming first in the future.
[ZenFone 2 General] Nono-Skorium:
Yes, we should be able to keep the root while applaying OTA updates, but as I can unroot and root very easily, I play it safe. Are you noticing slowness with only this app? I didn't noticed anything being slower at this time with latest update.
[ZenFone 2 General] nineinchsnails:
Stock recovery WW_2.20.40.164

Would someone please be so kind as to share Stock recovery for WW_2.20.40.164 ?

The link to the stock recoveries in OP does not contain this file.

Thank you.
[ZenFone 2 General] chtan23:
Hi,

I have been using method 1 to root my phone by flashing the pre-rooted system.img. Can I use method 3 to unroot it and flash OTA? Thanks

I'm currently using pre-rooted .160 system.img
[ZenFone 2 General] genkolio94:
I use step 3 to root my asus_Z00RD....seems mhy phone cant enter fastboot...i try check.bat it just stay on blackscreen on startup for ever....Please help me...Pm on Genkolio@gmail.com..
[ZenFone 2 General] Nono-Skorium:
I received the OTA notifications today for the 165. Still everything fine with root and none of my apps look getting slower than previously. I have insgalled this game (and removed it) I have no reference of startup time but long it is indeed. I will say something between 20 and 30s. But as I said nothing wrong beside that, maybe the app it self ? It is slow on other device?
[ZenFone 2 General] dakunclear:
Has anyone had issues where your volume changes to a low setting randomly and your screen not coming on when you pull your phone away from your ear while on a call? Just for your information I'm running stock without rooting and yes I've tried to do a dalvick cache wipe oh and I'm on the Z00AD
[ZenFone 2 General] msespindola:
Hi guys!

I have the Z00AD model (551ml, 2. 3ghz, 4gb, 16gb) and I'm a bit confused:

What is the order to get root and custom recovery?

Thx in advance
[ZenFone 2 General] DrPglixq:
Please include the latest stock recovery :)
[ZenFone 2 General] Vykrom0d:
It did work fine on another phone I had, also rooted. 5s is how fast it normally starts. I don't know, it may be problem with the app, but since it only happens on rooted zenfone 2, it might aswell be a sign of larger problem.
[ZenFone 2 General] premansurabaya:
Hi,

If i root my phone using the 3rd steps, does it really okay to update the firmware over OTA( i mean with no bootloop problem)?

Thanks
[ZenFone 2 General] sw1tchback:
Yeah, you don't have to unroot before updating from OTA and no, it will not cause a bootloop
[ZenFone 2 General] Nono-Skorium:
As said before by others, it shouldn't be an issue. But as it's very easy to root and unroot, you can do like me. Unroot at each OTA notifications, update, root again. I brick too many times my previous phone and because of that now I going safely.
[ZenFone 2 General] cilmanalo:
i only read this now but i flashed the newest version. v79. that works perfectly. i read somewhere that the recent firmware updates had this extra security code that was causing the issue. how this helps :)
[ZenFone 2 General] ayush.gl:
Not rooting

I rooted my asus zenfone 2 ze551ml with method 3 but fot OTA update i unrooted my phone, But after aplying OTA i'm unable to root it again.Please help me regarding this i searched everywhere but didn't get any solution:(:(:(:(:(.
[ZenFone 2 General] yobuddy215:
Just rooted my Zen phone 2 using one click root . Can somebody be so kind to send me a link where I can unlock boot loader and install twrp.. thanx I'm on 165 firmware
[ZenFone 2 General] Nono-Skorium:
You can unlock your bootloader officially by visiting Asus suppport website and download their app to do it. About twrp no idea. google?
[ZenFone 2 General] utphala:
Unofficial CyanogenMod 13.0 Nightly Builds (Z00A/Z008)

sir I Flashed Unofficial CyanogenMod 13.0 Nightly Builds (Z00A/Z008) . All the features working properly but mobile data not working how to solve this problem
[ZenFone 2 General] Nono-Skorium:
I checked the topic for CM13, you should start by checking your APN settings. If still not working after this I invite you to ask your question on the CM13 thread because this is not related to this topic. You are a step after everything in this topic. Also I want just remind you in Nightly version, stuff can work and stop working from a version to another because it's a dev version and things can be broken. I also recommend you to don't install these nightly versions if you want avoid any kind of bugs/troubles.

Once again check your APN and this doesn't solve the issue the official thread for CM13 for ZF2 should be a better place to get answers.
[ZenFone 2 General] kenthko:
Hi, I also used method 3 to root. I can apply OTA while rooted except v.2.20.40.139. For 139 i need to unroot. After 139 OTA is successful I root using method 3 again and was able to apply OTA until 164. Still thinking if I should apply OTA 165. Waiting for reviews and feedbacks first. :)
[ZenFone 2 General] premansurabaya:
Thanks for your info. But, i guess i'll keep playing safe by unrooting it before any OTA update.

Thanks a lot anw.
[ZenFone 2 General] DrPglixq:
can i use the firmware of Z00A to Z00AD

Z00AD has 4gb ram while z00a has only 3
[ZenFone 2 General] ayush.gl:
How to unroot if i rooted through temporary cwm??

I rooted my asus zenfone 2 with method 2, now if i have to unroot it how can i unroot?
[ZenFone 2 General] quack75:
How to update supersu.apk installed with method 3? Last stable version is 2.65. So is only necessary replace the apk in the right folder Or not? (if it is possible maybe we can try last beta)

Can someone provide a new working zip folder

Inviato dal mio ASUS_Z00AD utilizzando Tapatalk
[ZenFone 2 General] jhenu:
Hai,

I tried to wipe cache in recovery... And ends up with dead android bot and text error flashing when I try to boot. Any easyway out... I have lot of unbacked up in device ... Please help me
[ZenFone 2 General] 1232kade:
Can anybody share me stock camera (ze551ml). I'm using rom CM13 ,i tried to flash a .zip stock camera but it not work at all ( can't save photo ) :(

Sorry for my bad English !
[ZenFone 2 General] Nazim2394:
http://xdaforums.com/zenfone2/themes-apps/asus-stock-camera-gallery-cm-12-1-cm-13-t3271632/page12

Refer above link
[ZenFone 2 General] gervil:
Hey Guys,

I rooted using 3rd method, and got this xposed v79.

All is well with xposed, but having issues with xmultiwindow module. Installs fine, activated it, rebooted, accessing the module's interface, but no sidebar showing when clicking on "open sidebar".... anyone else tried this, or can try to see if I did something wrong ? Many thanks
[ZenFone 2 General] red_phase:
cannot root via method 3

i have the correct drivers installed. trying to root via method 3 but no luck. posting a few screenshots. pls tell where im going wrong.

https://drive.google.com/file/d/0B8pQHwLFIb7yTEthR3Nwc3dvRFE/view?usp=sharing

https://drive.google.com/file/d/0B8pQHwLFIb7yMlY4elp5dy1BZjQ/view?usp=sharing

https://drive.google.com/file/d/0B8pQHwLFIb7ySWx6cjBtSmlYc2c/view?usp=sharing

https://drive.google.com/file/d/0B8pQHwLFIb7yTmVTRkVxU2sxZlE/view?usp=sharing
[ZenFone 2 General] Dumbler:
How to root zenfone 2 ze551ml .I am unable to root as nothing appears after pressing any key to continue and it also appears like daemon started successfully and blah blah
[ZenFone 2 General] ayush.gl:
Same issue i also have with my phone but it rooted successfully with Method 2.
[ZenFone 2 General] cpuz99:
sorry noob question.. what is difference between flashing firmware through "install from zip" with "apply update from adb" in recovery mode?
[ZenFone 2 General] Siddk007:
install from zip - flashing the file present in internal storage/ext sdcard

apply update from adb - flashing the file present in pc to ur phone by giving commands in cmd by using apply update option in recovery
[ZenFone 2 General] Emacordoba:
same problem here

---------- Post added at 08:14 PM ---------- Previous post was at 07:37 PM ----------

hey bro, i solved the problem... was only giving rights from cell to pc for debugging (sorry my bad english)
[ZenFone 2 General] lucifero13:
Got into a problem when installing Xposed framwork. Im installing the framework and my phone automatically rebooted. After that, im stuck at bootloop. Help please
[ZenFone 2 General] ick21:
Fastboot.exe not recognized

Thanks for this but i used method 3 for rooting after running root.bat and i get this:

'".\fastboot.exe"' is not recognized as an internal or external command,

operable program or batch file.

'".\fastboot.exe"' is not recognized as an internal or external command,

operable program or batch file.

'".\fastboot.exe"' is not recognized as an internal or external command,

operable program or batch file.

'".\fastboot.exe"' is not recognized as an internal or external command,

operable program or batch file.

'".\fastboot.exe"' is not recognized as an internal or external command,

operable program or batch file.

'".\fastboot.exe"' is not recognized as an internal or external command,

operable program or batch file.

'".\sleep.exe"' is not recognized as an internal or external command,

operable program or batch file.

All done, enjoy your ROOTED device :)

'".\fastboot.exe"' is not recognized as an internal or external command,

operable program or batch file.

Press any key to continue . . .
[ZenFone 2 General] 24imelqui:
[Q] Im gonna restore to stock my cousin's ZF2 Z00A. Is it ok to fastboot flash .164 recovery then sideload .165 ROM? If not, can you give me link to a .165 recovery.
[ZenFone 2 General] Xipheare:
Rooting with linux

To root this device using method 3 for linux, both the adb and fastboot binaries shipped with the root kit fail with syntax errors. I got this to work on my Debian system by installing android-tools-adb and android-tools-fastboot and editing the shell script to point to /usr/bin/adb and /usr/bin/fastboot and it works.
[ZenFone 2 General] ick21:
How do you do that..?
[ZenFone 2 General] ick21:
I also forgot to mention that after i run adb devices in cmd i get

emulator-5664 offline

number device
[ZenFone 2 General] vdbuif:
I just can't get into TWRP recovery mode on Z008D

:crying: , i've spent 2 days trying to flash a custom rom for my ZF 2 Z008D.

At this point in time i have done these things :

- Root the fone ( flashed the pre-rooted ROM , used root checked to check )

- Unlock the bootloader ( got the White asus logo )

- Fastboot flash recovery twrp.img , tried all the twrp.img files that meant for Z008D i could google

But, i just can't enter twrp recovery mode to install the custom rom, the default android recovery system just show up every time!

:( . just guess what is wrong and help me , guys :(
[ZenFone 2 General] ick21:
yea...me too i have the same problem tells me that it installed but cant seem to work...choose recovery mode and it just reboots...help anyone
[ZenFone 2 General] Siddk007:
Download Rashr app from google play store and flash the recovery by placing it in internal storage

---------- Post added at 08:35 PM ---------- Previous post was at 08:31 PM ----------

no, u got to have .165 recovery to sideload .165 rom

check this link for recovery:

https://mega.co.nz/#F!k4MHiAgL!dVuOKeH3eokcwPSNI79ffw

---------- Post added at 08:36 PM ---------- Previous post was at 08:35 PM ----------

no, u got to have .165 recovery to sideload .165 rom

check this link for recovery:

https://mega.co.nz/#F!k4MHiAgL!dVuOKeH3eokcwPSNI79ffw
[ZenFone 2 General] vdbuif:
Still no luck
[ZenFone 2 General] 24imelqui:
[/COLOR]

Thanks, Im gonna save you mega links to my lists.
[ZenFone 2 General] vdbuif:
[MENTION=7232334]24imelqui[/MENTION]

I flashed TWRP recovery, and trying to get twrp custom recovery interface instead of stock recovery coz i want to flash a custom rom.

It seems the damned stock recovery hasnt been replaced by the custom recovery installation yet....

Tried many methods, all i got is more knowledge, and the issue is still there :crying:
[ZenFone 2 General] ZonkerHackett:
I root the ZF2 using method 3, Can i update SuperSU ??
[ZenFone 2 General] Siddk007:
yes, you can!
[ZenFone 2 General] quack75:
I have updated without problems, but I have asked if someone could provide a new method 3 with new version of superSU or a guide to realize it

Inviato dal mio ASUS_Z00AD utilizzando Tapatalk
[ZenFone 2 General] joseste4:
I've tried several times to flash TWRP & Xposed with no luck. Also how could I update super su to 2.65.

I'm rooted through method 3 on 2.20.40.168.

ZE551ML - Z00A
[ZenFone 2 General] ick21:
It didn"t work
[ZenFone 2 General] Xipheare:
Using root method 3 for linux from the guide at the beginning of this thread, on a Debian system do (as root)

apt-get install android-tools-adb android-tools-fastboot

the edit the shell script that comes with the rootkit (Root.sh) to change the file paths for adb and fastboot to /usr/bin/adb and /usr/bin/fastboot. Then in a terminal run

./Root.sh

from the directory where the script is and the phone will be rooted.
[ZenFone 2 General] David Nicer:
Hello guys,

I have got a problem here.

I followed steps to install ViPER4Android and it failed when I tried to install drivers. The error message is: "Driver install failed: The busybox installation found on your device does not work..."

My phone is rooted and busybox installed, SELinuxMode isset to Permissive.

Any solutions for this error?

(Model: ZE551ML - Z00A i think)

SW version: 2.20.40.168
[ZenFone 2 General] robot_head:
For sure busy box is installed? Not just installing the app but once installed install the busy box installer. Sounds dumb but I've done that before, installed busy box but never set up the app.
[ZenFone 2 General] Dan7447:
Unable to root

I tried via method 2 and method 3 but the cmd show eror in communicationg with device :( i badly want to root this zf2 ! Please advise me how to go about in order to root successfully, Firmware .168
[ZenFone 2 General] bibi019:
hi all i have strege problem with my zenfone2 ze551l

in the begbing it suck at bootloop usb in screen the not enter to fastboot or recovery mode i have used the methode to unbrick it i flashed the three files (dnx_fwr.bin ifiwi.bin and droidboot_dnx.img.POS_sing.img) with xfstk tool the phone succeed flashed and the phone now in bootloader mode

-now the phone in bootloader mode so i used the fastboot command the phone see by fastboot devices but i can't flash recovery.img download from shaka huang folder this is the error: Failed <remote flash_cmds error!> any suggestion

emergency yours

bibisetif@gmail.com
[ZenFone 2 General] joseste4:
Has anyone gotten xposed installed and working on the latest ZenUI update.
[ZenFone 2 General] jack_ssl:
[MENTION=5650813]mhp1995[/MENTION] Please Upload Recovery WW_2.20.40.168 Version .. I Made Mistake I Flash Lower Version Into Go Recovery Mode Please Also Upload boot , droidboot , splashscreen
[ZenFone 2 General] fred_gaou:
Do you think the method 3 will still work after the official Android 6.0 upgrade?
[ZenFone 2 General] cidlover:
I just found out you can set the Zenfone 2's stock kernel SELinux status to permissive on boot

Root Explorer app method

1.Go to sys/fs/selinux

2.then open the enforce file with the apps text editor or one of your choice

3.change the "1" to "0"

4.then soft reboot

5.Permissive Kernel :fingers-crossed:

ADB Shell method

1.connect the phone to the computer and make sure ADB system wide is installed and the phone drivers are installed

2. adb shell, should look like this if your connected to the Zenfone 2, shell@ASUS_Z00D:/ $

3. type "su", never know, might need it, and then this command

"echo 0 > /sys/fs/selinux/enforce"

4. now reboot from adb shell via "pkill zygote" = soft reboot

5.Permissive Kernel :fingers-crossed:

If you want to add this to this index to show you don't need a custom kernel for a permissive kernel, you can do so. :D

EDIT: Soft Reboot your phone because on full reboot, selinux is set back to enforcing and you'll have to do this all again.
[ZenFone 2 General] fred_gaou:
Hey, can you briefly explain what's the purpose of permissive kernel, please?
[ZenFone 2 General] cidlover:
After one roots the uses tethered recovery to install Xposed framework, about 80% of the modules will work on the enforced kernel but some like Pointer Replacer, and others that require a permissive kernel will install but not work. But i'm working on a solution to set a permissive kernel on boot because a full reboot causes the system to set enforcing SElinx

EDIT:

SUCCESS FOR A PERMISSIVE KERNEL ON SOFT AND FULL REBOOT, I hope this works for you guys as well.

Permissive survived two full reboots :laugh::laugh::laugh:

At this point, rebooted like 20 times and finally got a full permissive kernel on boot via scripts and apps. Oh god, I can remember what I did. lol :o

1. download Universal Init.d from Play store looks like a blue icon with a pirate android and cross bones

2.Root Cleaner app from playstore, not free

3. install Terminal Emulator from the Play store

4. download the app and script, http://xdaforums.com/showthread.php?t=1933849

5. Root, Busybox installed, and Root Explorer installed

6. Install Uni-init+v1.0.apk, Universal init.d installer android cross bones one, and Root Cleaner, optional install if it makes you feel better

7.open the play store Universal Init.d android cross bones app and tap on "Test" then reboot and then check in your internal sdcard for initdsupport.txt

It will say "init.d is working" or init.d is not working" if not working on your phone

8. now open terminal emulator, type the following commands

su

cd /path/to/term-init.sh

sh term-init.sh

You'll need a better keyboard with a enter key because it'll prompt you to press enter

wait for the script to finish then close the window

9. with Root Explorer, either navigate to /etc/init.d or /system/etc/init.d or both and edit the file 08setperm with Text editor and it should look like this plus I added the "setenforce 0" at the end and you need to add that too.

#!/system/bin/sh

#Script to set correct permissions to /system/etc/init.d folder by Ryuinferno @ XDA 2012

mount-o rw,remount /system

chmod -R 777 /systemetc/init.d

mount-o ro,remount /system

setenforce 0

Lastly, more extra measures for safety for a true permissive kernel, in case all this don't work

1. add ro.build.selinux=0 to the end of the build.prop file in /system or in adb shell

su

mount -o remount,rw /system

echo ro.build.selinux=0 > /system/build.prop

mount -o remount,ro /system

exit

and in the same shell,

su

mount -o remount,rw /system

mkdir /system/su.d

echo "#!/system/bin/sh" > /system/su.d/permissive.sh

echo "echo 0 > /sys/fs/selinux/enforce" >> /system/su.d/permissive.sh

chmod 755 > /system/su.d/permissive.sh

exit

found at here: http://xdaforums.com/showpost.php?p=58887725&postcount=230

But if it don't do anything but make the permissive.sh script and it's empty

add this:

#!/system/bin/sh

setenforce 0

0

Hope this helps you guys :)
[ZenFone 2 General] intelprakash:
Guys it may sound silly. But can I update my SuperSU app & update binary? Coz Playstore keeps asking for update of SuperSU app after updating on my other mobile it asked for binary update also, but the other mobile is MTK based device.