yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] retiredtab:
I tried compiling 17.1 on the SM-T350 and while it compiles, the build is stuck at the boot animation forever.

---------- Post added at 01:04 PM ---------- Previous post was at 12:59 PM ----------

Try this build at your own risk. It's likely to have bugs and is experimental. It boots and seems to work fine on my SM-T350.

BACKUP YOUR FILES and have a copy of your working image BEFORE trying my build.

This is a 16.0 build with the latest Android July 5 security patches. Note, this kernel version is still the old 3.10.108 which hasn't been updated in almost 2 years (no longer supported by Linux).

I used the roomservice.xml file at

https://github.com/iesous-kurios/gt58wifi_roomservice.xml/blob/master/roomservice.xml

You can download the file at

https://www.androidfilehost.com/?w=files&flid=315154

The sha256sum is

18269d5491ba5bd7f19e0b8ff3bdc859e058dccd2f8b83841bb8c33e3ac22085 lineage-16.0-20200712-UNOFFICIAL-gt58wifi.zip
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] retiredtab:
Lineageos UNOFFICIAL overlock to 1.6Ghz August 5 patches

This build is overclocked to 1.6Ghz. Normal CPU is 1.2Ghz. You may not see any real world increases in performance. You will/may experience shorter battery life, higher CPU temperatures. BACKUP YOUR DATA and use ROM at your own risk.

I tested this build briefly and it seems to work fine on my tablet. I used an overclocked version of the July 5 patches, but never posted because I wanted to use it for a month myself.

Files are at

https://androidfilehost.com/?w=files&flid=315154

Here is .repo/local_manifests/roomservice.xml file. Just rename it to roomservice.xml if you want to build it yourself.
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] Shubhnil:
Can I use it in Sm T355Y?
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] lividhen99:
Maybe. Just flash your stock boot image after flashing the ROM. And mobile data probably won't work.
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] Youngei:
Will this ROM works for my SM-p355y?
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] lividhen99:
Ooh, wait, sorry, read that wrong. Ummmm, maybe? Look at the last post on the previous page. But data/s pen or whatever it has probably won't work.
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] Youngei:
I might try using a different ROM, cause I need the tab to be functioning, it's for work purpose, mainly need a ROM that is debloated and smoother compare to stock ROM, I already magisk rooted the tab and with trwp installed, any custom ROM suggestions?
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] lividhen99:
I don't think the source for that device was released, so we can't build a rom specifically for it. What you can do is get either a root explorer like mixplorer, or an app, and debloat it yourself.
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] Youngei:
So far this is the closest I can find on XDA,

https://xdaforums.com/galaxy-tab-a/development/rom-galaxy-tab-series-t3514996

This ROM supported sm-p355 so I may try using this one.
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] Rahul.raj:
Hi - Any luck?
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] @heshan:
Hello is this still working. I am just a beginner on custom roms. I haven’t flashed any. I want a stable Rom for my tablet Sm T350 Wifi only samsung tab. Please help me find a good ROM wihout big issues. Is this Rom good , are their any big bugs like sound not working?? Or is there any other better rom??? My tablet is on Android 7.1.1 & samsung experience version 8.5. Please help me
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] iesous-kurios:
So far 99 percent of my changes are local on my laptop. Will only push changes to github if it fixes something.

Have you checked out the pull requests tab? There is usually a history there of file changes and why they did it.

Also on the 'commits' section, shows all the requests that were approved and why they made those changes.
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] retiredtab:
Virsys responded in the SM-T550 thread ...

/system/vendor/etc, that's right. Maybe you have to set AUDIO_USE_LL_AS_PRIMARY_OUTPUT := true in your BoardConfig as well. But from that point you should test your builds with different audio routes.
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] TheBestKmanEver:
Enjoying the rom so far. Rins buttery smooth. No bluetooth kinda sucks because of my bluetooth speaker and i dont care that much about the speajer working but it would be nice
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] iesous-kurios:
There's more than one boardconfig.mk file, wonder if he'd specify?

