yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy S7 (Exynos) ROMs, Kernels, Recoveri] random_n:
I've been working on this issue as well, and you may want to pop over to this post as I've received some good feedback on this with Bluetooth calling and other audio related bugs across a few LOS-based ROMs and S7/Edge device variants. I expect to make a proper thread for it this weekend once I've finished hashing out some less evident bugs, tidying ugly or unnecessary code, and will see if I can improve speakerphone mode even further (it should be great in VoIP calls right now, but I think the speakerphone levels are still a little off for cell calls).

For now, the v9 build there is already quite stable and will do best with audio_hal.force_voice_config=wide. For Bluetooth, both classic 8KHz and new HD Voice 16KHz headset/handsfree devices should function in their best possible mode.

If you can make that patch misbehave in routing path choice, get garbled audio from a Bluetooth device, etc, feedback is appreciated!
[Samsung Galaxy S7 (Exynos) ROMs, Kernels, Recoveri] Virnik0:
And I thought "Well, his nick is somewhat familiar" up until I realized you're talking about your awesome crDroid ROM ;) Thanks for the tip. Will you be backporting to LAOS later on too?

I noticed that you do have some very interesting results. gratz for good work.
[Samsung Galaxy S7 (Exynos) ROMs, Kernels, Recoveri] random_n:
Thanks, but I really can't take credit for nearly that much! My very first successful ROM compile was just a few weeks back. I do appreciate the crDroid add-ons though, and if nobody else takes up that mantle when LOS 8.1 stabilizes... well, that sounds like another interesting project.

First things first though; good reliable sound is the foundation of any phone and there are still a few hurdles yet to pass. :)
[Samsung Galaxy S7 (Exynos) ROMs, Kernels, Recoveri] Virnik0:
True, but there is more to that, like VoLTE, which is something we can't easily fix I assume, as it works for some people, and does not work for majority of others.

In regard to BT audio, it works nicely fine, up until the call. I have changed audio prop to narrow, to see whether I'll be able to make a call via my car.

I completely forgotten that flashing the rom will overwrite my already tuned build.prop (it was nearly midnight when the build completed and I flashed it).
[Samsung Galaxy S7 (Exynos) ROMs, Kernels, Recoveri] DavisNT:
Regarding bluetooth calling audio, we are working on the fix. Regarding always setting sample rate to 8000 (the binary patching discussed) it might break compatibility with other headsets/speakers/cars.
[Samsung Galaxy S7 (Exynos) ROMs, Kernels, Recoveri] saski4711:
It will also force the voice quality to be very poor. Many carriers support HDVoice over GSM wich is very close to VoLTE in terms of quality and is also supported by LOS. I hope that we have this also supported via bluetooth (AMR-WBS) in the future together with the narrow fallback for older BT devices.
[Samsung Galaxy S7 (Exynos) ROMs, Kernels, Recoveri] Naraa:
I've got problem. My device is SM-G930K. But any AOSP ROMs are not flashable... TWRP says ERROR 7. But the developers suggested like (F | FD | W8 | S | K | L). S, K and L devices got different partition sizes from F, FD and W8. Please release that ROM for Korean HEROLTE
[Samsung Galaxy S7 (Exynos) ROMs, Kernels, Recoveri] ArnoAugustin:
Sorry, my fault...

Did not really compile it because my laptop needs really long for it.

Have a look at this:

https://github.com/LineageOS/androi...arch?utf8=✓&q=SCO_DEFAULT_SAMPLING_RATE&type=

SCO_DEFAULT_SAMPLING_RATE is also used in audio/audio_hw.c. My binary patch only affects audio/voice.c (sorry again)

The binary patch is equal to changing SCO_DEFAULT_SAMPLING_RATE to 8000 in audio/voice.c only.

Patch position: 01 00,00 00 80 3e,00 00 a8 00,00 00 02 00 is .channels=1, .rate=16000, .period_size=168(0xa8), .period_count=2

This is only found in voice.c as audio_hw.c has .channels=2

I do not really know how the BT/audio code works and why the defaults affect the behaviour of some BT headsets..

