yashsingh1/xdaforums huggingface dataset:
[General Questions and Answers] Fytdyh:
Getdroidtips is a site that shows generic guides. If you don't know how to filter websites, check their guides for two radically different phones. Like a pixel and huawei. If the guide is very similar, word by word, it means that's a bad guide.
[General Questions and Answers] Fytdyh:
I assume you did went in developer settings and enabled OEM unlock right ?
[General Questions and Answers] doesitburn:
have you read my post lad :) ?

yea ofc i set OEM unlock on the dev settings .

i just cant get into fastboot mode .

even if i didnt had OEM unlock set to on , fastboot would still be accessible for example repair a boot looping phone , however i cant seems to get into it .

i also tried SP flash as mention at my post , however , even that i cant do . pressing all the buttons and nothing happen .
[General Questions and Answers] mh038:
How Do I Flash This phone
[General Questions and Answers] losdelrock:
Same here. I instead purchased a Google Pixel. This phone has no way of unlocking the bootloader. DO NOT PURCHASE.
[General Questions and Answers] yosiyy10:
If you could update us what you did in the end with this cell phone, because I also want to root it and I can't...
[General Questions and Answers] malcolmy:
Same thing here. I can switch on "OEM unlock" in developer settings but I can't see "Advanced" option in recovery mode. Any idea how to get into fastboot mode?
[Asus Zenfone 9] BreadNoose:
Guide has been reworked to be more clear and based on comments.

[Part One]

Backup Data

Update phone to latest version

[Part Two]

Download the Firmware for the Zenfone 9 https://www.asus.com/mobile/phones/zenfone/zenfone-9/helpdesk_download/​

Download Payload GUI. https://xdaforums.com/attachments/payload-dumper-gui-v2-3-zip.5758127/ (Hermann2306 credit for mentioning)​

Extract the Payload Dumper GUI zip file, as well as the UL-ASUS Firmware zip file​

Run the Payload Dumper GUI program in the unzipped folder. A file explorer window will pop up; open the unzipped UL-ASUS Firmware folder and select the payload.bin file. Another file explorer window will pop up; select the UL-ASUS Firmware folder if not already selected, then click select folder in the bottom right.​

Click Dump on the Payload Dumper GUI Application. The files will be output to the UL-ASUS Firmware folder.​

[Part Three]

Download Magisk and install onto phone via APK. https://magiskmanager.com/downloading-magisk-manager/

Plug phone into computer and allow file transfer.

Within the UL-ASUS Firmware folder there will be a boot.img file. Move this file onto the phone.

Open the Magisk application and follow image below, select the boot.img to patch

A file will be output with magisk. Move this file back onto the PC, and rename to boot.img

[Part Four]

Unlock Zenfone 9 Bootloader. Asus provides a bootloader unlock tool on their website. Below is the link directly to the apk. https://dlcdnets.asus.com/pub/ASUS/ZenFone/ZS590KS/AsusUnlock_1.0.0.7_210127_fulldpi.apk

Install the drivers listed below for the phones recovery mode https://dlcdnets.asus.com/pub/ASUS/ZenFone/ZS590KS/ASUS_Android_USB_drivers_for_Windows_20160331.zip (Asus Driver Xanker commented. Thank you again)

[Part Five]

Download Minimal ADB and extract files https://androidfilehost.com/?fid=962187416754459552

Move Boot.img file into Minimal ADB extracted folder.

Put Zenfone into recovery mode and connect to PC. Recovery mode can be achieved by turning off the phone and then powering on whilst holding the volume up button. Release when the ASUS logo pops on screen.

Run cmd-here.exe in the Minimal ADB folder; a command window will open

As a test run the command listed below and it should output a device fastboot devices

If that test succeeded run the final command to flash, fastboot flash boot boot.img
[Asus Zenfone 9] ProperAlston:
The command prompt command didn't run. Said it was not recognized. Is there a specific place the .exe need to be in the directory?
[Asus Zenfone 9] ProperAlston:
NVM...got it.
[Asus Zenfone 9] bighit101:
@BreadNoose Thanks for the write-up!!!

