First things first:
- This DOES NOT work on all models:
The US (and maybe more models) do NOT allow root.
Only the B, N, and /DS models are rootable at the moment.
- Also there are known issues with Samsung Health and Gear (connecting watch)
- See second post for F.A.Q.!
I was able to root my Fold 4 and under here are the steps.
I hope it make sense and otherwise i will answer questions/try to help.
Steps in short:
- Enable Developer Mode (on phone action).
- OEM unlock (on phone action).
- note the software version.
- Download needed firmware.
- Patch AP in Magisk (on phone action).
- Finish OEM unlock in Download mode (this will RESET the device)
- Setup phone again and connect wifi (that's important i guess).
- Flash patched AP with Odin
Steps with more explanation:
- Enable Developer mode (on phone action)
Navigate to Settings > About device > Software information >
Click on Build number (7 times) until you see a message that says: You are now a developer!
- OEM unlock (on phone action)
Navigate to Settings > Developer Options (at the Bottom) Find OEM unlock and toggle it to on.
If this option is not there then probaly your phone cannot be rooted (see second post)
- note the software version:
Navigate to Settings > About device > Software information > Software Version.
Example (bold is what is needed):
SSOAMC_
SM-F936B_OXM_EUX_12_0045
EUX/-/EUX/EUX
- Download needed firmware:
https://samfw.com/firmware/SM-F936B/ (I downloaded from here)
https://www.sammobile.com/samsung/galaxy-z-fold-4/firmware/
https://samfrew.com/model/SM-F936B/
- Patch AP in Magisk (on phone action)
Download and install Magisk on your phone:
https://github.com/topjohnwu/Magisk/releases/latest
Copy the AP file to your phone
example:
AP_F936BXXU1AVGA_F936BXXU1AVGA_MQB54005121_REV00_user_low_ship_MULTI_CERT_meta_OS12.tar.md5
to phone, patched file in Magisk and choose the AP file.
magisk_patched-25200_KYFoy.tar is created.
Copy this file back to computer next to the other firmware files.
Now you've got everything and you can start the proces:
- Finish OEM unlock in Download mode (this will RESET the device!)
This was hard to do; i hope the instructions are do-able, please comment.
power off, hold volume up&down, connect USB cable to PC.
the screen is dark and hard to read.
HOLD volume up key to unlock bootloader and press volume up again to confirm.
- Setup phone again and connect wifi (that's important i guess).
After finishing the setup check under developer options or bootloader unlocked is on and greyed out.
- Flash patched AP with Odin
I flashed the whole firmware (could be usefull with new samsung updates), took about 4 minutes:
BL
AP (patched file) <- i guess only this one was needed.
CP
CSC
- Setup the phone, install Magisk and check.
After finishing the setup, install Magisk, it will do some last finishing setup (and reboot) and you've got root!
My phone is rooted, LSPosed Zygisk also working without any problem.
screenshot my odin setup:
View attachment 5695933