yashsingh1/xdaforums huggingface dataset:
[ZenFone 2 General] boostag:
You want to install rom stock? You just need to find the right version. Put them on your phone and rename the file by MOFD_SDUPDATE and start the phone in recovery mode, it Will do it automaticaly. If You had problem may be You don't have right version.

Excuse my English ?
[ZenFone 2 General] Laws Casper:
Not necessarily stock ROM, actually I would prefer a custom setup however have been having problems flashing one or two of them.

I read that it would be in my better interest to upgrade first my (android version) and then look at a custom ROM? What would you advise?

I have been reading up on the Lineage OS and actually tried installing (the correct version for my phone) however.... error 7 popped up several times!

Any ideas on a good tho stable custom ROM I could install on this current version (5.0) of android in running.
[ZenFone 2 General] revmendonca:
I've tried reading through the thread and haven't found a solution to my specific problem. I have followed every step and my boot loader is unlocked, TWRP is installed, I'm rooted with Magisk, and have the Xposed app installed.

When I enter Xposed it informs me that the Xposed framework is not installed. It gives me the "Your device is compatible with the official Xposed framework. Click here to go to the right section for your device." I click on it and it brings me to the "Official" tab. I have tried installing the arm, arm64, and x86 versions of "xposed-v87-sdk23" file. Each time my phone will soft reboot and just hang on the ASUS loading screen with the spinning circle, I've waited up to an hour and it didn't boot to system. I have even tried flashing the systemless xposed87 zip by topjohnwu. Same result. Trying to flash the files via TWRP does the same thing, the phone reboots and hangs at the ASUS load screen. Each time I have to boot back into TWRP and restore from a prior point. Any help would be greatly appreciated.
[ZenFone 2 General] revmendonca:
I was able to remedy my issue by using the toll kit found in this thread. This community is truly amazing.

https://xdaforums.com/zenfone2/general/bl-unlock-ze551ml-toolkit-t3546293
[ZenFone 2 General] fenomenal:
black logo and white screen

my zenfone can not get into fasboot mode.stuck in asus black logo and white color screen.help me
[ZenFone 2 General] Kapil Tapsi:
Follow the guide from the start. Every step. It will be gone
[ZenFone 2 General] fenomenal:
now how do I want to follow you while I could not enter fastboot ,what is the bes solution.Sorry, my English is bad
[ZenFone 2 General] Kapil Tapsi:
Keep pressing power button for 10 seconds. It will force shutdown. Then use power and volume keys to enter bootloader or fastboot mode
[ZenFone 2 General] fenomenal:
all I have done.but I did not find the fastboot mode or recovery mode,only asus logo in black and screen white.I press the power button that appears asus logo in black and white screen.I press combination button the power + vol up tasus logo in black and white screenhat appears is the same.What happened.software or hardware
[ZenFone 2 General] Kapil Tapsi:
Your phone is bricked, if you cannot go to bootloader. Use any guide on xda to unbrick.
[ZenFone 2 General] fenomenal:
my zenfone restart every time when I connect to pc or connect to charger,with white screen and asus black logo
[ZenFone 2 General] PrinceLys:
"How to enter fastboot?"

1. Turn off your phone completely

2. Hold down volume up + power button when vibrates release power button (but keep pressing volume up until bootloader/fastboot appear then release volume up)

(note: be sure to hold down properly volume up or it wont go to fastboot... in my case, my volume up not functioning well so I need to repeat again)

(You can search at youtube for video instruction)

if successful (fastboot appear)

Use restore.bat (if you have that old file)

or run again Bootloader Unlocker

(Proceed as instructed, just follow the guide)
[ZenFone 2 General] Kapil Tapsi:
You need to unlock marshmallow bootloader. Then flash twrp.
[ZenFone 2 General] brittalpona:
My phone is ZE551ml with original stock 5.0 Rom, I want to root my phone for install adaway. will this also work for me?
[ZenFone 2 General] Kapil Tapsi:
No. This guide will only work if you upgrade to marshmallow..

There is other guide for lollipop.. search in forum.
[ZenFone 2 General] Shmell77:
ze551ml on MM 6.0.1

When i go to Fastboot mode and trying to run Bootloader Unlocker.bat it's just shows

Flashing Lollipop Bootloader....

< waiting for any device >

looks like it doesn't see my device... Drivers installed, adb devices shows my device when it's not in fastboot mode.

Unlock.bat doesn't work too, just waiting for connection forever.

Please advice
[ZenFone 2 General] anikadhi94:
Recovery flashes but when I select reboot to recovery it reboots into fast boot please help
[ZenFone 2 General] fikusekk:
Hi, I have unlocked Bootloader and installed TWRP. Can I now follow these steps? :

1. Update via stock OTA to 4.21.40.327

2. Root and Install Xposed

I would like to have the latest version rooted, but I know that OTA doesn't work then. But now, it's not too late to update, right?

Also does anybody know whether I can root the 4.21.40.327 version? Thanks!
[ZenFone 2 General] ray_O7:
Bootloader unlock,twrp,root,custom rom

Your method for unlocking bootloader is not working in ww-4.21.41.223. Suggest me other method for unlocking bootloader and intalling twrp recovery. ASAP
[ZenFone 2 General] Kapil Tapsi:
The method works 100%. You facing any errors. Show ​

Image or error here so I can understand what the problem is.
[ZenFone 2 General] Kapil Tapsi:
Download new rom. Extract stock recovery from it. Flash stock recovery using fastboot. Then flash the new rom.zip using adb.

Then use the root tools that you uses last time. They will work.
[ZenFone 2 General] ray_O7:
Not working
[ZenFone 2 General] Kapil Tapsi:
You sure you using marshmallow? Did you see some thing like "restoring marshmallow bootloader" or "unlock successful reboot in 5 seconds"? Use files provided here. Most of the people have successfully done procedure without problems & those who had problems got sorted out so don't worry.

I am asking you to join telegram group as I come on xda once or twice a day or in a week?

There are many people who had same experiences like you.

https://telegram.me/joinchat/ESGRD0Erde3o4dRPSzkBCQ
[ZenFone 2 General] ekosemut:
Do you guys know if ze551ml there is update version WW-4.21.40.327..! I have been successful root. But for this latest version, safetynet failed even without the xposed install
[ZenFone 2 General] Kapil Tapsi:
I am uploading magisk 13 it passes safetynet.
[ZenFone 2 General] Iqballoon:
root and xposed locked bl for 551ml 6.x.x?
[ZenFone 2 General] keshav_c17:
Dude where is your Magisk v13? Is it the latest beta version? I am on Borets modded Magisk v13 120617. Need the newer one.
[ZenFone 2 General] Kapil Tapsi:
Updated:

Latest Magisk Beta: v13.0 (96f8efc) (code: 1306)

Bundled Magisk Manager: v5.0.2

Magisk v13+ is NOT compatible with Magisk Manager lower than v5.0.0

Magisk Manager v5+ is NOT compatible with Magisk lower than v13.0

Both have to be upgraded together in order to work properly. It will install with zip automatically.

Use the uninstaller in the main thread to uninstall any verison of Magisk installation
[ZenFone 2 General] Kapil Tapsi:
Magisk Updated 16.6.17.

Thanks for reminder.
[ZenFone 2 General] keshav_c17:
First of a lot of thanks to topjohnwu for this superb update of magisk v13 and secondly thanks to you kapil for adding the ZenFone 2 signature. We hope that you will be updating the Magisk for ZenFone 2 regularly as soon as the new magisk update get releases in future. As of now its working perfect. Cheers!!
[ZenFone 2 General] Kapil Tapsi:
No problem. I will always update latest magisk.

Thanks for support.
[ZenFone 2 General] keshav_c17:
Hello [MENTION=6034616]Kapil Tapsi[/MENTION],

Thanks for your work of modifying magisk v13 for ZenFone 2 till now but Finally i have figured out that how to add ZenFone 2 signature to the magisk. 24/06/2017 new beta update is released but you haven't updated it yet for ZenFone 2 thats what made me to Analyze the files of Magisk. After that i added the signature myself only and it worked perfectly.

Thank you.
[ZenFone 2 General] quack75:
So please share your work. We are a community dont forget:D
[ZenFone 2 General] keshav_c17:
Here you go. I have attached the 24/06/2017 update of Magisk v13 beta modified for ZenFone 2 and the official Magisk Uninstaller.

In this latest update few people are facing crashes of magisk manager when they click on Magisk Manger's Superuser. I was also facing same issue after updating. So the moderator of Magisk forum has recommended to clean install this update without the modules and also told to clear both of the caches from recovery. So what i did is first uninstalled the Magisk then wiped Dalvik cache and simple cache. Then installed this update file and rebooted the System and everything worked perfectly. No more crashes. You can further on install your modules.

Though you won't be facing any issues like bootloop or anything but in case you did then i wont be responsible for that. In such cases make sure you have old working magisk file to flash.

Note: I have just modified it, actual credit goes to [MENTION=6201843]adrian1234a[/MENTION] and [MENTION=4470081]topjohnwu[/MENTION]
[ZenFone 2 General] Templanza:
Can't install magiks

Hello, i am stuck on the step" 2.2 For rooting. First use "ROOT UNROOT MAGISK.bat".

- Creating /data/magisk.img

! Magisk image mount failed...

Updater process ended with ERROR: 1

Error installing zip file '/sdcard/magisk.zip'

Done processing script file

Now Download/Update "Magisk Manager" .....
[ZenFone 2 General] quicktrick:
Hi,

I've just found this thread. Could you please tell me where I am wrong? In fact I'm a newbie to this phone because it's my wife's phone. I'm a newbie to Magisk too.

Yesterday I unlocked the bootloader, installed the new one, TWRP and lineage-14.1-20170624-nightly-Z00A-signed.zip + addonsu-14.1-x86-signed.zip. Everything worked fine except root. Then I removed addonsu and tried to install Magisk-v13.0(54e6a79).zip from this thread via TWRP. After that I got endless reboot to TWRP. I restored the system from the backup I had made before installing Magisk.

What do I need to do now to install Magisk and make it work properly? Is it enough just to use "ROOT UNROOT MAGISK.bat" and after that install Magisk-v13.0(54e6a79)_modified-ZenFone_2.zip from this thread?

And some more questions.

1. May I dirty flash LineageOS updates after installing Magisk?

2. May I wipe cache/dalvik after installing Magisk?

Thank you in advance.

Edit. I had a look at "ROOT UNROOT MAGISK.bat" and found that it just installs Magisk for rooting. Is Magisk-v13.0(54e6a79)_modified-ZenFone_2.zip modified to not cause bootloop on this phone?

Edit 2. Got it working. Thanks a lot for the software!
[ZenFone 2 General] Kapil Tapsi:
You have to send screenshot of phone as well as pc to get me more idea about problem
[ZenFone 2 General] Kapil Tapsi:
Yes you can Dirty flash but it removes root, so you need to use root unroot magisk again.

Exactly the magisk is modified to work on Zenfone 2.

And brilliant you sorted problem on your own. If you ever face any problem and couldn't find answers soon, then use our telegram group.
[ZenFone 2 General] quicktrick:
Thanks, Kapil Tapsi!

And what about cache/Dalvik? May I wipe them via TWRP after the installation of Magisk?
[ZenFone 2 General] wizwin:
I updated to WW-4.21.40.327 Marshmallow today and tried to re-root following steps from installing TWRP to Xposed however I am not getting root access. Did not face any error.

Does anyone have solution to this?
[ZenFone 2 General] Ayushman Tiwari:
stuck at fastboot mode

I performed all the steps now my phone is at the fastboot mode and no matter what I select (recovery or normal boot) it restarts to fastboot modee only. Help !
[ZenFone 2 General] Kapil Tapsi:
Try older version given in magisk>previous version
[ZenFone 2 General] Kapil Tapsi:
Which rom are you on.?

Lateat is 323 i guess.

Are you seeing black asus logo with white background?

Is your bootloader unlocked? To check it flash twrp. If twrp install then it is unlocked.
[ZenFone 2 General] Ayushman Tiwari:
Hi , am on the latest upgrade of Android 6.01 M ie. 4.21.40.327...

No the white screen isn't the issue. After the unlock and restore and flashing custom recovery and running the Root Unroot.bat am stuck on the fast boot . Rebooting is bringing me back to this only. I then tried flashing an older twrp and rooting using Supersu Beta 2.74 , it worked just fine. It's not working with the latest twrp and Super Su( I tried 2.82 on both new and old twrps no result !) or Magisk Also everytime to access recovery I have to Unlock boot loader and then restore it after flashing.

Please help ! It seems am stuck with this root can't change .. !!
[ZenFone 2 General] wizwin:
Tried flashing previous version (96f8efc) of Magisk zip from TWRP, it is aborting with error related to mounting magisk.

I also tried re-rooting after flashing original boot and recovery but no luck.
[ZenFone 2 General] Kapil Tapsi:
Send snapshot of errors while flashing magisk..

Try flashing old magisk named borets something.
[ZenFone 2 General] Kapil Tapsi:
Remove supersu and any magisk installed. Make sure you are using latest twrp 3.1.1. Then flash previous magisk 13 borets. And you don't need to restore bootoader, once unlocked successful it works fine.
[ZenFone 2 General] wizwin:
Thank you!! That worked!
[ZenFone 2 General] Kapil Tapsi:
Glad to know it worked....:)
[ZenFone 2 General] ketogeno:
Which files do I need to download to unlock bootloader and flash latest TWRP, Magisk and Xposed?
[ZenFone 2 General] JERRYZKT:
You have to run Bootloader Unlocker.bat when your device is in bootloader mode.
[ZenFone 2 General] carabaothai:
My phone is already rooted and i have the "older" rom

I just want to update to new rom

So i need to :

unlock

open twrp

flash stock recovery

start phone

flash new rom

then must make all again (root,xposed, etc....) or just some steps

I don't remember what i made in december when flash new rom

Thanks
[ZenFone 2 General] JERRYZKT:
You might need to unroot first to avoid possible bootloop.
[ZenFone 2 General] Kapil Tapsi:
Yes jerry is right. You should unroot and remove xposed to avoid possible bootloop
[ZenFone 2 General] Kapil Tapsi:
? New Version Of Magisk 13 Released ?

Magisk 13 3 July 2017

To update just flash the zip through twrp.
[ZenFone 2 General] OchedinValannor:
in Part 2 when you say "fastboot mode" do you mean the stock one or TWRP?
[ZenFone 2 General] carabaothai:
Must unlock before to access TWRP ?

So :

I unlock

I start TWRP

I flash the big new ROM

then i lock again.

Is this right ?

No need to flash recovery original ??
[ZenFone 2 General] teddy64000:
dear, when i download your file on mega or google drive, i have a .img file,

but i can't unzip,

what i must doing with .img file, i must to put in my sd card and install it with TWRP ?

because i have a clean stock rom, and i want just root my phone and install xposed.

thanks for your help
[ZenFone 2 General] PepNYC:
Any idea why I keep getting "failed, permission denied" on MM-WW-4.21.40.327 when trying to unlock the bootloader? TWRP is installed in recovery mode. Ran root bat file and said root completed successfully but root checker and a few of my apps that need root say it's not rooted. I'm even getting the "device failed verification" message at bootup even though it's not rooted.

Debugging mode is enabled and screen lock is off.
[ZenFone 2 General] Kapil Tapsi:
There is only one. Which is stock ofcourse. Fastboot is independent of recovery. And you can't change fastboot either.
[ZenFone 2 General] Kapil Tapsi:
You need to unlock bootloader in order to flash twrp recovery. And you don't need to lock (it is very messy too and not favourable) after unlocking. There is no need to flash stock recovery, only case it is required is when on stock rom and want to flash updates.

Procedure.

Unlock bootloader

flash twrp

then flash whatever you want
[ZenFone 2 General] Kapil Tapsi:
You need to download whole folder (Every file, there is option to download all as zip). And run "Twrp.bat". Make sure you have unlocked bootloader.
[ZenFone 2 General] Kapil Tapsi:
First thing, Why are you trying to unlock when you have twrp installed. Latest firmware is not compatible with magisk 13 latest version. So download older version with name borets in it.

I am adding attachment too. Just flash that zip from twrp, thats it.
[ZenFone 2 General] OchedinValannor:
thank you, my phone is rooted now
[ZenFone 2 General] Hardyan:
is magisk passed safetynet?

i have firmware ww 4.21.40.327_20170519 , unlock bootloader and install TWPR 3.1.1 , I flash magisk 13.1 but not passed safetynet.

any here have same problem.

Pd i have magisk manager 5.0.4
[ZenFone 2 General] PepNYC:
First off, thanks for the reply. I appreciate it.

Yeah. I figured it out. I didn't see your reply and I used the Magisk-v13.0(c4377ed) that was on the instructions and it worked. Is that bad? I mean it's rooted now so.... What ya think?
[ZenFone 2 General] Kapil Tapsi:
Not bad it's good. Very brilliant of you to try yourself.
[ZenFone 2 General] Kapil Tapsi:
Please try enabling hide magisk in magisk settings.
[ZenFone 2 General] Kapil Tapsi:
Latest Magisk : v13.1 Updated 11 July 2017

Just Flash This Via TWRP

Find Download On Main Page Too. All details Given There.
[ZenFone 2 General] PrinceLys:
great :good:
[ZenFone 2 General] RedSaber:
Hi can you help me? I'm new to unrooting then upgrade firmware.

ZE551ML - Z00AD/Z00A

Status: Rooted using your tool.. Many Thanks :D

ROM: Stock

Firmware: 223

TWRP: 3.0.2-M1

Magisk 12 - Magisk Manager 4.3.3

Xposed: None

I'm going to unroot my ZE551ML then upgrade firmware from 223 to 327 before using Magisk 13.1

I want to make sure that my steps are correct.

Here's what I'm going to do please correct me if I'm wrong

1. Unroot using TWRP flash "Magisk-uninstaller-20170608.zip" (I already had it, stored in my internal storage).

2. Double check if unroot then uninstall Magisk Manager if its still in there after using magisk uninstaller.

3. Flash stock Recovery (fastboot using tool)

4. After phone turn ON... go to Settings->System Updates "Check updates" then Download and Install.

5. Phone reboots after upgrade complete and "Optimizing Apps" now its (327) after fully turn ON return to fastboot.

6. Flash TWRP 3.1.1 (fastboot using tool)

7. Root using TWRP flash "Magisk-v13.1 For ZF2 by Kapil Tapsi.zip" (stored in my internal storage)

8. Install Magisk Manager 5.0.4 apk

9. Check if Rooted

Done

I got question also. (im confuse because of "return back to stock rom tutorial procedure" about flashing stock "Boot.img, Recovery.img, Droidboot.img")

1. Is it ok that I don't flash stock BOOT? (in my opinion, its because of magisk uninstaller it removes something in BOOT).

2. also about flash stock droidboot?

I will proceed to my steps after its clarified.

Thanks in advance :)
[ZenFone 2 General] Kapil Tapsi:
Thanks for using my tool.

Simple answer to your question is. You don't need anything from stock rom flashing guide. That guide is for the ones using custom roms.

And your steps are good. I have suggestion. If even you don't get updates from settings you can download latest rom from asus and flash it using adb. It also do flash stockboot and everything else , the ones you asked in question. So don't worry.

Hope it helps.
[ZenFone 2 General] RedSaber:
I see... I thought I have to flash everything e.g. boot.img, recovery.img, droidboot.img, system.img except stock rom. hehe silly me :p

I read other post about flashing both recovery and boot but I notice in your tool only stock recovery available so I think its ok not to flash boot :D

Thank you again

~PLUS ULTRA
[ZenFone 2 General] Kapil Tapsi:
Anytime bro.
[ZenFone 2 General] PrinceLys:
Just when I'm about to upgrade everything, a new version just releases. I guess my rerooting will have to wait.

Current: 223 (now available 352)

ready for magisk 13.1 (now have fix v13.2)
[ZenFone 2 General] Hardyan:
not install en asus zenfone 352 cause bootload now have fix v13.2, i have 327 vs . now wait new version magisk.
[ZenFone 2 General] Kapil Tapsi:
Magisk still has many bugs. And the developer is working very hard. Hope to get very stable release of rom as well as magisk.
[ZenFone 2 General] Kapil Tapsi:
Thanks hardyan. Many users are facing this problem. Maybe problem is in rom. But no so sure.
[ZenFone 2 General] Kapil Tapsi:
Magisk Updated:

Latest Stable Magisk Version: v13.2 (14 July)

Latest Magisk Manager Version: v5.0.5​

Changelog:

v13.2

- [magiskpolicy] Fix magiskpolicy segfault on old Android versions, should fix tons of older devices that couldn't use v13.1

- [MagiskHide] Set proper selinux context while re-linking /sbin to hide Magisk, should potentially fix many issues

- [MagiskBoot] Change lzma compression encoder flag from LZMA_CHECK_CRC64 to LZMA_CHECK_CRC32, kernel only supports latter

- [General] Core-only mode now properly mounts systemless hosts and magiskhide

Flashing Instructions.

Flash the zip provided here through twrp.
[ZenFone 2 General] PrinceLys:
is it ok to jump OTA upgrade from 223 to 352?

My current firmware is 223 when I check update, it shows 352.

(Skip 327)
[ZenFone 2 General] Kapil Tapsi:
It is ok. Buy couple of user having problem with magisk on 352. Can't be sure you will too. But Play safe side. Asus must have patched something.
[ZenFone 2 General] PrinceLys:
Thanks for the info, good thing I open xda and read your reply.

I was gonna update it now... since update notification is so annoying (screenshot attach) how can I get rid of this?

Btw, I reverted back to stock recovery, should I use the 327 instead? Or just root it back again?
[ZenFone 2 General] quack75:
Kill fotaservice

Inviato dal mio ASUS_Z00AD utilizzando Tapatalk
[ZenFone 2 General] Kapil Tapsi:
Use adb to flash 327 and root. 352 is risky for now.
[ZenFone 2 General] PrinceLys:
It wont work out, no matter what I do it wont go away, I just press yes and it download 352 but I didn't install and postpone it 1day. (Edit: notification so annoying)

Now, Im going to look for the file location and manual delete it.

Edit: I cant find the ota file... and I just remembered I have recently backup in twrp before I flash it back to stock recovery, I'll just flash twrp again to restore it. :)
[ZenFone 2 General] Gambosino:
I have installed magisk 13.2 version that [MENTION=6034616]Kapil Tapsi[/MENTION] patched for zf2 but on magisk manager says " rooted but no root permission, not allowed?", but su gives permissions to others apps.

How to fix it?
[ZenFone 2 General] Kapil Tapsi:
Try rebooting. It should do the trick. If not. Then uninstall and then install magisk again.(I know, But its rare problem). Your problem will solve.
[ZenFone 2 General] prosquos:
I updated to .352 (ZE551ML), then unlocked again the bootloader, installed the latest TWRP 3.1.1 and flashed the zip of Magisk 13.2.

All works fine except for SafetyNet (check fails).
[ZenFone 2 General] Kapil Tapsi:
Did you try hide magisk in magisk manager settings. That's the only option.
[ZenFone 2 General] prosquos:
Yes, the option "Hide Magisk" is active but it doesn't work for me. I tried also to turn it off and on again, then reboot but nothing..
[ZenFone 2 General] Kapil Tapsi:
You use xposed or any other tool that modify system. That may be the reason.
[ZenFone 2 General] prosquos:
Yes, I use xposed.
[ZenFone 2 General] Kapil Tapsi:
That seems to be problem. At this time nothing can be done. Either remove xposed or work with safety net fail. Though it is not a big problem.
[ZenFone 2 General] Gambosino:
Unfortunately rebooting didn't work, or uninstalling and installing(wiping cache and art cache).
[ZenFone 2 General] PrinceLys:
Is it possible to downgrade by using backup?

e.g. current firmware 352 (but you dont like it)

and you use restore backup in twrp (system "223 at that time" and data).

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

did you use the latest magisk manager 5.0.5?