yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy Tab S6 ROMs, Kernels, Recoveries, &] VeEuzUKY:
No, I cant flash stock ROM either. It fails instantly and I have tried all possible combinations and even different versions of ODIN.

I cant see what I messed up if all the steps were followed properly, all flashing successful and I made the Tab work perfectly with TWRP and root installed and all working. I did a 30 minute session on the Tab after successfully booting up, checked all apps, all settings, rooting OK, all good. I stayed offline all the time while I did the session and didn't install or downloaded anything. It was only when I shut down the Tab for the first time that it locked-up.

- Power button flashes the screen for a moment and the Tab shuts off instantly.

- Volume up + Power leads me directly to the security error screen..

- Volume down + Power, the same leads me directly to the security error screen..

- Volume up + down and inserting the USB cable takes me to download mode where flashing the stock ROM also fails.

That's all I have.
[Samsung Galaxy Tab S6 ROMs, Kernels, Recoveries, &] bartleby999:
I have no idea what's wrong then. But I'll point out the obvious...

Use Odin v3.13.3 that's the one I used. Are you sure you have the correct firmware? T865 is the LTE variant, you have the LTE and not just WIFI model? Extract the files from their zip again, a file could have corrupted - Try downloading stock again for the same reason. Run Odin directly from C:// drive.
[Samsung Galaxy Tab S6 ROMs, Kernels, Recoveries, &] VeEuzUKY:
Done all that. Of course I downloaded the correct firmware for my region and model. Cant do it. Yes I can try to re-download the stock firmware again.. will not make a difference. Whatever happened and is going on, is something I cant understand.

Below the sticker on my box if that in any way helps identify the Tab or whats going on. I downloaded the stock ROM for the T-865 TGY Region. There are 3 ROMs available within a couple weeks release apart.. minor updates I guess. I downloaded the latest one of December 19 2009 which matches the build I had on the Tab..
[Samsung Galaxy Tab S6 ROMs, Kernels, Recoveries, &] VeEuzUKY:
Could the Tab be an T865N variant? If so, that makes no sense because the only available stock ROM is for Korea and my region is Hong Kong (TGY as clearly marked in the box). Highlighted in green is the ROM I downloaded and that I cant flash.
[Samsung Galaxy Tab S6 ROMs, Kernels, Recoveries, &] Aid777:
So download mode works okay, that's good at least. Can you still not get into TWRP?

Probably pointless but I'd DL and install Odin 3.13.1 again and the samsung drivers (I have SAMSUNG_USB_Driver_for_Mobile_Phones.exe and also had installed Samsung-Usb-Driver-v1.5.63.0.exe) and install adb-setup-1.3.exe

I have not actualkly looked at how the stock ROM is flashed, did you do the options thing correctly. I'm sure you checked what you need to do carefull so sorry for porobablky asking the obvious. What is your battery level?

---------- Post added at 06:47 PM ---------- Previous post was at 06:40 PM ----------

Tablet says you are not running official Samsung software because you have edited Recovery and replaced it with TWRP. Perfectly normal and expected since you're no longer using official stock.

OEM unlocking is fine too. Just do not lock the bootloader again.

Now you're set up, create a backup.[/QUOTE]

What is a good app to boot directly into TWRP without using the buttons?
[Samsung Galaxy Tab S6 ROMs, Kernels, Recoveries, &] Airtioteclint:
Stock rom should flash as long as you can get into download mode (which you can) so this is very strange. I can only guess that you have downloaded the in correct firmware. Maybe you have the a t867 or something and don't know it?
[Samsung Galaxy Tab S6 ROMs, Kernels, Recoveries, &] VeEuzUKY:
How can I get into TWRP (or any recovery) if all I get is the security error screen when trying to enter recovery mode? Battery level was full when I started all the flashing, plus 30 minutes using the tab plus lets say, another hour since it locked-up. I should have 70% still or above. ODIN and Samsung drivers have nothing to do with it as the device is detected properly, all drivers installed and I flashed the Tab before. Changing USB ports on the computer bounces it to a different COM but the Tab is always correctly identified and connected.

But the correct model, its in the BOX. Its a T865 TGY as all sold here in Hong Kong.
[Samsung Galaxy Tab S6 ROMs, Kernels, Recoveries, &] bartleby999:
Official TWRP app can do it, you just need to grant it root permission.
[Samsung Galaxy Tab S6 ROMs, Kernels, Recoveries, &] Airtioteclint:
Well there you have it! It's definitely a t865N. That would probably explain why twrp didn't work for you too.