I'm guessing either the device/samsung/gt58wifi/boardconfig.mk or the one in vendor/Samsung/gt58wifi
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] iesous-kurios:
Yeah, I feel the same way. Working Bluetooth is main goal for me, for my Bluetooth speaker.

It boots up very fast and runs smoothly otherwise.
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] iesous-kurios:
double post
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] retiredtab:
He didn't say and I didn't know there was more than one. I have seen that filename before on github.

---------- Post added at 12:32 AM ---------- Previous post was at 12:27 AM ----------

I have a feeling both Bluetooth and the external speaker will have similar fixes.

I still think the SM-T550 just has all its definition files correctly defined in the right areas and the SM-T350 is missing similar statements.

I have a number of ideas left to try and research over the next few days. Unfortunately, I just don't have the hardware and/or bandwidth to download and compile multiple gigabytes of github code. I'm on a lowly 5Mbps Internet connection and my PC is a Core2Duo E84 with 2GB DRAM.

So my ideas are left to what I can do in twrp to manipulate /system files.
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] iesous-kurios:
I booted up my tablet and started running a logcat, then opened up a YouTube video, then plugged in headphones, then unplugged them, then repeated while lowering and raising volume. Saved the logcat and will look through it tomorrow for some hopeful insight into what it is trying to do and where it is failing.
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] retiredtab:
So more SM-T550 history with 14.1 and 15.1.

At

https://xdaforums.com/galaxy-tab-a/development/rom-lineageos-14-1-sm-t550-sm-t555-t3779257/page2

virsys says on May 30, 2018 that external audio is NOT working.

On June 6th, virsys reports that external audio is working.

On github, Virsys' changes are dated June 7, 2018 at

https://github.com/Galaxy-MSM8916/android_device_samsung_gt510wifi/commits/lineage-15.1

So his fixes for external audio for the SM-T550 have to be the 4 submitted patches. Note those patches also include bluetooth and the camera. So all 3 non working things (bluetooth, external audio and camera) on the SM-T350 might be fixed by looking at those June 7 SM-T550 patches.

I feel we are close and looking in the right areas, but just missing one key config or definition?

---------- Post added at 12:43 AM ---------- Previous post was at 12:40 AM ----------

I did something similar 3 days ago. I have 2 SM-T350s.

One running 16.0 and the other stock Samsung 7.x.

I did a adb logcat and tried to look for any obvious error messages or differences. I couldn't spot anything obvious, but then again I'm very new to this and the answer could be staring at me in the face, but I just don't know it.
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] retiredtab:
Looks like the OSS patches are required for 16.0 as per virsys

https://xdaforums.com/showpost.php?p=78018472&postcount=97

Oct 30, 2018

"The old Samsung binaries for sound && video decoding did not work anymore, even though I tried to shim that. That meant I had to switch to OSS to build the audio and video hardware abstraction layer. I'm pretty confident to tell you that everything is working so far except for sound from the internal speakers. Bluetooth audio and headsets work fine. I know that's a common problem on Samsung Galaxy Tab A tablets without pre-built audio, but with some mixer path adjusting and audio policy changes I can make that work soon (hopefully). "

https://xdaforums.com/showpost.php?p=78170903&postcount=9

Nov 15, 2018

"Audio is working now, I will upload a new build tomorrow"

So it looks like the OSS patches are required.

https://github.com/VirsysElectron/android_vendor_samsung_gt510wifi/commits/lineage-16.0
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] iesous-kurios:
I see he added a dependency "media_profiles_v1_0.XML" but I can't find that file in his vendor/etc folder, or anywhere else really.

Maybe that file is local on his build machine and not uploaded yet?

Added all other dependencies and corresponding files that I could find which related to sound, Bluetooth, or camera. Building now, but failed because of the missing file, so I removed that dependency until I can find or make that file.

Hoping I wake up to a build with something fixed on it.
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] retiredtab:
I found "media_profiles_v1_0.XML" in his SM-T550 build in

/system/vendor/etc

I uploaded the file.
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] iesous-kurios:
Thanks.