What I read is that 8kHz fixes it for some BT hardware. But what about 16kHz hardware?
[Samsung Galaxy S7 (Exynos) ROMs, Kernels, Recoveri] DavisNT:
The fix won't force 8kHz for bt devices supporting 16 kHz (however AFAIK AMR codec is not used by bluetooth at all).
[Samsung Galaxy S7 (Exynos) ROMs, Kernels, Recoveri] Virnik0:
LOL :) Now you made me think that I have changed different file (audio_hw.c). Will have to check tonight.
[Samsung Galaxy S7 (Exynos) ROMs, Kernels, Recoveri] ArnoAugustin:
Good news :)))))

If you send me your patches I can compile them for my device. Also you can dump a complete build somewhere where I can download it. I'll install and test it. But I can only test my BT car kit and Jabra Wave. Both need that 8kHz patch.

---------- Post added at 12:23 PM ---------- Previous post was at 12:17 PM ----------

Just change to 8000 in voice.c - hope I'm right... ;)
[Samsung Galaxy S7 (Exynos) ROMs, Kernels, Recoveri] Virnik0:
I am joining the crowd, I can test as well. But from what ArnoAugustin wrote, it seems like there is more to that than just changing one line in one file.
[Samsung Galaxy S7 (Exynos) ROMs, Kernels, Recoveri] vpr6602:
Hi, i'm back on Samsung (someone gave me this phone) and i really don't like TW, so i would like to go on LOS but i would like to know id i can use it as a daily rom or theire is some bugs / latency or something that it'll not give a perfect experience ? What the emoji look like ?

Thanks a lot :)
[Samsung Galaxy S7 (Exynos) ROMs, Kernels, Recoveri] Virnik0:
Yes you can. Aside from VoLTE, BT phonecalls, HDR - everything seems to work. For BT headsets and phonecalls, devs are doing their best and the solution is expected to be promoted to weekly builds as soon as it is ready (being worked on).

HDR works with GoogleCam NX Mods (search here XDA). Open solutions like OpenCamera, footejCamera and the others fails with HDR due to malfunctioning renderscript.

VoLTE is something for long run, and better not discussed now. HD voice over GSM works fine.

BTW, just remotely built my custom build, fetching latest commits. Seems to work with BT Headset, will have to test with my car yet (tested with simole office BT headset for now).
[Samsung Galaxy S7 (Exynos) ROMs, Kernels, Recoveri] vpr6602:
Thank you for all those details ? BT it's only for phonecall ? I'll be able to listen to music in my car ?

The updates works like cyanogen did ? With the "update" in setting or we need to flash the rom every time there is an update ?
[Samsung Galaxy S7 (Exynos) ROMs, Kernels, Recoveri] Virnik0:
#1 yes

#2 yes
[Samsung Galaxy S7 (Exynos) ROMs, Kernels, Recoveri] chrisrevoltes:
I'm using my S7 with LOS for six months. For me its working good enough as daily rom. There are a few issues, but yet better than TW :laugh:

See attachment.
[Samsung Galaxy S7 (Exynos) ROMs, Kernels, Recoveri] vpr6602:
Thx for the video the pure android emoji ?i'll flash it after my work.

Any news about LOS on oreo for s7 ?
[Samsung Galaxy S7 (Exynos) ROMs, Kernels, Recoveri] LGaljo:
[MENTION=4610599]Ivan_Meler[/MENTION] is working on unofficial builds https://xdaforums.com/galaxy-s7/development/lineageos-15-android-8-0-0-herolte-t3710107
[Samsung Galaxy S7 (Exynos) ROMs, Kernels, Recoveri] vpr6602:
i've seen it but too many bugs and GPS doesn't work :/
[Samsung Galaxy S7 (Exynos) ROMs, Kernels, Recoveri] pluto123:
Just flashed the new build. Everything is fine except BT calling in my car: it is not possible anymore (had no problems with previous builds) - instead of voice I only hear loud hissing noise :(
[Samsung Galaxy S7 (Exynos) ROMs, Kernels, Recoveri] mohand06:
Please someone, I need s7 stock audioserver (in /system/bin). Attach it adding .txt. Thanks in advance.
[Samsung Galaxy S7 (Exynos) ROMs, Kernels, Recoveri] DavisNT:
This is unexpected. What build (from which date) did you have previously?
[Samsung Galaxy S7 (Exynos) ROMs, Kernels, Recoveri] pluto123:
I flash every week the new build. So the last one with no issues was from 10.1. Had with BT in my car no issues so far.
[Samsung Galaxy S7 (Exynos) ROMs, Kernels, Recoveri] tolrojus:
Hey, i recently started using lineage os and everything is really great, except camera, i installed googlecam mod but it is very buggy lots of features not wotking, like video recording in 4k, selfie and many more, but makes fantastic photos with back camera. It would be great to know what camera apps or mods other uses? If you have time write whats working and whats not. Thanks :)
[Samsung Galaxy S7 (Exynos) ROMs, Kernels, Recoveri] chrisrevoltes:
Not again :laugh:

I'm using Footej Camera. (https://play.google.com/store/apps/details?id=com.footej.camera)

Fast, better overlay than AOSP Cam and best picture quality for now (and me) on non-TW S7.
[Samsung Galaxy S7 (Exynos) ROMs, Kernels, Recoveri] DavisNT:
Those who are experiencing bluetooth call audio issues and are willing to test the new fix, please install (flash in TWRP) the attached file (testfix-BluetoothCalling-REGRESSION-1194.zip).

After installing, please make a call over bluetooth and upload your logcat here. When uploading please mention (in one of the Name/Surname fields) whether the bluetooth calling is working (whether the sound is OK).

It would be great if somebody whom bluetooth calling is working could also test this fix and post logcat (to ensure that the fix doesn't break compatibility with currently working headsets/speakers/cars).

[MENTION=8100674]pluto123[/MENTION] your case is something that should not have happened. Can you restart your phone and try calling again? Can you try the attached fix?

Update! On 2018-01-19 a new version of the fix (testfix-BluetoothCalling-REGRESSION-1194-V2.zip) is published. Please re-test and upload logcat again!

Update! On 2018-01-20 a new version of the fix (testfix-BluetoothCalling-REGRESSION-1194-V3.zip) is published. This should be the final version. No more testing is needed. This will go into next weekly build (most likely troubleshooting will continue there).

Update! On 2018-02-01 The file testfix-BluetoothCalling-REGRESSION-1194-V3.zip was removed from the post because it was buggy.

Regarding this week build, it includes:

January 2018 security patch (good reason to update)

for hero2lte Wifi fix (for herolte the fix was already included in previous build)

Technical NFC changes (enabling NFC without reboot if booted with NFC still doesn't work)

Technical Bluetooth changes (these are not audio related, so [MENTION=8100674]pluto123[/MENTION] issue shouldn't be related to them)
[Samsung Galaxy S7 (Exynos) ROMs, Kernels, Recoveri] iOrpheus06:
If you can take a look at forcing hal1api for all apps that use the camera (CrDroid has this and camera quality across almost all apps is amazing), that would be amazing. It would be great to see this integrated into official lineage. ? But only if you have time, though, as there are more important matters than this. Thank you for developing and maintaining LineageOS for hero devices.
[Samsung Galaxy S7 (Exynos) ROMs, Kernels, Recoveri] _jAV:
Hi there,

I just glanced at this and have high hopes. my s7 is at home where I was compiling source for it with "#define BTIF_HF_WBS_PREFERRED FALSE" in bdroid_buildcfg.h to try out tonight. But I think 'll give this a try first on a fresh new install from the latest nighties. I assume this is a .so file we simply replace under /system/lib/hw/ with root explorer? correct? Thanks.
[Samsung Galaxy S7 (Exynos) ROMs, Kernels, Recoveri] DavisNT:
Attachment is a .zip flashable from TWRP (with signature verification turned off).
[Samsung Galaxy S7 (Exynos) ROMs, Kernels, Recoveri] tolrojus:
Hey, did someone else is getting zoomed videos in apps like instagram, nba and etc. Videos starts normaly and then it becomes zoomed. If there is settings for this or somehow i could fix it? Please help :D
[Samsung Galaxy S7 (Exynos) ROMs, Kernels, Recoveri] gnarf49:
Hi, thanks for all the hard work on this! I did a quick test with the BT audio update zip. Sadly not yet a full fix in my case: It works now for high quality BT call, but breaks standard quality:

Before: VW car audio good, Moto Pulse headset robotic voice

With patch: VW car audio distorted (different, louder than "robotic voice" effect), Moto Pulse good

Will try to produce a logcat tonight.

Cheers,

gnarf
[Samsung Galaxy S7 (Exynos) ROMs, Kernels, Recoveri] Virnik0:
Done. Only hiccup could be that I've used UNOFFICIAL custom build, but I have re-tested this morning and again after flashing official, and the same happened. UNOFFICIAL build I am using was compiled after 'repo sync --force-sync', and with cache nuked, so should be essentially the same like nightly. Simply put, my XPLOD car audio does not work with the patch. Using this patch, I lost even the bubbling. Now it won't speak at all. I will re-test again with official nightly today evening, taking logcat again (the one I sent was generated from unofficial build).
[Samsung Galaxy S7 (Exynos) ROMs, Kernels, Recoveri] pluto123:
Thx for your quick reply!

I've just tried the following things:

1.) restart several times the phone: noise during BT calls in car.

2.) flashed your ZIP file: noise during BT calls in car.

3.) flashed build from Jan 10 : NO noise

