[Samsung Galaxy Tab A series ROMs, Kernels, Recover] MrHomebrew:
Galaxy Tab A 10.5 SM-T590/SM-T595/SM-T597

TWRP and Lineage 16/17.1 for (SM-T590/SM-T595/SM-T597)!!!!!!!!!!!!!!!!!!!!!

BROUGHT TO YOU BY: MrHomebrew

BIG CREDIT TO: Rupansh (For his time, work: dedication and discovery on how to achieve TWRP on these devices).

THANK YOU TO: Cale (For his time, findings and testing).

READ ENTIRE POST!!!!!!!!

READ ENTIRE POST!!!!!!!!

READ ENTIRE POST!!!!!!!!

THIS IS AT YOUR OWN DESCRETION AND I AM NOT RESPONSIBLE FOR ANYTHING THAT COULD GO WRONG (for example a BRICKED DEVICE)!!!!!!!!

EXPECIALLY IF YOU CAN NOT FALLOW INSTRUCTIONS PROPERLY!!!!!!!!

THIS IS SIMPLY A GUIDE AND IF YOU ARE WILLING TO ATTEMPT ON YOUR OWN DEVICE THAT IS FULLY YOUR CHOICE, RESPONSIBILY and DESCRETION!!!!!!!!

IF YOU ARE STUCK IN A BOOTLOOP REBOOT TO DOWNLOAD MODE AND FLASH STOCK SAMSUNG ROM IN ODIN AND IF YOU WOULD LIKE, TRY AGAIN!!!!​

1.

Download stock/unmodded Odin:

https://xdaforums.com/attachment.php?attachmentid=4946889&d=1581302091

Install stock SM-T590/T595/T597 PIE rom with stock/unmodded Odin in download mode

(POWER OFF TABLET AND BOOT WITH VOLUME UP, DOWN AND POWER BUTTON WELL PLUGGED IN TO YOUR PC THROUGH USB).

2.

Finish setup SKIP ALL and enable OEM UNLOCK in developer options/settings.

(If developer options/settings is not viewable tap build number in settings/about a bunch of times)

(Then go back and you should see developer options in settings and ENABLE OEM UNLOCK).

3.

Download patched/modded Odin:

https://xdaforums.com/attachment.php?attachmentid=4952061&d=1581888388

Reboot to recovery (POWER OFF TABLET AND BOOT WITH VOLUME UP AND POWER BUTTON).

Select wipe data/factory reset in recovery (THIS WILL WIPE THE TABLET).

THEN SELECT REBOOT TO BOOTLOADER (DO NOT REBOOT THE DEVICE TO THE SYSTEM, STRAIGHT TO THE BOOTLOADER/DOWNLOAD MODE)

(BLACK LOOKING SCREEN THIS TIME).

4.

Download TWRP:

(SM-T590)

Mega - https://mega.nz/#!nVIknQrB!-Zb_xBWy2_Ruj0TBMHPQGvND1uA_LtOvwdRkmV9sFnQ

Zippyshare - https://www15.zippyshare.com/v/dLVoxicq/file.html

(SM-T595/SM-T597)

Mega - https://mega.nz/#!GQQWnASY!T0oJEkwu9m2rviVYFHy_E5tfithsqLYUTjcIW04iGzw

Zippyshare - https://www45.zippyshare.com/v/2VGMIYyb/file.html

Well in download mode open patched/modded Odin.

Select options in patched/modded odin and UNCHECK Auto Reboot and F. Reset Time.

Select recovery.tar.md5 (SPECIFIC FOR YOUR DEVICE MODEL SM-T590 or SM-T595/SM-T597) in the AP tab of patched/modded odin.

Flash recovery.tar.md5 to your tablet.

WHEN FINISHED MAKE SURE TO REBOOT TO RECOVERY MODE/TWRP(STEPS BELOW).

HOLD (VOLUME DOWN AND POWER BUTTON) AND AS SOON AS THE TABLET TURNS OFF HOLD (VOLUME UP AND THE POWER BUTTON) TO FORCE RECOVERY MODE/TWRP

(DO NOT REBOOT THE DEVICE TO THE SYSTEM, STRAIGHT TO RECOVERY MODE/TWRP).

5.

