yashsingh1/xdaforums huggingface dataset:
[Galaxy Tab 4 Original Android Development] verbage:
Wow, I have not been following Galaxy Tab 4 development for the last two years or so since the battery in my SM-T530NU died. But I had ordered a replacement battery a while back, and finally decided to install it this weekend. And so I checked in here, and saw this new LOS 17.1 ROM by @matteo0026--awesome, great way to breathe some new life into this old, but still functional, tablet! Thanks so much for your efforts, @matteo0026!!!
[Galaxy Tab 4 Original Android Development] matteo0026:
New build of LOS17.1 with 2021-06 security patches is online!

Changelog:

- June 2021 security patches

- Some little improvements (always check sources for more infos about)

- (and I'm not sure if the GPS fix speed has been improved, but I gave a try)
[Galaxy Tab 4 Original Android Development] dirk1024:
I wanna say big thanks for this rom and your work. Just installed the latest build and it works pretty well. My kids are using a T530 model as media player with kodi 18.9 installed. They are very happy with it! Again, thanx a lot to bring my old tablet back to life.
[Galaxy Tab 4 Original Android Development] Achsel:
Hello matteo0026, thanks to you and the other developers for your great work. I have installed the last lineage-17.1-20210613-UNOFFICIAL-matissewifi.zip together with the open_gapps-arm-10.0-pico-20210618.zip and Magisk-v23.0.zip on my SM-T530. Everything seems to work fine, else external keyboard, mouse and Ethernet adapter over the OTG mode. But when I put my China external sound card (SABRENT) with plugged wired earphones into the OTG adapter while playing music by the normal music player of LineageOS 17.1 the sound comes still out of the internal speakers and no sound goes to the earphones. On the rooted stock ROM with Android 4.4.2 and 5.0.2 the same external sound card works on the Galaxy Tab 4 and Galaxy S4 (Phone). Is this because of the removed AOA protocol (since Android 9) or because of the rooting by the Magisk.apk or because of perhaps wrong settings in the Developer Options? What are the correct settings in the Default USB Configuration for the headphones through USB, File Transfer or MIDI, and below Media, Enable or Disable USB Audio Routing? I tried several settings with no effect. Or is it necessary to order another hardware (DAC etc.). You wrote in the LineageOS 16.0 project on page 20: “The fix, that I've done in May builds for the headphones through USB, works even when a DAC is plugged in between the tablet and the jack headphones.” Should it also work with LineageOS 17.1 and 18.1? What kind of hardware/adapter do you prefer? Perhaps, you could be so kind, to post the links to the products you tested.

Thanks in advance

Axel
[Galaxy Tab 4 Original Android Development] matteo0026:
Hi, yes, everything should work fine, as specified in this post: https://xdaforums.com/t/rom-unofficial-matisse-millet-lineageos-16-0.4032901/post-85157071

As @Ozero.blue told me (but he can explain you better), the DACs that require an external power supply, can't work just through micro usb port, since it can't supply enough power. Just usb type-c can do it. Android 10 and 11 never needed a fix because they use a xml usb audio policy, which embeds the policy to make usb audio working. I had to fix it through this commit:

matisse-common: fix USB audio support · S3NEO/android_device_samsung_matisse-common@62b4dd6

Contribute to S3NEO/android_device_samsung_matisse-common development by creating an account on GitHub.

github.com

Theorically, it isn't needed you touch USB settings, since tablet recognises the device plugged and adapts to itself the audio route.

So, this is the point with USB DACs. I don't have one of them, but I tested audio through USB with a pair of gaming headphones, and worked just fine. I could be wrong, but ehm, this is my first device on which I develop the device source, so I still can do my noob errors/forgetfulness.
[Galaxy Tab 4 Original Android Development] Achsel:
Thank you for your quick answer. Unfortunately, I cannot exactly see the individual components in your published photo (LineageOS 16.0 project). The micro OTG Adapter seams to be from UGREEN. Is the component with no imprint behind the OTG Adapter a DAC, and if yes, what is the exact name of this adapter und who is the manufacturer? On the last component with the 3.5mm jack socket I can only read the imprint UA1. What is the exact name of this adapter und who is the manufacturer?

I use a special OTG adapter with additional female micro USB socket for external power supply. The micro USB connector of the OTG Adapter has usually a solder bridge between PIN 4 and PIN 5 to detect the OTG mode. Then you can only supply the USB device with power. Without the additional micro USB socket the power directly comes from the tablets akku. If you solder in a resistor instead with approx. 80kOhm (specially for the Tab 4, for the phone S4 65kOhm) between PIN 4 and PIN 5 of the micro USB connector, then you can supply the USB device and the tablet (phone) with power at the same time. With both variants of the OTG Adapter (solder bridge or resistor between PIN 4 and 5) the external sound card is not recognized with LineageOS 17.1 (Android 10). But it works with the same combination under stock ROM 4.4.2 and 5.0.2.

With stock ROM Android 4.4.2 I could find the file /system/etc/audio_policy.conf. With LineageOS 17.1 is in this folder only the file audio_effects.conf. I found the following audio XML files in the folder /system/vendor/etc/: a2dp_audio_policy_configuration.xml, audio_effects.xml, audio_platform_info.xml, audio_policy_configuration.xml, audio_policy_volumes.xml and usb_audio_policy_configuration.xml. Can it be that one of the XML files still has to be adapted, for example the file usb_audio_policy_configuration.xml, so that it works with my external sound card?

Based on your advice, I’ll be contacting Ozero.blue too about the problem.

Thanks

Axel
[Galaxy Tab 4 Original Android Development] Achsel:
I think now I know which components can be seen in the photo. The component behind the OTG Adapter seems to be a USB-A to USB-C Adapter and behind this adapter follows the Shanling UA1 adapter cable with DAC/Booster and with USB-C digital input/3.5mm analog output.
[Galaxy Tab 4 Original Android Development] Ozero.blue:
yes you are correct.as far as i know dongle dac+amps comes only with type-A or type-C connections.I guess your sound card is type-A.I suggest you to check if the connections of all components are stable & they works properly,as our devices got old.you can try lesser audio switch app if it still doesn't work for you.
[Galaxy Tab 4 Original Android Development] Achsel:
Thanks for the tip. With the app Lesser AudioSwitch 2.7.2 I can switch to USB DAC manually and send analog audio to the plugged in headphones. Apparently my external sound card (USB-A) is not automatically recognized by LineageOS 17.1. I do not know why. Perhaps wrong settings in the Developer Options or other settings? As Default USB Configuration I have chosen File Transfer and below Media I have USB audio routing not disabled. Do you know, if special audio settings have to be made somewhere else for automatic switching to USB DAC? Yesterday I order 3 pieces of a DAC/AMP Adapter with micro USB jack by eBay for 4.17 € per piece for testing (only 24bit/192Khz, the Shanling supports until 32bit/384kHz, but is much more expensive).

https://www.ebay.de/itm/29420541583...MIify_l6qs8QIVlNV3Ch1LuQh_EAQYASABEgLsV_D_BwE
[Galaxy Tab 4 Original Android Development] matteo0026:
Can you share with me a log where you set the audio route to the DAC with that app and then reproduce a song?
[Galaxy Tab 4 Original Android Development] Achsel:
How and where I can start a log file for this action? Is it with Remote ADB Shell possible? My first log file with Remote ADB Shell attached. I hope, it is useful.
[Galaxy Tab 4 Original Android Development] Achsel:
Because I have no experience with the logcat command, I used for the first log file the “-d” option. Now I made a second with the “-f” option, while changing the audio output several times from internal speakers to the plugged into the external sound card earphones by the Lesser AudioSwitch app. Don’t know, which Option is better. Is it possible to stop writing log file with anothet command than "strg" + "c"? There is no "strg" key on android soft keyboard.
[Galaxy Tab 4 Original Android Development] matteo0026:
I'll look at it. Thanks
[Galaxy Tab 4 Original Android Development] Ozero.blue:
Hi there!I dont have to change anything in settings.you can try Hiby music app which can detect if any usb dac is attached & can play through it.32bit/384khz looks good in specsheet but in real life you really can't tell the difference between 24bit & 32 bit files.all my offline music files are either 16bit or 24bit/96khz lossless and they sounds pretty darn good!there are tons of good cheap dongles out there for example Genuine apple type-C dongle or CX31993 dongle which costs 9-10$ & performs waaay above their price.its all about implementation of dac & how they tuned it,nothing to do with price & spec.hope you enjoy your new dongles.cheers!
[Galaxy Tab 4 Original Android Development] Achsel:
@matteo0026: In my most recently attached file “audio-log2.text” I found the following: “WiredAccessoryManager: This kernel does not have usb audio support”, “WiredAccessoryManager: This kernel does not have HDMI audio support” and “WiredAccessoryManager: Conn soc:qcom,msm-ext-disp/1/0 does not have DP audio support”. This should be my external sound card: “mManufacturerName=C-Media Electronics Inc.,mProductName=USB Audio Device”. I hope this helps you further.

@Ozero.blue: I know, the price doesn’t say anything about the performance. The bit rate is also not so important to me. I just wanted to show you, that there are also DAC adapters with micro USB plugs. The GGMM A1 called adapter can be selected in the same German eBay shop with USB-C plug (same price). From this information you can see, that I come from Germany. Thanks for your tip to the hiby music app. I need audio through the USB port in particular to send the instructions of a navigation app as analog stereo sound via an amplifier directly to the car speakers. With stock ROM (Android 4.4.2/5.0.2) ist was possible on old Samsung Galaxy devices (S3, S4, Tab4) to get directly the analog stereo sound onto PIN 2 and PIN 3 instead of normal USB data, when you solder in a approx. 365 kOhm resistor between PIN 4 (ID-PIN) and PIN 5 (ground). Then the device automatically goes into the so-called desk mode and sends analog stereo sound onto the USB port. Because you can’t by such an adapter cable, I made this myself. A stereo cable with a 3.5mm plug has to be soldered onto PIN2/3, a charging cable onto PIN1/5 and the Resistor between PIN 4/5. So I could charge my device in the car at the same time and tap the analog stereo sound through USB without using the existing headphone jack. But this service is no longer supported since Android 9. Instead there is now only a digital audio signal via the USB port. So a DAC Adapter is therefore required for analog stereo.

@matteo0026: The non plus ultra would be, if you could activate both in the LineageOS ROM: Analog stereo sound with identification via the mentioned resistor as with Android 4.4.2/5.0.2 and digital sound after plugging in a DAC adapter. But that should be too time-consuming.

Best wishes an thanks for the support

Axel
[Galaxy Tab 4 Original Android Development] ercanziyanak:
matteo0026​

Achsel​

Crimor​

hi, i am using linage os 16 version now and you are very satisfied. i will stay with this version now thanks. i have a question for you, what are the magisk modules you use? What do you find most useful?
[Galaxy Tab 4 Original Android Development] Achsel:
I use Magisk only to have full root access to system files with Root Explorer and Titanium Backup etc.. Modules I have not installed.
[Galaxy Tab 4 Original Android Development] matteo0026:
Hi, the 2 lines of logs with "does not have x audio support" are normal, since they are present in the stock ROM too. Thanks for the infos, but from a first look, I didn't find that much useful. For your request, no, I don't think I can do something. I'm not that experienced in doing these things

I don't use these much modules, I just have iOS 14.2 emojis module in my main phone (BQ Aquaris X Pro) because it runs Android 8.1 and a lot of emojis otherwise aren't recognized.
[Galaxy Tab 4 Original Android Development] Achsel:
@matteo0026: Thank you very much for your efforts. As soon as I have received the GGMM A1 DAC, I will test whether this DAC is recognized automatically. Otherwise, audio via USB works with the Lesser AudioSwitch App. I will soon be installing the Update LineageOS 18.1 on Tab 4 (SM-T530) tablet and for the first time on my old Samsung Galaxy S4 phone too. So I can see, if automatically audio via USB works with this device. If so, the audio XML files could be compared.
[Galaxy Tab 4 Original Android Development] matteo0026:
Alright, thanks for the feedback and the tests. I'll note in the issues to use that app if DAC doesn't work, then.
[Galaxy Tab 4 Original Android Development] Achsel:
As expected, audio via USB also works with the GGMM A1 DAC/amplifer received today only with the Lesser app. There are two versions of the GGMM A1: Micro USB or USB-C connector. A separate OTG adapter is not required (just integrated). With volume control and start-stop button. With micro USB to USB-A or USB-C to USB-A adapter for devices with USB-A connections. I bought both versions of this very good DAC on eBay Germany for € 4.16 each!!! I'll get in touch again later if I've installed LineageOS 18.1 on the Galaxy Tab4 tablet and S4 phone.
[Galaxy Tab 4 Original Android Development] danjde:
Hi Axe,

could you suggest me how you have enabled the ethernet adapter?

Do you mean that it need powered?

I've an usb ethernet adapter, that connected directly to usb port blink but not provide an ethernet connection.

My device is not (yet) rooted.

Thanks!

Davide
[Galaxy Tab 4 Original Android Development] Achsel:
I use the China JSDOIN fast ethernet adapter (approx. 100Mbits, 7,99 €) with integrated 3-way USB 2.0 HUB Port and USB-A connector behind a ADAPTARE OTG adapter with micro USB jack, micro USB socket for the charging adapter and USB-A socket for the JSDOIN adapter. The Tab4 has a USB 2.0 port and doesn’t support USB 3.0/1Gbit. Important: Connect the charging adapter at the very end, otherwise the ethernet adpter and other to the HUB connected USB devices are not recognized. I don’t know why. I’ve now installed LineageOS 18.1 and it still works. I did read though that pure ethernet adapters are not recognized, when connected to an USB port of an USB HUB. Both adpters I ordered from Amazon Germany. Here are the links:

https://www.amazon.de/40228-Adapter...icro-USB-2-0-gerade-Extra-Strom/dp/B00EJP5XR2

https://www.amazon.de/dp/B08JCJL4Y1...j1jbGlja1JlZGlyZWN0JmRvTm90TG9nQ2xpY2s9dHJ1ZQ
[Galaxy Tab 4 Original Android Development] danjde:
Thanks Achsel!

Your explanation is very very detailed!

I will try and then report ;-)

