yashsingh1/xdaforums huggingface dataset:
[One (M8) Android Development] williamtavares:
Thanks a lot, i also have more questions:

If i chose Harman/Kardon, my speakers will have blasting sound like BoomSound?

And for headphones, is there difference among BS and HK, can you tell wich?
[One (M8) Android Development] santod040:
Everyone's sense of hearing and audio perception is unique, as we are all different.

Best to try for yourself and see which you prefer.

I will say yes, there is a difference...
[One (M8) Android Development] Sneakyghost:
DUDE. For real?

Philz is NOT working for anything on the M8. Stop using it. Asap. Jesus.
[One (M8) Android Development] xunholyx:
Yes. Your recovery is over 10 months old. Philz has not been updated since then. It's an unsupported recovery at this point.
[One (M8) Android Development] Captain_Throwback:
I added some information about this to my post on the first page. Go ahead and give it a read.
[One (M8) Android Development] VectorM8:
OK ok anybody else ??? :) on TWRP from now on :)
[One (M8) Android Development] Sneakyghost:
Seriously. I spent a considerable part of the day flashing several ROM's to find out about these problems. None turned up. I should have asked for recovery specifically again.

When i wrote Post #2, i had in mind that people take it to heart and submit proper information.

Had you done that and supplied me with info on recovery, like i asked in Post #2, i could have solved your problem within 5 minutes.

I have reasons to ask for information. I am not asking for harassing users. Take it that i have some experience with our beloved M8 device. And a lot of experience with previous devices. I know the quirks. Most of them. And if I don't recognize a familiar bug, chances are that Guich or CT or someone else reading here will. Provided the information is complete.

[EDIT]

I uploaded a new version. Nothing really changed except i replaced all files in the HK folder with their equivalents from a fresh system dump CT made and gave me. Why? Because [MENTION=4174733]Behold_this[/MENTION] noticed inconsistencies with audio_policy.conf in /system/etc and that made me properly diff the files again. Found out the source i had been using has a few files not being the same as on CT's dump, which i consider proper and reliable. So i swapped them out.my HOPE is to get rid of the rare BT stuttering, although i really doubt thats gonna happen, as the differences in that file were not actually related to BT. It was missing audio formats.
[One (M8) Android Development] Iceberger:
The welcome screen of 4.2.0 is still showing the old info from 4.1.0 ;)
[One (M8) Android Development] jhakjhuk1853:
Anybody took risk of flashing adsp on s-on device+

I'm planning if anybody has some insight

---------- Post added at 01:27 PM ---------- Previous post was at 01:26 PM ----------

Anybody have tried flashing on s-on device

I'm planning to try if anybody got issues letme so I won't flash
[One (M8) Android Development] Forsaked:
It won't work, you get an error message while trying to flash the adsp manually, that it!
[One (M8) Android Development] EarlyMon:
Reading the first post -

Learn it. Live it. Love it. ;)
[One (M8) Android Development] Sneakyghost:
The disclaimer warning you of possible damage, which you see in the first post, and in the Aroma UI is just to make quite clear we are taking no responsibility.

As long as most NAND partitions are locked behind Security, you can try to flash partition images as much as you want. It will just fail and throw some error code at you. Nothing more. The only partitions that get unlocked by HTCDev unlock are System, Data, Boot, Recovery. All others remain behind bars and are not writable as such.
[One (M8) Android Development] Sneakyghost:
Thanks. When did i upload that again? Like 3 am in the morning. I will reupload.

[EDIT] Fixed. I hope.
[One (M8) Android Development] SaskFellow:
I HTCDev unlocked my phone and I have full S-Off. I've gone Super-CID, flashed red text removed hboot, flashed numerous versions of this mod.

Unless I'm missing something, but the last walls got torn down by kernels removing the write protection. So maybe it's carrier dependant for how much gets unlocked?

Thank you for this mod, I really do prefer the way it makes my phone sound. :)

Edit:

New download, properly refers to the right version which is 4.2.0 in Aroma
[One (M8) Android Development] santod040:
You are s-off, that's why it works and adsp is able to be changed.

The fact that you HTC Dev unlocked is irrelevant once you have gone full s-off.

What was being said, is that if you are still s-on and HTC Dev unlocked, then you cannot write to the adsp partition of the device.

HTC Dev unlocked + s-off, of course you can.

