• If you are experiencing issues logging in, we moved to a new and more secure software and older account passwords were not able to be migrated. We recommend trying to reset your password, then contacting us if there are issues.
  • Nearly done! Migration cleanup is mostly done. There are a small number of issues left that we continue to work on, but all the heavy lifting is done. We still would love to hear feedback over at this thread and also check out the new XDA app! Thanks and we hope you enjoy the new forums, and thanks for your support of XDA <3

Audio [MOD][2016.02.15] - HK - BS - JBL / Aroma Switcher 5.0.3 / ADSP v62.2.2

Sneakyghost

Elite Member
Jul 24, 2008
8,295
13,572
113
InMyHead
Aroma HK / BS / JBL Switcher

Features:
- Flash the Harman/Kardon function of the Harman/Kardon Sprint M8 to stock GSM, VZW, and Sprint phones
- Flash the BoomSound function back to all phones, make the Sprint H/K Phone a BoomSound phone (theoretically working, untested).
- Flash the JBL Audio function of the Butterfly 2 to stock GSM and Sprint phones (much like H/K, mostly a cosmetic difference)
- Each function being selectable in a neat Aroma UI, flashable via recovery.

Requirements:
- S-OFF is mandatory - do NOT try to flash the ADSP to S-ON Phones - the risks are unexplored. Damage might be inflicted!
- S-ON and S-OFF Harman/Kardon Phones can use this mod too to restore their HK functionality on ROM's that only come with BoomSound like e.g. ViperOneM8!
- Recovery to flash: needs to be a current TWRP! NO Philz, NO CWM please!
- HTC Marshmallow Sense ROM! No AOSP, AOKP, Cyanogen, GPE or whatever Senseless...

Changelog:


5.0.4
  • Updated files for JBL option from the Official Butterfly 2 4.10.709.2 MM release, including the addition of the JBL ADSP
Reverted to v5.0.3 for now
5.0.3
  • Updated the ability to flash the JBL Audio function of the Butterfly 2 from last update to now include the Verizon M8 as well

5.0.2
  • Added the ability to flash the JBL Audio function of the Butterfly 2 to stock GSM and Sprint phones
    (much like H/K, mostly a cosmetic difference and not yet working for Vzw)
  • Made edits to installer script to change the value for the effect manager id for each audio option chosen
  • Updated Verizon logo/icon in aroma (cosmetic change only)

5.0.1
  • Removed Beta tag/considered stable
  • Fixed some file duplicates from Beta 2 upload
  • Added HTC Audio Configuration from HK and stock configs for return to BS

5.0.0
  • Updated to Android 6.0.0 and latest ADSP’s for both HK and BS.
  • Updated BoomSound files to 6.12.401.4, HK files to 6.20.654.3
  • Executing shell scripts from TMP again rather than RAM - the ram method stopped working for some reason.
Previous:


  • 4.3.1
  • Added Sprint HK "Stagefright" vulnerability patch to mod (source: Sprint HK security OTA) - unlocks 192KHz/24Bit files on Boomsound too, unexpected side-effect.
  • Added all other HK related files that were updated by HTC/Sprint with 4.25.654.18 OTA
    4.3.0
  • Reworked the whole file setup with Santod040's diffing job (MASSIVE thanks) and my own humble clean-up job. Should fix BT stutter.
    4.2.0
  • Corrected Harman/Kardon Lollipop files. Seems, I had an unclean source.
    4.1.0
  • replaced the script to edit settings with the universal version from @EarlyMon to hopefully fix some carriers not changing settings (THX!)
  • Executing said shell scripts from RAM rather than /tmp - minimize copy fails
    4.0.0
  • Updated to Android 5.0.1 and latest ADSP’s for both HK and BS.
  • Updated BoomSound files to 4.16.401.10, HK files to 4.20.654.10
  • Replaced Verizon HK and BS Settings with mod from @santod040 (THANKS!)

Tested on: see post #2!

Known issues:
  • On 5.0.x: With ViperOneM8, there is a sporadic Settings-FC when enabling Bluetooth for the first time after changing to Harman/Kardon