Thanks again!
[Galaxy Tab 4 Original Android Development] matteo0026:
New build of LOS17.1 with 2021-07 security patches is online!

Changelog:

- July 2021 security patches

- Fixed time in recovery by switching to TimeKeep (/data/vendor/time/ats_2 must be present to restore correctly, so don't comply that date/time is wrong when you wipe data and reboot recovery)

- For millet*: added low-latency-record route in mixer_paths.xml, present on matisse* since some releases yet
[Galaxy Tab 4 Original Android Development] vs-primus:
Hello matteo0026,

i own a Samsung Galaxy Tab 3 8.0 SM-T310 tablet and would like to continue to use this and not dispose of it.

Would there be a possibility, provided your time allows it, that you provide me with a current TWRP image and a custom Rom (LinageOS or other) for this tablet.

Sorry for my bad English, this is not my native language.

Many thanks in advance.

Many greetings vs-primus
[Galaxy Tab 4 Original Android Development] matteo0026:
Sorry, I don't have neither the device and the time to develop on it. I just maintain these tab 4 8.0 and 10.1
[Galaxy Tab 4 Original Android Development] vs-primus:
Too bad, thanks for the info!

Many greetings vs-primus
[Galaxy Tab 4 Original Android Development] matteo0026:
New build of LineageOS 17.1 is up!

Changelog:

- August 2021 security patches

- For millet*: fixed inverted audio channels through jack
[Galaxy Tab 4 Original Android Development] cbouillot:
Hello,

Has someone compare the Lineages 17 and 18 Version on our tab

Is the V17 smoother andmore reactive ?
[Galaxy Tab 4 Original Android Development] marrei1964:
Hi, I can not report any performance details, but I don't know any extremely important reason for upgrading to 11 - instead, I found a good reason why to stick with Android 10/ LOS 17.1 for my milletlte:

I recently upgraded my "small" old Samsung Galaxy S4 mini GT-I9195 to LOS 18.0, and: several memory-intensive apps are not able any more to be configured to use external SD memory - which is most important for our old low-memory devices.

This is NOT a bug, this is Google purpose for ALL Android 11 and later versions. They prohibit the use of the external Card's "android/data/ . . ." folder. They claim that this is something like a dangerous "sharing" access of app storage data between all app that claim access to those sub-folders. You may quickly google the background (androidexplained, Android 11 Scoped Storage - Saving Files To Shared Storage).

Google Maps itself _is_ still able to be configured to use internal or external SD mode for offline cards. 🤔

HERE Maps (potentially using VERY large map files on tablets!!!) can not be configured like this, and the web rumours that there are a lot of other apps too...

I also tried HERE Maps Beta, which claims to be a total remake, but no success.

Even when the SD is configured as "internal" you can only select the internal memory. No matter if internal or external mode: for Android 11 devices the SD card mostly is ONLY useable for music, fotos, videos, data files downloaded.

If you don't believe me or you think you know better: please try it (having a good backup... 😉) and report here, please!

Good luck, or: good Android 10...

Martin
[Galaxy Tab 4 Original Android Development] cbouillot:
I forgot this point : thanks a lot
[Galaxy Tab 4 Original Android Development] marrei1964:
I have to apologize at the HERE WeGo "beta" team: after a phone restart (or... I wasn't clear some days before???) the "beta" of HERE WeGo offers the option to switch the storage of Offline cards to "external SD"... So hopefully, this beta will become a regular feature/version in future, and other app supplier can adjust to the new restrictions in Android 11 as well. Seems to be a big change in memory management structures for the app programmers.

I guess that this is mostly related to map and navigation apps, because their offline data volume requirement is most significant. Other storage-intensive apps like video and camera apps will usually not be used on our old reasure devices... because of camera and display resolutions...(?)

But anyway, I currently see no reason to switch to LOS 18.1, until matteo and all the other gurus give us leechers updates for LOS 17/Android 10.

THANK YOU for this!!!
[Galaxy Tab 4 Original Android Development] matteo0026:
Hi guys, new builds of LOS17.1 are online.

Changelog:

- September 2021 security patches

- Fixed minimum brightness, now it's really at its lowest point
[Galaxy Tab 4 Original Android Development] matteo0026:
Hi guys, new builds of LOS17.1 are online.

Changelog:

- October 2021 security patches
[Galaxy Tab 4 Original Android Development] D++:
Thanks a lot for this Rom. Installed the latest version and magisk v23 but without gapps and it's running great.

Couldn't find a problem so far with the software.

Will become a wall mount tablet in my smart home soon. It just gets reeeealy slow when configuring widgets in habpanelviewer, but hey, it's 7 years old now.
[Galaxy Tab 4 Original Android Development] _kato:
Thank you so much for working on the Tab 4! Gave my tab a new life.
[Galaxy Tab 4 Original Android Development] verbage:
Thanks so much, @matteo0026 , for your efforts--they are really appreciated!!!
[Galaxy Tab 4 Original Android Development] matteo0026:
Hi guys, new builds are up!

Changelog:

- November 2021 security patches

- Encryption now should work (change tested on S3 Neo)

- Some other more specific things under the hood
[Galaxy Tab 4 Original Android Development] _kato:
Hey matteo I noticed a bug. for some reason I can't see 5g networks that are on channel higher than 48. It works fine for networks that are on channel 48 and on 44.

Also nightlight turns itself off after locking and unlocking the screen for some reason.

Thank you so much for all your hard work!
[Galaxy Tab 4 Original Android Development] marrei1964:
hello _kato, hello Matteo, I can NOT confirm that 5G Wifi channels are not working after upgrading my milletlte to lineage-17.1-20211113-UNOFFICIAL-milletlte..

I did not check the "nightlight" issue, sorry, I don't know what that is or means...
[Galaxy Tab 4 Original Android Development] _kato:
My 5g network is on channel 157, it works fine on my phone and other devices but the tab cannot find it on that channel. If I manually switch the network over to channel 46 it finds it and connects I don't have the option for channel 112,116 in my router like in your screenshot. It used to work fine back when I was on android 5.1.1.

The nightlight issue is when i set the live display to night, you can find it in the quick settings or in Settings>Display>Live Display>Display mode and set it to night. It's basically a blue light filter.

I am on milletwifi(8.0).
[Galaxy Tab 4 Original Android Development] matteo0026:
I should type the WiFi issue in the issues list, since I analyzed it some time ago and with new custom ROMs (Android 9,10,11) that tablet can't see 5 GHz WiFi networks between channels 149 and 161.
[Galaxy Tab 4 Original Android Development] matteo0026:
Hi guys, new builds are up!

Changelog:

- December 2021 security patches
[Galaxy Tab 4 Original Android Development] vs-primus:
Hello matteo0026,

thank you very much for your hard work.

There is currently a problem downloading the custom rom.

Download​

lineage-17.1-20211216-UNOFFICIAL-matissewifi.zip​

for the Samsung Galaxy Tab 4.10.1, by matteo0026

OOPS!

no mirrors found.

Many greetings vs-primus
[Galaxy Tab 4 Original Android Development] matteo0026:
I know... Even in 18.1 there are many issues on getting a mirror to download the ROM. I've contacted the support of AFH yet.
[Galaxy Tab 4 Original Android Development] vs-primus:
All right, let's hope that this works in the next hours, days.

Wish you and your family a Merry Christmas and a Happy New Year.

Many greetings vs-primus
[Galaxy Tab 4 Original Android Development] vs-primus:
Hello matteo0026,

since there are problems with the download at https://androidfilehost.com/ for days,

is it possible to download the custom rom from somewhere else?

e.g. https://sourceforge.net/

Thanks in advance

Many greetings vs-primus
[Galaxy Tab 4 Original Android Development] matteo0026:
Hi, for some days I won't have an SSD to work with ROMs (I've put my sata ssd on an old laptop and I've bought a new pcie one). And I don't have the packages offline. So, just wait... I can't do anything else.
[Galaxy Tab 4 Original Android Development] vs-primus:
ok, thank you for the info matteo0026

Many greetings vs-primus
[Galaxy Tab 4 Original Android Development] Jarrod666:
Hi everybody,

Does this rom is rooted ?

Thank you.
[Galaxy Tab 4 Original Android Development] CaptainG:
Hi at all! Is sim running in millet lte? Or same issues like millet3g?