yashsingh1/xdaforums huggingface dataset:
[Google Pixel XL Themes, Apps, and Mods] chdloc:
That is interesting as this mod changes files on /vendor

Thanks for the report!

You will need the app/service as well as the mixer file I attached to the post above. So maybe install the mod the way you did before, but then manually copy the new mixer file from above to /vendor/etc/mixer_paths.xml, set permissions to 644 and reboot.

The mod did not install correctly for you. Are you using an Oreo-based ROM? What root method are you using? This mod currently is incompatible with Magisk.
[Google Pixel XL Themes, Apps, and Mods] Sefyron:
The mod did not install correctly for you. Are you using an Oreo-based ROM? What root method are you using? This mod currently is incompatible with Magisk.[/QUOTE]

im using PA ROM rooted with supersu problem is system is read only
[Google Pixel XL Themes, Apps, and Mods] chdloc:
I'm not keeping track of custom ROMs: is PA based on Oreo or still on Nougat?
[Google Pixel XL Themes, Apps, and Mods] Sefyron:
nougat im sorry !
[Google Pixel XL Themes, Apps, and Mods] chdloc:
Ahh, OK. Currently this mod does not support "old" ROMs (from a Pixel standpoint) with the new "sbin" SuperSU implementation
[Google Pixel XL Themes, Apps, and Mods] Sefyron:
so the mod is not working for me then . /sad face

is there is working way around to make the mod working for me ?
[Google Pixel XL Themes, Apps, and Mods] chdloc:
Yes, there is, but I'll need a few days for implementation and testing
[Google Pixel XL Themes, Apps, and Mods] Sefyron:
I'll wait gladly for it please can you inform me when you release it. thank you
[Google Pixel XL Themes, Apps, and Mods] bigsnack:
Okay, so I installed it normally, then moved the files manually to the folder with the correct permissions. It's all working well, except now I can't use my wired headphones to answer calls, they all get routed to the earpiece. It works fine without the mod, but with it, no dice.
[Google Pixel XL Themes, Apps, and Mods] mistermojorizin:
Same here. Had to uninstall it using the option to return to stock, reboot and then daydream VR was usable again.

EDIT: I think it's working now with the ULL version. Will test more tomorrow. But VR is stereo is so much better!
[Google Pixel XL Themes, Apps, and Mods] chdloc:
I made another adjustment to the mixer, which hopefully addresses the telephony issue you reported. Please test and report back.
[Google Pixel XL Themes, Apps, and Mods] bigsnack:
I take I should rename it to the same file as last time?
[Google Pixel XL Themes, Apps, and Mods] chdloc:
Yes, same procedure as before.
[Google Pixel XL Themes, Apps, and Mods] tbaker077:
Will you update the main files with this update?

HTC 10 and U11 have similar sound hardware, but it's tuned differently for a cleaner sound. I think HTC also includes some BT sound mods too if possible to add?
[Google Pixel XL Themes, Apps, and Mods] chdloc:
I will once I get some feedback on the most recent version.

There is no such thing at the codec level. Gains may have been adjusted differently. It is a well-known effect in the psychoacoustic community that folks mistake a slightly higher overall playback volume between phones as the louder one having better "clarity" and "punchiness".

I only work at the codec level, which naturally is bypassed in BT use-cases. There are plenty of mods that manipulate audio at the Android library level, which should include BT functionality.
[Google Pixel XL Themes, Apps, and Mods] bigsnack:
I tested it out today and it looks to be working fine. Thank you. Speaking for BT and to kind of get ot, was aptx suppose to be included in Oreo?
[Google Pixel XL Themes, Apps, and Mods] tbaker077:
I don't think it sounds louder, I just think it sounds clearer, and less sparkly & muddy.
[Google Pixel XL Themes, Apps, and Mods] tbaker077:
Yes, I'm also interested to know if we can get aptX to be added.
[Google Pixel XL Themes, Apps, and Mods] chdloc:
Apt-X is already supported on the Pixel running Oreo. There are new settings in the Developer Options. In addition to SBC, AAC, apt-X, apt-X HS, and LDAC are now supported. I do not have an apt-X capable BT device to test, but I ran a quick test with Apple's Airpods and the logs showed that the AAC audio codec was selected.