That's one of the many benefits to being s-off and not just bootloader unlocked.

So, hopefully this is clear now, as to why you think using HTC Dev is enough to make it work, it's not.

This requires full s-off to physically change the adsp image, which you have said that you are s-off, therefor yes, it works.

A kernel with system write protection disabled is not going to do anything for overwriting the adsp partition, as it is not part of the system, it's part of the firmware and has it's own partition block.

Anyhow, glad it works for you and you are enjoying it..just trying to prevent further confusion from your statement about HTC Dev.

s-off + unlocked bootloader = can change adsp image

s-on + unlocked bootloader = cannot change adsp image

So the difference is in your security being on or off, not anything to do with how the bootloader was unlocked.
[One (M8) Android Development] mannyelite:
[MENTION=1331268]santod040[/MENTION] will this mod work with your LS 4.0 ROM? I know i read the HK only works with Sense based ROM, but i don't know if it also applies to BS.

Thanks!
[One (M8) Android Development] Sneakyghost:
Why don't you backup your ROM, then test it?

You could contribute a report I could add to the first page...

Mobile Post
[One (M8) Android Development] santod040:
He's asking about LiquidSmooth which is an aosp based Rom.

No, it doesn't work on Aosp.

It works on Sense only, both BoomSound and Harman Kardon.
[One (M8) Android Development] mannyelite:
Sure, why not... will test and see how it goes...

---------- Post added at 01:57 AM ---------- Previous post was at 01:56 AM ----------

Thanks!!! Was about to flash the mod when i saw your post.
[One (M8) Android Development] Hades8x:
thanks for awesome mod. can i use mod with viper4android. my rom is viper 4.2.0?
[One (M8) Android Development] .Ryker:
Haven't heard of any issues, if you do have any make sure to post them here though.

Make sure to do a back up is all and always flash H/K after other sound mods.
[One (M8) Android Development] Sneakyghost:
People could you focus on Bluetooth Headset/Speaker performance please and report if any issues with stuttering arise.

No need to report when BT is working for you. I have only two reports of stuttering on BT and I would like to find out more about it. So if you DO have stuttering, report please and let me know what type of file where you playing (mp3, FLAC, FLAC 192/24 etc.), what Bluetooth did your Headset/Speaker support? Was it BT 4.0 with apt-x or without, etc.

ROM is important too of course. Recovery maybe. Better mention it as well.

1 report i had described "stuttering of sound when played via Bluetooth headset and the screen being off".

1 report i had described "stuttering of sound when played via Bluetooth headset with screen on and phone kept busy (multitasking)".

Anyone else?

No stuttering = no reports = no problem.
[One (M8) Android Development] frankcck:
Report:

Stuttering of sound when played via Bluetooth Speaker with both screen on and screen off regardless of multitasking or leave it standby at homescreen.

Firmware: 4.16.401.10

Rom:ViperOne 4.2.0

Device: AT&T with superCID

Speaker: BT 4.0 with apt-x

Files: 320k mp3, FLAC 192/24, and music from Google play music

HTCOneM8 by ViperOne M8
[One (M8) Android Development] Sneakyghost:
Meh. Thanks. So it's rather real. Hoped I would hear no further reports. Used the latest 4.2.0 version I assume?

Mobile Post
[One (M8) Android Development] frankcck:
Sorry that I forgot to mention I'm using the latest 4.2.0, it also happened in 4.1.0 though.

HTCOneM8 by ViperOne M8
[One (M8) Android Development] Deathsting_50cal:
Seems to be working fine on Eragon rom. No stutter or any problems. fyi
[One (M8) Android Development] xunholyx:
It's not the ROM. I use bluetooth always. ViperOneM8 4.2.0. Not stuttering for me.

I know you didn't want to hear not stuttering reports Sneaky. Sorry. But I felt I had to respond.
[One (M8) Android Development] Captain_Throwback:
I'm wondering if apt-x is the key here. I don't have any BT 4.0 or apt-x devices. Is everyone having the issue using it with new BT hardware? I personally only have old a2dp stuff to test on/with.
[One (M8) Android Development] smeejaytee:
Bluetooth and aptx working perfect for me with mp3 I don't know about flac as I don't have any music in that format.

Currently on viper 4.2.0 with quantum kernel Ondemand governor 2048 read ahead and deadline scheduler, I'm on latest firmware wwe . Screen on and off work perfectly.

