[RECOVERY][UNOFFICIAL]TWRP 3.6.0 for 2020 Galaxy Tab A7 10.4[SM-T500]

Search This thread

paziusss

Senior Member
Jan 3, 2014
58
100
pngwing.com.png

Code:
/*
* Disclaimer
*
* Your warranty is now void.
*
* We're not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this ROM
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at us for messing up your device, we will laugh at you.
*/

Introduction

Team Win Recovery Project (TWRP) is an open-source software custom recovery image for Android-based devices. It provides a touchscreen-enabled interface that allows users to install third-party firmware and back up the current system, functions often unsupported by stock recovery images. It is, therefore, often installed when rooting Android devices, although it isn't dependent on a device being rooted to be installed.

Known limitations
  • FBE encrypted storage (Internal Data) not able to be decrypted in TWRP.
Changelog
  • 2021-12-08:
    • Added: exfat support
    • Added: mass storage support
    • Fixed: USB composition rules
    • Supressed audit messages in logcat
    • Misc changes (see device tree for details)

  • 2021-12-05: Initial release

Motivation and credits.

AFAICT there're two TWRP builds on xda for the SM-T500, made by ragarcia87 and agreenbhm

The main motivation for Yet Another TWRP build was getting fastboot working, so we can follow official instructions to flash GSI builds on our devices.

Credits to u/agreenbhm for the device tree: https://github.com/agreenbhm/android_device_samsung_gta4lwifi
Credits to u/ragarcia87 for the thread, which I used as a template for this one :)

Installation Instructions

From computer:
  • Download Odin Flashable Tar from bellow
  • Put tablet into Odin Download Mode
  • Flash Blank vbmeta via Userdata
  • Flash Odin Flashable Tar via AP
From TWRP:
  • Download recovery.img from below
  • Copy recovery.img to device
  • Install > Install Image > recovery.img to Recovery
  • Reboot > Recovery

Flashing system/vendor/product/odm partitions

Logical partitions are read only from TWRP. If you want to flash them you'll need to reboot in fastbootd.
  • Boot in TWRP
  • Go to reboot and select fastboot.
  • Wait until you see a TWRP dialog saying "entered in fastboot"
  • Once you flashed all desired partitions reboot to recovery
  • In recovery wipe -> format data.
Notes on GSI flashing:
  • /product partition is unused in GSI builds. You can flash an empty image to gain 1GB for other logical partitions.
  • /system partition will be resized to the size of the GSI image you're flashing.
 

Attachments

  • product.img
    40.1 KB · Views: 583
  • recovery.img
    39.9 MB · Views: 821
  • recovery.tar
    39.9 MB · Views: 1,233
  • sha256sum.txt
    236 bytes · Views: 198
Last edited:

Magendanz

Senior Member
Mar 25, 2008
954
994
Issaquah, WA
www.Vote4Chad.com
Thanks for migrating this to Android 11! One issue I'm seeing is that I can't mount the Micro SD card.

Also, the link for your device tree seems to be broken. Could you please update?
 
Last edited:

paziusss

Senior Member
Jan 3, 2014
58
100
Hi Magendanz. Thanks for your feedback.

I have no issues mounting the MicroSD card. Do you have some logs?

Updated DT link!

About the device tree: I'm having trouble pushing the changes to github because my slow connection. Will see if I got them pushed somehow. If not I will revert blobs to agreenbhm version.

Thanks for migrating this to Android 11! One issue I'm seeing is that I can't mount the Micro SD card.

Also, the link for your device tree seems to be broken. Could you please update?
 

paziusss

Senior Member
Jan 3, 2014
58
100
Hi!

Indeed, I didn't test with exfat. Should be fixed soon. Also adb sideload don't work in the version attached.

I will make the changes ASAP and give a better commit history in device tree :)
 

paziusss

Senior Member
Jan 3, 2014
58
100
Hi. Device tree updated with support for exfat and ADB sideload fixed.

Will upload the binaries in a few hours!
 
  • Like
Reactions: Magendanz

stompysan