Which mod are you referring to? The dual loudspeaker mod does not aim to make things sound louder. The main loudspeaker is much more powerful than the earpiece speaker and there is no way to make the earpiece speaker play any louder without introducing distortions. The "stock" version of the biQuads mod does not alter the sound at all. However, it allows you to design your own custom filters to change the sound to your liking using the supplied app. The resulting effect can range anywhere from subtle to extreme, depending on your own design.
[Google Pixel XL Themes, Apps, and Mods] Nasty_z:
Alright so.. I can't seem to run the BiQuads app. It simply says "First run; initializing filters" and that's the last I see of the app. No app screen, nothing, it does ask for root permissions though as the toast notification is provided by SuperSU as soon as I tap the app icon. But that's it. I don't leave the app drawer screen.

I'm running Oreo October update with SuperSU 2.82-SR5 and tried it with both Elementalx Kernel and Harmony kernel.

Any help is appreciated. FYI the dual speaker mods work fine, it's just the BiQuads app that I can't seem to open..
[Google Pixel XL Themes, Apps, and Mods] chdloc:
Did you install the Oreo version from the OP? If so, please post a screenshot of the contents of the folder /sbin/supersu/xbin/biQuads
[Google Pixel XL Themes, Apps, and Mods] Nasty_z:
Thank you for your reply. Yes I am using the Oreo version and the screenshots are attached.
[Google Pixel XL Themes, Apps, and Mods] chdloc:
Try the attached updated apk.

