• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

[ROM][SM-T500] Samsung Galaxy Tab A7 10.4 (2020) - LineageOS 18.1

Search This thread

EvilPin

New member
Dec 10, 2018
1
0
Kindly excuse me for asking a noob question but how do I reboot into TWRP recovery? I always end up in the stock recovery after flashing TWRP via Odin. Thank you in advance.

Edit: Nevermind, it worked somehow after I did everything all over again.
 
Last edited:

testman42

Member
Jul 13, 2021
6
4
I was still not able to get WiFi to work.

this is what logcat says when I boot the tablet:


can anyone help me with this? Any suggestions or advice would be welcome.
 

testman42

Member
Jul 13, 2021
6
4
What did your original build end with? "3BUF3" or something else?
Not sure, I believe it did.
current system info says that kernel version is U3BUH3. I flashed the image that was linked in the initial post of this thread.
Is that a problem? Does flashing the image not replace kernel? Do I regulate kernel version in some other way?
 
Last edited:

DzbanCban

Member
Sep 18, 2021
6
4
Central Europe
no, system info says that kernel version is U3BUH3. I flashed the image that was linked in the initial post of this thread.
Wait, does flashing the image not replace kernel? Do I regulate kernel version in some other way?

Try to find the "3BUF3" for your SM-T500 (make sure for it to be your region, for example I have the European model, so I chose the EUX one), flash it and then do the LineageOS install procedure again, Wi-Fi works for me fine done that way.

And I think flashing the image doesn't replace the original kernel, however I ain't 100% sure. Maybe someone else can answer that haha.

Edit: I forgot to add this, after flashing the 3BUF3 firmware, make sure to lock the bootloader, go through the initial setup and unlock it again, otherwise you won't be able to flash TWRP and vbmeta_disabled_R.
 
FINALY!!!

after 4 days i did get Magisk root to work! after all vague explanations.

FLASH AB with magisk "etc, etc"

here comes the part how it will work.to fix boot loop with a message about it not being offical Samsung software custom binaries are installed
FLASH vbmeta_disabled_R.tar in userdata. the tab will say no operating system installed would you like to factory reset.
i rebooted in to download mode without factory reset.

then i did following.
in ODIN flash
AP"magisk_patched file"
BL-"stock" CSC"
USER_DAT:"vbmeta_disabled_R.tar"

on the setup, i clicked 4 times outside of the setup window for setting upp with QR code.
kumped back and forth from accesebility and country, clicked a coupple of more times outside of the setup window for setting upp with QR code

did this a few times untill i dident get the restart optionand got straight in to the wifi setup etc ect installed magisk magisk rebooted all works
 

lewmur

Senior Member
Apr 30, 2011
1,922
415
FINALY!!!

after 4 days i did get Magisk root to work! after all vague explanations.

FLASH AB with magisk "etc, etc"

here comes the part how it will work.to fix boot loop with a message about it not being offical Samsung software custom binaries are installed
FLASH vbmeta_disabled_R.tar in userdata. the tab will say no operating system installed would you like to factory reset.
i rebooted in to download mode without factory reset.

then i did following.
in ODIN flash
AP"magisk_patched file"
BL-"stock" CSC"
USER_DAT:"vbmeta_disabled_R.tar"

on the setup, i clicked 4 times outside of the setup window for setting upp with QR code.
kumped back and forth from accesebility and country, clicked a coupple of more times outside of the setup window for setting upp with QR code

did this a few times untill i dident get the restart optionand got straight in to the wifi setup etc ect installed magisk magisk rebooted all works
Why didn't you factory reset after flashing vbmeta_disable?
 

DJ_BARO

Senior Member
Sep 9, 2014
108
28
Mainz
Great rom, altough, i got a few questions:

I installed the rom but the orientation doesnt work, it stays at portrait mode.

Also has somebody tested if GSI Roms are working on the device? i didnt manage to install one.
 

PHONE1000

Member
Mar 28, 2021
36
5
Hi there. I have the smt500. My region is Europe and the firmware version of the tablet is T500XXU3BUH3. Do i have to update to any other version or i can just install the rom? Is there any bug or somthing that i have to take consideration of (besides the knox and the rom instructions) before installing the rom??
Thanks.
 

PHONE1000