Download Lineage 16 Download Lineage 16 and unpack the .xz so you are left with a .img file (PLACE IT ON A SECONDARY/SPARE MICRO SD CARD):

(SM-T590/SM-T595/SM-T597)

Sourceforge - https://sourceforge.net/projects/an...017-UNOFFICIAL-treble_a64_avN.img.xz/download

Download Disable_Dm-Verity_ForceEncrypt_08.18.2019.zip (PLACE IT ON A SECONDARY/SPARE MICRO SD CARD):

Mega - https://mega.nz/#!eUpj3AAR!B-3_dgBX9nEj4PJufCnCl7FsiS5bJXy-XvNsBg2KQXg

Zippyshare - https://www120.zippyshare.com/v/fDpBrVte/file.html

Download open_gapps-arm-9.0-nano (SELECT AND DOWNLOAD ARM, 9.0 nano VARIANT) (PLACE IT ON A SECONDARY/SPARE MICRO SD CARD):

https://opengapps.org/

Unmount your micro sd in TWRP, remove CURRENT/MAIN micro sd card from your tablet and replace with the SECONDARY micro sd.

In recovery/twrp select wipe tab, then format data and type yes fallowed by enter (THIS WILL FORMAT/ERASE ALL DATA ON THE TABLET).

Go back to main TWRP menu, select reboot and then REBOOT TO RECOVERY.

Once Rebooted to RECOVERY/TWRP select install and at the bottom select install img.

Find the lineage-16.0-20191017-UNOFFICIAL-treble_a64_avN.img select and install it to SYSTEM IMAGE (MAKE SURE YOU SELECT SYSTEM IMAGE FOR INSTALL LOCATION!!!!).

Go back and select wipe then advanced wipe. Toggle System partition, select repair or change partition and then Resize File System.

(Swipe to resize).

Go back select install and at the bottom select install zip.

Then install open_gapps-arm-9.0-nano zip file in TWRP (AND THEN WIPE CACHE/DALVIK).

Go back select install and install Disable_Dm-Verity_ForceEncrypt_08.18.2019.zip in TWRP.

Unmount your micro sd in TWRP, remove SECONDARY micro sd from your tablet and replace it with the MAIN micro sd card.

6.

REBOOT TO SYSTEM AND SEE THE MAGIC HAPPEN (NOT DONE YET IF YOU WANT ANDROID 10 ALONG WITH ADOPTABLE STORAGE!!!!).

Setup device

FORMAT your MAIN micro sd card in android (SHOULD SEE A NOTIFICATION TO FORMAT MICRO SD CARD).

Select the formatting notification, dismiss the first popup and select adoptable/internal storage. (Be Patient and let it finish formatting).

(IF LINEAGE 16 DOES NOT ASK TO FORMAT MICRO SD CARD EJECT THEN PLACE IT IN A WINDOWS COMPUTER AND FORMAT TO SOMETHING ANDROID DOES NOT LIKE AND TRY AGAIN)

(FALLOWING INSTRUCTIONS BELOW)!!!!

Then insert your MAIN micro sd card (THAT IS FORMATTED IN A WAY THAT FORCES YOU TO HAVE TO REFORMAT) the MAIN micro sd card in Lineage 16

(SHOULD SEE A NOTIFICATION TO FORMAT MICRO SD CARD).

Select the formatting notification, dismiss the first popup and select adoptable/internal storage. (Be Patient and let it finish formatting).

7.

Download Lineage 17.1 and unpack the .xz so you are left with a .img file (PLACE IT ON A SECONDARY/SPARE MICRO SD CARD):

(SM-T590/SM-T595/SM-T597)

Sourceforge - https://sourceforge.net/projects/an...111-UNOFFICIAL-treble_a64_avN.img.xz/download

Download open_gapps-arm-10.0-nano (SELECT AND DOWNLOAD ARM, 10.0 nano VARIANT) (PLACE IT ON A SECONDARY/SPARE MICRO SD CARD):

https://opengapps.org/

Download PHH-Magisk (PLACE IT ON A SECONDARY/SPARE MICRO SD CARD)

https://sourceforge.net/projects/de...magisk/Magisk-v20.2-b29f0ca4-phh.zip/download

Power off or reboot to twrp (VOLUME UP AND THE POWER BUTTON).