I went ahead and added the dependency again and placed it in the appropriate folder, but my new build already started, so I'm not sure it will be included. Going to go ahead and let this build complete and test it out, then clear my build directory and try again with this file included.
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] iesous-kurios:
I accidentally messed up the display setting but I think I like it like this lol.

Its zoomed in, but videos and such still play the same way.
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] retiredtab:
Same way in that external audio still doesn't work? Same for camera and bluetooth?

Would you be willing to upload your changes to github, even if they don't work, so I can see if anything obvious is missing?

As I mentioned, I'm new to github, but maybe another set of eyes might help?
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] iesous-kurios:
Yeah, I feel I'm at the point now where that will be a good idea to keep track of what is changed and the outcome of those changes.

Will try to work on that tonight when kiddos go to bed.
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] iesous-kurios:
Here are my local changes to the device_samsung_gt58wifi files:

https://github.com/jfuginay/android_device_samsung_gt58wifi
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] iesous-kurios:
Local changes made to vendor_samsung_gt58wifi files:

https://github.com/jfuginay/android_vendor_samsung_gt58wifi
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] iesous-kurios:
So far it's already been helpful. Found a couple spots where I forgot to change gt510 to gt58, and some extra files and lines of code not needed anymore.

Just resynced with my changes on github and will start new build when that is done syncing.
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] retiredtab:
I will start looking through the github commits later on tonight.

I find it useful, especially when troubleshooting , to write down everything I have tried and its outcome. That way, I don't lose track or get confused. It also helps when I have to explain it to someone else if I need help because it forces me to logically layout all the steps that I took.

I feel we are close. I think it is just a matter of laying out the files in the correct structure/format to mirror what has been done with the SM-T550 virsys build with the possibility of one or two tweaks that is specific to the SM-T350.
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] retiredtab:
It looks like most of the changes on gitub is reorganizing, tidying up and making the code as close to virsys as possible wrt to file structure and positioning.

Good work.

When this is eventually solved, I wonder if the gt510 and gt58 can share common code to make maintenance and bug fixes easier in the future?

I wonder if there are debug flags that you can enable during build compilation to output more verbose messages via logcat wrt to the audio path?
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] retiredtab:
So I downloaded a whole bunch of "device" info apps from the Google plays store and found that "my device" app by 3k developers shows in the "features" menu that "audio low-latency" is "not supported" in the PIE build or in the stock 7.1 Samsung rom.

So potentially, the above statement by virsys made NOT be needed if the "my device" app is properly reporting the findings.
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] retiredtab:
Answering my own question. See

https://source.android.com/devices/audio

It shows the layers of abstraction.

I suspect we have to define the HAL part correctly.

---------- Post added at 06:40 PM ---------- Previous post was at 06:36 PM ----------

Regarding the camera not working, I see this commit at gerrit (Mar 7, 2019)

https://review.lineageos.org/c/LineageOS/android_device_cyanogen_msm8916-common/+/242396

msm8916-common: Restart cameraserver after boot completed

For some reason front camera gets magically broken since

mid-November, and this is a workaround. The real problem

is in somewhere framework side.

I also noticed the smartcover properly wakes the tablet, but does not put it to sleep.
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] iesous-kurios:
My last few test builds have cause boot loops when flashed, that's why I haven't posted any updates.

Pretty hopeful about the build compiling now.

Tried minimizing changes to those centralized around sound/Bluetooth/camera. Added new paths as found in lineage 16 builds but used the info for audio mixer files from last known working sound configuration.

So in short, keeping in line with changes to where files are stored but keeping content of those files the same as last known working audio version of gt58wifi
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] retiredtab:
Thanks for keeping us in the loop on this. <pun intended>

The only thing I can do to help right now is to read other threads that have similar problems or similar architectures to look for more clues.
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] Niropa:
wow! developments really taken off since the tabs initial release. I remember debating on looking into porting a rom over to our device months ago but it looked like a lost cause. I might have to change my mind. great work [MENTION=1984568]Jfuginay[/MENTION] and everybody else involved :)