Member
Mar 28, 2021
36
5
No problem man, honestly when I was changing ROMs from stock to LOS, I thought dev wouldn't abandon project after just 3 updates and no response from our feedback.
We will see but i think that this device has no future because noone bought it so releasing new builds for a few people is a bit akward. Ohh i have a question. Can i downgrade the tablet to a10 using a stock firmware for my region?? I remember doing that to my s3 neo 2 years ago and i think that it can be done here too. For example i want to downgrade the tablet to this version https://samfrew.com/download/Galaxy__Tab__A7__-Wi-Fi-__/flwt/EUX/T500XXU1ATH6/T500OXM1ATH6/ can i ? What do you think? And what do you mean by saying '' consatnt freezing with video playback''?
 
Last edited:

testman42

Member
Jul 13, 2021
6
4
Hi there. I have the smt500. My region is Europe and the firmware version of the tablet is T500XXU3BUH3. Do i have to update to any other version or i can just install the rom? Is there any bug or somthing that i have to take consideration of (besides the knox and the rom instructions) before installing the rom??
Thanks.
no, exactly the opposite, you have to downgrade to 3BUF3
I did install this ROM over UH3, which resulted in WiFi and gyro not working, and possibly other issues. See my previous posts in this thread.
I did what DzbanCban suggested above and now it works.
 
Last edited:

PHONE1000

