yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] testman42:
OK, did that, and now I am stuck in bootloop.

There is no lineageos loading animation any more, just black screen and then it reboots.

I followed instructions precisely

The image that I tried to flash was lineage-19.1-20220410-UNOFFICIAL-arm64_bvS.img (1,9 GB)

Any ideas or help would be appreciated.
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] mystifuzz:
Try following this tutorial: https://xdaforums.com/t/guide-sm-t5...flash-lineageos-or-any-other-gsi-rom.4378017/ - always has worked for me

Also, I'd recommend you to flash a VNDKLITE variant (bvS_VNDKLITE if I'm not mistaken) if you want to flash MinMicroG or the brightness fix.
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] Tirofog:
Need some help here. After installing VBMeta Disabler then what, boot to system? How to reboot to download mode again? How to boot to TWRP after flashing Lineage?
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] mazafaza69:
Hi, just wanna get some help if possible. As i was playin with the rom I got to the point where its "an error has occured while updating the device sw". This looks like a brick. Last thing i did was try to put oem firmware on it, here's the log

<ID:0/003> Firmware update start..

<ID:0/003> NAND Write Start!!

<ID:0/003> SingleDownload.

<ID:0/003> abl.elf

<ID:0/003> FAIL! (Auth)

<ID:0/003>

<ID:0/003> Complete(Write) operation failed.

<OSM> All threads completed. (succeed 0 / failed 1)

My is guess is that the "abl" means im putting a non android 12 on the device? Since Linos 19 is a12 is there any way for me to roll back ,unbrick? Or do I wait for a12 version of samsung firmware to try again because its now stuck at a12. Either way flashing different oem fw doesnt seem to change much.
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] Kudalufi:
Same way as before. Power off, hold down up+down volume, plug in USB cable
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] Tirofog:
Thanks , but how to power off from download mode??
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] mystifuzz:
Hold power, vol up and down. Once the screen goes black, release the volume buttons (keep holding only the power button).
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] Tirofog:
Thanks, but this reboots to system. Really frustrating that there are no clear and concise instructions in the OP.
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] mystifuzz:
Try to do the same, but instead hold power + vol up when it goes black. Make sure it is connected to a computer. Should work!
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] Tirofog:
Nope, that boots recovery.
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] mystifuzz:
Wait, what are you trying to do?
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] Kudalufi:
I have always had a tough time getting the vulcan nerve pinch methods (hold down blah while doing moreblah) to work. After flashing (once you are in LOS) it will be worse. I can not get the power+up to boot into recovery AT ALL now.

I don't honestly remember how I did mine. It was a couple weeks ago now. But here are some tips:

adb reboot download should work even when the tablet is already in download mode

If you boot back into system, should be able to power off and use nerve pinch (hold up+down and connect)

Note: After flinal fashing I lost this ability, my tablet doesn't go into powered down charging mode properly any more. So I have to hold up+down, connect USB,wait for initial charging icon, then while still holding up+down also press & hold power to force reset.

If you boot back into system, you can enable Advanced Restart, which will let you select what mode to restart in.

I use methods 1 and 3 almost exclusively now.
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] Tirofog:
Adb won't work in download mode. I am merely trying to reboot download mode after flashing VBMeta disabler so I can then install TWRP via Odin as per the OP. Unfortunately the OP does not state what exactly should be done directly after flashing the disabler, apart from 'reboot into download mode' but without any instructions.
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] lewmur:
After flashing VB you have to reboot to system, connect to wifi, skip the rest of setup and re-enable Dev mode. And then you can reboot to download and flash TWRP.
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] Tirofog:
Thanks for all the help.. finally sussed it 🤕 what worked for me:

INSTRUCTIONS

1. Boot to download mode, flash VB disabler to userdata slot in Odin.

2. Exit Odin, hold power and volume down until black screen, release the buttons and quickly hold power and volume up.

3. After a couple of splash screen loops, release buttons and you should now be in stock recovery mode.

4. Factory reset and power off.

5. Now you can reboot to download and flash TWRP to AP slot in Odin.

6. Repeat 2 and 3, you should now be in TWRP.

