I try flash in odin and fail..When you use Magisk Manager to root, you need to include three files: boot.img, recovery.img and vbmeta.img.
I try flash in odin and fail..When you use Magisk Manager to root, you need to include three files: boot.img, recovery.img and vbmeta.img.
copied the modded code to existing code or delete existing code? if just copy where you copied at the start and at the end?In answer to your question, basically, yes.
I only flash the 3 files in the .tar file
I am on a Windows 10 laptop. Only 3 files need to be modified by Magisk: boot.img, recovery.img, vbmeta.img
I use Hex Editor Neo for overlaying the modified kernel and recovery files..
At the end of these 2 stock files is code that needs to be there, thus the 65 MB file size.
So I open the stock .img files (boot, recovery) in Hex Editor Neo, and copy the modded boot, recovery code into each stock .img file..
I use cygwin to create the .tar file, then flash with ODIN 3.1.14
Of course you paste from the beginning of the file!!copied the modded code to existing code or delete existing code? if just copy where you copied at the start and at the end?
Magisk replaces original-image with patched-image. patched-image is shorter than original-image. Copy original-image to patched-and-padded-image. Then, overwrite the beginning of patched-and-padded-image with patched-image. Use something like "dd" with conv=notrunc, which will copy what there is of the source file, without erasing the extra of the destination file.copied the modded code to existing code or delete existing code? if just copy where you copied at the start and at the end?
ok what is the exact procedure to boot into recovery after flashing files?Magisk replaces original-image with patched-image. patched-image is shorter than original-image. Copy original-image to patched-and-padded-image. Then, overwrite the beginning of patched-and-padded-image with patched-image. Use something like "dd" with conv=notrunc, which will copy what there is of the source file, without erasing the extra of the destination file.
Recovery: vol up + pwr key => when see logo release power keyok what is the exact procedure to boot into recovery after flashing files?
What about the hiccup screen warning that the bootloader is unlocked? Do you let go of both buttons? Do you press the power button to dismiss the warning? Do you hold the Volume Up while releasing and re-pressing Power?Recovery: vol up + pwr key => when see logo release power key
Release the power buttonWhat about the hiccup screen warning that the bootloader is unlocked? Do you let go of both buttons? Do you press the power button to dismiss the warning? Do you hold the Volume Up while releasing and re-pressing Power?
PLEASE READ ALL OF THIS BEFORE STARTING!! VERY IMPORTANT!!Hello, please i'm not familiar with this , can you please help me to root my tablet sm-t295 and i will pay you . my skype : SoufMeez
Hello gcrutchr, is it okay to ask you to merge those instructions to the start of the thread? That would make it easier to follow the guide and avoid mistakes. Since I've never rooted any device after KitKat I feel a bit insecure to do so. It'd really help me to see all of the instructions clearly on the first post and in the correct order.PLEASE READ ALL OF THIS BEFORE STARTING!! VERY IMPORTANT!!
Here are the steps to root your tablet:
Make a backup of you apps & data before doing this. This procedure will
wipe all you data.


Found a way to unlock the bootloader, I did several tries and the timing of pressing the VOL+/VOL- and connecting the USB cable was the issue, now I Have the bootloader unlocked! :victory:Hello,
i'm trying for the last few days to be able to flash the magisk tar file on my T295 (firmware XXS3ATB2), but I'm stuck with this error:
Custom Binary (vbmeta) Blocked By OEM LOCK (attached images)
View attachment 5023125
Was that caused by the OEM LOCK: ON? On your tablet do you have OEM LOCK: ON as well? Im not sure if I get it right on the bootloader unlock procedure, I have the "OEM Unlocking" option activated.
View attachment 5023127
Thanks!

I have root on my SM-T295 A8 tablet!!
Attached AP.tar file is for XXU2ASL3 only.
T295-Magisk-AP.tar
In the AP* file, you need to replace my files in the zip: system.img, recovery.img & vbmeta.img
This is exactly what I got when I finally succeeded: tablet says "SECURE CHECK FAIL: vbmeta", Odin says pass, if I manage to go directly from download screen to recovery to wipe data, and then manage to boot towards recovery without actually getting to recovery mode, I finally have Magisk installed.Found a way to unlock the bootloader, I did several tries and the timing of pressing the VOL+/VOL- and connecting the USB cable was the issue, now I Have the bootloader unlocked! :victory:
Buuut, I got this error:
View attachment 5024429
and on Odin I got PASS
View attachment 5024431
Anyone with this error message?
You can use winzip, 7-zip or rar. Do no worry about MD5.Noob question - which program did you use to replace the files in original AP .tar.md5 with your patched files ? Also, will it affect md5 integrity and cause flashing failure or do we need patched Odin?
Pardon my ignorance, i am more familiar with fastboot commands / TWRP and never used Samsung.
Thank you, i couldn't delete/replace files with 7-zip (error) but used another program to unzip .tar, replace files and rezip to .tar without adding .md5. Couldn't reboot to recovery so i couldn't wipe data but since the tablet was already factory reset before this process, it didn't matter much i guess. Interestingly, even adb command for rebooting to recovery only takes me to BL unlock warning screen and then reboots to system.You can use winzip, 7-zip or rar. Do no worry about MD5.
Thank you, i couldn't delete/replace files with 7-zip (error) but used another program to unzip .tar, replace files and rezip to .tar without adding .md5. Couldn't reboot to recovery so i couldn't wipe data but since the tablet was already factory reset before this process, it didn't matter much i guess. Interestingly, even adb command for rebooting to recovery only takes me to BL unlock warning screen and then reboots to system.
Some questions, if you don't mind:
1) How to apply OTA's in absence of full ROM file while keeping Magisk intact?
2) This is not an A/B device but SAR-A only; no custom recovery as yet but will applying OTA be affected if i alter some system files which compromises system integrity ?
NOTE: If somebody tries to repeatedly flash the modified files through Odin, KG Status changes to pre-normal and you are pretty much locked out.
Also, internal memory decreases from 32 GB to 8GB (even after nand erase and flashing .pit file) unless you flash stock.
@gcrutchr
<In the AP* file, you need to replace my files in the zip: system.img, recovery.img & vbmeta.img>
1) Doesn't your magisk_patched.tar contain modified boot, recovery & vbmeta ? If yes, then how can it replace system.img ?
2) On XXS3ATB2 (INS) update, the relevant magisk_patched.tar fails to flash in Odin. Do we need to flash the entire modified AP file or only the magisk_patched.tar in AP ?
I'm not sure what state you're in now. I think your best bet is to start from scratch: Download the stock firmware to your tablet. Make sure it boots. Make sure the bootloader is unlocked. Remove any accounts (Google or Samsung). Make sure you can boot to recovery. Pick a Magisk, put it on the tablet, use it to patch the AP file of the firmware you just flashed to the tablet, drag the patched AP file back to a PC, perform @gcrutchr's magic, and build a new tar file with just three files in it: boot.img, recovery.img, vbmeta.img. Run Odin again, using your new, tiny, tar file for AP, and using the stock firmware files for the other three slots. (Use HOME_CSC in the CSC slot.)Device: SM-T295 (gtoxx)
Firmware: T295XXS3ATB2 (9.0 Pie)
BL status: Unlocked
No custom recovery is available for this device, hell it's difficult to even access stock recovery. Since it's a Samsung Tab launched in 2019, I am reasonably sure that it's SAR A-only.
Edit: Finally managed to obtain magisk_patched.tar
But when flashing it to AP slot through Odin3 v3.14.1 (alongwith other files), it fails at the last step.
_XmitData_Write
Complete(Write) operation failed.
I believe it is because of Secure check fail:vbmeta error.
Note: Samsung Kies not installed, using original USB Cable ( I can flash stock firmware all right)
Any guidance @Didgeridoohan or anybody else ? Samsung is a mess !!