EDIT: i should point out I know there was already tons of development on the rest of the tab a series. I'm talking the t350 specifically.
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] retiredtab:
Wrt to the camera, I installed magisk and and a logcat viewer today.

When looking through the logcat, I see an Error

"FileSource

Failed to open file /product/media/audio/ui/camera_click.ogg.

No such file or directory"

On the working T550 ROM, that file camera_click.ogg is in

/system/media/audio/ui

So for camera, it looks like the file definitions and locations are pointing to the wrong location?

The ogg files on the SM-T350 are in

/system/media/audio/ui

I'll try some tests later with bluetooth and sound to see if there is anything obvious with logcat like it was with camera.

PS. This is using the last build that was posted on XDA.
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] retiredtab:
For bluetooth as soon as I enable it, I see the following in logcat

bt_btif_config

Config is missing adapter section
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] retiredtab:
Looks like virsys updated or sync his local changes to github

https://github.com/VirsysElectron/android_device_samsung_gt510wifi/commits/lineage-16.0

These changes were not there when I looked last time. Some changes are audio fixes and compatibility with 16.0.

Personally, I would leave out the sepolicy changes until the bootloops are resolved. I'm assuming virsys's changes are all incorporated in the latest test ROM image?
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] iesous-kurios:
My bootloops started before the sepolicy changes, I think I got a little carried away with adopting code from other sources by dabbling in the qcom/common area. Lineage OS goes up to 15.1, so I created a 16.0 branch that was the same code wise but the builds would fail. After some research, I deleted the 'power' folder and the build would complete, and these would also boot up when flashed.

In an attempt to fix the sound/bluetooth/camera issue I messed around with the qcom code and since then the boot loops started. I had forgotten I messed with that code so I reverted it back to the same as LineageOS 15.1 and removed the power folder from git so I don't need to worry about deleting the folder after every repo sync.

I found some lines of code that seem like they might be the reason why sound was not working, such as

https://github.com/jfuginay/android...mmit/f83af487fd658e14c366d03e6aff5202c8f7903e

and

https://github.com/jfuginay/android...mmit/6a8c4bb527004b7841dfb404d2623d0378f7f3e7

Which falls in line with recent changes made by virsys in the gt510

It's compiling now, so I'm hoping to wake up to a build with at least working speaker on it.

Removed some superfluous bluetooth code too so I'm hoping that is fixed too. We'll see. :D
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] Alberhasky:
Will this work with SM-T357T ?
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] nubianprince:
I've been working with virsys a few months ago to try and figure out the issues with the audio to speaker but we both became busy, the only build that I did that had the speakers working was evervolv nougat, I have been trying to compare the evervolv vendor files as well as the device msm8916-common for missing files/configurations.

Right now I am working on Pie version of crDroid, I will try builds from my device tree as well as virsys and see what happens
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] retiredtab:
LTE is unlikely to work since the T350 only has wifi.

In addition, camera, bluetooth and internal speaker doesn't work right now.

If you have knowledge of odin/heimdall and twrp, you can try this ROM on your T357T. It might boot, but without the above mentioned items.

---------- Post added at 04:45 PM ---------- Previous post was at 04:40 PM ----------

I can only find evervolv marshmallow with working audio on xda?

https://xdaforums.com/galaxy-tab-a/development/rom-evervolv-galaxy-tab-sm-t350-t3411150

---------- Post added at 04:59 PM ---------- Previous post was at 04:45 PM ----------

@nubianprince, I see your github

https://github.com/Nubianprince/gt58wifi_rr

I see you are logcatting the audio messages.

I think it would help if we could see some logcat messages from a working T550 with audio for comparison.
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] nubianprince:
[MENTION=8726605]retiredtab[/MENTION] I didn't upload this build to XDA, I actually did the evervolv nougat build as a test to see if audio worked in the nougat build, I never really thought of uploading it.

I am actually building evervolv Oreo, but the first build for that did not boot.