I had to take an extra blood pressure tablet at one stage to get me through, even though I'm 20 years younger than @lewmur 😅 fair play to you for keeping up with all this stuff!
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] lewmur:
I think the factory reset must be the important part. If you let it reboot by itself after VB flash, it will start to boot and then reboot to a modified recovery with only exit and factory reset as options. Then after reset, it will boot to system and at that point, you need to re-enable Dev mode. Your way seems to shorten the process but require a little more "fast fingers". LOL
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] Tirofog:
I finally managed to get the rom booted but no wifi. As suggested by @agreenbhm I updated to the latest gsi but still have the same issue. I'm thinking maybe it's because I was on the later firmware than the one in the OP.. running out of ideas and patience now.
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] lewmur:
LOL I ran out of patience with it some time ago. That's why running Ultimate R. I keep wait for someone who has everything running to tell us how they did it. Even the Dev admitted they aren't using it accept for developement. I'm glad #agreenbhm is working on it, but I'll wait awhile before trying it again.
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] lewmur:
What csc are you using? I believe that is what controls what wifi channels are used and I think XAR is what this ROM used.
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] Tirofog:
I'm EUX, had to install the regular Lineage GSI to get wifi. I tried a few different GSIs before, this time I couldn't remember the sequence for flashing which is why was so p****ed off 😫

All had the same freeze/lag issue, but credit to @Kudalufi, using the zram module makes for a big improvement. I've tried every which way to run the brightness script without success, but no big deal. Also flashed a different kernel to fix MTP.
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] lewmur:
I may well be mistaken, but I don't think flashing the GSI changes the CSC. I think you need to start from scratch and follow the instruction for installing GSI itself instead of this ROM. This ROM contains the XAR CSC and will replace the EUX. Regular GSI ROMs won't do that, but you have to jump through a lot of hoops to install one.

edit: Something just occurred to me. You might try using Odin to flash ONLY the stock CSC.
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] Tirofog:
That's what I did, flashed Andy Yan's lite build using the code at the bottom of the first post. So far so good after installing Magisk and the zram module. It would be nice, but I can live without the brightness slider.
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] lewmur:
Did you try running the fixbrightness.sh? The only way I was able to do was to run it just AFTER formatting data, while TWRP was able to access the unencrypted data partition.
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] Tirofog:
Yep, I did a data format both before and after running the script a couple of times, also as in post #161. It seemed to run successfully but didn't have any effect. Not a dealbreaker though, especially with the Extra dim and Night light QS tiles.
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] Hausemaster:
Don't rely on them entirely, as after 2 weeks, the edges of my lcd are a bit messed up, run this command after booting up to fix brightness from any terminal emulator app as su...

'echo 100 > /sys/class/backlight/panel0-backlight/brightness'

Extra dim works but it just applied a black overlay, and the display created a bunch of heat and are battery pretty hard
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] Tirofog:
So easy! Thought I tried this already via adb but did it now in Termux and.. voila, my slider is sliding 🙃 @Hausemaster, appreciate it..

This should be in the OP, it might save someone time messing around with data formats, pushing files, adb commands etc 🤷‍♂️

Now I can run this and the zram enable code at boot with Tasker. Or if Magisk is installed the scripts can be dropped into /data/adb/service.d/ to run at boot if I'm not mistaken.

Edit: place this in the above folder with permissions 0755 and reboot.
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] Hausemaster:
Nice, glad to know that it consistently works! And, I didn't find this workaround myself, I found this in the threads related to GSI flashing for this device, so, credits to them!
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] DeragazMihiwoku:
one question, is possible use stereo audio in landscape?.

in landscape the right chanel use the top speakers, and left chanel use the bottom speakers.

and i can't find how change it.
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] Hausemaster:
Go to

Settings>Phh Teble Settings>Samsung features and then enable "Enable stereo audio mode"
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] DeragazMihiwoku:
i tried this, but hasn't change.
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] Hausemaster:
Well I do have viper4android installed and I'm using this beats audio irs, maybe try that
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] DeragazMihiwoku:
i'm trying this, but i don't find how install magisk or use the app without this.

Edit: I installed the app/module, but I didn't find an option to change the audio channels.
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] Hausemaster:
It won't show it, obviously, you have to use the htc beats audio irs file, then enable convolver, there, select this file and a new option will be available as "Cross channel" set it to 25%

Edit: Enable legacy mode in settings of v4a app, otherwise this won't work, and I'm making the steps on how to do the above process, it's big so please allow me some time...
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] Hausemaster:
Steps

1) After installing V4A module, first open the app and press ok when it prompts you to install driver

2) It'll install the driver and will then reboot automatically

3) after reboot, open v4a app click on gear icon and enable 'legacy mode', after that go back and enable "Master limiter"

4) Download the file attached here and extract it using RAR app as anything other than that breaks the file, and also install a root browser from Play Store

5) Open your root browser and then copy the extracted file to "Android>data>com.pittvandewitt.viperfx>files>Kernel"

