[ZTE Axon 7 Guides, News, & Discussion] Tebor:
Hi all

Please bare with me as I'm not the best when it comes to typing out what im thinking or trying to say

This info is mainly for our awesome devs but also for everyone else. Shout outs to [MENTION=4911249]Unjustified Dev[/MENTION] [MENTION=3044858]DrakenFX[/MENTION] [MENTION=4126377]tdm[/MENTION] and anyone else who can fix this

I was just wanting to help get this fixed as this one bug is keeping a lot of users including myself from moving away from stock and enjoying all the other roms available. I believe the bug has to do with the the work our beloved anonymous dev who helped correct the speaker issues a few months ago. Specifically this---> https://review.lineageos.org/#/c/168154/.

I'm pretty confidant it has nothing to do with any of the different modems people are flashing. I have tested this with all of the different modem versions for my G variant and none have made a difference

Also, there are other users that are getting this bug confused with another potential bug that has to do with distorted sound coming out when activating speakerphone while in call or something like that. I have not experienced that bug so I dont know the specifics. People are just using the term "Speakerphone bug" as both of these bugs involve the speakerphone

Now I can create the bug at will and have attached logcats below in the different scenarios. Hopefully the info is there for those who know how to fix

The steps I do to recreate the bug are as follows

1 - unlock phone and using the volume buttons, make sure the ringtone is

NOT

set to vibrate/silent and Do Not Disturb is

NOT

activated.

2 - Make a call. Call comes through earpiece as expected, no issues. Person on the other side can hear perfectly. Repeat as many times as you want, sound always comes through earpiece

3 - using volume buttons, reduce ringtone volume to vibrate/silent or turn on Do Not Disturb

4 - Make a call. Call comes through earpiece as expected, Hang up

5 - With the ringtone still set to silent/vibrate, turn the screen off using the power button and let it sit for about 5 - 10 seconds

6 - Unlock the phone and try to make a call. Call will connect but no sound will come from earpiece. Person on the other side can hear everything as per normal but we cant hear them

7 - While in call, toggle the speakerphone or if you have dial pad sounds enabled in the sound menu, press a number on the dial pad, sound now comes through earpiece as expected

From my testing and the procedure above, you can see that the bug happens when the phones ringer is put in silent/vibrate or when do not disturb is activated and the phone is locked/unlocked.

logcat 1 is with everything working normally, ringtone set to sound and call coming through earpiece as expected

logcat 2 is with ringtone set to silent and making a call. No sound comes from earpiece

logcat 3 is the same as 2 but during the call toggling speakerphone to fix

Now I dont know what is going on in the logs but I do see a lot of errors from "TFA9890"

This was all done on a fresh install of the universal bootloader, twrp 3.1.1.0, A2017G N Modem, latest LOS and Open Gapps mini and logcats were captured with MatLog on my G variant