My goal is really to find out if there is something that the guys at evervolv are doing different that makes speaker audio work.

---------- Post added at 12:06 AM ---------- Previous post was at 12:00 AM ----------

[/COLOR [MENTION=8726605]retiredtab[/MENTION] that resurrection remix git with logcats is what I was using with virus a few months ago.

Something changed from MM to O that probably broke something.

I don't have experience with kernels but something could be missing there too
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] retiredtab:
[MENTION=6865385]nubianprince[/MENTION], I'm happy to test any builds that you might have. I have a test T350 that I can easily clean flash.

If you upload your evervolv nougat with working audio, I can download it and test it.

As for Oero, Lineageos is not doing any more development on Nougat and Oreo and concentrating on Pie. You may want to work on Pie as well?

I'm happy to help by looking at some github changes and make suggestions on possibly where to look.

---------- Post added at 05:54 PM ---------- Previous post was at 05:15 PM ----------

I see recent commits going up for Evervolv Pie at

https://github.com/Evervolv/android_device_samsung_gt58wifi/commits/p-9.0

It may yield some clues?
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] nubianprince:
For anyone wanting to try the evervolv nougat build https://drive.google.com/open?id=1HhUHQJ_QoBTPK45eZQn05wbafBq3cYfm

---------- Post added at 01:28 AM ---------- Previous post was at 12:57 AM ----------

This is a good find, last time I looked at this device tree it was empty, I will definitely give this a go and report back.
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] retiredtab:
Downloaded and cleaned flash using TWRP 3.2.3. Wiped everything (cache, dalvik, data, system) including format data.

It boots, BUT I keep getting a popup menu

"bluetooth share keeps stopping"

It keeps popping up over and over and no amount of "close this app" will get rid of it. According to settings, bluetooth is disabled.

Because it pops up over and over, I can't touch anywhere on the screen including a quick test of the sound. So right now, I don't know if your build works with speakers or not?

Do you have another build?
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] nubianprince:
[MENTION=8726605]retiredtab[/MENTION] I just flashed it and audio through speakers does work, you may have to boot to recovery and mount system and delete the bluetooth and bluetoothmidiservice apk to get past the errors.

Right now I am going to see if I can successfully build Pie for evervolv tonight
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] retiredtab:
I did as you suggested and deleted those apks. However, on my T350, I get no audio through the speaker. I believe you when you say you get audio. I just can't replicate it on mine.

I downloaded evervolv 6 and I do get audio through the speaker through the same T350.
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] retiredtab:
elginsk8r put up a build for SM-T350 with Pie.

https://xdaforums.com/galaxy-tab-a/development/rom-evervolv-galaxy-tab-sm-t350-t3411150

Downloading as I write this.

Also posted at

http://evervolv.com/devices/gt58wifi

---------- Post added at 03:21 PM ---------- Previous post was at 03:06 PM ----------

External Sound, bluetooth and camera WORKS on Evervolv 9!!

Going to test other functions and report back later.
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] alin919:
I can not install twrp 323 in my tablet it shows file is to big. Any tricks , I am on stock root 7.1.1
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] Xdevillived666:
which magisk version should I use ?
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] retiredtab:
I got TWRP 3.2.3 from this thread

https://xdaforums.com/galaxy-tab-a/development/resurrectionremix-o-v6-2-1-20181202-t3874768

md5 is fc2e8e2209db76676ede758dd00cd330

It is 12255248 bytes

---------- Post added at 11:36 AM ---------- Previous post was at 11:36 AM ----------

I used 18.1 and it worked fine.
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] iesous-kurios:
Yeah, should be safe to keep upgrading to latest stable build of magisk.
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] Xdevillived666:
Thanks. 3.2.1 works fine, too.
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] vin_001:
Twrp isnt working at all for me... I just get a black screen on my t350.

The only version I got working was 3.1.1.1 for the t355 though.... please help me!!!
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] pdz410:
Me too!
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] retiredtab:
For those who can't get TWRP working, try 3.2.3 and check the download size and its md5 to make sure you are downloading a corrupt file.