Some release notes:
- People on Lollipop ROM's please refer to 4.3.1 Version! 5.0.x is Marshmallow only!
- Harman/Kardon ADSP 6.2.2 seems to be serving BoomSound just as well, again. So, you actually only need to swap to HK ADSP once, and leave that one in, even when going back to BoomSound.
- The new 5.0.x switcher works with Marshmallow files for GSM and Sprint. On VZW it works with ported MM ROM's, but not with older LP ROM's.

Additional Info for interested people
The logic of the File setup can be seen here: https://docs.google.com/spreadsheets/d/1xxXC00mpjq8cBgZUz0jOLx20qrC5W4JY0ZrbbBmG81M/pubhtml It has been updated to reflect the current 5.0.0 (Mod) version.

A little disclaimer:
We take no responsibility for any damage done to your device following a flash of the ADSP image with our flasher. You are aware that flashing firmware partitions always carries a risk of damaging your phone. You agree to not hold us responsible for damage arising out of you yourself deciding to flash this after we have clearly pointed out the attached risks.

Credits:
Go to everyone who contributed to porting the Harman/Kardon feature from the original Sprint HK M8, on both original threads from Scrosler and Baadnewz. I wish to express my gratitude for this community effort. Some names that stood out most and whose work was directly or indirectly put into the Aroma version of the mod:

scottsroms.com - for maintaining the original mod - THANKS!
@Steve0007 - for digging through the files and finding stuff
@santod040 - for doing the major workload by now (Version 5) and all the help before - THANKS!
@benny3 - for providing files originally on Scrosler's and Baadnewz threads.
@O.M.J - for providing files originally on Scrosler's and Baadnewz threads.
@EarlyMon for original shell scripting - thanks a ton!
@Captain_Throwback - universal wizardry, know-it-all, professional attitude
@baadnewz - the great initiator
@lyapota - the great initiator part two, and for scripting.
@ivicask - for the idea and being a very capable file monkey
@nkk71 - for double checking and advising on scripts in version 5

Thank you, Guys!

Download:
Marshmallow version 5.0.3 (or check DevDB download tab)
Lollipop Version 4.3.1 is here or check downloads tab of DevDB.

Optional Kernel: (Marshmallow only)
This will take care of any issues with High BitRate Flac audio files that don't play properly.
This is a stock Harman Kardon kernel which uses the AnyKernel method of install, so it won't touch your current ramdisk.
Harman-Kardon_HD-Audio-Enabled_Stock-Kernel_Multi-Variant.zip

Viper4Android Aroma Installer - Compatible with HK/BS/JBL Switcher:
See My V4A Mod Posted Here

XDA:DevDB Information
Audio [MOD][2016.02.15] - HK - BS - JBL / Aroma Switcher 5.0.3 / ADSP v62.2.2, ROM for the HTC One (M8)

Contributors
Sneakyghost, Santod040, Captain_throwback
ROM OS Version: 6.0.x Marshmallow

Version Information
Status: Testing
Current Stable Version: 5.0.4
Stable Release Date: 2016-02-15
Current Beta Version: 5.0.0
Beta Release Date: 2016-01-31

Created 2015-02-20
Last Updated 2016-02-16
 
Last edited:

Sneakyghost

Elite Member
Jul 24, 2008
8,295
13,572
113
InMyHead
Notice to everyone:

I would like this thread to be kept short and simple. It only serves the purpose of "uncluttering" the original HK Audio Mod thread and should help get this Aroma based mod some proper discussion without me feeling constantly like i actually hijacked another thread.

I will ask other members to refrain from discussing audio quality in here as best as you can, because that is pretty pointless with this mod. The files are mostly set and not much we can further find out about the composition of the Harman/Kardon functionality. Modifications to sound-relevant files are NOT done here. All HTC standard files.

What i want to discuss:
- Scripts (Aroma/Shell)
- File composition (did you really find that one file i missed or are you audio hallucinating)
- Other aspects of the mod.


HOW TO WORK WITH DEV DB
In order to have this clean and tidy, XDA had the brilliant idea to introduce the "Dev DB" feature. That is the black bar at the top - it has several headers.