Dl this man. https://www.sammobile.com/samsung/galaxy-tab-s6/firmware/#SM-T865N
[Samsung Galaxy Tab S6 ROMs, Kernels, Recoveries, &] VeEuzUKY:
There are two stickers in the box identifying the model number, but it seems to me to be a vanilla T865 for the "TGY" Hong Kong region.

And why you say that TWRP didn't work for me if it flashed properly at the first try and then I used it to successfully flash the Kernel, Disable Dm-Verity and Magisc, followed by a completely successful boot into my Android 9 session, rooted and working?

But either way. I will give the Korean ROM a try as per your suggestion. Thank you for your time, I do appreciate it!
[Samsung Galaxy Tab S6 ROMs, Kernels, Recoveries, &] VeEuzUKY:
One additional question before I try to re-flash the Korean stock ROM:

Do I use the Korean CSC (Country Code SKT) or should I pull the CSC from the Hong Kong TGY firmware and flash that one since its my region and whats clearly marked in the box in one of the stickers? I am worried if the flash goes through using the Korean CSC, eventually later I will run into a whole new set of issues. Thank you again.
[Samsung Galaxy Tab S6 ROMs, Kernels, Recoveries, &] Mentalmuso:
There's your problem, T865N

Edit - you need to try flashing the t865n firmware. Regardless of it origin. That's providing that label is correct.

Looking up that model on Google using that full number, certainly brings up a HK device. But it may be a carrier device, with no uploaded firmware.

I'd start with that Korean firmware, and flash bootloader first with Odin. If that passes, then the rest should also. If the device isn't a sm-t865n the bootloader simply won't flash.
[Samsung Galaxy Tab S6 ROMs, Kernels, Recoveries, &] Mentalmuso:
You are only going to be able to flash sm-t865n tar files in Odin. Full stop. Until you boot up and reset the kg status to checking. This involves connecting to the internet and rechecking the OEM unlock switch is present. This is where things went wrong for you to begin with. You rebooted via magisk, before the system had a chance to check it's Kg status properly.

Edit. Once you have booted stock, connect to internet, give it a few minutes and check oem unlock. things will rectify themselves, and you will be able to flash anything to any partition via Odin, except for modem and bootloader.
[Samsung Galaxy Tab S6 ROMs, Kernels, Recoveries, &] VeEuzUKY:
Mentalmuso, thank you very much for your detailed explanation, I really appreciate it.

In fact, trying to find an explanation for all of this myself, I had already started to hypothesized if the mistake I actually made after booting up from successfully flashing all the files into my first fully rooted successful session for about half hour, was specifically never having connected connected to the internet or check the unlock status before I shutdown the tab. That would certainly make sense and be an explanation for what happened once I tried to restart the tab.

Now just to make sure so that I know that I'm doing positively the right thing, I am supposed to simply flash all the proper files with the ‘AP’, ‘BL’, ‘CP’, and ‘CSC’ checked along with ‘Auto Reboot’ and ‘F.Reset Time’, and just let it do it's work, correct?

I will report how it goes as soon as I try to get it done. Again, thank you very much, really appreciate your time.
[Samsung Galaxy Tab S6 ROMs, Kernels, Recoveries, &] VeEuzUKY:
Unfortunately, no deal. Precisely as I feared and expected, the Korean T865N Stock firmware also fails to flash. This is not a Korean model, this is a HK tablet and I was 100% sure this firmware would never get flashed.

I have tried to flash just the Bootloader, tried all 4 files at once, Ive tried different cables, different versions of ODIN and tried 2 different PCs. Nothing to do with any of this. The previous screen saying the tablet was locked due to previous installation of unauthorized software, seems to have been replaced by automatically jumping into download mode with ERROR VERIFYING VBMETA IMAGE message. Also, now unfortunately the tablet cannot be turned off anymore. Pressing Volume Down + Power buttons reboots instantly back to download mode. It is stuck in download mode.

This Tablet will not inject any more data of any sort and now eventually the battery will exhaust, period and done.

I've reached a dead end.
[Samsung Galaxy Tab S6 ROMs, Kernels, Recoveries, &] Malker17:
I had the same problem for some other reason (messing up my system) Then I tried several times Hard Reset and directly after this to get into Download mode, with pressing the right key combination round about 20 and more tries (timing issue ? ) until I got a download screen with a barcode in the lower right corner. From there I could flash the stock firmware with Odin.

And to my surprise no 7 day waiting period, the bootloader still unlocked.