Senior Member
Feb 1, 2011
447
112
Thanks for bringing a nicer TWRP for GSI loading to our devices. I flashed this with no issues, but I am really struggling to get my device to boot any GSI. I am sure it is something that I am doing wrong on my end, since I have not messed with Samsung devices or any GSI installations before. Is there a change to have a more in-depth guide written up on installing a GSI on our device, or is there one already available that has similar instructions? I am planning on starting from scratch once I get home, and would like to have all of my ducks in a row before attempting again.
 

paziusss

Senior Member
Jan 3, 2014
58
100
Thanks for bringing a nicer TWRP for GSI loading to our devices. I flashed this with no issues, but I am really struggling to get my device to boot any GSI. I am sure it is something that I am doing wrong on my end, since I have not messed with Samsung devices or any GSI installations before. Is there a change to have a more in-depth guide written up on installing a GSI on our device, or is there one already available that has similar instructions? I am planning on starting from scratch once I get home, and would like to have all of my ducks in a row before attempting again.

Sure, I'll write a deep guide when I get basic stuff sorted out.

For starters, it is:

On TWRP -> Reboot -> Fastboot

Let the device reboot, wait until you see TWRP "entered fastboot"

Check your computer sees the device with

fastboot devices

(retry until it does)

Now erase system and flash a new image:

fastboot erase system
fastboot flash system whatever-aosp-gsi-ab-arm64.img

Finally reboot to recovery

fastboot reboot recovery

And format data:

Wipe -> Format data

Now you can reboot to the system. It will work.

I've tested it with Google AOSP builds, PHH builds and LineageOS builds based on PHH.

Bugs you'll find on any GSI build:

1. MTP doesn't work (needs a kernel change)
2. Brightness slider doesn't work (can be fixed easily without kernel change)
3. Probably more that I didn't found yet :)
 

paziusss

Senior Member
Jan 3, 2014
58
100
Hi. I've updated recovery binaries and added a changelog.

Please report the issues you find.
 
Sure, I'll write a deep guide when I get basic stuff sorted out.

For starters, it is:

On TWRP -> Reboot -> Fastboot

Let the device reboot, wait until you see TWRP "entered fastboot"

Check your computer sees the device with

fastboot devices

(retry until it does)

Now erase system and flash a new image:

fastboot erase system
fastboot flash system whatever-aosp-gsi-ab-arm64.img

Finally reboot to recovery

fastboot reboot recovery

And format data:

Wipe -> Format data

Now you can reboot to the system. It will work.

I've tested it with Google AOSP builds, PHH builds and LineageOS builds based on PHH.

Bugs you'll find on any GSI build:

1. MTP doesn't work (needs a kernel change)
2. Brightness slider doesn't work (can be fixed easily without kernel change)
3. Probably more that I didn't found yet :)
Will it work with Pixel Experience?
 

paziusss

Senior Member
Jan 3, 2014
58
100
Will it work with Pixel Experience?

I didn't try. Install instructions are the same for all GSI roms. You can get a big list of GSIs in https://github.com/phhusson/treble_experimentations/wiki/Generic-System-Image-(GSI)-list

Some roms are bigger than stock, so you'll need to delete/wipe your product partition first. OP has instructions about it. I personally prefeer to flash an empty product.img instead of deleting the logical partition, to avoid TWRP warnings trying (and failing) to mount the partition.
 
I didn't try. Install instructions are the same for all GSI roms. You can get a big list of GSIs in https://github.com/phhusson/treble_experimentations/wiki/Generic-System-Image-(GSI)-list

Some roms are bigger than stock, so you'll need to delete/wipe your product partition first. OP has instructions about it. I personally prefeer to flash an empty product.img instead of deleting the logical partition, to avoid TWRP warnings trying (and failing) to mount the partition.
Alright Thanks
 
Sure, I'll write a deep guide when I get basic stuff sorted out.

For starters, it is:

On TWRP -> Reboot -> Fastboot

Let the device reboot, wait until you see TWRP "entered fastboot"

Check your computer sees the device with

fastboot devices

(retry until it does)

Now erase system and flash a new image:

fastboot erase system
fastboot flash system whatever-aosp-gsi-ab-arm64.img

Finally reboot to recovery