Disucussion - this main thread. It is not for Off-Topic, obviously, but it has a broader spectrum.
Screenshots - i will not be using that!
Downloads - thinking of putting all downloads there
Feature Requests - feel free to drop feature requests here, yet be aware there is not very much to be added.
Bug reports - in future, please drop PROPER bug reports there ("It doesn't work" doesn't count as one!) Logfile, getvar all output, ROM version, recovery version.

In order to achieve this handling, i might be reporting a fair number of posts, so please don't feel offended, just accept that i might not want every discussion in here.
Tapatalk Users: please be aware that some or all of those Dev DB features might not be available for you. I believe this is, for now, only accessible through the web interface.
 
Last edited:

Sneakyghost

Elite Member
Jul 24, 2008
8,295
13,572
113
InMyHead
Confirmed working bases to use this mod on

ATTENTION: This is mostly old stuff. I won't be doing the intensive testing and report collecting anymore for the newer versions. Pretty pointless. I don't know why I even started this part.

Testing device: my 32GB Dev Edition M8 changed to a 0P6B10000 HTC__001 (HTC-WWE)

ViperOneM8 4.0.0; 4.1.0; 4.2.0; 4.3.0; 4.5.x; 4.6.x without other mods, GSM, Sprint, VZW
HK ADSP with HK libs: all functions work, no stutter, settings entries correct. (BT, Speaker Wired headset)
HK ADSP with Boomsound: all functions work, no stutter, settings entries correct. (BT, Speaker Wired headset)
BS ADSP with HK libs: all functions (even HD Audio) work, no stutter, settings entries correct. (BT, Speaker Wired headset)
BS ADSP with BoomSound (our Mod): all functions work, no stutter, settings entries correct. (BT, Speaker Wired headset)

--> Should you encounter errors with this setup, please verify if and which other mods have been installed (Xposed modules, Kernel, Audio mods etc.)

ARHD 34.1 without other mods

HK ADSP with Boomsound: all functions work, no stutter, settings entries correct. (BT, Speaker Wired headset)
HK ADSP with HK libs: all functions work, no stutter, settings entries correct. (BT, Speaker Wired headset)
BS ADSP with BoomSound: all functions work, no stutter, settings entries correct. (BT, Speaker Wired headset)

--> Should you encounter errors with this setup, please verify if and which other mods have been installed (Xposed modules, Kernel, Audio mods etc.)

LeeDrOiD One M8 L - V1.0.8 without other mods, built-in HK mod NOT flashed.

HK ADSP with Boomsound: all functions work, no stutter, settings entries correct. (BT, Speaker Wired headset)
HK ADSP with HK libs: all functions work, no stutter, settings entries correct. (BT, Speaker Wired headset)
BS ADSP with BoomSound: all functions work, no stutter, settings entries correct. (BT, Speaker Wired headset)

--> Should you encounter errors with this setup, please verify if and which other mods have been installed (Xposed modules, Kernel, Audio mods etc.)

LeeDrOiD One M8 L - V1.0.8 without other mods, built-in HK mod flashed.

HK ADSP with HK Mod LeeDroid: all functions work, no stutter, settings entries correct. (BT, Speaker Wired headset)
BS ADSP with HK Mod LeeDroid: all functions (even HD Audio) work, no stutter, settings entries correct. (BT, Speaker Wired headset)
BS ADSP with BoomSound (our Mod): all functions work, no stutter, settings entries correct. (BT, Speaker Wired headset)
HK ADSP with HK libs (our mod): all functions work, no stutter, settings entries correct. (BT, Speaker Wired headset)

--> Should you encounter errors with this setup, please verify if and which other mods have been installed (Xposed modules, Kernel, Audio mods etc.)

Stock Android 5 Lollipop (4.16.401.10) without other mods
HK ADSP with HK libs: all functions work, no stutter, settings entries correct. (BT, Speaker Wired headset)
HK ADSP with Boomsound: all functions work, no stutter, settings entries correct. (BT, Speaker Wired headset)
BS ADSP with HK libs: all functions (even HD Audio) work, no stutter, settings entries correct. (BT, Speaker Wired headset)
BS ADSP with BoomSound (our Mod): all functions work, no stutter, settings entries correct. (BT, Speaker Wired headset)



Testing device: 32GB TMUS M8 0P6B13000 T-MOB010

Stock Android 5 Lollipop (4.20.531.4) T-Mobile US version without other mods (@Behold_this) device
BS ADSP with HK libs: all functions (even HD Audio) work, no stutter, settings entries correct. (Speaker. Wired headset)
BS ADSP with BoomSound: all functions work, no stutter, settings entries correct. (Speaker, Wired headset)
Missing: HK ADSP and BT


Test-Files used: http://www.linnrecords.com/linn-downloads-testfiles.aspx

Choose 24bit / 192KHz FLAC Studio Master to truly find out if HK is enabled (BoomSound will NOT play this file).
Testing app is the reference HTC Music app. Apps that play such files on BoomSound are using the CPU to emulate decoding. Its not a native Hexagon-DSP decode and as such not suitable to test the HK mod.
 
Last edited:

Captain_Throwback

Recognized Developer
Aug 22, 2008
20,070
22,337
113
The Nothing
First, some basics . . .
This is what BoomSound looks like in Settings:

The adsp version can be found in the bootloader (HBOOT). The current BoomSound adsp information can be found below:

This is what Harman Kardon looks like in Settings:

The current Harman Kardon Edition adsp information can be found below:


NOTE: The adsp version can also be found in /firmware/adsp in the file adspver.cfg. See below:


So, what is this HD Audio support in the kernel everyone's talking about?
In kernel source, the HD Audio flag can be found in sound/soc/msm/Kconfig. According to the Kconfig for the "HD_AUDIO" flag:
Code:
config HD_AUDIO
    tristate "HD Audio"
    default n
    help
 To add support for 64/88.2/96/176.4/192kHz Audio.
This additional codec support, along with the HK files allow 24-bit, 192KHz FLAC file playback with the stock HTC Music app.

Most (if not all) custom kernels have this flag enabled. My kernel is just here as an option for people that want a close-to-stock alternative with it included, without all of the extra "bells and whistles" that the other custom kernels feature.

Current Version: BeyondStockᵀᴹ M8 Kernel v3.2.1

Features:
  • HTC system write protection disabled
  • Dirty file record disabled
  • kexec-hardboot for MultiROM support
  • HD audio support
  • NTFS RW support
  • F2FS support (added with v3.2.0)
  • Ondemand governor set as default
  • Compiled with Linaro 4.9 Toolchain (optimized for cortex-a15)

Kernel Source (github)

Is my recovery really that important? Why can't I just use PhilZ, CWM, etc. instead of TWRP?

Well first of all, TWRP is the most actively developed of the custom recoveries, with the most robust features. PhilZ and ClockworkMod are no longer being maintained. I also know for a fact that TWRP for the M8 works on all M8 variants, regardless of Carrier, and was built using the latest Lollipop kernel and with Lollipop source. This makes it the most compatible with this mod, which is made for Lollipop.

The official TWRP works fine for this, but I also have a custom build of TWRP for M8, which uses the stock kernel module for exFAT support. This seems to be more reliable than TWRP's exfat-fuse implementation, and allows support for AROMA File Manager as well. NOTE: Starting with 2.8.6.0, my TWRP build uses the Samsung Open Source exfat-nofuse implementation, rather than the stock module, and adds F2FS support.

My TWRP thread is here.

This is my download folder with my latest versions (current version is 2.8.6.0).

I also HIGHLY recommend this theme for TWRP. It makes using recovery a completely new experience ;).
 
