yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy Tab A8 (2021)] SevastianXDA:
Nvm my question I just wrote here, I just read your old comment about magisk.
[Samsung Galaxy Tab A8 (2021)] SevastianXDA:
To patch the boot.img, should I install LineageOS first, then use magisk manager on it? Or patch LineageOS's .img beforehand?
[Samsung Galaxy Tab A8 (2021)] SevastianXDA:
I think guides like these have to be shown better and given more praise.
[Samsung Galaxy Tab A8 (2021)] seandpa:
Am I correct in saying that without installing the patched boot.img the device will revert back to the original oem recovery on reboot. And without the patched boot.img you can not install a GSI rom? Sorry if these are noob questions but i have got quite confused reading all the posts.
[Samsung Galaxy Tab A8 (2021)] nardholio:
same here, had to use a mouse. Which means I had to use a powered USB hub to flash from a thumb drive and also connect the mouse. I'm still amazed the hub worked, Android sure has come a long way.
[Samsung Galaxy Tab A8 (2021)] lufee84:
Will this also work for LTE variant? SM-X205?
[Samsung Galaxy Tab A8 (2021)] SevastianXDA:
Yes, works flawlessly, if anyone really wants, I can work on a proper installation guide with rooting and installing LineageOS with all the quirks and troubleshooting, but since I don't have any more devices I could re-test this on, I'd just have to write it from memory.
[Samsung Galaxy Tab A8 (2021)] esumowitch:
Yes please. <3
[Samsung Galaxy Tab A8 (2021)] sedablaze:
I call bs.. I did same thing and I can't access data
[Samsung Galaxy Tab A8 (2021)] zfk110:
so still its the same, dont flash Magisk.zip within TWPR, patch the boot.img and then flash that boot img within the TWRP?
[Samsung Galaxy Tab A8 (2021)] esumowitch:
I think I need your help. I wanted to install TWRP to my device to get rid of KNOX for installing a CFW on my device. I managed to process some things, but now i am kind of stuck.

Here is the situation:

SM-X205

FRP-Lock off

OEM Lock On (U1)

at the moment i cannot access to the device

while starting the device i have to connect it to a wifi - knox checkup is starting and then i got stock with a message displayed like "could not activate firm-profile" or something like that

I might made a mistage, cause after sucessfully open the bootloader (long press vol up) i locked it later again. Now i cannot reopen it again in the download-mode. Volume up only forces me to the DL-Mode. And i got the message "OEM Lock On (U1).

Has somebody advices how i can now go on? The goal is to get rid of knox (or bypass it) to install a CFW or maybe update to the latest OFW instead.

Thank you in advance.

esumowitch
[Samsung Galaxy Tab A8 (2021)] lewmur:
Usually when someone talks about a KNOX lock, they are talking about a device with a third party lock, such as a one by a leasing co. or a tablet owned by an organization. Is that your case? Or are you just talking about the regualar locked bootloader? If it is by a third party, you won't get rid of it. If it is just a regular locked bootloader, you must use the manual method of turning off the tablet, holding both vol up and down, then plugging in the USB cable to a PC. You can't do it by booting to recovery and choosing reboot bootloader from the recovery menu.
[Samsung Galaxy Tab A8 (2021)] esumowitch:
I bought the tablet over ebay (local) so to be honest - i am not 100% safe due to its former life. I think the chances are high, that there was a company-lock (MDM oder something) on it.