I just got the phone 2 days ago and have been trying to follow your steps but without success. I keep having issues with fastboot (I've probably spent 6+ hours on it; I also have a 9-5 job haha). The following are things I've tried:

*Btw, OEM unlock is not showing in Developers options. Download unlock app and I think my OEM is unlocked but in recovery it says "Yes" next to Bootloader thing.

-ADB works fine.

-Download Platform from Google.

-Tried ADB minimal from xda also.

-I tried three laptops, two windows 11 and the other windows 10. None of them recognize fastboot.

- When I go to device manager I see Asus phone listed with that yellow triangle sign and when I try to update the driver it either says drivers up to date or if I manually try to update it says some other error.

- Try different cables.

- I even disabled the driver signature in the restart menu but no success.

-I tried using Asus 8 drivers thinking that would help but nothing.

I wonder if it's just the Asus 9 driver that's the issue? What am I missing??? 😭😭😭

Any idea?

Thanks for any help you can provide.
[Asus Zenfone 9] xanker:
Had the same Problem, you have to use this driver:

https://dlcdnets.asus.com/pub/ASUS/ZenFone/ZS590KS/ASUS_Android_USB_drivers_for_Windows_20160331.zip
[Asus Zenfone 9] williamcll:
The image version that I just downloaded seems to be at a higher version (WW-32.2030.2030.26 as opposed to WW-32.2004.2004.84 on my phone) and the phone doesn't have that version available (I haven't unlocked the bootloader yet). Should I update locally or download the earlier version of the image instead?
[Asus Zenfone 9] Hermann2306:
If your phone has the 2004 version installed extract the boot.img from the downloaded 2004 Payload.bin. Or you can update your phone and use the 2030 boot.img.

For me it works with the 2030 version. Root installed, everything ok (AdAway, Postbank (BankingApp)).

If you want to pass SafetyNet just install the magisk module from https://github.com/kdrag0n/safetynet-fix/releases/tag/v2.3.1 and reboot.
[Asus Zenfone 9] williamcll:
OK, rooted with no issues, I needed to install the asus drivers and had to reset a second time because the USB stopped working. However, I can't get Google wallet to work despite all other banking apps working as well as passing safetynet.
[Asus Zenfone 9] Hermann2306:
I dont use wallet, but if installed i can run it and start the setup, no errors.

Maybe try it with the use of denylist.

How to Hide Root from Apps via Magisk [Android 14]

In this comprehensive guide, we will show you the steps to hide root from apps and games using Magisk Denylist on Android.

www.droidwin.com
[Asus Zenfone 9] williamcll:
Doesn't work, the guide asks for denying google system apps which doesn't work because they are always off deny list (this is intended behaviour)

For the record, every other payment apps I am using, even the ones that check for safetynet are working. YASNAC returns a both pass basic.
[Asus Zenfone 9] Hermann2306:
Then i am sorry (Im too new to the whole android stuff, still learning)

Just for interest, can you start and configure wallet (error comes first if you want to pay)?
[Asus Zenfone 9] williamcll:
Wallet is configurable, it's just that when you save your card details and it starts contacting the bank it would jump to an error saying that the system is modified.
[Asus Zenfone 9] Hermann2306:
Maybe try this? (I think you have already read/tried it)

[Magisk] Google wallet (pay) with magisk

Saw on reddit that some people have issues with google pay, since the new update added some new checks. So here is what you do: - Update Magisk to 25.2, Update magisk app to 25.2 as well - Rename Magisk app if you havent already - [ OPTIONAL ]...

xdaforums.com
[Asus Zenfone 9] marcusdre:
Does someone rooted a 16GB ram Zenfone 9? My software is 32.2004.2004.74.

Can not find this software at Asus website.
[Asus Zenfone 9] Hermann2306:
I have rooted the 16gb version (32.2030.2030.26).