6) After doing so, open the V4A app, then enable "Convolver", then tap on it,

7) it'll expand the option, there you'll see "Impulse response" and it'll be blank,

8) tap on it and it'll show you the name of the file you copied earlier, tap on it to select it

9) after this, a new option named "Cross channel" will appear under "impulse response"

10) set the cross channel percentage to "100%" (it should look something like this after you followed these steps)

View attachment 5612343

After this, try playing audio in landscape it should work fine...

PS: Please post the end result I'm interested to know if it works for everyone...
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] DeragazMihiwoku:
Thx, but doesn't work. it has a weird result, the left channel is listened in all speakers.
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] DeragazMihiwoku:
Apparently, this is a known issue in treble proyect on all quad speaker Samsung.

Exist an open issue from 2019. So... Doesn't have a known solution.
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] Hausemaster:
Strange, all 4 of my speakers do work in landscape...
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] mystifuzz:
Same here (T500), they work properly without V4A.
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] Hausemaster:
Maybe it's based on the rom we use, I'm using pe12+...
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] mystifuzz:
Possibly. I'm running LOS 19.1 with April security patches 🤔
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] DeragazMihiwoku:
I was using the april update, now i'm using a may update, but the audio is the same.
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] GyuminLeo:
The WiFi doesn't work

BT works fine but can't connect to wifi

Is there a fix for this?

And screen rotation doesn't work.

My model is T505N korean version

The IMEI is Unknown. Is there a fix for this as well?
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] Hausemaster:
Strange, try a network settings reset, I'm not sure what is working and what isn't as I have the normal T505....

Also, did you flash ROM from different region that might be why your IMEI is blank...
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] GyuminLeo:
Will try network reset later

This device was shipped with KT and I changed it to KOO (No carrier) is that why the IMEI is blank?
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] GyuminLeo:
Tried network reset.. No luck

Still no screen rotation and sound at all.

Tried re-installing everything and nothing changed
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] karton555:
same here

mine is Europe version
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] karton555:
so did what you have suggested to me

no luck

wifi is still not working
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] Tirofog:
Same for me, what I found was wifi wouldn't work on the latest BVD stock firmware. I went back to the previous BVB version then flashed the GSI and the issue was fixed.
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] GyuminLeo:
So will this T505NKOU3BVB2 version work?

I am using a Korean model
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] Tirofog:
I can't say, but it worked on the T500. If you're on BVD then maybe try going back to BVB, nothing to lose.
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] GyuminLeo:
I was on BVC
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] GyuminLeo:
So I tried T505NKOU3BVB2 with the tutorial on page 1 and nothing changed.

strange
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] Tirofog:
That was quick! Just to be sure, flash BVB firmware in Odin, boot and set up device and make sure OEM locking is enabled. Then in Odin flash vbmeta and TWRP, followed by this rom. Boot into system and check.
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] GyuminLeo:
Yup did all that

After flashing the rom I booted into twrp and flashed fix_brightness.sh and formated data then booted into LOS
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] athakur141:
Hi I did all this and LineageOS booted succesfully, but wifi and sound do not work... If I try to enable wifi it doesn't work and just automatically turns off. And sound doesn't work.
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] Kudalufi:
@Tirofog Your brightness fix has the added benefit that it works immediately after boot (the supplied patch gets tacked onto a script that only runs the fix after 40 seconds of sleeps), but it appears to peg the brightness @ 100% after each boot. Maybe try:

echo $(cat /sys/devices/platform/soc/5e00000.qcom,mdss_mdp/backlight/panel0-backlight/brightness) > /sys/devices/platform/soc/5e00000.qcom,mdss_mdp/backlight/panel0-backlight/brightness

or

echo $(cat /sys/class/backlight/panel0-backlight/brightness) > /sys/class/backlight/panel0-backlight/brightness[CODE]

That might preserve brightness across boots.
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] Kudalufi:
Try flashing to stock BVB and then only installing the LOS GSI
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] Hausemaster:
It pegs it at full brightness because the command has the number 100 in it, you can lower this value to your liking and it'll apply the patch and automatically lower the brightenss to your preferred value...
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] Hausemaster:
Actually, does anyone know the directory in which phh-on-boot is located in?
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] GyuminLeo:
I did exactly that
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] athakur141:
Can someone help?
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] GyuminLeo:
Sorry I was at school couldn't read the comment correctly.

Tried it but I got a bootloop

Installed it from BVB stock firmware and when I'm booting it goes to a black screen and a click of the power button restarts the device