If it is the case - is there any method for me to get access to the tablet again? As i said i tried a factory reset and also flashing the OFW via ODIN. But the same results. After starting the tablet i come to the point, where i have to enter the WIFI-Settings and the tablet starts to search for Updates. Then the error-message enters with something like "Cannot enter work-profil....a modified rom was installed".
[Samsung Galaxy Tab A8 (2021)] lewmur:
Almost certain that is a third party KNOX lock that can't be bypassed. You only choice would be to buy a "parts only" tablet and swap the motherboard.
[Samsung Galaxy Tab A8 (2021)] esumowitch:
Okay i think i have to finish my journey as a "lesson learned" mission. There is not much benefit in putting a 60-80 motherboard in a used 150 tablet. I would asume the repairability of the tablet is also not that easy due to its poor accessibility. A real shame...
[Samsung Galaxy Tab A8 (2021)] lewmur:
I agree. If you aren't experienced in opening glued tablets, the chance of doing so without breaking the screen, are slim to none. If it were an S tablet, instead of an A, it might be worth it. All that it might be good for is to gain some experience by attempting to open it BEFORE buying a MB.
[Samsung Galaxy Tab A8 (2021)] seandpa:
Once I have twrp as my recovery on my sm-x200 can I use twrp to remove system apps in gsi ROMs?
[Samsung Galaxy Tab A8 (2021)] Magendanz:
The new dynamic partitioning makes that very difficult. Strangely enough, I've been able to mount the system partition with r/w access and make changes in bash scripts, but not directly from the TWRP user interface. Frankly, I'm not sure why TWRP doesn't allow it, as it should be possible now that they've fully integrated support for dynamic partitions.
[Samsung Galaxy Tab A8 (2021)] kevinco1:
Any available builds of CWA3?
[Samsung Galaxy Tab A8 (2021)] Magendanz:
Just downloaded it last night. Stay tuned...
[Samsung Galaxy Tab A8 (2021)] kevinco1:
Awesome, thanks!

Awesome, thanks!
[Samsung Galaxy Tab A8 (2021)] Magendanz:
New build posted...

Downloads:

twrp_3.7.0_12-2_X200XXS1CWA3.tar.md5

twrp_3.7.0_12-2_X200XXS1CWA3.img

Change Log:

v3.7.0_12-2 (2023-02-28):

Updated to X200XXS1CWA3 (Android 13) OEM stock kernel (Jan 2023 Update).
[Samsung Galaxy Tab A8 (2021)] macallik:
Can you elaborate on the steps you took to resolve your flash?

I ran into TWRP being unresponsive, used Frija to try forcing the latest stock image, and then used the USB-C to USB-A converter to use my wireless mouse to select options in TWRP.

Now, I am using these instructions to flash this image (system-squeak-arm64-ab-gapps.img.xz) but it doesn't take at the end even tho the process doesn't show any errors. When I manually reboot the tablet after the installation, the tablet just restarts back in TWRP

View attachment 5861999
[Samsung Galaxy Tab A8 (2021)] kevinco1:
Since data is always at 0MB, can I do a full backup to MTP or an external SD card and restore from there?
[Samsung Galaxy Tab A8 (2021)] kevinco1:
It looks like you never renamed the image to "system". For the SM-X200 you need to do that to get compatible GSIs to work
[Samsung Galaxy Tab A8 (2021)] macallik:
Thanks! So I'm assuming I just reformat & wipe in TWRP and give it another shot?
[Samsung Galaxy Tab A8 (2021)] kevinco1:
Yes do all the same steps as before except to rename to system.img

Let me know how it goes, I was able to install that GSI but wasn't able to get Magisk working
[Samsung Galaxy Tab A8 (2021)] macallik:
Formatted Data -> Wiped data and then when I tried to reboot it, it automatically launched the AOSP I had downloaded.

I did the foolish thing and backed up all of my data in Smart Switch so that's all gone but I'd rather spend the next hour redownloading and reconfiguring the tablet instead of flashing the OG ROM -> restoring the backup -> flashing this again
[Samsung Galaxy Tab A8 (2021)] lewmur:
fastboot -w must be done BEFORE you flash system NOT AFTER!!!!
[Samsung Galaxy Tab A8 (2021)] tommek7688:
Hello Guy :)

I installed TWRP over Odin.

But the Touchscreen dont work on my Tablet. (SM-X200)

I tried the latest Version down to v11-0.

Stock Firmware was Android 13.

Any solution for it?

Greeting from Germany :)
[Samsung Galaxy Tab A8 (2021)] macallik:
Use a USB-C -> USB Adapter to plug your mouse into your tablet. Navigate TWRP via your mouse and otherwise proceed w/ the regular steps. Sevastian has 1-2 posts earlier in this thread on the issue. (I experienced the issue myself as well)
[Samsung Galaxy Tab A8 (2021)] tommek7688:
Ok i read his post but i thought already anyone ha a fix :)