Why dont make an update before root?
[Asus Zenfone 9] bighit101:
OMG!!! Bro you are the MAN! (Sorry im so excited lol).

You literally saved me god knowns how many hours. It was the driver that were the issue. But whats weird is I went to asus site to download drivers before leaving a comment.

I'd really like to buy you a coffee (or adult beverage). Let me know your paypal/venmo.

Thanks again!
[Asus Zenfone 9] Veiranx:
Try this: https://github.com/kdrag0n/safetynet-fix
[Asus Zenfone 9] williamcll:
Safetynet fix is running, it's just that it's not enough, still going through the prop fix.
[Asus Zenfone 9] xanker:
Glad I could help. I already drink enough coffee ;) but you're welcome to donate to a children's charity.
[Asus Zenfone 9] bighit101:
Yeah coffee is life!

You're too nice. Will donate in you're name.

Thanks man!!!
[Asus Zenfone 9] dsdavis6:
I have just rooted my phone and got wallet running without any hiccups. Have you made sure to wipe all your google data? I set up safetynetfix zygote block etc from a clean install without running any google orientated apps first. For example a banking app that I later went to set up, i forgot to add it to the block list and then once I did i still couldn't get past set up as it remembered it had seen root so I just uninstalled, installed again, added to list and then ran it without issue. This may not help, just thinking aloud.
[Asus Zenfone 9] williamcll:
Remind me which google apps I need to delete storage? Have you added a card to google wallet?

I may have missed a step in making wallet pass, I've noticed that after clearing wallet's storage it would revert to google pay and then updates itself to wallet.
[Asus Zenfone 9] dsdavis6:
Could be argued I went overboard but I decided to play it safe. You definitely want to do play store and play services
[Asus Zenfone 9] williamcll:
which services did you clear storage on? I added those to the denylist and rebooting causes google play services to be unchecked, stopping google pay from adding my card.

EDIT: modded safteynet fix worked

https://xdaforums.com/t/working-mag...s-17-1-22-on-pie.3929950/page-9#post-79643248
[Asus Zenfone 9] dsdavis6:
I didn't clear any of them, like i said I set up Magisk before doing ANYTHING else on a fresh factory reset. If you clear all of the ones I have selected I am guessing that would do the trick, but I am unsure which are necessary and which are not.
[Asus Zenfone 9] williamcll:
using the modded safetynet fix above worked.
[Asus Zenfone 9] dsdavis6:
Thank you for the guide! I haven't rooted a phone for a few years and I have to say it was one of the easier experiences. Made a little charity contribution since you didn't want any donations.

Has anybody had any experience with updates yet and easiest way to do so with retaining root? Also easiest way to get out of a bootloop if you install a module that doesn't play nicely? TWRP doesn't seem to be available yet so not sure you would be able to load up any of the terminal options and traditionally I would have just reflashed magisk via TWRP and would then be back to pre bootloop (as in all user data etc in tact) except all the modules would be disabled. Would this work by simply ADB flashing the boot.img over? Perhaps similar for an update, but using the new boot.img once patched? Been reluctant to play around too much in case I break anything up to now.
[Asus Zenfone 9] Veiranx:
AFAIK, there's not a way to update the stock ROM without having to re-do root.
[Asus Zenfone 9] williamcll:
you need the a/b retain module.
[Asus Zenfone 9] Absarock123:
Thank you so much. Worked flawlessly on my zenfone 9.

Can anyone please explain how can I update the rom while keeping the root intact?

Thanks
[Asus Zenfone 9] einfachgaer:
Is there a particular reason why you are using magisk v23.0?

Will it work the same with the latest v25.2?

Edit: Yes it works with v25.2 aswell.
[Asus Zenfone 9] metal450:
Thanks for this guide - I can't wait to get my ZenPhone, & root it on day 1 ;)

A couple quick questions about updating after root has been applied:

1) The Asus download site says about the Unlock Device App: "The software updates will not be available to the Changed Product, and the digital content in the Changed Product may no longer be used." This pretty clearly sounds like they're saying that once you've unlocked it, you can no longer apply software updates? Surely that can't be the case, right? Can someone pls clarify what this means?

2) Assuming that the device can still be updated, how does that work exactly? I just let the device install over-the-air updates as usual, at which point it will be un-rooted, & I just repeat the steps above to re-root (i.e. download the corresponding new img file from Asus, extract boot.img, patch with Magisk, & flash it with fastboot again)?

3) One response from @williamcll above said "you need the a/b retain module", but Google doesn't turn up any results. What does "a/b retain module" refer to?

Thanks all in advance :)
[Asus Zenfone 9] williamcll:
1)Haven't test it out yet but if it still have OTA it will unroot your iPhone on update.

2)Downalod the ROM from Asus' website and install locally

3)Oh wait nevermind I forgot that there's no TWRP yet for ZF9. After you install the update DO NOT REBOOT. Go into magisk, click install and select install to inactive slot.

I was thinking of the TWRP retention module that make sure TWRP doesn't get deleted after an update.
[Asus Zenfone 9] metal450:
Thanks for the quick reply.

So to confirm, is it just saying that you won't be able to OTA (but you WILL still be able to update, by installing manually)? Again, the text just seems to say "you cannot update the phone anymore," so I wanted to make sure that after running this utility, it doesn't mean I will forever be stuck on this firmware version - and cannot get any future version - as their text seems to say.

Great, thanks. So can you confirm that this is the safe/correct way to update?

1) If OTA notification arrives, do not install - just treat it as a "notification"

2) Go to the Asus site & download the new firmware's zip file

3) Copy the firmware's zip file to the root of the phone's internal storage (Per https://www.asus.com/support/faq/1009748)

4) Reboot the phone.

5) After reboot, it should detect the firmware file & show a notification prompting to install.

6) Install.

7) When it's done, DO NOT REBOOT. Launch Magisk, click Install, & select Install to Inactive Slot.

8) It's now updated & rooted, & safe to reboot freely.

Is that correct? And thus, it's *not* necessary to repeat the process of extracting boot.img (from the new firmware this time), patching it, & flashing it with fastboot?

Thanks again
[Asus Zenfone 9] vranisimo:
Hi guys,

I just started with attempt to root my Zenfone, but have an issue with the first step.

After installing the Unlock Device App and starting with unlocking bootloader procedure, the phone ended in a bootloop. Android and ASUS logos are displayed and the phone restarts immediately after that.

I was not able to fix it by installing a fresh firmware, and the only solution I found is to execute

"fastboot oem asus-csc_lk" command.

The phone now works just fine (without the root), but I am trying to figure out what I am doing wrong and if anyone experienced the same problem.

The phone has installed the latest firmware WW-32.2040.2040.28
[Asus Zenfone 9] Hermann2306:
This works just as you described. I have updated from 2004.84 to 2040.28. Just make sure to hit later when update asks to reboot and use magisk. If the update isnt detected you maybe have to activate "updates on reboot" in developer options.
[Asus Zenfone 9] Hermann2306:
no error message at any point? oem unlocking and debugging in developer options activated?

I had no problems with the app.
[Asus Zenfone 9] vranisimo:
Well, on the first reboot, after the app starts with unlocking process, the wiping console is displayed for about 1 second and phone is restarted after.

There isn't any OEM unlocking option in developer options.

EDIT:

I just downloaded the latest firmware's zip into the root folder on phone's internal memory, executed firmware update, and retried