But I only flashed BL,AP + CSC
[Samsung Galaxy Tab S6 ROMs, Kernels, Recoveries, &] VeEuzUKY:
Well, I am happy for you. Nothing worked for me and my tablet stopped responding to any commands, including powering off. So as my last and only resort possible, today I took it back to Samsung repairs. First thing they confirmed was that indeed is not a T865N Korean variant but indeed a plain vanilla from T865 Hong Kong, TGY firmware, as I always insisted it should be.

Anyway, after a half an hour wait and diagnosis, they claimed the mainboard is fried. And because I unlocked the bootloader and installed a custom recovery the warranty is obviously void (as they explained to me an attempt to install "unauthorized software" according to their warranty terms). How the mainboard gets fried by simply powering off the unit after all was working perfectly till that moment, I will never understand. As they explained to me, the system refuses to do any kind of writes or reads altogether. All in all, Its a 550 dollars repair in what was an 800 dollars purchase 10 days ago. I am livid. Completely livid.
[Samsung Galaxy Tab S6 ROMs, Kernels, Recoveries, &] Malker17:
I had TWRM crashes while making backups as described in some post above

Version 3.3.1-9 and perm kernel (thought perm stands for performance :) )

updating to 3.3.1-10 + enf kernel solves my problem, complete backup (round about 16GB) without any problems