Unmount your micro sd in TWRP, remove MAIN micro sd card (NOW USED AS ADOPTABLE STORAGE) from your tablet and replace with the SECONDARY micro sd.

Now select install and at the bottom select install img.

Find the lineage-17.1-20200111-UNOFFICIAL-treble_a64_avN.img select and install it to SYSTEM IMAGE (MAKE SURE YOU SELECT SYSTEM IMAGE FOR INSTALL LOCATION!!!!).

Go back and select wipe then advanced wipe. Toggle System partition, select repair or change partition and then Resize File System.

(Swipe to resize).

Go back select install and at the bottom select install zip.

Then install open_gapps-arm-10.0-nano zip file in TWRP (AND THEN WIPE CACHE/DALVIK).

Go back select install and YOU MUST INSTALL Magisk-v20.2-b29f0ca4-phh.zip (OR ELSE LINEAGE 17.1 WILL NOT BOOT).

Go back select install and install Disable_Dm-Verity_ForceEncrypt_08.18.2019.zip in TWRP.

Unmount your micro sd in TWRP, remove SECONDARY micro sd from your tablet and replace it with the MAIN micro sd card (STILL USED AS ADOPTABLE STORAGE).

8.

(VERY IMPORTANT YOU CAN UPDATE (MAGISK MANAGER) BUT NOT (MAGISK) ITSELF!!!! DO NOT UPDATE MAGISK!!!!) YOU WILL END UP IN A BOOT LOOP).

(VERY IMPORTANT) REBOOT TO SYSTEM AND GO IN TO MAGISK MANAGER.

Go to modules in Magisk Manager and install Busybox for Android NDK (DO NOT REBOOT) and also install MagiskHide Props Config (NOW REBOOT).

After reboot go to developer options/settings (System/Advanced/Developer options) and enable Local terminal.

(If developer options is not viewable tap build number in settings/about a bunch of times till it enables)

(Then go back and you should see developer options in settings).

9.

Return to home screen and launch terminal app.

In terminal app type "su" (WITHOUT QUOTES) and hit enter (ALWAYS HIT ENTER TO EXECUTE THE COMMAND).

Accept Magisk/Superuser popup for terminal.

(If you accidentally deny/miss permission go to Magisk a enable Superuser for terminal).

In terminal app type "props" (WITHOUT QUOTES).

Select option "1" (WITHOUT QUOTES), then select option "f" (WITHOUT QUOTES) and then select option "23" (WITHOUT QUOTES).

Now select (ONE OF THESE 3) options "45" (WITHOUT QUOTES) for SM-T590 / option "46" (WITHOUT QUOTES) for SM-T595 / or option "47" (WITHOUT QUOTES) for SM-T597.

Finally select "y" (WITHOUT QUOTES) to accept and then select "y" (WITHOUT QUOTES) to restart.

FINISHED!!!!

YOU ARE DONE!!!!

Hope you enjoy, a lot of work has gone in to making this possible on the Galaxy Tab A 10.5 SM-T590/SM-T595/SM-T597.

BUGS/ISSUES:

Encryption

Lockscreen password NOT WORKING (DO NOT SET A PASSWORD)

MTP not working in TWRP

Two out of four speakers WORKING

Can only enable adoptable storage in Lineage 16 and carry it over to Lineage 17.1

DEMONSTRATION/REVIEW VIDEO COMING SOON!!!!

BROUGHT TO YOU BY THE ONE AND ONLY: MrHomebrew

Contributors: MrHomebrew, Rupansh and Cale.

Source Code Used To Help Build TWRP For SM-T590/SM-T595/SM-T597

https://github.com/rupansh/android_kernel_samsung_gta2xl

Magisk_PHH and Lineage 16/17.1 GSI: AndyYan​

XDA:DevDB Information

[RECOVERY][ROM][ROOT][UNOFFICAL] TWRP 3.3.1-0 + Lineage [SM-T590/SM-T595/SM-T597], Kernel for the Samsung Galaxy Tab A series

Contributors

Leonidas87, rupanshji, AndyYan, Cale

Source Code: https://github.com/rupansh/android_kernel_samsung_gta2xl

Kernel Special Features:

Version Information

Status: Stable

Created 2020-02-20

Last Updated 2020-02-20