phhusson / treble_experimentations

Notes about tinkering with Android Project Treble
3.37k stars 657 forks source link

speaker is very loud #1185

Open shadowofleaf96 opened 4 years ago

shadowofleaf96 commented 4 years ago

i have a UMIDIGI F1 Play (MT6771) , after using this rom i found that sound is very loud and distorted in media , notification and alarm , i did some digging and i found that all mediatek phones ship with a feature called (besloudness) that make speaker very loud and you can enabled or disabled on settings i think that vendor think that this feature is enabled from system but there is no setting on this rom i also tried to disable this feature from build.prop but no success

shadowofleaf96 commented 3 years ago

hello i see that this is old but i found a fix to my sound issues i found that the vendor enable the besloudness automatically when there no settings that control it

so i created an app that control it (enable/disable) and this app disable besloudness by default in boot you can download it on this link https://forum.xda-developers.com/t/7-0-besloudness-settings-enable-disable-besloudness-on-mediatek-devices-on-custom-roms-lineageos.4318205/

@phhusson if you want to include this fix in settings as a switch disable it like that
mAudioManager.setParameters("SetBesLoudnessStatus=0"); and enable it like that
mAudioManager.setParameters("SetBesLoudnessStatus=1");

phhusson commented 3 years ago

I'll keep this open until I have it in treble app :)

Thanks for all the infos

shadowofleaf96 commented 3 years ago

you welcome