fastboot reboot recovery

And format data:

Wipe -> Format data

Now you can reboot to the system. It will work.

I've tested it with Google AOSP builds, PHH builds and LineageOS builds based on PHH.

Bugs you'll find on any GSI build:

1. MTP doesn't work (needs a kernel change)
2. Brightness slider doesn't work (can be fixed easily without kernel change)
3. Probably more that I didn't found yet :)
I flashed phhusson's GSI rom but my galaxy tab a7 keeps boot looping
 
Sure, I'll write a deep guide when I get basic stuff sorted out.

For starters, it is:

On TWRP -> Reboot -> Fastboot

Let the device reboot, wait until you see TWRP "entered fastboot"

Check your computer sees the device with

fastboot devices

(retry until it does)

Now erase system and flash a new image:

fastboot erase system
fastboot flash system whatever-aosp-gsi-ab-arm64.img

Finally reboot to recovery

fastboot reboot recovery

And format data:

Wipe -> Format data

Now you can reboot to the system. It will work.

I've tested it with Google AOSP builds, PHH builds and LineageOS builds based on PHH.

Bugs you'll find on any GSI build:

1. MTP doesn't work (needs a kernel change)
2. Brightness slider doesn't work (can be fixed easily without kernel change)
3. Probably more that I didn't found yet :)
I'm trying to flash the ROM I downloaded but I keep getting Sparse errors and when it finishes I get this FAILED (remote: Operation not permitted)
Edit: Maybe this is happening because of the ROM being A only
 
Last edited:
I'm trying to flash the ROM I downloaded but I keep getting Sparse errors and when it finishes I get this FAILED (remote: Operation not permitted)
Sure, I'll write a deep guide when I get basic stuff sorted out.

For starters, it is:

On TWRP -> Reboot -> Fastboot

Let the device reboot, wait until you see TWRP "entered fastboot"

Check your computer sees the device with

fastboot devices

(retry until it does)

Now erase system and flash a new image:

fastboot erase system
fastboot flash system whatever-aosp-gsi-ab-arm64.img

Finally reboot to recovery

fastboot reboot recovery

And format data:

Wipe -> Format data

Now you can reboot to the system. It will work.

I've tested it with Google AOSP builds, PHH builds and LineageOS builds based on PHH.

Bugs you'll find on any GSI build:

1. MTP doesn't work (needs a kernel change)
2. Brightness slider doesn't work (can be fixed easily without kernel change)
3. Probably more that I didn't found yet :)
To anyone who wants to try the Pixel Experience rom
USE A/B NOT A ONLY
 

