[Mod][How To] Disable the Harman Kardon icon

Status
Not open for further replies.

thoughtlesskyle

Inactive Recognized Developer
Nov 26, 2008
6,389
4,405
253
Outside of Philadelphia
I decided i'd post this as its own to make it easier to find an search
(mods can move or delete this thread as needed)

So much like the Boomsound icon, HTC treats the HK icon like the Beats icon, so that's the key to turning it off.

what you'll need:

APKTOOL (i'm not going to spend time on how to decompile and all that)
Text editor of some sort, I love me some Notepad ++
Deodex'd rom


Grab the Framework.jar from your rom and decompile it, then open your smali folder and navigate to

smali\android\media\AudioService$HarmanManager.smali

look for the following:

Code:
method public onMessageBeatsNotify()V
    .locals 7

    const/4 v1, 0x1

    const/4 v4, 0x0

    iget-object v5, p0, Landroid/media/AudioService$HarmanManager;->mLock:Ljava/lang/Object;

    monitor-enter v5

    :try_start_0
    iget v6, p0, Landroid/media/AudioService$HarmanManager;->mSignalDoctorEnabled:I

    if-ne v6, v1, :cond_0

    move v2, v1

    :goto_0
    iget v6, p0, Landroid/media/AudioService$HarmanManager;->mCurrentSoundEffect:I

    if-eqz v6, :cond_1

    :goto_1
    monitor-exit v5
Change to:
const/4 v1, 0x0

Should look like this:

Code:
method public onMessageBeatsNotify()V
    .locals 7

    const/4 v1, 0x0

    const/4 v4, 0x0

    iget-object v5, p0, Landroid/media/AudioService$HarmanManager;->mLock:Ljava/lang/Object;

    monitor-enter v5

    :try_start_0
    iget v6, p0, Landroid/media/AudioService$HarmanManager;->mSignalDoctorEnabled:I

    if-ne v6, v1, :cond_0

    move v2, v1

    :goto_0
    iget v6, p0, Landroid/media/AudioService$HarmanManager;->mCurrentSoundEffect:I

    if-eqz v6, :cond_1

    :goto_1
    monitor-exit v5

recompile, sign, and either push or flash it how you please.

Devs and Chef's if this helped feel free to include it in your roms, and credit as you see fit (we'd def appreciate it though)
 
Status
Not open for further replies.