Anyways, now i have installed LOS. Thank you for your work and help :)
[Samsung Galaxy Tab A8 (2021)] lewmur:
Thanks for your work in getting TWRP with Android 13 but there is a problem. If you have stock Android 13 on the tablet, TWRP get overwritten the first time you boot to system, even if you booted to TWRP first. There was a multidisabler script to solve this problem in earlier versions, but it doesn't help with this one. I've attached a copy of it if you want to use it to see it worked in the earlier version.
[Samsung Galaxy Tab A8 (2021)] kevinco1:
Download the TWRP app and flash the latest version in this thread. As long as you reboot to recovery right afterwards and not system....it will stick
[Samsung Galaxy Tab A8 (2021)] lewmur:
I am using the version of TWRP you linked with the CWA3 kernel. And I ALWAYS reboot to recovery after flashing TWRP. Been doing it for years. And it works just fine if you have an Android 12 ROM installed. But I upgraded to the latest stock Android 13 ROM and then flashed TWRP, rebooted to it, and it worked. BUT, I then rebooted to system, and that is when it got overwritten. Did this a couple of times with the same result. I think the problem may be that the latest stock is CWB1, even later than CWA3.
[Samsung Galaxy Tab A8 (2021)] kevinco1:
But did you use the TWRP app I mentioned to install the recovery? There's something about this method that just works for this specific device. Wasn't able to install TWRP using any other method
[Samsung Galaxy Tab A8 (2021)] lewmur:
Do you mean the app from Play Store? I installed the way I always have, via Odin. I'll give the app a try.
[Samsung Galaxy Tab A8 (2021)] Mafioso:
I'm not able to root the latest CWA3 firmware using Magisk. I'm having bootloop after flashing patched boot.img. Steps I followed:

1) Clean flash of CWA3 firmware (from samfw.com SM-X200, INU CSC) through ODIN (BL, AP & CSC)

2) Confirmed above flash was fine by doing a boot of stock firmware

3) Extract boot.img from above firmware file and patch it in magisk to obtained modified boot.img

4) Flash latest twrp image from this thread through ODIN (Flash twrp image tar file in AP)

5) Hold Power & Vol Up buttons during restart to enter TWRP recovery

6) Wipe ->Slide to Factory Reset & Format data

7) flash patched boot.img

8) After rebooting I get a bootloop. After second bootloop it goes into TWRP recovery automatically.

I tried above process 2 times already and both times same result. Previously I was having TWRP and root on my tablet on A12 ROM.

Can anybody please suggest what I'm doing wrong here? @Magendanz

Having root is important to me..
[Samsung Galaxy Tab A8 (2021)] jdub55:
This might be a dumb question but I just got an SM-X200 and want to flash TWRP and then a custom ROM (probably going to go with Lineage).

My question is regarding TWRP and Android 12. I want to load an Android 12 version of Lineage: One of Andy Yan's 19.1 builds

Do I need TWRP to be the older, A12 version which is 3.7.0 or can I install the latest version of TWRP (twrp_3.7.0_12-2_X200XXS1CWA3.img) and still run a custom A12 ROM?