Top Liked Posts

  • There are no posts matching your filters.
  • 4
    pngwing.com.png

    Code:
    /*
    * Disclaimer
    *
    * Your warranty is now void.
    *
    * We're not responsible for bricked devices, dead SD cards,
    * thermonuclear war, or you getting fired because the alarm app failed. Please
    * do some research if you have any concerns about features included in this ROM
    * before flashing it! YOU are choosing to make these modifications, and if
    * you point the finger at us for messing up your device, we will laugh at you.
    */

    Introduction

    Team Win Recovery Project (TWRP) is an open-source software custom recovery image for Android-based devices. It provides a touchscreen-enabled interface that allows users to install third-party firmware and back up the current system, functions often unsupported by stock recovery images. It is, therefore, often installed when rooting Android devices, although it isn't dependent on a device being rooted to be installed.

    Known limitations
    • FBE encrypted storage (Internal Data) not able to be decrypted in TWRP.
    Changelog
    • 2021-12-08:
      • Added: exfat support
      • Added: mass storage support
      • Fixed: USB composition rules
      • Supressed audit messages in logcat
      • Misc changes (see device tree for details)

    • 2021-12-05: Initial release

    Motivation and credits.

    AFAICT there're two TWRP builds on xda for the SM-T500, made by ragarcia87 and agreenbhm

    The main motivation for Yet Another TWRP build was getting fastboot working, so we can follow official instructions to flash GSI builds on our devices.

    Credits to u/agreenbhm for the device tree: https://github.com/agreenbhm/android_device_samsung_gta4lwifi
    Credits to u/ragarcia87 for the thread, which I used as a template for this one :)

    Installation Instructions

    From computer:
    • Download Odin Flashable Tar from bellow
    • Put tablet into Odin Download Mode
    • Flash Blank vbmeta via Userdata
    • Flash Odin Flashable Tar via AP
    From TWRP:
    • Download recovery.img from below
    • Copy recovery.img to device
    • Install > Install Image > recovery.img to Recovery
    • Reboot > Recovery

    Flashing system/vendor/product/odm partitions

    Logical partitions are read only from TWRP. If you want to flash them you'll need to reboot in fastbootd.
    • Boot in TWRP
    • Go to reboot and select fastboot.
    • Wait until you see a TWRP dialog saying "entered in fastboot"
    • Once you flashed all desired partitions reboot to recovery
    • In recovery wipe -> format data.
    Notes on GSI flashing:
    • /product partition is unused in GSI builds. You can flash an empty image to gain 1GB for other logical partitions.
    • /system partition will be resized to the size of the GSI image you're flashing.
    4
    I didn't know about the watchdog. AFAICT it doesn't affect AOSP or LineageOS. These roms seem to signal BOOT_COMPLETED just fine.

    Could you please try this kernel? (backup your boot.img first): It is mostly stock with MTP drivers and watchdogs disabled. It should work on any GSI rom, no matter if it is android11 or android12.

    If something doesn't work with it and you're not on last firmware (BUJ1) please update the firmware first. It ought to work on previous FW releases too but wasn't tested on them.
    3
    Thanks for bringing a nicer TWRP for GSI loading to our devices. I flashed this with no issues, but I am really struggling to get my device to boot any GSI. I am sure it is something that I am doing wrong on my end, since I have not messed with Samsung devices or any GSI installations before. Is there a change to have a more in-depth guide written up on installing a GSI on our device, or is there one already available that has similar instructions? I am planning on starting from scratch once I get home, and would like to have all of my ducks in a row before attempting again.

    Sure, I'll write a deep guide when I get basic stuff sorted out.

    For starters, it is:

    On TWRP -> Reboot -> Fastboot

    Let the device reboot, wait until you see TWRP "entered fastboot"

    Check your computer sees the device with

    fastboot devices

    (retry until it does)

    Now erase system and flash a new image:

    fastboot erase system
    fastboot flash system whatever-aosp-gsi-ab-arm64.img

    Finally reboot to recovery

    fastboot reboot recovery

    And format data:

    Wipe -> Format data

    Now you can reboot to the system. It will work.

    I've tested it with Google AOSP builds, PHH builds and LineageOS builds based on PHH.

    Bugs you'll find on any GSI build:

    1. MTP doesn't work (needs a kernel change)
    2. Brightness slider doesn't work (can be fixed easily without kernel change)
    3. Probably more that I didn't found yet :)
    2
    i have notting instaled and it uses 2 gb of ram while it got 3 gb and you say it lacks ram

    Seriously, stop. Do read https://www.linuxatemyram.com/ if you want.

    At this point GSI builds are not meant for end users in this device.

    What we need now is people reporting things that don't work (i.e: bluetooth audio, once paired sound is still routed to tablet speakers) and NOT people whining about non real issues.

    Support for certain ROMs in certain versions is out of the scope. If all gets fixed on phhusson builds (a12 at this point) everything should work just fine in all other GSI builds as all of them rely on phh work.

    So please report what things don't work in phh. If you want support of your favorite build then start a thread elsewhere.
    2
    How do I fix the brightness and pixle experience randomly reboots for me

    Hi.

    Reboots (random or not, unless requested by the user) are something I can't reproduce on the GSI builds I've tested. I would suggest to contact upstream about this.

    The brightness stuff bugs me, as I can reproduce it in every GSI rom out there. I'll try to report it to phhusson to see if it gets fixed somehow, if not we're going to modify slightly the system.img to work on our devices.

    For now you can get it working with just 3 commands, until you reboot your device:

    Bash:
    adb shell
    su
    echo 100 > /sys/class/backlight/panel0-backlight/brightness