Currently, one fundamental issue with biQuads is that the app is developed in and generated by Tasker. The October update must have rendered the thus generated apk unusable. I re-generated the app with the latest Tasker/App Factory. A related issue is that Tasker does not support the required mathematical precision to design the filters and the core of the algorithm actually happens inside a bunch of shell scripts that require root to function. This means that the app along with the scripts is sensitive to the root method used. A real mess. (Not to mention to snail's pace the app runs at.)

To alleviate these problems, I'm currently working on a native Android app (my first one) that I plan on making available -- to use Google's language -- "in the coming weeks"...
[Google Pixel XL Themes, Apps, and Mods] Nasty_z:
A native android app would be great. I have tried the APK you attached and unfortunately it has the same issue. I tried reinstalling the mod and then installing the APK on top (as update to the original) and that doesn't seem to make the app run either. Even tried uninstalling the BiQuads app that the mod installs and then installed the APK you attached but that also ends in the same result.

Let me know if I can do something else to help.
[Google Pixel XL Themes, Apps, and Mods] chdloc:
While I was able to reproduce the problem with the previous version of the app, I was not able to do so with the latest version. Could you capture a logcat and share the relevant lines?

Is anybody else having issues launching the app?
[Google Pixel XL Themes, Apps, and Mods] Juzman:
Ah, gotcha. Too easy. Seems script manager doesn't want to work.

Inside your 20speakerctrl it has:

#!/su/bin/sush
echo 0x8093 > /sys/kernel/debug/tfa98xx-34/regs/04-I2SREG
echo 0x240f > /sys/kernel/debug/tfa98xx-34/regs/06-AUDIO_CTR

Should it not be:

#!/su/bin/sush
mount -o bind /su/etc/mixer_paths.xml /system/etc/mixer_paths.xml
echo 0x8093 > /sys/kernel/debug/tfa98xx-34/regs/04-I2SREG
echo 0x240f > /sys/kernel/debug/tfa98xx-34/regs/06-AUDIO_CTR

Or, should I create 10speakerctrl with:

#!/su/bin/sush
mount -o bind /su/etc/mixer_paths.xml /system/etc/mixer_paths.xml

Edit: I just created a separate file to bind it. Now I need an easy way to execute the script after a phone call. :p
[Google Pixel XL Themes, Apps, and Mods] Juzman:
In the meantime since Script Manager isn't working, I have installed Material Terminal and created a "favourite command" which runs: su && sh /su/su.d/20speakerctrl for now. :)
[Google Pixel XL Themes, Apps, and Mods] mastamoon:
This sort of mod is also available for the S7, with a thread here http://xdaforums.com/galaxy-s7/themes/req-dual-speaker-t3339809

Wonder if you could squash any bugs by maybe taking a look at his methods and seeing if they are workable on the Pixel?
[Google Pixel XL Themes, Apps, and Mods] sionicion:
Sorry this is off topic, but I'm sure someone here might know. What values would I have to change in mixer paths to increase headphone volume? I tried changing so many values and it isn't working. I'm using a different kernel to increase sound but every time a song is over and the next one doesn't play quick enough, it resets back to the original values. I don't like using third party kernels either, I would rather change the values directly in mixer paths to increase sound. Any help would be appreciated.
[Google Pixel XL Themes, Apps, and Mods] chdloc:
This mod is available for a whole array of Android devices. The particular mod that you are referring to is applicable only to Cirrus Logic (Wolfson) codecs on Exynos devices. Very different.
[Google Pixel XL Themes, Apps, and Mods] chdloc:
If you are using a custom kernel and your volume adjustments don't stick, I suggest you take your question to your kernel's thread.

If you decide to go back to the stock kernel, you can increase the digital gain by 7 dB without increasing distortion. Find the "headphones" device in your mixer_paths.xml file and change both "RX1 Mix Digital Volume" and "RX2 Mix Digital Volume" from 77 to 84. Theoretically you could increase that value even further, but you will increase distortion in doing so.
[Google Pixel XL Themes, Apps, and Mods] sionicion:
I changed those values to 99 and nothing happened. I changed them to other values too and that didn't anything either. I never had any issue with my Nexus phones, I have noticed they call them digital mix now, it wasn't mix before.
[Google Pixel XL Themes, Apps, and Mods] chdloc:
You are likely running a custom kernel with sound control. That configuration blocks all attempts for volume modifications via mixer_path or tinymix. With the stock kernel I have absolutely no problems changing the digital gain.
[Google Pixel XL Themes, Apps, and Mods] sionicion:
I'm running one now, after the fact the setting change didn't do anything. But I'll put back the stock kernel. Would fastboot flashing stock system.img system A and B change the kernel back?
[Google Pixel XL Themes, Apps, and Mods] chdloc:
You need to flash the kernel and not system (unless you want to flash that, too), so issue

fastboot flash boot_a boot.img

You may need to use boot_b instead of boot_a, but that information is given on the bootloader screen.
[Google Pixel XL Themes, Apps, and Mods] sionicion:
I found some time today to tinker around and flash the November factory image. I reread what you said about finding the headphones section. In the past, changing the RX values at the top of the mixer paths file did the trick. I did change values in other places before but it didn't work. So this time I actually scrolled through on my computer looking for that 77 value because all the others were 84. That's when I found the headphones-DRE section, I set it to 99. Thank you!
[Google Pixel XL Themes, Apps, and Mods] Juzman:
Hey [MENTION=2760454]chdloc[/MENTION] I noticed I wasn't getting any notification tones. Checked settings, all ticked. Removed dual speaker files and rebooted - Have notification sounds again.

Sound in YouTube etc all worked with the dual setup though. Does this happen to you?
[Google Pixel XL Themes, Apps, and Mods] chdloc:
I'm getting notification sounds, but they are, expectedly, at a much lower volume. That's why I'm thinking to use Tasker and switch back to (loud) mono when the screen is off.

Are you using the mixer_paths.xml file that I attached to this post and do you happen to run a custom kernel?

Anybody else experiencing this issue?
[Google Pixel XL Themes, Apps, and Mods] Juzman:
I was running Sharkey kernel, but since switched to EX since they will be adding the dual speaker stuff into EXKM. I was using the mixer_paths from the zip you posted before.

Back to just stock mixer_paths for now, will wait for exkm update.
[Google Pixel XL Themes, Apps, and Mods] Yiggs:
Take all that back. Got it working again. Apologies for any notification spam.
[Google Pixel XL Themes, Apps, and Mods] chdloc:
Speaker control app

I've cooked up a simple Tasker-derived app that does the following (note that you will need to have modified your mixer_paths.xml according to the OP, or better yet use the one from here):

when the screen unlocks, the speakers are put in stereo mode (lower volume) by default; the earpiece plays the left channel and the main loudspeaker the right channel. I've currently hard-coded the main speaker gain.

when the screen is turned off the bottom speaker plays both left and right channels and the volume is brought back up to default levels. The idea is that, at least when using the built-in speakers, media is typically consumed with the screen on. When the screen is off this method will make sure that the notification and ringtone sounds come through nice and loud. The earpiece continues to play the left channel, albeit at at much lower level than the main speaker

when the screen is on, a permanent notification is shown with which you can toggle stereo (low volume) and mono (high volume) mode at any time.

To be able to perform the required changes the app -- or better a background process as it does not have any UI other than the notification -- needs to be granted root privileges. Once you have it installed, tap the app icon once and grant the required privileges in your root control app. After that the app itself will not do anything, other than show permanent notification and silently adjust the gains according to the screen state.

In parallel to this, [MENTION=4684315]flar2[/MENTION] has updated his kernel to support loudspeaker volume control as well as a mono/stereo switch, so it may be a good idea to use his kernel, my mixer_paths.xml file from here and, maybe this app. I'm not really familiar with his EX Kernel Manager app, but maybe it can be configured to allow for the same functionality as my app, so we would have a single point of control.
[Google Pixel XL Themes, Apps, and Mods] yung40oz84:
Ok, so I am a little confused... First I did not have anything in /su/etc originally, is that correct? Also, which version is the actual mod? Stereo or mono? When on stereo it is low volume which I understand is supposed to occur and mono is loud, but on either of them I still only hear audio from the bottom.....

Thanks ks for all the help, I've never used an audio mod like this. I used the archive u provided and play Ed the files,what is the permissions to be on the mixer_paths.xml in/su/etc? That wasn't stated, rw-r-r? I am also using the apk.

Mono sounds like it did before I started the mod, so I am imagining stereo,but like I said I don't hear audio anywhere other than the bottom firing speakers.
[Google Pixel XL Themes, Apps, and Mods] chdloc:
In combination with the app, this mod does both mono and stereo. It sounds like you don't have the mixer_paths.xml bind mount setup in /su/su.d . In that directory, create a file called, say 10mixer_paths, with the following contents:

#!/su/bin/sush

mount -o bind /su/etc/mixer_paths.xml /system/etc/mixer_paths.xml

make executable (rwx------), and reboot.

rw-r-r are good default permissions for /su/etc/mixer_paths.xml
[Google Pixel XL Themes, Apps, and Mods] yung40oz84:
Ok that was the problem, that file, I used the archive and that wasn't in it, woops, lol. Also, what exactly is the difference between mono and stereo other than stereo is much lower volume?
[Google Pixel XL Themes, Apps, and Mods] chdloc:
In both cases, the earpiece plays the left audio channel at the same level. In the stereo case the main loudspeaker plays the right channel at approximately the same relatively low level. In the mono case, the main loudspeaker plays downmixed (stereo to mono) audio at a much higher volume so you may not notice that the earpiece is playing audio, too.
[Google Pixel XL Themes, Apps, and Mods] Nasty_z:
Just did a fresh install of the Oreo Factory Image and all I did was flash Harmony kernel, Supersu and install the BiQuads mod with the new apk. Tried to run it 2-3 times when the log was being captured. I'm not really sure what's relevant but maybe you can take a look?

"Permission Denied" seems relevant to the issue. I think it happens each time I try to run the app. Could that be the cause of the issue?
[Google Pixel XL Themes, Apps, and Mods] bigsnack:
Has the app been updated to include the latest corrected files?
[Google Pixel XL Themes, Apps, and Mods] kingbri:
When my headphones are plugged in, they are outputting through the earpiece. How do I fix this?
[Google Pixel XL Themes, Apps, and Mods] chdloc:
Thanks for the logs. I have not yet made progress on finding the cause for the app not opening for you. I'll keep looking.

Not yet. I'd like to get some more feedback first.

Try the mixer file that I linked here. Rename to mixer_paths.xml, copy to /vendor/etc, change permissions to 644 (rw-r--r--), and reboot
[Google Pixel XL Themes, Apps, and Mods] Nasty_z:
There is something else, when I try to install the mod, the script ends successfully but it does say myawk file not found or something along those lines. Pretty sure that's the file name.

This happens every time I install the mods through the script. Just pointing this out now in hopes that it's helpful.

EDIT: I tried to reproduce this error by reinstalling the mod and it said /sbin/SuperSU/myawk file not found.

Then I used root browser to manually copy the myawk file from /data/local/tmp/chdloc_hardware_audio_mods_pixel/biQuads_universal/biQuads/su_xbin to sbin/SuperSU/myawk

Now the error won't show up but I still cannot open the biquads app.
[Google Pixel XL Themes, Apps, and Mods] kingbri:
I have the same problem, but I am on Magisk SU
[Google Pixel XL Themes, Apps, and Mods] chdloc:
That's the clue. Thanks!

I need to modify the installer, which will include all the modifications found so far. Until then you could locate the two binaries ('bc' and 'myawk') from the current installer archive, manually copy the files to /sbin/supersu/xbin and make executable.

On a different note, the fact that this error has only now been discovered tells me that this mod is not used at all...
[Google Pixel XL Themes, Apps, and Mods] Nasty_z:
Glad I could be of help. I can't speak for others but I just received my Pixel XL three days ago (Nexus 6P RMA replacement ;)) and I am curious to use your mod. Was even about to downgrade to Nougat to try it out cuz audio is important to me.

Looking forward to your next update. Let me know if I can be of any further help :)
[Google Pixel XL Themes, Apps, and Mods] chdloc:
Please test the update that I just added to the OP. It is probably best if you first manually delete all files and folders with the pattern