Thanks
[Samsung Galaxy Tab A8 (2021)] jdub55:
Well, I just tried flashing my Samsung Tab A8 (SM-X200) and tried to flash Lineage to it. I successfully flashed TWRP, and have been following a guide (https://xdaforums.com/t/recovery-unofficial-twrp-3-7-0-for-2021-galaxy-tab-a8-10-5-sm-x200.4488691/)

I can even flash .img files via fastboot. I've been trying to use GSI files from Andy Yan (https://sourceforge.net/projects/andyyan-gsi/files/lineage-19.x/)

But no matter what version of Lineage I flash, the tablet doesn't boot into the OS. It just sits at the inital power on screen that says "Android Galaxy" and shows the Android guy.

I'm fairly experienced with flashing custom ROMS. I think I just need a little guidance to get this working.
[Samsung Galaxy Tab A8 (2021)] andr_SMOLKEYS:
You did it wrong. Once you have the patched boot.img, compress it into a tar archive and flash it using Odin (AP).
[Samsung Galaxy Tab A8 (2021)] andr_SMOLKEYS:
You can also store the boot.img into the stock AP tarball to get a pre-patched one.
[Samsung Galaxy Tab A8 (2021)] kevinco1:
Is it possible to build a newer version of TWRP for this device where you can actually mount the data partition?

I'm not knowledgeable enough to know how to work with Samsung partitions along with a custom recovery but that alone would clear some major hurdles for development

@Magendanz
[Samsung Galaxy Tab A8 (2021)] lewmur:
I don't think anyone, on any late model Samsung device, has succeeded in getting TWRP to access the encrypted data partition. What I do think is doable is adding system as an option when flashing an img file.
[Samsung Galaxy Tab A8 (2021)] kevinco1:
It seems like OrangeFox has been the better custom recovery for a while now, overall TWRP support has been lacking for years. I use it on my other devices and it's able to decrypt, backup, flash, sideload etc without any issues.

But again...with my limited knowledge in this area have no idea if Orangefox could even be built for this device, but it be worth looking into
[Samsung Galaxy Tab A8 (2021)] lewmur:
Actually, Orange Fox handles encryption the same way TWRP does. You have to format the data partition to get rid of the encryption. There is a way to tell LOS not to re-encrypt by modifying the build.prop but otherwise as soon as you boot LOS it will re-encypt it. And you need to do that for the backup to work.

Just my opinion but I think it will be much easier to get someone to just modify the current TWRP to include flashing the system.img than to get the OFox devs to make one for this tab.
[Samsung Galaxy Tab A8 (2021)] kevinco1:
Agreed on TWRP being the better solution. On a whim I threw a hail mary pass out there mentioning Orangefox because I'm not confident there will be any more TWRP updates for this device
[Samsung Galaxy Tab A8 (2021)] ARIES4RR:
there is no more twrp for the new version
[Samsung Galaxy Tab A8 (2021)] kevinco1:
Could this help? I've seen a lot of people reference it

GitHub - Johx22/Patch-Recovery: CI service that patches recovery.img of Dynamic Samsung devices launched with Android 10 and above to enable fastbootd.

CI service that patches recovery.img of Dynamic Samsung devices launched with Android 10 and above to enable fastbootd. - Johx22/Patch-Recovery

github.com
[Samsung Galaxy Tab A8 (2021)] lewmur:
Not really. TWRP already has fastboot and is easier to install. But it's good to keep in mind if devs stop updating TWRP. The TWRP team quit upgrading it some time ago, due to the encryption problem, and it is now up to individual devs to mod it for their devices.
[Samsung Galaxy Tab A8 (2021)] kevinco1:
I've been trying to get more info in other threads and have gotten some good replies....though I don't really understand any of it.

If anyone else would like to take a look and see if it's more comprehendible to yourself and might help spur more ideas -

https://xdaforums.com/t/gsi-13-lineageos-20-trebledroid-based.4517345/page-26
[Samsung Galaxy Tab A8 (2021)] susjimjam:
hi i have a sm-x205 i have done everything, but when i try to flash the patched boot.img (i have used 7z to tar it) with the csc owo and bl it always says fail i put everyhing in the correct order

i also tried doing it with a patched ap and flashed it like that but it leads to a boot loop + i tried an unofficial twrp and flashed it to bootloader but when i do it i cant install anyhting like the boot.img or magisk zip it always reads "internal storage 0mb" i tried every thing but it wont let me root and it did say the twrp worked for sm-x205 and i did use the sm-x205 software and it matched to my region i also bricked and unbricked it 8-9 times i also wiped everthing then it gave me the stroage like "21351mb" but it wont let me add anything onto it
[Samsung Galaxy Tab A8 (2021)] susjimjam:
i have a patched boot.img as tar (loads if it) and when i flash it, its says fail and on the tablet it says "unsupported dev type"
[Samsung Galaxy Tab A8 (2021)] lewmur:
That's because the X205 is an unsupported dev type. This is for the X200 as the tital says.
[Samsung Galaxy Tab A8 (2021)] susjimjam:
i know that it is for the x200 but i saw it work for the x205 somehow
[Samsung Galaxy Tab A8 (2021)] lewmur:
I've seen post saying that it works but I find that surprising. Anyway, you are going about it wrong. Flashing the magisk modified boot.img has to do with rooting and NOT TWRP. TWRP is recovery NOT boot. Go back and read the OP very carefully. Or are you just in the wrong thread? This thread is about TWRP, not rooting.
[Samsung Galaxy Tab A8 (2021)] susjimjam:
ohh ok thanks im just trying to root my x205
[Samsung Galaxy Tab A8 (2021)] lewmur:
Read post #84 in the How to Root thread.
[Samsung Galaxy Tab A8 (2021)] susjimjam:
ok
[Samsung Galaxy Tab A8 (2021)] susjimjam:
i have looked at it and already tried to flash everything with odin and i patched the boot.img and converted it to tar and installed it and it said fail, i also did it with bl,csc what do i do?

plz respond quickly

edit: i am extracting a new download of the fw
[Samsung Galaxy Tab A8 (2021)] lewmur:
Please reply to post #84 in the How to Root thread and I'll give step by step guide. The way you are doing it won't work.
[Samsung Galaxy Tab A8 (2021)] susjimjam:
thanks i will
[Samsung Galaxy Tab A8 (2021)] susjimjam:
i have used magisk 26.1 and patched boot.img and converted it to tar what do i do now?
[Samsung Galaxy Tab A8 (2021)] lewmur:
This is the WRONG thread!!!!
[Samsung Galaxy Tab A8 (2021)] susjimjam:
ooop sos
[Samsung Galaxy Tab A8 (2021)] kevinco1:
This is a community help forum not a call center, do not demand anything and show some patience. You've already been politely told this is the wrong thread to seek help
[Samsung Galaxy Tab A8 (2021)] susjimjam:
okay sorry i'm new to xda
[Samsung Galaxy Tab A8 (2021)] susjimjam:
is this how to reply to thread??

edit: how???? it clicked reply and it posted it here??
[Samsung Galaxy Tab A8 (2021)] susjimjam:
is this a reply to the thread??
[Samsung Galaxy Tab A8 (2021)] susjimjam:
nerver mind i got it rooted
[Samsung Galaxy Tab A8 (2021)] AverageNoob:
Hello, I am currently trying to install the file using Odin. It just stops at SetupConnection and refuses to proceed further. It is connected to the system. I have also unlocked the bootloader without a hitch. What am I doing wrong? Or does the file not support recent android update with OneUI 5.1?

Thank you.
[Samsung Galaxy Tab A8 (2021)] susjimjam:
do you have the ap file for the firmware
[Samsung Galaxy Tab A8 (2021)] AverageNoob:
You can install it through frija. Check github.
[Samsung Galaxy Tab A8 (2021)] AverageNoob:
Okay, so what I am trying to achieve here is to root the system and obtain a working GSI system. Unfortunately Odin does not allow me to go further. Any changes that have to be committed to the TWRP file?
[Samsung Galaxy Tab A8 (2021)] susjimjam:
i dont really understand you.

the way i did it was patching the boot.img (from the AP file for the firmware) and put it on my laptop then put it in a folder with the vbmeta.img, and then highlighted both of them and converted them into one tar file then went on odin with my tablet on download mode and then i selected the file with the patched boot.img and vbmeta.img in a tar file and put it in ap and flashed it
[Samsung Galaxy Tab A8 (2021)] susjimjam:
i didnt use twrp
[Samsung Galaxy Tab A8 (2021)] AverageNoob:
You just asked for the ap file, and I gave you the link to it. Download is on github.
[Samsung Galaxy Tab A8 (2021)] susjimjam:
oh ok sorry
[Samsung Galaxy Tab A8 (2021)] susjimjam:
i dont think you need to change anything to the twrp file
[Samsung Galaxy Tab A8 (2021)] susjimjam:
just make sure its on ap part in odin
[Samsung Galaxy Tab A8 (2021)] SavedByLight:
The latest version is not compatible with one ui 5.1 kernel, or so it appears, as my touch screen is not working in twrp, are you working on a new version?
[Samsung Galaxy Tab A8 (2021)] MrFluffyOven:
Any updates for one ui 5.1, my touch screen doesn't appear to be working in twrp menu
[Samsung Galaxy Tab A8 (2021)] abdoul01:
Bonjour il ya plus une mise à jour pour twrp s’il vous plaît
[Samsung Galaxy Tab A8 (2021)] abdoul01:
Bonjour il y a plus une mise à jour pour twrp( cwc1)s’il vous plaît
[Samsung Galaxy Tab A8 (2021)] lewmur:
English please. Don't know what you are asking.
[Samsung Galaxy Tab A8 (2021)] kevinco1:
I'm now on X200XXS2CWD2....wondering if anyone has built a new version of TWRP as well but doesn't look like it
[Samsung Galaxy Tab A8 (2021)] MrFluffyOven:
Due to the delay in updating this I'm looking into how to port the update myself if I manage I'll post
[Samsung Galaxy Tab A8 (2021)] berkwe_:
can you do it for sm-x207?
[Samsung Galaxy Tab A8 (2021)] kd276:
Hello, is this version of TWRP even compatible with the A8 revision 2022 (SM-X205NZAEEUE)? Or is tested only for the old 2021 (SM-x200) model?

Thank you.

I can get the 2022 version for a cheap price but of course i won't get it if is not compatible with the actual tools (twrp, lineageos, etc...) compared to the pervious version. Anyone who own the last version tried it?
[Samsung Galaxy Tab A8 (2021)] gianxda6:
Just did the procedure succesfully... but the touch is not working.

Any suggestions?

Many Thanks for your great work!
[Samsung Galaxy Tab A8 (2021)] jaypdx:
I have this very problem. I cannot get my tablet to disable avb. If I modify system partition at all, or install a gsi it bootloops with a kernel panic. I have been able to use magisk modules to fake an engineer build and "disable-verity" from an elevated terminal but then it stalls on boot stuck on a Samsung Galaxy splash screen indefinitely, and can't even boot to recovery. The only way to fix from there is to use Odin to flash stock vbmeta.

What am I missing? How can I disable avb and install a gsi?
[Samsung Galaxy Tab A8 (2021)] berkwe_:
Will it work in sm-x207 version?
[Samsung Galaxy Tab A8 (2021)] jonpjingleheimler:
I have had no touch response in twrp also but it was a certain version. Double check your version. or It may be a hassle but you should be able to use an otg and run a mouse.
[Samsung Galaxy Tab A8 (2021)] HikariWS:
Hello. I'm trying to install twrp on my Galaxy Tab A8 SM-X200, but I'm getting fail message.

I enabled Developer options and inside it enabled OEM unlocking, I had to signin Google for OEM onlocking option to appear.

I'm using Odin 3.10.7 downloaded from https://samsungodin.org/#google_vignette on a Win10 PC.

I enter download mode by holding up and down volume then connecting USB plug. Odin detects it with message `<ID:0/005> Added!!`.

Then I click AP and select twrp_3.7.0_12-2_X200XXS1CWA3.tar.md5, Odin reports:

<OSM> Enter CS for MD5..
<OSM> Binary Check MD5.. Do not unplug the cable..
<OSM> Please wait..
<OSM> Checking MD5 finished Sucessfully..
<OSM> Leave CS..

On options tab I verify that only Auto Reboot and F. Reset Time are checked. Then I press Start. The tablet shows no change, here's full Odin log.

<ID:0/005> Added!!
<OSM> Enter CS for MD5..
<OSM> Binary Check MD5.. Do not unplug the cable..
<OSM> Please wait..
<OSM> Checking MD5 finished Sucessfully..
<OSM> Leave CS..
<ID:0/005> Odin engine v(ID:3.1100)..
<ID:0/005> File analysis..
<ID:0/005> SetupConnection..
<ID:0/005> Initialzation..
<ID:0/005> Get PIT for mapping..
<ID:0/005> Firmware update start..
<ID:0/005> SingleDownload.
<ID:0/005> recovery.img.lz4
<ID:0/005> NAND Write Start!!
<ID:0/005> FAIL!
<ID:0/005>
<ID:0/005> Complete(Write) operation failed.
<OSM> All threads completed. (succeed 0 / failed 1)
<ID:0/005> Removed!!
[Samsung Galaxy Tab A8 (2021)] lewmur:
What version of stock ROM are you running? Have you unlocked the bootloader?
[Samsung Galaxy Tab A8 (2021)] HikariWS:
Stock TPA1A.220624.014.X200XXS1CWA3. I rechecked and OEM unlock is checked.

I found Odin 3.14.1, it instructs to remove Google account. I did it and gonna try again.

On tablet log it says "OEM lock: ON (U)", does that mean OEM unlock isn't working?

Indeed, I noticed now that after trying to install, tablet log adds "Final Ver 5 3 Custom Binary Blocked By OEM Lock : Recovery".

So what am I missing?