If you can link me to a flac track I'll test.
[One (M8) Android Development] frankcck:
Change Governor to performance likely solved stuttering issue. Was on ondemand.

However, there was no problem that using OnDemand on Viper 3.2.1 with H/K.

HTCOneM8 by ViperOne M8
[One (M8) Android Development] Behold_this:
Post 3
[One (M8) Android Development] smeejaytee:
Wow that's some hard core test track lol, anyway I played it using HTC music player with screen on and off and had no issues at all it played all the way through without issues, also the quality was amazing I need to start getting my music on flac format lol.
[One (M8) Android Development] Faulker:
Stuttering on mine, usually about one sputter per 30min. Tested on car stereo and mobile BT speakers...does it on both.

Rom: Fluentrom 2.0

Kernel: Stock

BS Switcher: 4.1 and 4.2
[One (M8) Android Development] boe323:
What about increasing the buffer size? I don't have any issues what so ever, had more problems with boomsound than this mod, flashed it on my oldmans because of the problems of cutting in and out when the dotview case is closed, although I have added a few more sound files and libs form hk to a mod ive made, its spot on here. Try enabling the wideband handfree profile maybe?, its more speech than sound though. Maybe a buffersize of 2048 would do the trick?.Oh and disable LPA DECODE. Probably the things you don't want here but, it is a mod after all, pooh happens.
[One (M8) Android Development] frankcck:
I've tried to install ProjectERA which disabled LPA and it didn't work.

Besides, changed buffersize to 2048 didn't work too...

:eek::eek:
[One (M8) Android Development] Sneakyghost:
So to summarize,

We have stuttering on BT 4.0 with Apt-X and with older BT as well.

Its not that then.

I tested this with another old broken Nokia BH-505 headset (got only one side working) and that has Apt-X, while my other cheapo BT headset has not. I get no stutter on either one.

One thing that is not clear to me yet: Did you all use the HTC Music app (that is relevant. Other players often don't even utilize the ADSP, they often times use the CPU, which can cause stuttering while screen is off).

Could you please report on the apps you used and if you haven't tried with HTC Stock Music app, repeat your test with that one?

Other than that, i am currently wondering if the hardware parts are to be blamed / the Lollipop Firmware/Software is too fine tuned to account for these differences? [MENTION=735742]adamlee011[/MENTION] told me, he gets the stutter on both BoomSound and Harman/Kardon. This is something that also makes me think that its maybe a fine-tuning problem HTC introduced with the latest software.

Something you guys can also check out. BoomSound stutter yes/no.

Adam is on a Sprint phone though. Don't know if that makes any difference.

And [MENTION=4702469]boe323[/MENTION] I believe we caught all relevant mod files this time. There will most likely be no additional effect by adding other files. Captain did the diff INT/HK this time and he's quite good at it. I'd think the likeliness that he missed files is low.
[One (M8) Android Development] adamlee011:
Nice thread, snarkey.
[One (M8) Android Development] epsix:
T-Mobile US, Bluetooth works great with stock HTC music app, don't know about Flac, never used it.
[One (M8) Android Development] Captain_Throwback:
So download one and test it ;).
[One (M8) Android Development] tsalta:
maybe a stupid question but since i wana stay for now with the Kitkat

can i use 4.2 Switcher with Viper 3.2.1 ? Kitkat

i mean to try out the new HK files?

Thanks
[One (M8) Android Development] Captain_Throwback:
These files are for Lollipop. Just as the previous version wouldn't work on Lollipop, it's highly likely the reverse is also true.

But, feel free to nandroid and try it out, then report back.
[One (M8) Android Development] abbreinholt:
I'll chime in with my scenario. There is no stutter through the BT with BoomSound, however, the stutter appears with screen off through the external speakers. HK stutters with BT, gets worse with screen off. HK doesn't stutter with wired headphones or external speakers. I've also noticed that I can induce music debilitating stuttering by activating the g sensors in the phone (ie waving it around, shaking it...). Might be something worth looking into.

I use multiple apps for audio and can confirm that all of them stutter with the scenarios above. HTC music is my main music app, and then I use Smart AudioBook player for books. I have tried tweaking with Power Amp max buffer and suggestions from Adam to no avail. My stutter disappears as soon as HK is toggled off...which sounds horrible after being used to HK.

