[One (M8) Android Development] baadnewz:
Fully Working Harman / Kardon "conversion" for all HTC ONE M8 variants!-discountinued

​

WARNINGS - READ before you proceed further!

- Does NOT work on GPE, put Sense on it and it will work

- Users with stock ROMs (especially US), if your base number is 1.1x then H/K won't show in your settings because it simply lacks the code. update to a newer base or flash a custom rom

- it is recommend to have S-OFF

- do NOT attempt this on m7. IT WILL BREAK YOUR PHONE!

Installation

Depends on your luck you might also need S-OFF to fully benefit of this hack - i say might because depending on your firmware you might need to update ADSP (Advanced Digital Signal Processor) as firmware as well and for that you need S-OFF.

If you are S-ON and feeling lucky grab View attachment 2724091 and flash from recovery. it will only enable H/K in settings and update the rom files for it

If you are S-OFF grab View attachment 2724092 with all in one zip solution. it will do anything from enabling H/K in settings to updating ADSP.

For uninstall grab the zip from the bottom of this post

Troubleshooting

ISSUE 1: I've flashed the zip and after reboot I do not have HK in Settings!! HALP!!!

Reason: Happens because you did not have false line in system/customize/ACC/default.xml so script did not find it so it couldn't replace false with true

Solution::go to /system/customize/ACC/default.xml

search for and just it below it add:

true

The final result should look like this:

<app name="Android_Multimedia">
<item type="integer" name="has_default_alarm_volume">6</item>
<item type="integer" name="has_default_media_headset_volume">7</item>
<item type="integer" name="has_default_media_speaker_volume">10</item>
<item type="integer" name="has_default_ringtone_volume">5</item>
<item type="boolean" name="spport_screen_light">false</item>
<item type="boolean" name="support_a2dp_safevolume">false</item>
<item type="boolean" name="support_camera_enforce_shuttersound">false</item>
<item type="boolean" name="support_customer_proxy">false</item>
<item type="boolean" name="support_customization_fallback">false</item>
<item type="boolean" name="support_harman">true</item>
<item type="boolean" name="support_miit_request">false</item>
<item type="boolean" name="support_music_ringtone">false</item>
<item type="boolean" name="support_outdoor_mode">false</item>
<item type="boolean" name="support_qcelp">false</item>
<item type="boolean" name="support_theater_effect_logo">false</item>
<item type="integer" name="use_ringtone_for_notification">1</item>
</app>

Reboot. Profit!

ISSUE 2. I have HK and everything but when i play mp3 in HTC Music app i hear nothing. HALP!!! you broke my phone

Reason: Happens because you need to update your adsp (Advanced Digital Signal Processor) firmware.

Solution: You should have flashed View attachment 2724092 but i repeat you need to be S-OFF for this, if you are S-ON afraid you are out of luck

ISSUE 3 I did everything and it still doesn't show up on my Verizon M8

Reason: Happens Because Verizon uses a different settings.apk.

Solution:Grab http://xdaforums.com/showpost.php?p=54272102&postcount=940 and flash from recovery

ISSUE 4 I did everything and it still doesn't show up on my phone

Reason: Happens Because you have a stock 1.1x base rom on your phone which simply lacks the code for HK in settings

Solution: update to a 1.5x base rom (custom or stock)

Credits

[MENTION=1792279]ivicask[/MENTION] for bumping ideas, [MENTION=4684315]flar2[/MENTION] for some feedback, [MENTION=333497]migascalp[/MENTION] for scripts, [MENTION=2586080]andybones[/MENTION] for verizon settings.apk [MENTION=506238]O.M.J[/MENTION] for HK dump from where i got the files, [MENTION=1148003]lyapota[/MENTION] even though we worked separated we came to mostly the same files which confirmed i was on the right direction and everyone who offered feedback and helped me nail it down.

Permissions:

Free for all. you can include it in your roms / tools / scripts, just post some credits in the spirit of XDA.

Post Updated May 05 2014

Changelog

v3
- updated script to disable boomsound when enables HK
v2
added 24 khz to audio config
v1
initial release