@Kudalufi
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] Kudalufi:
/system/bin/phh-on-boot.sh

Material Files is good for editing. It will offer to remount root read/write as required when you save (save, remount, retry)

There are two sleeps near the end of the script. If you are manualy editing, you might want to put the added echo statement before the first sleep 10 so you don't have to wait 40 seconds after boot for the fix to get applied each boot.

You did wipe data/cache/dalvik after, right?
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] GyuminLeo:
You mean in the stock Android recovery?
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] Kudalufi:
I'd still use TWRP.

What I would try is this (after verifying you are back on the right stock)

follow the OP's steps 1-4

instead of step 5 do the update instructions at the bottom to put in the GSI

if you intend to install magisk later then format data/cache/dalvik now and reboot, sometime later after installing magisk and Material Files, do the brightness fix manually as described earlier

if you don't intend to root, then go back and do the OP's step 6, but still remember to format data/dalvik/cache after

I was trying to point out that your way resets the brightness to some value (100 or something else) every boot and doesn't preserve what it was set to.

My way (the OP's way really) preserves what the brightness slider was at between boots. This way I can set the slider, reboot, and the brightness will remain where it was prior to the reboot.
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] Tirofog:
Strange, I don't have that issue, the sh script I attached runs at boot with Magisk as described in that post, brightness level remains after reboot.
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] GyuminLeo:
OH MY GOD you are a legend!!

Thanks!!

It finally works as intended

But there is no Gapps installed
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] Hausemaster:
You have to manually install GApps, as lineage os doesn't ship gapps by default, try open, nik or bit gapps
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] GyuminLeo:
Will flame gapps work?
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] Hausemaster:
Yes
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] Kudalufi:
Sounds like you installed a vanilla GSI, rather than one with gapps. Reports are that flame gapps does not work with Andy Yan's builds. I haven't tried myself as I use microG. You have two options:

Just use the right GSI. There are ones with gapps. I recommend https://sourceforge.net/projects/an...UNOFFICIAL-arm64_bgS-vndklite.img.xz/download

You can continue to use a vanilla build and install microG to have a replacement to some gapps services. You can use the Aurora store app for access to the Google stor apps and can install and use most any individual google app, though there are good non-google alternatives to most everything. But there are drawbacks. I'll post complete instructions if anyone is interested.

If you pick #1 then you should be able to just use twrp to dd in the new GSI (as per the OP's GSI instructions) then wipe dalvik and cache only, and then reboot. Don't think you need to wipe data. Do know that this will undo the brightness fix and any modules you've installed with magisk.

If you're going to use your tablet for real, then (if you haven't) I recommend getting the zram swap running as per instructions earlier in this thread.
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] Hausemaster:
Guys, I got all 4 speakers working by setting cross channel to 100% after following steps 1 to 9 please try it and report back, please!
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] Hausemaster:
Follow these in phh settings for Maximum chance for above fix to work!
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] GyuminLeo:
Is there any roms other than LOS?

Or is there non gsi rom? Like installing it with the zip file?

And is there a way to change the phone model? Some of my apps depend on models
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] Hausemaster:
Don't change models, you'll lose some options from phh settings that are essential
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] Kudalufi:
I have all four speakers working now. The only thing that doesn't work is that the left/right doesn't rotate when the screen rotates. Does your fix correct that?
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] Hausemaster:
I don't think so
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] GyuminLeo:
Then stock it is for me
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] Hausemaster:
Just out of curiosity, why does it do that though, did samsung add any service that watches for suspicious traces like magisk in our case?
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] Kudalufi:
The ROM isn't properly rooted. It has a back door to root for the PHH settings to use. It doesn't a appear to allow apps root access.

Magisk doesn't seem to cause a reboot by itself. At least not v23 that I use. There is a problem when you have Magisk Hide enabled. If you enable Magisk Hide AND then reboot with it enabled, then the device will continue to spontaneously reboot about 90 seconds after each boot. It will do this until you disable Magisk Hide again

If you want to use Magisk Hide, you have to turn it on, activate it for the app you want to use, use the app, then turn off Magisk Hide before you reboot the device.

Other than Magisk Hide, everything else about Magisk appears to work.
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] Hausemaster:
For me though, it rebooted constantly even at the setup wizard itself and I'm pretty sure that magisk hide doesn't enable itself automatically on first run of the system so maybe it's because I used the Canary zygisk for root...
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] MihirSahay:
Hey,Can someone help?My wifi isn't working on this build los 19.1 beta2.