The stock RUU runs HK perfectly. Which makes me think that it's a firmware/viper issue, not hardware. Then again, that doesn't explain the randomness of it all. Is this happening to random Sprint m8s or just HK editions? Is Sprint the only provider that this has been happening with?

For now, I'm running Viper 3.2.1 until some of the kinks of 4.x.x get ironed out. I'll be happy to restore and test anything you give me.
[One (M8) Android Development] frankcck:
FYI [MENTION=1102297]Sneakyghost[/MENTION]

In my case, Boomsound has no problem at all. And the stuttering sound would gone if I switched off Clari-Fi.

I use both HTC Music and Google Play Music, they both have stuttering issues.

HTCOneM8 by ViperOne M8
[One (M8) Android Development] smeejaytee:
I just read this statement and i didn't know that other players don't tend to use the adsp and I've not properly used HTC music player for a long time as I purchased power amp but I've just spent 30 mins listening to music via HTC music and I can confirm the sound quality compared to power amp is immense imo, there is so much more sound if that makes any sense I can hear every noise I've now uninstalled power amp (waste of money) I'm really enjoying my sound now (listening as we speak). Thanks for that info sneaky.
[One (M8) Android Development] tsalta:
well I DO try almost all posible players in the Market Payd and Free with the Proper Mods the Stock HTC Music Player is THE BEST ever
[One (M8) Android Development] smeejaytee:
I totally agree now I've actually listens to it I've been using power amp for a long time but I won't be going back.
[One (M8) Android Development] Behold_this:
Already been done. Confirmed working on tmobile by me per post number 3. Flac plays great, but always good to get more confirmation.

@ Everyone

As always the link with downloadable test files are found, wait for it...in post 3.
[One (M8) Android Development] Sneakyghost:
My ears are pretty f*cked up from too many raves in teenage years so i can't hear many fine details. I can't judge one player over the other, but i can hear obvious errors in music playback.

VLC has random drops in music every now and then. Clear sign of not working with music files as intended. HTC Player never does that to me.

However, to answer one question that has been asked: no, it is by no means Sprint phones only (although they do suck and give us random problems over at team venom, some really rare problems only found on Sprint phones). J_to_the_4n's phone shows this behavior as well and his is a standard WWE model.

The thing i don't get: it should be ALL phones if it was some missing files, like we had seen with this mod in earlier versions before. Whenever there was a file forgotten, everyone could immediately reproduce the issue.

Now, it also happens on every model, every ROM, every Kernel, so its like we missed a file, BUT, its only happening to some units. Not every unit. I can't see an obvious pattern yet.

Also, i am calling it a night. Feel free to drop observations. Refrain from wild speculations. Those only confuse clear thought.

I will get back on this tomorrow.
[One (M8) Android Development] Faulker:
My stuttering is with Google Play Music and Pandora.
[One (M8) Android Development] Mikee4fun:
Edit, fixed my issue, solved, works perfect
[One (M8) Android Development] abbreinholt:
If you like the way power amp is interfaced, you can toggle the volume control settings to allow hk and the adsp to be used rather than the power amp settings. You'll get the hk sound and not feel like you wasted a bunch of money.
[One (M8) Android Development] Maedhros:
Installed the latest version. According to my HBOOT I am on the HK adsp.

However it isn't visible in my settings.

Latest viper rom, stock kernel.

My carrier is Rogers in Canada.
[One (M8) Android Development] darkmantra:
Deleted

Sent from my HTC One_M8
[One (M8) Android Development] adamlee011:
Def not just sprint but it seems like you can categorize it into three groups. Those without stutter, those with stutter during activity (as mine is) and those with screen off stutter which is the most concerning thing to me. I don't have that. On htc music player btw. I think we should stick to talking about that player only from now on. But yea, no matter what, if I'm not doing anything and my even is off connected to bt in my car or wherever for that matter, it plays smooth no problems. People claiming the screen off is CAUSING stuttering... It boggles the mind. But I might put that in a category seperate from mine, which seems to be basic performance limits.
[One (M8) Android Development] frankcck:
As I've mentioned several times, once I changed governor to performance the stittering issue was gone. But I doubt that we need to be on maximum frequency to handle H/K Clari-Fi.

HTCOneM8 by ViperOne M8
[One (M8) Android Development] adamlee011:
I missed that so I'm glad you repeated it, just backs up my performance theory. I haven't messed with kernels or kernel options on the m8 because you really don't need to. Normally it can handle anything and then some with stock performance. It's weird that they would have messed up audio performance. If in fact they did.
[One (M8) Android Development] Kamkor82:
I dunno if it makes a difference but I was getting the same thing on Viper 4.2.0, stock Kernel, and HBOOT showed correct ADSP.

But using TWRP 2.8.1.0. I changed to latest TWRP 2.8.5.0 and re-flashed and I have working settings. Not saying that will FIX it but...worth a shot.
[One (M8) Android Development] Sneakyghost:
It will fix it. Very most likely. The previous dudes who had that problem ran Philz Touch (one) and the others didn't report back but its pretty clear Aroma and Updater-script can't properly do their jobs if the recovery doesn't work 100% with the newer firmwares and security stuff. I am not able to explain how this exactly works together, but we know for sure CWM is dead and Philz is even deader and haven't been kept up-to-date with latest developments in Android, so a LOT of things go south there. Older TWRP's partly misbehave too.
[One (M8) Android Development] SaskFellow:
I'm going to guess that it has something to do with the governor settings, when dealing with screen on stuttering, and the maximum screen off frequency when dealing with screen off stuttering. H/K clarify is not just the DSP settings but is also a software processing component, the more it does the bigger the load on your processor.

I'd also be interested in knowing what's running in the background, security/media/messenger/crappy ad pushers, could all cause an unhealthy load on the system. Which could add to the likelihood of stuttering, as well as the quality of the file being played.

Add on that lollipop at current has some crappy memory leaks and other bugs.

You have a complicated situation with many possible points for issues, that do nothing but make a muddy situation.

I like to think I run a clean phone with only a few added apps, and I've experienced hitching just using the phone, and it seems that clock speed doesn't make much of a difference.

Edit:

I'm using 1.3 GB of ram, just idling with Chrome eating 450-500MB by itself... I got some tidying to do.

Edit 2:

I disabled the animations in lollipop, cleaned the caches, rebooted, now Chrome is using 280MB of ram, and overall the system is using 1.07GB of ram.

Downside is that it's feeling very very jerky until it recaches everything. Now that it has smoothed out: 350MB and 1.11GB in use respectively. It's still a little laggy on input.

Everything is patched, latest ElementalX kernel, under MaximusHD 11.0.
[One (M8) Android Development] Sneakyghost:
Although it's an interesting thought, I doubt it's memory leaks when dealing with Viper, because Jan has taken steps to ensure those won't happen anymore. There's a few things that can be done and Viper is pretty much free of memory leaks.

Huge CPU load would also be rather unlikely, simply because we'd seen massive Battery drain reports at the same time when reporting the stuttering. The CPU runs normal, especially with screen off.

Much more likely to do with frequency management, e.g. Governors and how the audio libs request resources to be allocated.

I still think it's likely we're missing one or two libs.

I wish I'd see people reporting on the original mod. It is very quiet over there. I'll need to take a look inside that mod and see what the other guys included. [MENTION=1331268]santod040[/MENTION] put the last version together I think? Need some time for that. Maybe he can also shed some light onto that.

Unfortunately I'll be in a training this weekend and then it's M9 launch time and I'm not sure I'll be doing anything else but stalk HTC on social media then.

Really curious how the new BoomSound is gonna be.

Mobile Post
[One (M8) Android Development] smeejaytee:
If the latest leaks are anything to go by its got some new speakers with better sound, and I would imagine they would want to improve over the m8 as it looks identical so they've made the specs extra special by the look of it, I want one badly but might have to wait some months before its an option for me crying!
[One (M8) Android Development] santod040:
I've put together a Switcher zip with a few additional files I added when doing a clean diff.

They could potentially help those with bluetooth stuttering, but then I have no way of guaranteeing the same results for all rom bases, kernels, music players, audio file quality, etc...

Let me know if you want me to post it here for folks to nandroid and test or in the other thread, or what you prefer.

I have it uploaded and ready to go...
[One (M8) Android Development] Sneakyghost:
Fine to post here mate. It's for the science, right :D

Mobile Post
[One (M8) Android Development] frankcck:
[MENTION=1102297]Sneakyghost[/MENTION] if you don't mind you might can compare with lyapota's H/K mod.