Last edited:

Sneakyghost

Elite Member
Jul 24, 2008
8,295
13,572
113
InMyHead
The current 4.1.0 version is supposed to fix the not showing HK entries in Settings.

This has had some users affected with different CID's which i call exotic because i haven't seen many of them.

One report i remember is HTC__J15 (HTC-GCC) Middle East, which seems to somehow be using a carrier specific default.xml.
This is what @EarlyMon's shell script is addressing.

We would like to know if it worked. Short report of a stock HTC__J15 phone will probably suffice.
 

frankcck

Elite Member
Jan 23, 2011
1,251
620
0
New York City
Great to see a new thread!
Well, I'm a little confused now. I don't know should I report here or Q&A, yet, I will leave here and I can delete if you believe this doesn't belong here.
I don't have stuttering sound while playing music with screen-off. However, I have experienced stuttering issue while using Bluetooth with H/K.
I'm using ViperOne M8 4.1.0 with elemantalX or @Captain_Throwback's universal BeyondStock Kernel, both didn't fix the stuttering sound. The only way I've found is turning off H/K effect (Clari-Fi) and the stuttering sound was gone. Does anyone have any idea? I can't remember very well but we might faced bt issues back to android 4.4.4 with H/K 6/7.
 
  • Like
Reactions: Sneakyghost

