yashsingh1/xdaforums huggingface dataset:
[XDA Assist] 4llerbuntu:
Device: Asus Zenfone 2 Laser

Model: ZE550KL

Other info: 2G ram, 720P screen

PROBLEM:

Phone is Hard Bricked. Only recognized by PC as Qualcomm HS-USB QDLoader 9008

How it happened:

I wiped the modem, tz, hyp, rpm, sbl1 and bootloader partitions in fastboot mode. (STUPID ME)

Now its completely dead and won't boot.

Since its not hardware fault, i need the Service recovery files to recover it with QPST.

8916_msimage.mbn , MPRGxxxx.mbn etc

These are the firmware files provided by Asus with the stock firmware(tz, hyp, rpm, sbl1, appsboot) : https://drive.google.com/open?id=0B3...DhhYXdpWE10Sjg

Stock rom is also available in both zip format and image format.

Please help me with how to generate the service files, a link to a tutorial or help generating them will be appreciated
[XDA Assist] Clark Joseph Kent:
These Forums are for New Members find there way around XDA, NOT for Senior Members and epically ones that have been around since 2011...

Post in your Forum device threads...for more assistance.

Thread Closed.
[ZenFone 2 General] samcjtsai:
**WARNING** You need to have background knowledge of adb, fastboot, twrp, sideload.. before you can go on with this thread.

1. All credits go to [MENTION=1813976]shakalaca[/MENTION]. If you like his work, please make him a small donation for encouragement.

2. This is a systemless root. Yet you need to unlook Lollipop before upgrading to Marshmallow.

3. Flashing the attached SuperSU file modifies stock boot.img. In case you receive an OTA file later, do

**REMEMBER to FLASH BACK TO STOCK Android 6.0 BOOT.IMG** to unroot before upgrading to official Android 6.0.

Root:

1. Unlock your device in Lollipop, then upgrade to Android 6.0

2. Once you are in Android 6.0, fire the following command to boot twrp. <twrp.img> is the twrp recovery file. This TWRP is recommended.

adb reboot-bootloader
fastboot boot <twrp.img>

3. adb sideload the attached SuperSu file in twrp. /OR install the SuperSU in twrp if you saved it in device storage.

4. reboot system. You will see a warning screen saying "Your device has failed Verification". Ignored it and wait for the reboot.

5. Done

Unroot:

Just flash back stock boot.img

Xposed:

1.Flash the attached Xposed file from twrp.

2.use Material Design Xposed Installer: Download Xposed Installer here

Downgrade to Lollipop:

In case you need to downgrade to Lollipop, follow the instructions with care. Do it at your risk.

Refer to Asus Zentalk Forum and grab the required files from there.

fastboot flash token bom-token.bin
fastboot flash ifwi ifwi_ann_a0-mofd_v1-ze551ml.bin
fastboot flash fastboot droidboot.img
fastboot flash splashscreen splashscreen_ze551ml.img
fastboot reboot-bootloader

Now you are back in Lollipop. You can flash back stock recovery(.184 recommended), wipe the device(cache/userdata/system) and then sideload back stock LP or MM as you wish. OR, you can flash custom recovery/boot/system.img start from here.

Good luck!
[ZenFone 2 General] dimitrakhs1:
It worked!Thank you master!I bow now....
[ZenFone 2 General] MikeyLee:
I just need root on 6.0.1. Is this going to achieve that?
[ZenFone 2 General] luisoman2000:
According to op it will
[ZenFone 2 General] pokey006:
It does work, but YMMV, my phone is one of the few that works completely with the beta software. But before running fastboot cmd in adb. Use adb reboot recovery, then fastboot cmd. Phone will reboot twice after sideload of SU.
[ZenFone 2 General] kamyk70:
Hi Brother would you like be so patient and provide us with detailed toturial for less advanced users?
[ZenFone 2 General] snap316:
Works like a charm !! Thanks !!
[ZenFone 2 General] pokey006:
Assuming that everyone knows how to use adb and its commands

1: Well first make sure adb and drivers are on your pc.

2: Plug phone in make sure USB debugging is on

3: In adb cmd window type "adb devices" to make sure phone is recognized, if so proceed

4: type "adb reboot recovery" phone should boot into recovery with android robot on screen

5: Then type "fastboot boot <twrp.img>" twrp.img is whatever your file is named

6: phone will boot into recovery, go to adb sideload in recovery

7: type "adb sideload <SU.zip>" or whatever you have it named

8: After it's done loading reboot from recovery, it will reboot twice and the screen will say as per OP

9: After phone optimizes...enjoy root.

This is for advanced users
[ZenFone 2 General] VinzNguyen:
when update to 6.0. bootloader unlocked again ! how can i flash twrp ?
[ZenFone 2 General] Vouga:
To that to work does WE need to have bootloader UNLOCKED ? just really confused atm.
[ZenFone 2 General] pokey006:
No it does not
[ZenFone 2 General] kenbo111:
He's using whats called "tethered TWRP". It's basically running twrp on your phone from your computer instead of actually installing it (which would require unlocking).
[ZenFone 2 General] Vouga:
Thank You for explaining that to me, appreciated!
[ZenFone 2 General] euthic:
To downgrade to Lollipop, is it possible to just use AsusFlashToolInstaller and flash raw firmware? Any harms by doing that?

Thank you in advance.
[ZenFone 2 General] Flynhx:
You need to adb sideload all LP .184 images first then use Asus FlashTool to flash RAW Firmware.
[ZenFone 2 General] papatsonis:
root works perfect along with systemless xposed, but i still cant pass safenet check..(super su disabled, and also xposed) so no AP.. is that normal ?
[ZenFone 2 General] ponhei9502:
Maybe I'm doing something wrong but my phone isn't recognised when trying to flash twrp from the dead bot before recovery? Just says waiting for device. Already checked device manager as well
[ZenFone 2 General] samcjtsai:
Guess your ZF2 is not unlocked in LP first, so that you can't see twrp booting. Since you are in Android 6.0 now, try to downgrade to LP, Unlock it, upgrade to 6.0 and then root.
[ZenFone 2 General] MikeyLee:
Where are these files again? They aren't in the zip
[ZenFone 2 General] jdubbs13:
thanks, works great, was able to downgrade to lollipop with no problem what so ever. Install twrp, gain root again, and rockin custom roms...
[ZenFone 2 General] TwoPointZero:
After I flashed twrp official and the phone bricked, I was glad to have a failsafe solution. Better safe than sorry.
[ZenFone 2 General] sway8966:
This is by far the most easiest root method for rooting Asus Zenfone 2 with Android 6.

I tried other methods (downgrade bootloader to LP, unlock it, flash twrp, install SuperSu, upgrade bootloader to MM and use CWM tethered method to flash SuperSu, etc...) and they did not work for me. It took me a day, my phone went bricked and had to install the whole firmware again.

This method do not need to unlocked the bootloader.

I used latest TWRP (twrp 3.0.2.0) but I use the SuperSu mentioned in the OP.

Thank you very much.
[ZenFone 2 General] samcjtsai:
[MENTION=1813976]shakalaca[/MENTION] mentioned an updated SU, but I think he is busy rooting Zenfone 3 right now.
[ZenFone 2 General] Pavamarea:
Hi, i'm new in Asus's world, i came from Samsung Note2, 3 years modding the phone in all ways. Now i'm a bit confused with Zenfone 2.

I have a Zenfone 2 Deluxe 128 gb, Z00A.

I rooted it, unlocked bootloader, installed TWRP, xposed and custom kernel, as I always did in my old Note 2.

Now I'm in doubt about upgrade to MM. What are the simplest way to upgrade now? There's a flasheable MM stock rom, rooted and deodexed? I don1t want AOPS based rom, for now.

Thanks and sorry for the long text and my bad english.
[ZenFone 2 General] samcjtsai:
1. flash back stock recovery

2.sideload stock MM rom

3.root following OP steps

You get stock MM rom, rooted and locked bootloader.
[ZenFone 2 General] Pavamarea:
Where I can find the stock recovery?
[ZenFone 2 General] samcjtsai:
The egg is hidden in the OP. here look for your version of Lollipop stock recovery.
[ZenFone 2 General] wearver:
I have a doubt, my bootloader is unlocked, if I install 6.1 it will continue unlocked or have to make the procedure for the 6.1
[ZenFone 2 General] iqbal_mahmuda:
Anyone got this storage text error too?
[ZenFone 2 General] Shaliuno:
Can someone tell me the difference?

Stability, usefulness...

Between this ROOT and ROOT by Magisk way

http://xdaforums.com/zenfone2/general/root-root-xposed-ze551ml-official-t3454276

http://xdaforums.com/zenfone2/general/root-install-xposed-marshmallow-6-0-1-t3456443

?
[ZenFone 2 General] jman0:
Stability and usefulness are the same in both options. The rooted phone will work the same way, regardless the rooting method used. Just choose the one you find easier anf more comfortable for you.
[ZenFone 2 General] kenbo111:
Everyone has that
[ZenFone 2 General] sway8966:
Assume that stability and usefulness would be the same.

However, this method is by far the easiest method. I tried those two methods first but it ends up bricking my phone because I missed one step.

My experience with this method is written here.
[ZenFone 2 General] jeffrey roy:
do i have to be in the latest lollipop firmware before unlocking it?
[ZenFone 2 General] maor23:
how i uninstall xposed(i need uninstall fimerware for login into snapchat and install again)
[ZenFone 2 General] MMMedic:
I was rooted and had Team Win Recovery installed while I was using Lollipop SuperZen. Then, I bricked my device trying to update to Marshmallow, so I factory reset, flashed stock LP Rom and official Marshmallow after that. Does that mean my device is unlocked? I can provide extra info if needed. Thanks.
[ZenFone 2 General] distant_thunder_89:
As I understood it, this method (OP) mantains your bootloader locked (you have to unlock it in LP, but when you upgrade it relocks) and needs supersu and xposed specifically patched by shacalaca for the ZenFone 2. This means you are stuck using topjohnwu's xposed v85.5 unless shacalaca or someone other update it; supersu updates itself normally through playstore.

The Magisk method (which I didn't try) is more universal and you can update xposed but it implies unlocking bootloader.
[ZenFone 2 General] kenbo111:
Upgrading to M relocks the bootloader
[ZenFone 2 General] miku1024:
No its not relock the bootloder, i upgrade mm from lp with unlocked bootloader, and i still can flash twrp from mm fastboot

---------- Post added at 06:46 AM ---------- Previous post was at 06:41 AM ----------

Yes your device remain unlocked, you can flash twrp from mm fastboot already tried myself
[ZenFone 2 General] distant_thunder_89:
Ok now I'm confused. I also ran "fastboot oem device-info" but it failed, this evening I will try flashing twrp if I can that would mean this method unlocks boot loader in MM.
[ZenFone 2 General] kenbo111:
Back when I posted that there was no way to unlock it. Now there are batch scripts that will do it.
[ZenFone 2 General] distant_thunder_89:
But those new scripts have been included in the OP zips? If so I would signal it for those like me who wouldn't have their BL unlocked.
[ZenFone 2 General] kenbo111:
This whole method is old now. I would go with this one. http://xdaforums.com/showthread.php?t=3458145
[ZenFone 2 General] czekelzky:
Yes me too.
[ZenFone 2 General] sgsI9003:
Will this method work on Zenfone Zoom ZX551ML which has been already updated to 6.0.1?

I dont know if there is any way to downgrade back to lollipop.
[ZenFone 2 General] appollokillers1:
exit a place to find the answer, it's called google and i think i saw that it's possible to downgrade
[ZenFone 2 General] sgsI9003:
I actually reached this thread by finding it in google now it doesn't show up any concrete results of marshmallow rooting on Zenfone Zoom ZX551ML, thats the reason I asked here.
[ZenFone 2 General] appollokillers1:
here a page on how to root that device http://www.asus-zenfone.com/2015/12/how-to-root-asus-zenfone-zoom.html
[ZenFone 2 General] sgsI9003:
I am speechless at your replies,

I am specifically asking rooting on marshmallow 6.0.1, this thread is also specifically for 6.0 beta & you are giving me an old link which only works on lollipop & I have used that method when I was using lollipop. This doesn't root now anymore.

Now could you once google "Zenfone zoom rooting on marshmallow 6.0.1" & see yourself the results.
[ZenFone 2 General] appollokillers1:
oh, then sorry, no idea
[ZenFone 2 General] kenbo111:
I googled "zx551ml marshmallow root". Second link was this: https://guidebeats.com/2016/04/19/root-asus-zenfone-zoom-zx550ml-zx551ml/
[ZenFone 2 General] sgsI9003:
Bloggers can do anything to earn their revenue from advertisements,

That blogger has just changed the title & copy pasted the old content under the heading of Marshmallow that too posted on April 19, 2016, by that date not even the beta of MM 6.0.1 was released.

As I said google is not having the results which work on 6.0.1 that is the reason I asked here.
[ZenFone 2 General] jsheng007:
In xFSTK, I encountering a loop problem,after finish FW download ,continuing to OS download it goes back to FW download again and again non stop. Anyone could help ?

PS: I replying the wrong thread, admin please remove thanks
[ZenFone 2 General] xDEV007:
Hi, I need to uninstall this xposed version now and I'm wondering what's the easiest way to do that?

Thanks
[ZenFone 2 General] jman0:
Look where you downloaded xposed. There should be a zip to uninstall the framework from the recovery. The xposed manager app and the modules are to be uninstalled as any other Android app, but you need the zip to get rid of the xposed framework
[ZenFone 2 General] xDEV007:
Thanks for the reply, I looked for the zip but there isn't one. Can I use an x86 xposed zip uninstaller or do I need a special one for this version of the framework.
[ZenFone 2 General] jman0:
I don't know. You can try, but I'm not sure if it will work
[ZenFone 2 General] BramboetZ:
Have you successfully uninstall your framework??

I have tried using

x86 xposed zip uninstaller & xposed uninstaller topjohnwu 20160820..

No one worked..
[ZenFone 2 General] rmess2222:
xposed 86.2 systemless

just wondering if you could possibly make a patch for xposed 86.2 systemless to work on ze551ml with android 6.0.1 thanks
[ZenFone 2 General] geek85:
I have the same question.
[ZenFone 2 General] ameel:
Hi guys, like others I'm trying to run xposed 86.2 systemless with superuser systemless and suhide on Marshmallow (android 6).

I want to follow this guide: http://xdaforums.com/showpost.php?p=68778700&postcount=2120

But zenfone users (i have the ze551ml) are missing out on:

supersu v2.76(magisk version)

supersu v2.78

xposed systemless v86.2

suhide 0.53

Can we get the above for Zenfone pleaseeeeeeeeee?
[ZenFone 2 General] abex181:
If you want Magisk v6 working with SuperSU v2.76+, just flash the patched magisk v6 zip from http://xdaforums.com/zenfone2/general/root-install-xposed-marshmallow-6-0-1-t3456443 and the SuperSU v2.76 zip from the magisk thread. Update to v2.78 by updating the SuperSU apk in the play store and opening the app. Systemless xposed (v86.5) also works with magisk using the zip in the linked thread.

If you want the latest suhide (v0.53+) working with SuperSU v2.78-SR1, then you need a patched zip for SuperSU v2.78-SR1 in order to follow the instructions on the suhide thread. I've made a patched zip by taking the signature file from the SuperSU zip in the OP and adding it to the zip for v2.78-SR1. Credits for the original patch go to [MENTION=1813976]shakalaca[/MENTION]. I do not have a patched zip for systemless xposed v86.2 since I'm not actually writing any patch but just piecing things together. There was a major change to topjohnwu's systemless xposed after v86.0, and I can't be bothered to figure it out.

TL;DR

From my personal experience, you can have:

a) Magisk v6 + SuperSU v2.76+ + systemless xposed v86.5

OR

b) SuperSU v2.78-SR1 + suhide v0.53+
[ZenFone 2 General] ameel:
Thanks mate, much appreciated. That's what I was after.

BTW, I thought for a) Magisk v6 + SuperSU v2.76+ + systemless xposed v86.5 = safetyNet fail?

Is there any systemless xposed v86.2 patched for zenfone 2? so I can run it with SuperSU v2.78-SR1 + suhide v0.53+ ?
[ZenFone 2 General] abex181:
I haven't tested option a) for safetyNet pass/fail. Magisk manager app has root toggle, though you may also have to unmount xposed too. I haven't looked into this.

Option b) should pass.

I'm not sure or actively looking for a patch for systemless xposed v86.2. The app/game I'm trying to circumvent root detection for doesn't use safetyNet and is overzealous in detecting xposed so I've settled for root without xposed.
[ZenFone 2 General] ameel:
Thanks for the reply. Much appreciated.

Just to clarify. when you say "Option b) should pass", you mean without xposed 86.5 installed.

Btw, how did you fix/path the SuperSu 2.78 for zenfone? I copied zf2_6_sig into the original SuperSu 2.78 zip file but that didn't work for me, whereas your re-pack works... Would you elaborate for my future reference please?
[ZenFone 2 General] abex181:
You also have to make changes to the update-binary. Use an editor with a compare feature to look at the changes between the patched/non-patched version. There's a few lines of code added in to do device detection, and if ZF2 is detected, a line of code to add the signature file to the boot image before repacking and flashing.
[ZenFone 2 General] ameel:
Thanks so much! Doesn't seem like anything is working anymore ~_~ will have to flash stock and try again.
[ZenFone 2 General] ameel:
Awesome I have latest SuperSu + suhide working well. Installing the unpatched xposed 86.2 gets me stuck on phone loading symbol. I'll see whether I can make sense of the xposed 86.2
[ZenFone 2 General] geek85:
same here. it seems that it's inherent to xposed 86.2 (not the way it install but the framework itself) so it seems there is no solution for the moment for Zenfone 2.

Xposed doesn't interact with boot.img so repack the install will not change anything. I will try to mix 86.2 install and 86.5 files and see if it's detected but it will be very messy.

i will post the results here.
[ZenFone 2 General] ameel:
Good luck with that! 86.2 and 86.5 are completely different. 86.2 is 'systemless' whereas 86.5 is 'systemless using magisk'. So it installs a completely different way.

Have a look at 85.5 instead. There's a zenfone 2 patch for it somewhere.

Found it "xposed-v85.5-sdk23-x86-systemless-patch-by-shakalaca-for-zenfone2-6.0" here: http://xdaforums.com/zenfone2/general/android-6-0-beta-root-xposed-downgrade-t3404321

I've flashed and reflashed so many times I don't know what I'm doing anymore.. But I'm pretty sure I tried 85.5 linked above and that didn't work.

edit: basing off 85.5 wouldn't work either. your best bet may actually be fooling around with the files in 86.5 and replacing them with 86.2 and install using magisk? worth a shot?
[ZenFone 2 General] taufeeqsiddiqie:
[MENTION=3180716]ameel[/MENTION] In the downgrade portion of the tutorial you have only mentioned about ze551ml. Are the same files to be used on ze550ml???
[ZenFone 2 General] geek85:
I actually made the contrary: replacing 86.2 files with the ones of 86.5. The purpose was to be able to use suhide with 86.5. (systemless install 86.2 use su.img instead of magisk.img for 86.5)

it has not made any bootloop but it didn't work. Xposed could not find its files.

log here

the problem with your final proposition is that Xposed may work (or not) but it won't be in the suhide scope because it will be under magisk.img, not su.img. Maybe this isn't a problem after all, if the su call is after the magisk one, suhide will make some magic and it may work. but I prefer not test that. My setup magisk+pph root+xposed 86.5 work as long as I deactivate xposed when I want to bypass safetynet. I'll wait for [MENTION=4470081]topjohnwu[/MENTION] and [MENTION=631273]Chainfire[/MENTION] to make something great in cooperation if possible.
[ZenFone 2 General] ameel:
i tried the other way. I setup supersu 2.78 r1 + suhide 0.53. All works fine, safetynet passes. I then installed magisk and can run xposed 86.5, but safetynet fails (duh!). So if we could somehow repack 86.2 to run through magisk (like you said, maybe just replace the files in 86.5 with files from 86.2), that might do the trick...