4.) flashed again build from yesterday (17.1.): again noise during BT calls
[Samsung Galaxy S7 (Exynos) ROMs, Kernels, Recoveri] vagika:
Hi,

[MENTION=4234598]DavisNT[/MENTION] (sorry couldn't manage reply w/ my browser...)

You rock maaaaaaaan! Managed to solve the only issue preventing me to use it as daliy...

Works w/ audio/phone A4 car BT (Audi concert BnO), and AWEI800 headset.

(normal calls have also good quality unlike buid prop set to narrow...)

Sorry I've only old stuff, so can't do any regression, both my device wasn't working...

Thanks!!!!!!
[Samsung Galaxy S7 (Exynos) ROMs, Kernels, Recoveri] Virnik0:
That is so strange. How is my XPLOD audio in the car different? I don't have any sound at all now.

With weekly from last week, I at least heard bubbling. Now nothing. I will have to re-test this

evening and generate new logcat. I mean - music plays fine, but actuall phonecall is unusable.
[Samsung Galaxy S7 (Exynos) ROMs, Kernels, Recoveri] vagika:
Actually I use build from yesterday, and applied the zip attached by DavisNT on top of that, so nothing extraordinary, but it finally works!...
[Samsung Galaxy S7 (Exynos) ROMs, Kernels, Recoveri] Virnik0:
That is what I did this morning after testing first with unofficial. I have yet to return to my car (sitting in the work now), to re-test.
[Samsung Galaxy S7 (Exynos) ROMs, Kernels, Recoveri] roier75:
Latest update installed, but I'm still getting the same blank messages.
[Samsung Galaxy S7 (Exynos) ROMs, Kernels, Recoveri] Virnik0:
Could you olease make some screenshots, or better describe what is going on and mayve attach that to some already existing ticket for the same matger on Jira please? Otherwise devs may not know about such issues. I don't have any issues with notifications.
[Samsung Galaxy S7 (Exynos) ROMs, Kernels, Recoveri] vpr6602:
Do i need to flash gapps with this rom ?
[Samsung Galaxy S7 (Exynos) ROMs, Kernels, Recoveri] saski4711:
yupp.

go to opengapps.org and select the ARM64 package
[Samsung Galaxy S7 (Exynos) ROMs, Kernels, Recoveri] vpr6602:
When i want to wipe all it said "failed to mount data" and when i install LOS it said "error with encryption ..." it force me to reset the phone and i can't have access to my phone what i need to do ?
[Samsung Galaxy S7 (Exynos) ROMs, Kernels, Recoveri] pluto123:
Did you perform "factory reset" and "format data"?
[Samsung Galaxy S7 (Exynos) ROMs, Kernels, Recoveri] alexdil:
WORKS ! wow - what a save !
[Samsung Galaxy S7 (Exynos) ROMs, Kernels, Recoveri] vpr6602:
I did it now im on the rom
[Samsung Galaxy S7 (Exynos) ROMs, Kernels, Recoveri] Jst09dc:
Thanks!!! :good:

With lineage-14.1-20180117-nightly and testfix-BluetoothCalling-REGRESSION-1194 installed bluetooth calling now works fine with Volkswagen RNS510 (2011) and BMW Navigation Professional (2016). Logcat has been submitted.
[Samsung Galaxy S7 (Exynos) ROMs, Kernels, Recoveri] DavisNT:
[MENTION=8100674]pluto123[/MENTION] [MENTION=2952227]Virnik0[/MENTION] Please use lineage-14.1-20180110-nightly-herolte-signed.zip as base for further testing.

Looks like in your case https://review.lineageos.org/202842 might have introduced another issue. We need to troubleshoot that issue separately from bluetooth calling issue (REGRESSION-1194) testing.

Tomorrow (most likely in the morning) a new textfix will be released. Then I will ask everybody to re-test (the new fix can be flashed over the old one) and send upload logcats again.
[Samsung Galaxy S7 (Exynos) ROMs, Kernels, Recoveri] DavisNT:
An updated version of the fix (testfix-BluetoothCalling-REGRESSION-1194-V2.zip) is attached to this post. Please re-test and upload logcat again (as mentioned in the post)!

For those who suffered a regression in 20180117 build, please use 20180110 build as the base for testing (flash testfix-BluetoothCalling-REGRESSION-1194-V2.zip on top of lineage-14.1-20180110-nightly-herolte-signed.zip) and mention here that you got the regression in 20180117 build (I already know that [MENTION=8100674]pluto123[/MENTION] and [MENTION=2952227]Virnik0[/MENTION] got the regression - we will troubleshoot that separately).
[Samsung Galaxy S7 (Exynos) ROMs, Kernels, Recoveri] vpr6602:
Hello,

How to change the resolution of the screen ? I want to use 1920x1080

Is it possible to change icon style ?

And when i use quick reply for sms it didn't put the sms as readed

Sometimes i.ve sound of media (Facebook, games...) but i've shutted down the media volume
[Samsung Galaxy S7 (Exynos) ROMs, Kernels, Recoveri] iOrpheus06:
1. You can change the resolution using adb/terminal command wm size 1080x1920 and wm density 4xx (or input your desired dpi)

2. it is possible only with custom launchers. System icons (like status bar icons or navbar) can also be themed using substratum.

3. Make sure that media is what appeared on the peaking volume slider.
[Samsung Galaxy S7 (Exynos) ROMs, Kernels, Recoveri] roier75:
Here are 2, not very informative, shots.

The description is the same: when I wake my phone after it has been asleep for while (10+ minutes ... can't tell exactly) I get a blank message or a message with dashes on the lock screen. I can OK it and move on and everything seems to works.

I just tried searching Jira but didn't find an existing ticket.
[Samsung Galaxy S7 (Exynos) ROMs, Kernels, Recoveri] vpr6602:
Thank you but for the 1 i don't inow how to do this ^^ and for the 3 the media volume is disabled and sometimes there is just the begining of a sound.

An other problem i can't send mms when i send one it shutdown my 4G (lte)
[Samsung Galaxy S7 (Exynos) ROMs, Kernels, Recoveri] Virnik0:
Chm, this is very strange. Haven't seen similar bug yet. Do you also use anyhing else? Like Magisk, some of its modules, Xposed (+modules), or what luncher are you using? It has to be caused by something you have on your phone. Could you test it with clean flash w/o data? Just make a NAND backup, do factory reset, and flash latest nightly along with gapps, to see if it is happening. Then you can easily restore back to your backup.
[Samsung Galaxy S7 (Exynos) ROMs, Kernels, Recoveri] ArnoAugustin:
As apps produce the messages I think it's a faulty app and not Lineage. You can disable lock screen messages in app manager for each app and try which one is sending the blank message....
[Samsung Galaxy S7 (Exynos) ROMs, Kernels, Recoveri] ArnoAugustin:
With this patch V2 I can't hear anything in my headset. Also nothing on internal phone speaker.

And even better. After installing this patch and then reverting to V1 (which worked for me) - still silence with the file that worked before. Also internal speaker affected. I tried this two times. After using the patch it seems that the system changes some settings(?) internally. The only way to get my speakers and BT working is to reinstall my backup (System+Data). Strange.....
[Samsung Galaxy S7 (Exynos) ROMs, Kernels, Recoveri] random_n:
I can confirm that calling works with my primary testing 8k and 16k devices, but I did receive a no-audio call on my second call attempt where toggling BT/handset/speaker wouldn't resolve it. Swapping between 8k and 16k headsets both on and off call worked without mic loss or excessive path switching delays.

No BT HFP media/VoIP attempts successful (WhatsApp & similar), and still lots of other audio HAL bugs though (offloaded output stalling on start, wrong route selection with multiple streams, etc). I'll post up what I hope to be a final version of my efforts on the HAL code tomorrow. Code cleanup's done, last identified bugs patched, and I'm currently just doing some further regression testing and mixer tuning.

Logcats attached for the calling tests (pretty good), and a non-BT, offloaded decompression and routing selection beat-up test (not so great). No crashing at all with the 1194-V2.zip though, which is certainly better than many of my earlier efforts (hello segfault my old friend...)
[Samsung Galaxy S7 (Exynos) ROMs, Kernels, Recoveri] chrisrevoltes:
So I flashed the lineage-14.1-20180117-nightly-herolte-signed zip yesterday and I did (just to be save) a full wipe!

Got some new issues:

NFC doesn't work anymore.

The hole menu is grayed out, no chance to do something. (screenshot_20180119-110341) After about half an hour the menu isn't grayed out and usable again, but without any affect. (screenshot_20180119-113106). No reaction to any NFC chip.

Bug report is attached.

High battery drain (maybe) caused from phone being awake all the time

Left my phone yesterday around 7:00PM with aprox. 70% and checked it around midnight. Display was active and battery a 15%.

So i let it charge the hole night, without Wifi or mobile data enabled. This morning it was just at 68% (screenshot_20180119-090900.png).

So i checked the display settings, and found some settings i forgot to uncheck after testing. (screenshot_20180119-094003.png) So i deactivate the screensaver and the "prevent accidental wake-up", but that didn't fix the drain.

I charged it again and it sticked again around 90%. (screenshot_20180119-094555 and screenshot_20180119-100011.png - 15min for 3%, Wifi off, display off). I did a reboot and it fell to 74%. So that was really strange, because a regular reboot used about 3-5%, not 15%. Phone didn't get hot or notably warm. (screenshot_20180119-100221.png).

I will track this and give feedback.

Bluetooth

Regarding to your Bluetooth issues, I could just test if music playback works, and it does for me, bevor and after the testfix-BluetoothCalling-REGRESSION-1194-V2.zip! I tried a skype call over BT but that didn't work at all. But could be an skype issue or with my device. I will try it later with a regular call.

I still have two questions:

- how do i get rid of this multi-user menu in my status bar or better to deactivate it completely? I'm not sure how I did this on previous build.

- is there any way to configure the privacy guard , that it denies permissions on new apps per default?
[Samsung Galaxy S7 (Exynos) ROMs, Kernels, Recoveri] vpr6602:
anyone ?
[Samsung Galaxy S7 (Exynos) ROMs, Kernels, Recoveri] Virnik0:
That is sad, and I am sorry for your experiences. But in regard to NFC, it works fine even with lineage-14.1-20180117-nightly-herolte-signed.zip (just tested as I am running it), power consumption is OK...I was able to do about 39 hours with that with usual usage. BT works, as long as the test zip isn't flashed, then yes - it stops working correctly for audio plays.

---------- Post added at 02:32 PM ---------- Previous post was at 02:29 PM ----------

Just a question, why would you like to decrease the resolution of your AMOLED? BTW, MMS does work for you? If yes, be glad. I have to set MMS APN to default type, in order to send, but then I will loose my data connection. I am glad that I am not sending MMS too often.