chdloc*

in

/data/local/tmp

before proceeding.
[Google Pixel XL Themes, Apps, and Mods] Nasty_z:
I'm afraid the issue still persists. BiQuads app doesn't show, just the toast saying "first run ; initializing filters" and the toast by supersu indicating that BiQuads has been granted root access.
[Google Pixel XL Themes, Apps, and Mods] kingbri:
Is there any way you could make the stereo speakers louder? my speakers are very dull at full volume when using your mod. I have to use v4a extra loud and dolby digital plus to make the speakers have a decent decibel count
[Google Pixel XL Themes, Apps, and Mods] chdloc:
There is no way to increase the earpiece's volume further at the codec level (what I'm doing here) without introducing nasty distortion. Dolby and v4a do it by adding compression at the software level. If you already have those solutions installed why don't you continue using those?
[Google Pixel XL Themes, Apps, and Mods] kingbri:
It just makes it decent, not loud like the mono speaker, thanks anyway
[Google Pixel XL Themes, Apps, and Mods] bigsnack:
If I am rooted and this months update showed up for me; do I just uninstall the mod or do I have to do more to get the ota to install(it's not letting me currently)?
[Google Pixel XL Themes, Apps, and Mods] chdloc:
I honestly don't know. I've been manually flashing the OTA.

I wrote the uninstaller in such a way that the stock files including the timestamps are preserved. I don't know how exactly Google flags system/vendor partition modifications, so you can try uninstalling the mod first before accepting the OTA. If that does not work, manually flashing the OTA works even with modified system/vendor partitions.
[Google Pixel XL Themes, Apps, and Mods] bigsnack:
I don't have twrp how would I go about doing that?
[Google Pixel XL Themes, Apps, and Mods] chdloc:
You can install Google-signed OTAs using the stock recovery. The instructions along with the OTA zip files can be found here.
[Google Pixel XL Themes, Apps, and Mods] kirschdog1:
Chdloc running this now on my pixel XL sounds amazing. Good ups.
[Google Pixel XL Themes, Apps, and Mods] bigsnack:
Thank you! I take I loose root with this method?
[Google Pixel XL Themes, Apps, and Mods] chdloc:
Correct, but it is easy to get root back.
[Google Pixel XL Themes, Apps, and Mods] bigsnack:
Yeah root was fairly easy. Thank you.
[Google Pixel XL Themes, Apps, and Mods] kartikb:
Is there a Magisk mod for this to keep the system untouched??
[Google Pixel XL Themes, Apps, and Mods] chdloc:
No, there is currently no Magisk module available.
[Google Pixel XL Themes, Apps, and Mods] David522d:
Anyway to get this to work on paranoid android? Or this works with every rom without any problem?
[Google Pixel XL Themes, Apps, and Mods] onesolo:
but, are u thinking of doing one?!

Aside the magisk thing, is it possible to have a similar thing but just for the stereo capture ?! I couldn't care less for the rest... stereo capture is one of the things that google phones, pixels and nexus, lack!!!
[Google Pixel XL Themes, Apps, and Mods] chdloc:
The fundamental idea of Magisk modules is that the system or vendor partitions do not get modified by taking advantage of bind mounts. Unfortunately, as of Android Oreo, the bind mount approach does not seem to work with mixer_paths edits as the file is being read before the bind mount option becomes available. That may have changed with more recent versions of Oreo, but I have not checked. I'll do that once I install the next Android security update. Unless bind mounts are available again for mixer_path edits, a Magisk module only serves as a convenience and I will not bother with a Magisk module. If somebody else wants to do it, of course you are welcome to do so.

One of the install options is to apply the stereo recording mod only.
[Google Pixel XL Themes, Apps, and Mods] dashx89:
A little request here for the speaker control app.

It is great to use Quicktiles instead of the permanent notification. Ideally two tiles needed at least, one for Mono & Stereo mode, another for Stock & Adaptive mode. By clicking the tile will toggle/switch between the mode.

Btw the mod work very well, very appreciate your work :)
[Google Pixel XL Themes, Apps, and Mods] chdloc:
While Tasker does now support Quicktiles (the control app/service is made with Tasker), I get the feeling that folks don't really care enough about this mod to warrant additional software development. I certainly plan on keeping it in sync with upcoming Android updates, but I was not going to spend more time on developing new features.

That said, once the mixer is properly configured, changing the mode back and forth from mono to stereo is almost trivial as only two shell commands are required (see OP). If anybody wants to work on a Quicktiles implementation, feel free to do so.