(don't think the kernel is the cause, but just in case... )

some special notes for linux users like me who might use vmware + odin for flashing :

If you end up in a download screen with a barcode in the lower right corner for some reason e.g. flashing the wrong ROM the device might not be recognized by linux anymore, so you might have to switch to "physical" windows system. In my case I was able to flash with odin.

"Normal" flashing works for me with vmware and odin + Samsung USB driver in the VM-machine
[Samsung Galaxy Tab S6 ROMs, Kernels, Recoveries, &] cucumbersmell:
Sorry for your bad luck. A word of advice for the future, in case something like this happens with any of your other gadgets.

Tell them, "I don't know what's wrong. It just stopped working." Don't volunteer any other info and they'll most likely just replace it for you.
[Samsung Galaxy Tab S6 ROMs, Kernels, Recoveries, &] VeEuzUKY:
You think I said anything or that they are stupid? Surely not, I merely set the tablet in front of them, told them it stopped working and that it would not power-on and they asked me if there was any water damage (their only question actually). Past that, these people do nothing else for a living and it took them less than a few moments in diagnosis time to immediately see what's inside a product full of user-made warranty expired triggers. It's possible that maybe, somehow, my particular unit had some sort of an inert hardware flaw waiting to happen and that got triggered with my maneuvers... at least its a comforting thought.

I will get it back tomorrow and I will not attempt to get TWRP in it because I would not be able to stare at myself in the mirror if the same thing happened again.. but I would like to get it rooted somehow if there is any way to do it without a custom recovery.
[Samsung Galaxy Tab S6 ROMs, Kernels, Recoveries, &] Mentalmuso:
Unfortunately, to root, without TWRP, you need to have the stock firmware and you don't seem to have it.

I was going to say, but it seems I'm too late. That flashing the bootloader by itself first then rebooting downloads ad mode, is sometimes needed to flash the rest. Did you try that out of curiosity?
[Samsung Galaxy Tab S6 ROMs, Kernels, Recoveries, &] VeEuzUKY:
Yep, tried it. Tried that from both HK and Korean firmwares, tried just the AP, tried it with the modem and no CSC, tried it with all 4 files at the same time.. I tried everything.

My plan when the tab returns back to my hands, is to fresh try (without any other things done) to immediately reflash the stock firmware with ODIN (all 4 files).. I assume I can flash the stock ROM directly in the tablet without having to unlock the bootloader again or doing anything else.. stock is stock and it should go through seamlessly without triggering Knox, start displaying any tamper warning screens or voiding my repair warranty, correct? So first I want to make sure that after the mainboard replacement, the stock firmware can now be reflashed and that I actually have the correct version. If that goes through, then at least I know the tablet now ingests being reflashed with stock files via ODIN and I can take it from there to then attempt to simply get it rooted. If refreshing stock does not go through and fails, I assume that no harm will be done and the tablet will restart normally since no change was made.

You think this is viable plan?
[Samsung Galaxy Tab S6 ROMs, Kernels, Recoveries, &] VeEuzUKY:
I have a question (similar to the one I posted on the Note 10+ thread that is the next device I would like to flash.. if this time luck is on my side for a change) and that I actually forgot to iron out before I ever tried to flash the Tab S6:

What is the difference between TWRP_T865_3.3.1-10(L/P).tar from the OP download folder link (I used the P variant), and twrp-3.3.1-1-gts6l.img.tar posted on the official TWRP site? Are they the same file or is it possible my outcome would have been different had I used one version of TWRP over the other?
[Samsung Galaxy Tab S6 ROMs, Kernels, Recoveries, &] Airtioteclint:
[MENTION=1270566]VeEuzUKY[/MENTION] $550 to repair? You could have bought another unit off ebay (one with a readily available firmware) for less and sold your broken one for parts.
[Samsung Galaxy Tab S6 ROMs, Kernels, Recoveries, &] VeEuzUKY:
What is the point of taking the risk of buying a used unit online that I cannot try before purchasing it and then having another lemon on my hand? If it's a second-hand shop that I can try before I purchased, very well, otherwise I don't do it. At least supposedly I get a 1-year warranty starting from the moment I'll pick it up again after repaired. Buying second-hand electronics, wether for possible technical issues or cosmetic flaws, is something I never do online as a principle.
[Samsung Galaxy Tab S6 ROMs, Kernels, Recoveries, &] ElsaReyes:
In the download folder which kernel do we use?? There are two. One that ends with Perm, and one that ends with Enf.
[Samsung Galaxy Tab S6 ROMs, Kernels, Recoveries, &] TiTiB:
Permissive vice Enforcing. FWIW, it has been suggested (in this thread, iirc) that unless you have a specific use case, and need Permissive, you should use Enforcing. I chose Enforcing, FWIW.
[Samsung Galaxy Tab S6 ROMs, Kernels, Recoveries, &] VeEuzUKY:
I have received my repaired T865 back from Samsung and I've decided I will try again the get TWRP, root and all supporting files flashed.. make it or break it. I wanted to ask if someone could help me verify the exact model and firmware I have for sure before I start. Thanks a lot :)
[Samsung Galaxy Tab S6 ROMs, Kernels, Recoveries, &] Aid777:
I cannot even tell, be one of these though

What does the C and N mean?

TGY seems to be Hong Kong?

This is the one I'd use, what country are you actually in?

https://www.sammobile.com/samsung/galaxy-tab-s6/firmware/SM-T865/TGY/download/T865XXU2ASL3/307678/
[Samsung Galaxy Tab S6 ROMs, Kernels, Recoveries, &] bartleby999:
I'm pretty sure they're regional Tablets - In the same principal, European Galaxy S10 phones will be labelled SM-G973F whereas US variants will be labelled SM-G973U the worry (I think) arises because they'd possibly be running different hardware (Exynos Europe/Snapdragon US in this case) also there would be software differences based on carrier locks.

I think that's correct anyway.
[Samsung Galaxy Tab S6 ROMs, Kernels, Recoveries, &] TiTiB:
Well, the 'N' is for Korea, apparently.

https://www.sammobile.com/samsung/galaxy-tab-s6-lte/firmware/#SM-T865N
[Samsung Galaxy Tab S6 ROMs, Kernels, Recoveries, &] VeEuzUKY:
Its official = gremlins!

OK so there is only ONE explanation for some mysteries of life.. they have no explanation! After receiving my repaired T865 from the disastrous attempt to get TWRP and roon flashed, I decided to try only root via the Magisc Patched way.

And so, I followed all the procedures of the correct procedures, everything went well and then successfully flashed and all done. BUT EXACTLY AS HAPPENED BEFORE, after flashing and upon trying to restart the Tab, once again got bricked and just gives me a continuing bootloop of the following message and completely refuses to restart or go into recovery with the Volume up + Power Button combination. Also AGAIN the Tab cannot be turned off because pressing Volume Down + Power, it simply auto starts again into the same error splash screen message. No idea about anything regarding anything about this device anymore. The only thing I have not yet tried is to root it with SuperUser but I have no idea if it can even be done and for that I will probably need custom recovery anyway. I give up trying to modify it in any way.

FORTUNATELY, I DO HAVE THE STOCK FIRMWARE AND SINCE THE ONLY THING I COULD DO WAS ENTER DOWNLOAD MODE, I SIMPLY LOCKED THE BOOTLOADER AGAIN AND FLASHED STOCK WITH ODIN.. AND working again! So, I will put it up for sale on eBay or if anyone wants it, make me an offer. Its 2 weeks old, brand new in its box, unlocked international version from Hong Kong 8Gb/256. Its all back to stock now again and working perfectly.

I am done with this Tab. Gremlins!
[Samsung Galaxy Tab S6 ROMs, Kernels, Recoveries, &] zanin:
in the provided link, there are several twrp.tar and kernal files. which ones should I use. my device is T860.
[Samsung Galaxy Tab S6 ROMs, Kernels, Recoveries, &] veekay:
I'm guessing this is happening even with the OEM unlock enabled?
[Samsung Galaxy Tab S6 ROMs, Kernels, Recoveries, &] VeEuzUKY:
Yes of course, OEM unlocked all the way. I've also tried with and without USB DEBUGGING active and the same eventually happens. It seems no matter how I try to modify the Tab, at the moment of boot-up and restart, it will freak-out. I don't know if it's my particular hardware, or if maybe there is something that I am missing or making a mistake at.

Actually, I was thinking.. could this be at all rooted with the old Chainfire's SU method? I find SU was so much easier and stable to get devices rooted and STAY rooted..
[Samsung Galaxy Tab S6 ROMs, Kernels, Recoveries, &] Mentalmuso:
No to Supersu.
[Samsung Galaxy Tab S6 ROMs, Kernels, Recoveries, &] Extreemator:
And yet this exactly what happened to you. You don't have any warranty, you would know it better than anybody now. "obviously voids warranty" not obviously at all, warranty void statements are also against merican law, companies that still have them playing with fire, it just takes one stroke of regulator's pen to fine them. Don't see why you wouldn't be able to go into download mode with cable it even if it's rebooting, unless it's sunggnus fault.
[Samsung Galaxy Tab S6 ROMs, Kernels, Recoveries, &] VeEuzUKY:
It just looped continuously between the Samsung splashscreen and restarting again. Could not power it off and no key combination would work. After the battery exhausted, would not charge. That's it.
[Samsung Galaxy Tab S6 ROMs, Kernels, Recoveries, &] Thyrador:
Got myself the Tab S6 LTE Snapdragon variant.

Bootloader unlocked (OEM-Lock ticked on).

When trying to flash TWRP I get following error in ODIN (v3.13.3):

In download mode I get following error: Custom Binary(recovery) Blocked By OEM Lock.

Any Idea what to do?
[Samsung Galaxy Tab S6 ROMs, Kernels, Recoveries, &] bartleby999:
Did you Volume Up to actually unlock the bootloader? Merely switching OEM isn't enough to unlock the bootloader.
[Samsung Galaxy Tab S6 ROMs, Kernels, Recoveries, &] Thyrador:
No I didn't. Thanks for the info, will look into it and report back if it worked :)

[MENTION=6304759]bartleby999[/MENTION] This didn't change a thing, unfortunately :(

EDIT: For some reason I had to enable WiFi, as suggested in this thread by another user, to make it work. SO confirmation from me too: works on LTE-variant :)
[Samsung Galaxy Tab S6 ROMs, Kernels, Recoveries, &] cmacfarlane:
Tablet not being recognized when in download mode

I have been using this guide to install TWRP on my wifi s6: https://www.xda-developers.com/how-to-install-twrp/

On the step "adb reboot bootloader" the device is switched into download mode. After this happens, "adb devices" shows no devices. also issuing the "fastboot flash recovery twrp-2.8.x.x-xxx.img" command doesn't work because it says "waiting for device".

I have installed the driver package listed in the guide as well as the official samsung drivers. The phone's bootloader is unlocked, OEM unlocking is enabled as well as USB Debugging in developer options.

Edit: I have tried using Odin but after the phone reboots it gets stuck in the Samsung Galaxy Tab S6 Secured by Knox screen. I have tried unchecking "auto reboot" with odin and then using volume down + power and as soon as screen turns off, swap to holding volume up + power. This doesn't seem to do anything and I am greeted with the "Samsung Galaxy Tab S6, Secured by Knox" page. The tablet stays on this screen permanently until I reflash back to stock.

Any help would be appreciated.
[Samsung Galaxy Tab S6 ROMs, Kernels, Recoveries, &] Mentalmuso:
Is there a problem with my guide in post #2? Why aent you using that? Using a generic link is going to give you trouble with any Samsung device.
[Samsung Galaxy Tab S6 ROMs, Kernels, Recoveries, &] cmacfarlane:
thats what I tried first but I keep getting stuck at step 2. Once I flash to TWRP with odin I can't get my device to reboot into TWRP. I have tried unchecking "auto reboot" with odin and then using volume down + power and as soon as screen turns off, swap to holding volume up + power. This doesn't seem to do anything and I am greeted with the "Samsung Galaxy Tab S6, Secured by Knox" page. The tablet stays on this screen permanently until I reflash back to stock.
[Samsung Galaxy Tab S6 ROMs, Kernels, Recoveries, &] Sue Payne Key:
I just want to say a quick thanks for posting these consolidated rooting instructions. They were incredibly helpful to me, and I'm sure many other people. Thanks again!