Share your repack with me? I tried something similar yesterday, but mine got stuck on the never-ending loading screen. I can compare see what we may have missed.

edit: I had to re-read your post. 86.5 requires magisk, doesn't it? Did you mean that

(1) you took 86.5 install package and replaced the xposed framework with 86.2 framework (therefore attempting to install xposed 86.2 through magisk)

OR

(2) you took 86.2 package and replaced xposed framework with 86.5 framework (so that you could install 86.5 systemless)?
[ZenFone 2 General] abex181:
[MENTION=3180716]ameel[/MENTION], [MENTION=1546829]geek85[/MENTION]:

I had a closer look at the zips for systemless xposed 86.2 and 86.5. The key difference between these versions is that 86.2 uses SuperSU's su.d method for loading the xposed files and 86.5 uses Magisk. Neither use a patched boot image, so the signature file from the old 85.5 zip patched for ZF2 doesn't work.

However, looking at the difference between the patched 86.5 from http://xdaforums.com/zenfone2/general/root-install-xposed-marshmallow-6-0-1-t3456443 and the normal one in topjohnwu's thread, the key difference is one file (libart.so in /x86/system/lib in the zip). Replacing the same file in the 86.2 zip with the one from the patched 86.5 does work to get ZF2 bootable with xposed.

I've attached the repacked systemless xposed v86.2 which is working for me. Also attached is the xposed uninstaller from topjohnwu which was used for the zips he provided before switching to magisk. This will enable you to uninstall 86.2 in case of trouble. Needless to say, you need to be using the material design xposed installer from dvdandroid. First boot after flashing takes a little bit longer as well.

To get suhide working with xposed, you can now follow the instructions in the suhide thread, but replacing the zips for SuperSU v2.78-SR1 and systemless xposed v86.2 with the ones I've posted. Of course, you should first remove existing installations of xposed (magisk/non-magisk), suhide, and probably unroot (using SuperSU app).
[ZenFone 2 General] ameel:
Give this man a cookie! I'm reflashing stock and will test shortly and report back. :good:

EDIT: OMG YES IT WORKS!!!

For others to find all the files in one place, I've attached the files below. Credits to the original authors for these files (of course), and to @abex181 for his zenfone 2 fixes/patches.

For clarity, to get it all working:

Make sure nothing is installed: no superuser, supersu, magisk, xposed, suhide. Nothing!

1. Boot to TWRP (or other) Recovery

2. Flash attached Supersu v2.78 SR1 to install

3. Boot phone to System

4. Boot to TWRP (or other) Recovery

5. Flash attached suhide 0.53 to install

6. Boot phone to System

7. Boot to TWRP (or other) Recovery

8. Flash attached xposed 8.62 to install

9. Boot phone to System

Trust me, take the time and boot to system every time. I tried to flash it all in 1 go, but system wouldn't boot. Had to restart after reflashing stock system.
[ZenFone 2 General] geek85:
[MENTION=4511340]abex181[/MENTION] thank you. very nice work!

I didn't search deep enough to see this differences in libs. I just have replaced all the files.

I try your package right now.

[MENTION=3180716]ameel[/MENTION] Your procedure seems correct, I give it a try!
[ZenFone 2 General] ameel:
[MENTION=4511340]abex181[/MENTION], [MENTION=1546829]geek85[/MENTION]

How's your phone doing?

Have any of you tried pokemon go?

I've noticed a few strange things:

1. my phone is generally considerably slower (I'm not sure if it's marshmallow or the supersu or suhide or xposed).

2. Pokemon go is very slow, laggy and freezes a lot.

3. All apps have to optimise on reboot (although it's super fast compared to 'normal' optimise)

Only thing I haven't done as part of the setup process is wipe my cache, which may make a difference. However, i'd rather not do it unless you guys have a better/smoother experience