[Samsung Galaxy Tab A series ROMs, Kernels, Recover] marky_p:
Steps to Image and Root SM-P580

First, thanks to [MENTION=9473234]unknowwiiplayer[/MENTION] for dropping that update on us. I was struggling with TWRP since the latest version was booting to a black screen with lines only. I had assumed I screwed up, but unknowwiiplayer hooked us up with the fix.

Secondly, I wanted to post some steps for those of you who were stuck in SM-P580 limbo like me. A while ago, I upgraded my tablet to Andriod 7 (Nougat), but I had not taken the time to root it. TWRP was installed and working. SuperSU support seems to have faded away in favor of Magisk; however, I still had SuperSU artifacts leftover on my system from prior installs, but just not working. This situation meant that if I tried to install Magisk, it would recognize the changed OS and fail to install. Ultimately I ended up installing the stock upgrade to Andriod 8.1 (Oreo), installed TWRP, and the Universal DM-Verity, ForceEncrypt, Disk Quota Disabler. This method left me with a stock image, rooted, with TWRP installed and working - which is what I wanted.

This approach did not work for me.

https://xdaforums.com/showpost.php?p=78373937&postcount=2

Once I got to the step where Magisk wanted to repack the boot.img, it would fail. The logs were brief and left me no idea why it had failed, simply stating that "repack failed." I assume some repacking utility was missing since I was executing the rebuild on the internal, writable storage when building on external storage failed. I tried everything, but it still failed. One thing of note, the new version of Magisk Manager no longer allows you to choose the output format (e.g. *.img.tar). I'm not sure if that is a contributing factor or not.

To upgrade your SM-P580 to Oreo v8.1:

1. Download the stock image P580UEU1CRK2_P580XAR1CRK3_XAR. If you google this image name, you should be able to find it to download.

2. Boot device into recovery mode/target/download mode (POWER + VOLUME DOWN + HOME). Press VOLUME UP to enter mode once a light blue screen appears. Connect USB cable.

3. Use Odin 3.14.4 to flash the image to my tablet. You need to flash BL, AP, and CSC (Home) md5 files. This procedure will also fix a soft-bricked tablet, which I did several times over the past few days. You should see "Added." in the Odin log and the ID:COM field should show a COM Port when connected correctly. If you do not see any of this, find the Samsung USB Drivers and reinstall them. My image did not include a CP file.

[IMG="Odin SM-P580 Flash"]https://i.imgur.com/5bRvAzG.jpg[/IMG]

4. Reboot to verify stock image flashed successfully.

5. Go download this and put it on your tablet's storage:

Universal DM-Verity, ForceEncrypt, Disk Quota Disabler

https://xdaforums.com/android/software/universal-dm-verity-forceencrypt-t3817389

Note: make sure you click the "download" link and not the Github link for the source code.

6. Follow steps 2 and 3 to boot into recovery mode/target/download mode and connect the tablet to Odin. Use the file posted by unknowwiiplayer in the AP field in Odin. Before you hit start, click the "Options" tab in Odin and uncheck "Auto Reboot." If you forget this, the boot will be overwritten, and you'll have to perform this step again.

7. Once you have uploaded TWRP, but before you reboot, unplug the USB cable. Make sure Odin shows "PASS!" in a green box and "All threads completed." in the log window. Hold (POWER + VOLUME DOWN + HOME). These keys will force a reboot. As soon as the screen goes blank, swap to (POWER + VOLUME UP + HOME). Just slide your finger. This key combination should boot you into TWRP. Once this step is complete, the boot will stick.

8. In TWRP, swipe to the right to start. Touch is a bit messed up in TWRP, but it's workable with some patience. Go to the "Wipe" menu in TWRP and press "Format Data." In the next window, type "yes" to continue. Click "Install" and choose the zip file you downloaded in step #5. It should install without error. This file should also set the groundwork to install SuperSU or Magisk after reboot.

9. Reboot. Install Magisk Manager, update if needed, then install Magisk. This install should install the Superuser module that allows programs to elevate permissions to run as root.

I think these are all the steps I perform, but I may have forgotten a detail here or there. Please let me know if you notice any errors or omissions.