unlocking now works without any problems
[Asus Zenfone 9] Hermann2306:
ok, thought it was there before unlock.
[Asus Zenfone 9] kamikaze702k:
thanks, guide works
[Asus Zenfone 9] 45droid:
Can anyone run through how to root using macOS? I've unlocked the bootloader, and downloaded firmware and payload-dumper-go_1.0.0_mac_amd64. Specifically, I can't figure out how to extract the boot image. Search results for Mac specific instructions don't explain it, and everything else I find seems to mention PC instructions. Thanks.
[Asus Zenfone 9] Hermann2306:
Are you searching for the Command? In the Video from the github page you can see ./payload-dumper-go payload.bin

https://imgur.io/a/X6HKJT4
[Asus Zenfone 9] 45droid:
I just needed something I felt comfortable with from start to finish. I ended up using the steps from OP of this post https://xdaforums.com/t/guide-how-to-extract-payload-bin-from-ota.3830962/
[Asus Zenfone 9] Thecurse21:
I tried using 2050 version today, but I cannot setup the Google wallet, despite using safety net fix and other stuff. But on version 2040 I can setup google pay/wallet no problem. Anyone else having this particular problem I had to re-roll back to 2040
[Asus Zenfone 9] c19932:
were you able to pass SN with 2050?
[Asus Zenfone 9] Thecurse21:
Nope had to return to 2040, it sucks, because I'm unable to make viper4android to work too, where as some people are telling me that we need 64 bit version for it to work, another guy told me he got it working tried out his method no success, it's sad cuz my zenfone 6 has better sound due to having v4a and better camera due to tuned gcam, guess zf9 will take some more time to develop I hope.
[Asus Zenfone 9] sakun-ice:
It's strange, in my case, with version 2050, I have no problem with safety net. But Google wallet detects my smartphone as rooted sometimes. I have to close and open the app and it works.
[Asus Zenfone 9] craznazn:
Try https://xdaforums.com/t/magisk-module-universal-safetynet-fix-2-3-1.4217823/page-122#post-87653323

Fixed wallet issues on 2050
[Asus Zenfone 9] marcusdre:
Finally after days of struggle I rooted my ZF9 where the biggest problems where the updat of my phone and the fastboot connection.

problems I solved by downloading all available zipfiles to the root of my phone and let the phone pick the one needed. I never could have guess that it was te 2050.2050.29 version follow up my 2004.2004.74

The fastboot conection I solved by conecting the phone in fastboot mode to my computer and in device management on my computer click on mobile devices and it shows a yellow marker (!) bij the Zenfone 9

Rightclick and update driver.

Verry happy whith my Z9 rooted!
[Asus Zenfone 9] Hermann2306:
For getting the stock boot.img you can use this tool:

[Windows] Payload Dumper GUI - dump boot.img and other img files from payload.bin.

Hello there. Was bored and decided to make a gui that dumps Payload.bin file for easy flashing. Tested on Lineage OS 18 Payload.bin Result: Credits: Based on vm03 payload_dumper script. Github: Payload_dumper.py...

xdaforums.com

Very easy and you dont have to use the command line or search for the dll.
[Asus Zenfone 9] c19932:
anyone using magisk delta and able to pass SN? I rooted with magisk delta, installed riru core and safetynet fix from here (https://github.com/HuskyDG/safetynet-integrity-fix/releases/tag/v2.3.1-safetynet-mod.2) and somehow still can't pass SN. In Magisk delta, I enabled Magisk hide, did not enable zygisk.

am I missing something here? thanks
[Asus Zenfone 9] Veiranx:
I'm pretty sure you'll need to enable the deny list (Zygisk). Could you give that a try and report back?
[Asus Zenfone 9] c19932:
Thanks. I ended up adding play service to magiskhide and it worked fine
[Asus Zenfone 9] rootlessabroad:
I'm on 2050, Magisk 25.2, Zygisk enabled, Systemless hosts enabled. It looks like I'm successfully rooted, but I cannot get AdAway to be able to write the updated hosts file. What am I missing?

Thanks.
[Asus Zenfone 9] craznazn:
Did you enable systemless hosts?
[Asus Zenfone 9] rootlessabroad:
Yes. Sorry I didn't note that in the original post.
[Asus Zenfone 9] craznazn:
Did you reboot after enabling systemless hosts?
[Asus Zenfone 9] rootlessabroad:
Yes. I even tried enabling it again and rebooting (x6), with no variation in the results. I enable systemless hosts in Magisk, reboot, run Adaway and attempt to have it apply the updated hosts list and it gives me the read/write to system error.

So far this has been completely reproducible on my phone.
[Asus Zenfone 9] rootlessabroad:
I'm not sure why this worked, but I did the following and it works now:

Reinstalled TWRP (I just hadn't got to it after the upgrade to 2050.34)

Used TWRP to switch back from slot B to slot A

Rebooted

Applied the Adaway hosts file (no complaint)

Rebooted

et. voila, it worked.
[Asus Zenfone 9] vranisimo:
Anyone successfully managed to setup Google Wallet with the latest 2050.34 firmware?

The combination of YASNAC, Universal SafeyNet fix, Systemless Hosts and Shamiko doesn't help.

As I remember, wallet worked just fine on firmware version 2040.23.
[Asus Zenfone 9] c19932:
Now that android 13 is out (that I heard), what's the right way to upgrade while retaining magisk root?
[Asus Zenfone 9] craznazn:
Normally: update, before reboot, magisk inactive slot, reboot
[Asus Zenfone 9] c19932:
I've read somebody said if we are rooted then we can't use OTA packages. Is that true?

Also, my system update still tells me I'm up to date on Android 12. Is it because I'm rooted?

Thanks
[Asus Zenfone 9] Thecurse21:
Yes once you unlock the bootloader the phone no longer will receive updates automatically you'll have to download them from the Asus support page and put them in the root of the storage and a update message will show up.
[Asus Zenfone 9] Kylewolf:
What's the process to update after rooting? I know OTA's are no longer an option.
[Asus Zenfone 9] Hermann2306:
Download the Update from Asus, put it in root/home dir. You will get an update available message (maybe you have to reboot). After update is finished do not reboot! Launch magisk and Install it to inactive slot (after ota). Then you can hit reboot in magisk.
[Asus Zenfone 9] lostsupper:
Can anyone explain how to install the Asus USB drivers in the original post?

EDIT: Figured it out. Had to try a different usb port.
[Asus Zenfone 9] ikramahmed:
I struggled with the volume down key and turns out it is the volume up key. This helped
[Asus Zenfone 9] FriedMusubi:
Does anyone have drivers that will work for rooting? I tried using the drivers provided by xanker, but those are not working for me for whatever reason.
[Asus Zenfone 9] Hermann2306:
I use the Google Android USB drivers. Manual install/choose the Android bootloader Driver when Phone is in Fastboot Mode.

I think this was the Link:

Get the Google USB Driver | Android Studio | Android Developers

The Google USB Driver is required to perform adb debugging on Windows with Google devices.

developer.android.com
[Asus Zenfone 9] zenzen999:
My phone is updated to version 33.0804.2060.100

Looks like this version came out yesterday

But on ASUS website I can only download version 33.0804.2060.88

Anyone know when they update the website with the latest version? Or if it is okay to use the older version to root?
[Asus Zenfone 9] jons99:
here you go

https://dlcdnets.asus.com/pub/ASUS/ZenFone/AI2202/UL-ASUS_AI2202-ASUS-33.0804.2060.100-1.1.1-2302-user.zip
[Asus Zenfone 9] coder.toolbox:
Small update to part 5 to be used from the command line:

* adb reboot recovery

(on the phone select "enter fastboot" with the "volume down" key to move the selection down & "power off" key to select it.)

* fastboot devices

* fastboot flash boot new_boot.img

* fastboot reboot
[Asus Zenfone 9] lordbit:
I have Magisk successfully installed on Android 13 (OmniROM microG). However, the built-in Systemless Hosts module is not available, so I can't use AdAway the root way. What about you guys/gals? Does your Magisk setup on Android 13 have this built-in module?