Member
Mar 28, 2021
36
5
no, exactly the opposite, you have to downgrade to 3BUF3
I did install this ROM over UH3, which resulted in WiFi and gyro not working, and possibly other issues. See my previous posts in this thread.
I did what DzbanCban suggested above and now it works.
ok ok thanks a lot. Maybe do you have an answer on what i asked above?? And do you also have the problem of freezing with video playback?
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    I had the same issue. The solution that worked for me is:
    1. Go to developer options, find something like "Disable A2DP offload", turn it on and restart your device.
    2. After the restart head back to settings, head to Phh Treble settings, then misc and enable "Force headphone switch" and "Force-disable A2DP offload", restart your device again and voilà! 😁
    you are a life saver !
  • 18
    Update 9:46am EST July 15 2021: new builds of TWRP and LineageOS with TWRP touch fixed and LOS w/ space for Gapps is now live.

    WARNING: USE AT YOUR OWN RISK.

    I have successfully ported TWRP and Lineage OS 18.1 to the Samsung Galaxy Tab A7 10.4 (2020), aka SM-T500. This is my first time porting TWRP or LOS, so there may be issues unknown about at this time. Thus far, the only known issue is that the touchscreen in TWRP does not work. This can be worked around by using a USB mouse and/or accessing the device via ADB.

    Here are the steps to follow:
    1. Update your device to the latest stock ROM (as of this writing) either using the built-in system updater or via Odin. You want the build that ends with "3BUF3".
    2. Unlock device bootloader using instructions from other threads. This will wipe your device.
    3. Boot into download mode and flash "vbmeta_disabled_R.tar" via Odin in the "Userdata" slot to disable verified boot. This will wipe your device again.
    4. Boot device back into download mode and flash TWRP via Odin in the "AP" slot. If you boot up into the stock ROM rather than booting directly back into download mode then go through the initial setup process of the stock ROM and enable developer tools and ensure OEM Unlocking is still enabled (VaultKeeper can possibly undo OEM Unlocking if you get to the ROM but don't go into Developer Tools and view OEM Unlocking is enabled, so make sure to do this).
    5. Boot device into TWRP (recovery mode) and format (not wipe) your data partition. Then reboot back into TWRP.
    6. Push LineageOS (super.new.ext4.img) to device. Ideally push it to an SD card formatted with ExFat or EXT2/3/4 (FAT/FAT16/FAT32/VFAT won't work due to file-size limitations).
    7. Install LineageOS image to "Super" partition. Make sure to select "Install from Image" in order to show .img files in the install selector screen.
    8. (Optional) Push NikGapps Omni to your device and install the zip. Make sure you include a "nikgapps.config" file in your "/tmp" folder that is configured to install to "system" rather than "product" or "default".
    9. Reboot to system. You should now be in LOS with Gapps.
    10. (Optional, but recommended): Install Magisk via TWRP
    11. (Optional, but recommended): Run fix script to fix brightness slider not working and to make Magisk work. If you didn't install Magisk but only want the brightness fix, just enter "n" when prompted in the script. To run the script:
      1. NOTE: Script has .txt file extension to allow hosting on AFH. Remove that so it's just .sh to match the instructions below.
      2. Download and push to device when booted into TWRP
        1. adb push sm-t500_fixes.sh /tmp
      3. Enter an adb shell
        1. adb shell
      4. Change directories and set permissions
        1. cd /tmp
        2. chmod +x /tmp/sm-t500_fixes.sh
      5. Run script
        1. /tmp/sm-t500_fixes.sh

    Tips:
    • If you are not seeing all of your storage space in the OS on the internal flash, boot to TWRP and format data.
    • Flash TWRP via "AP" slot and flash VBMeta_Disabler via "Userdata" slot in Odin.
    • Flash LineageOS as an Image, not as a Zip.
    • For Gapps, use the latest NikGapps for ARM64 and Android 11/R.
    • For Gapps, make sure you install to the System partition and not Product. To do this you need to slightly modify a nikgapps.config file. Instructions on that can be found on the NikGapps site.

    Downloads:
    Known Issues:
    • OS-encrypted storage (Internal Data) not able to be decrypted in TWRP.
    • Brightness controls don't work: Fixed via "sm-t500_fixes.sh script.
    • TWRP touch screen doesn't work (use USB keyboard or adb). Should be fixed with TWRP Beta 3.
    • TWRP formatting external SD card may hardbrick device. Do not do this! Fixed with TWRP Beta 2.

    Source (device tree for TWRP from my Github): https://github.com/agreenbhm/android_device_samsung_gta4lwifi
    Source (kernel sources from Samsung): https://opensource.samsung.com/uploadSearch?searchValue=Sm-t500#
    7
    Good news, my tablet should be back on Tuesday and I will be looking at continuing my dev work then.
    3
    I have successfully ported TWRP and Lineage OS 18.1 to the Samsung Galaxy Tab A7 10.4 (2020), aka SM-T500. This is my first time porting TWRP or LOS, so there may be issues unknown about at this time. Thus far, the only known issue is that the touchscreen in TWRP does not work. This can be worked around by using a USB mouse and/or accessing the device via ADB.

    Here are the rough steps to follow:
    1. Unlock device bootloader using instructions from other threads.
    2. Patch stock ROM (AP) using Magisk, then flash rooted ROM. Will likely need to wipe device after this.
    3. Boot into rooted ROM and ensure "OEM Unlocking" is still enabled in "Developer Tools".
    4. Boot back into download mode and flash "vbmeta_disabled_R.tar" to disable verified boot.
    5. Boot device back into rooted stock ROM to ensure things are still functional (may require a device wipe at this step).
    6. Boot device into download mode and use ODIN to flash TWRP recovery.tar file via "AP" slot.
    7. Boot device into TWRP to verify functionality (hold Vol-Up + Power during boot).
    8. Access TWRP via adb using "adb shell" or with USB mouse (touch functionality currently not working).
    9. Format data partition on device.
      • Via ADB shell: twrp format data
      • Via USB mouse: Wipe -> Advanced -> Format Data
    10. Boot device into download mode.
      • Via ADB shell: twrp reboot download
      • Via USB mouse: Reboot -> Download
    11. Flash LineageOS tar file via ODIN using the "AP" slot.
    12. If device boots into TWRP after flashing LineageOS, use USB mouse to select: Reboot -> System
    13. Device should boot and stall for ~1m at the Samsung logo screen with red text below, then should go blank and then display LineageOS boot image.

    Downloads:
    Great news!! But I think you need to post it in the ROMs, Kernels, Recover thread.
    3
    Any new release of twrp
    I made a new build yesterday however I can't test it yet since my device is not back to me yet. If you want a copy to try dm me and I will share it. But be warned, I don't even know if it boots (though you could always reflash the old one if that's the case). The goal of the new build was to fix the SD card bug and make the touchscreen work.
    2
    Just tested your Beta2 of twrp (something that I usually don't do) and touch is working. MTP is not working; as I have a "working" (no decryption) twrp from quite some time if you share your source I may can help you (if you're interested).
    I have no intention on sharing builds or getting too much involved here on xda.. I own this device from a week before lockdown ended, I've managed to make a "working"ish twrp-3.5.1 and lineage-17.1 recovery (with fastbootd). Then I've started again to work so I've dropped the project to port LineageOS.. but if you're willing to share your source I may can help iron some bugs when I have time.
    Didn't test your Lineage build (maybe I will), I still have to update to official 11 firmware.
    Thanks for the reply. The sources can be found on the Github repo I made, which is here: https://github.com/agreenbhm/android_device_samsung_gta4lwifi.

    My Lineage build consists of the 18.1 Lineage GSI as the system partition along with stock vendor, odm, and product partitions within the super image.