Captain_Throwback

Recognized Developer
Aug 22, 2008
20,070
22,337
113
The Nothing
Great to see a new thread!
Well, I'm a little confused now. I don't know should I report here or Q&A, yet, I will leave here and I can delete if you believe this doesn't belong here.
I don't have stuttering sound while playing music with screen-off. However, I have experienced stuttering issue while using Bluetooth with H/K.
I'm using ViperOne M8 4.1.0 with elemantalX or @Captain_Throwback's universal BeyondStock Kernel, both didn't fix the stuttering sound. The only way I've found is turning off H/K effect (Clari-Fi) and the stuttering sound was gone. Does anyone have any idea? I can't remember very well but we might faced bt issues back to android 4.4.4 with H/K 6/7.
That likely means there's a file (or files) missing from the Mod, making it incomplete.

We need to determine what error the device is experiencing when this occurs, which requires a log. I don't see one attached to your post.
 

vegetaleb

Elite Member
Feb 26, 2010
10,402
2,388
113
Beirut
As I didn't get an answer in the old topic, is the HK audio as quiet as before? I mean boomsound is still louder using earphones and BT?

Sent from my HTC One_M8 using XDA Free mobile app
 

Guich

Senior Member
May 18, 2012
4,413
3,334
0
Somewhere
Does this require a Sense based ROM? I notice its not in the pre-requisite.
Great job and thanks for the efforts.
Yes, it does.
As HK is only for sense based rom, it require it.

As I didn't get an answer in the old topic, is the HK audio as quiet as before? I mean boomsound is still louder using earphones and BT?
Probably, I haven't tried it as I did for KK, but probably yes.
 

Captain_Throwback

Recognized Developer
Aug 22, 2008
20,070
22,337
113
The Nothing
@Sneakyghost Hey I attached my install log, was wondering if you could look at it and let me know if you think the install was successful, not sure how to interpret some of it. Thanks so much

https://docs.google.com/file/d/0B4AuVacvrEMCaHY1ZHZxbjQ2dzA/edit?usp=docslist_api
Wouldn't it just be easier to just check your adsp version in HBOOT and your Settings for HK? That's the surefire way to know if it worked. The log doesn't necessary provide enough information to determine that. But if your adsp is updated, the Settings are there, and audio works, what additional evidence/reassurance do you need?
 
  • Like
Reactions: H4xz3n

H4xz3n

Senior Member
Mar 3, 2012
184
41
0
Calgary, Alberta
Wouldn't it just be easier to just check your adsp version in HBOOT and your Settings for HK? That's the surefire way to know if it worked. The log doesn't necessary provide enough information to determine that. But if your adsp is updated, the Settings are there, and audio works, what additional evidence/reassurance do you need?
It shows v56.2.2-00564-M8974_HM.1212, is that the correct one?

Edit: nevermind I found it in the open post I am just being silly thanks for the help mod is working thank you so much
 
Last edited:

Sneakyghost

Elite Member
Jul 24, 2008
8,295
13,572
113
InMyHead
Didn't work for me. Latest viper rom, ee network in the UK and checked options for full install but still on boomsound and no options to change it
S-OFF?
Please provide log file also.

[EDIT]
I see a LeeDroid figure in your signature. I am not sure. I take it, you are using that ROM? Is it using some modified Settings.apk? Is it using Xposed Modules? All this can break the mod.
Please provide specific information!

We have figured out, why the Switcher does not show HK in Verizon VipeOneM8 beta. The reason was, the Viper settings.apk for Verizon was not yet modified to include the required code. Jan wasn't around at the time of testing, else i had known earlier.

All non-verizon Vipers should show the HK settings though. So if it does not for you, i would like as much info as possible in order to be able to figure this out.

Regards,
Sneaky
 
Last edited: