Thread Closed

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

OP thoughtlesskyle

14th May 2014, 04:55 AM   |  #1  
thoughtlesskyle's Avatar
OP Recognized Developer
Flag Outside of Philadelphia
Thanks Meter: 3,458
 
5,751 posts
Join Date:Joined: Nov 2008
More
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.sma li

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)
The Following 7 Users Say Thank You to thoughtlesskyle For This Useful Post: [ View ]
Thread Closed Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Top Threads in Sprint One (M8) Android Development by ThreadRank