[Galaxy Tab S2 Android Development] aljazzair:
Hello

I did some testing with LOS20 again today.

Let me preface this by clarifying that my usage for this tablet is as a GPS/Media/Phone device to be used in my SUV.

So the packages I chose to install, the configuration I am doing and the testing is focused on areas pertaining to that usage.

Initially, yesterday, I went with LOS20 and NikGapps Core ARM64.

This combination did not give me access to Android voice input (important for my use case).

After reading some materials on XDA, I decided to try other Gapps to see if the result would be different.

In the course of my testing, I tried different Gapps packages, and I experienced a boot loop that is due to user error.

The first part of this post details of my experience, as it may be useful for someone out there.

The second part of this post has to do with observations I made on the audio behavior.

I have not yet tested the SIM functionality or telephony at this time.

Spoiler content hidden.

Spoiler content hidden.

Spoiler content hidden.

Spoiler content hidden.

What works:

- Wifi, graphics, bluetooth pairing, mtp, charging, camera, GPS all seem to work fine, but audio only partially working

Potential problem areas:

No BT microphone, Audio routing/mixer issues, maybe some codec issues?

(see adb logcats)

Not tested:

RIL , 3G/LTE , Telephony

==========

Some of the issues encountered during tablet testing are detailed below:

1) Device identification:

I installed the 'find my phone' app from Google.

In this app, the Tab S2 is identified as a Motorola Moto Z.

Not sure if this is intended, and whether that has implications on the audio issues described below.

The tablet is identified as a Samsung Tab S2 in Google play store.

2) No sound in Android Audio Settings:

Android has a screen where you can choose the sounds played when the phone rings or notifications arrive.

Normally when scrolling through the list, the sound of each is played.

With LOS20, no sound is played on the tablet speaker when selecting a ring tone, etc.

This is valid on either the tab speaker or BT headphones.

Spoiler content hidden.

3) No sound on "stock' Music app, tried with four different files (mp3 and flac).

Sound is not audible on either the tab speaker or BT headphones.

I Downloaded an open source music app (Auxio) to test as well:

unlike the 'stock' Music app it played flac files normally, but it did not play the mp3 files.

The said mp3 files were tested on Linux, they are OK.

Could it be that some codecs are missing?

Spoiler content hidden.

4) No sound coming from Google assistant.

Example, if I ask what is the weather in Tokyo, it will output the answer on screen, but not play it on the tablet speaker.

I am troubleshooting this to determine if it comes from Lineage or Gapps.

REQUEST: Can someone who has LOS20 installed on T815 check if Google Assistant is responding with sound?

Spoiler content hidden.

5) No sound coming from Google Maps

If I start an itinerary to the airport for example,

normally google maps gives directions and starts playing audio (turn right, turn left, etc)

Here the directions are shown, no audio is played onto the tablet speaker.

It's likely tied to issue #4 above, as the google apps do not seem to output sound on the tablet itself.

6) Given the audio output issues are present with both a 'native' LineageOS app (Music), Android Settings and Gapps, there might be something going on with the Audio policies.

I checked audio_policy_configuration.xml.

The file installed on my tablet is attached.

It is identical to the default audio configuration mentioned by @metterschling in the T715 thread (see his Nov 23rd note).

This default audio configuration is supposed to have Bluetooth headset and loudspeaker working.

The drawback is that telephony using built-in speaker and microphone is not supposed to work.

I am unclear whether audio playback on the tablet speaker is supposed to work at all times with this configuration.

7) BT headsets issue

I tried both my Sennheiser Momentum wireless headphones, and my Huawei Freebuds Pro earbuds.

Sound is played through the headsets using the Auxio Music app.

Sound is not played through the headsets by Google Maps, Google Assistant, or the built in Lineage Music app. Similarly when scrolling through ringtones, no sound is heard on the headphones.

Also, headset microphones are not fully functional:

when the microphone is 'activated' using the built in assistant button available on both headsets, a green icon shows up on the top right corner of the tablet, which means the action is registered and the device is awaiting sound input. Same thing when hitting the mic icon in Google Maps.

But no sound from the headset microphone is detected by the tablet.

Instead, it is recording sound from the tablet built in mic.

I know that because blocking the mic hole on the side of the tablet with my finger results in no sound detected. Lifting my finger results in sound detected.

I will be testing the alternate audio config provided here at a later stage (differences outlined in this github post).

EDIT: tried the alternative xml with the telephony bit, not with a sim card though.

The stock Music app crashes, sound does not come out from tablet speaker or BT headset when using assistant or maps. Axio music player plays audio fine, like it did with the original audio policy config.

==============================

Thanks again for making those builds available to us, and for your hard work building them.

I would appreciate any comment/feedback on the audio issues.

Kind Regards.