[Sony Cross-Device Development Themes and Apps] PDesire:
DISCLAIMER: DSEE-HX will only work on apps which supports the Sony Hi-Res Audio API, in time just Sony Music and Poweramp (with own buffering, and slightly buggy) support it.

I also try now to find all relations to Sony Hi-Res Audio API, here u get more infos: http://xdaforums.com/showpost.php?p=68258588&postcount=13

I think it annoyed every user that we ever had to use Sony Music to get the magic of DSEE-HX. With this guide I remove this restriction.

The guide will include:

Decompiling

Modifiying Smali

Recompiling

Before u start: I am not responsible for any brick of your phone or soundenhancement

Part 1: Decompile

I use an very easy tool to recompile and decompile apps Tickle My Android

Install it how [MENTION=4315551]Ticklefish[/MENTION] describe it on his thread

Get the SoundEnhancement.apk file out of your System

The way how to get the file with ADB:

adb pull /system/app/SoundEnhancement/SoundEnhancement.apk C:/%WhereEverUWantToCopyIt%

U also can copy it to your phone SDCard and then copy it on ur PC

Push the SoundEnhancement APK to the _in directory on TickleMyAndroid (u find them on the WorkSpaces folders in TickleMyAndroid folder)

Now open TickleMyAndroid.exe, go to Theming Menu/Decompile and Select SoundEnhancement.apk

É voila, we finished decompiling

Part 2: Modify Smali

Now on your Workspace appeared a folder called _working, navigate to it and u will see a folder called SoundEnhancement.apk

From there u navigate to smali/com/sonyericsson/soundenhancement/ and open the file MorePreferenceFragment.smali

Go to line 334, the lines u will see should look like this:

.line 451
iget-object v4, p0, Lcom/sonyericsson/soundenhancement/MorePreferenceFragment;->mService:Lcom/sonyericsson/soundenhancement/audioeffect/AudioEffectService;

invoke-interface {v4}, Lcom/sonyericsson/soundenhancement/audioeffect/AudioEffectService;->isDseeHxGlobalSetting()Z

move-result v4

if-nez v4, :cond_3

const-string v4, "com.sonyericsson.music"

iget-object v5, p0, Lcom/sonyericsson/soundenhancement/MorePreferenceFragment;->mPackageName:Ljava/lang/String;

invoke-virtual {v4, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

move-result v4

if-eqz v4, :cond_3

.line 452
const v4, 0x7f040006

invoke-virtual {p0, v4}, Lcom/sonyericsson/soundenhancement/MorePreferenceFragment;->addPreferencesFromResource(I)V

.line 453
const-string v4, "dsee_hx"

Now remove the lines which i marked red:

.line 451
iget-object v4, p0, Lcom/sonyericsson/soundenhancement/MorePreferenceFragment;->mService:Lcom/sonyericsson/soundenhancement/audioeffect/AudioEffectService;

invoke-interface {v4}, Lcom/sonyericsson/soundenhancement/audioeffect/AudioEffectService;->isDseeHxGlobalSetting()Z

move-result v4[COLOR="red"]

if-nez v4, :cond_3

const-string v4, "com.sonyericsson.music"

iget-object v5, p0, Lcom/sonyericsson/soundenhancement/MorePreferenceFragment;->mPackageName:Ljava/lang/String;

invoke-virtual {v4, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

move-result v4

if-eqz v4, :cond_3[/COLOR]

.line 452
const v4, 0x7f040006

invoke-virtual {p0, v4}, Lcom/sonyericsson/soundenhancement/MorePreferenceFragment;->addPreferencesFromResource(I)V

.line 453
const-string v4, "dsee_hx"

At the end it should look like this:

.line 451
iget-object v4, p0, Lcom/sonyericsson/soundenhancement/MorePreferenceFragment;->mService:Lcom/sonyericsson/soundenhancement/audioeffect/AudioEffectService;

invoke-interface {v4}, Lcom/sonyericsson/soundenhancement/audioeffect/AudioEffectService;->isDseeHxGlobalSetting()Z

move-result v4

.line 452
const v4, 0x7f040006

invoke-virtual {p0, v4}, Lcom/sonyericsson/soundenhancement/MorePreferenceFragment;->addPreferencesFromResource(I)V

.line 453
const-string v4, "dsee_hx"

Finished Smali editing

Part 3: Recompile

Open again TickleMyAndroid.exe and navigate to Theming Menu -> Recompile Apps -> Recompile with Original Signature (HIGHLY RECOMMENDED) and click on SoundEnhancement.apk and wait the compilation time.

When it's finished u will find in your workspace a folder called _out and there is the SoundEnhancement.apk again, but without App Check for DSEE-HX

Push it back to your system and reboot

Finished, you successfully disabled the App Check for DSEE-HX

I hope this could help :)

Credits:

[MENTION=4315551]Ticklefish[/MENTION] for TickleMyAndroid

Team Project Desire

Team Harmonics Symphonium

RXS Moonbreakers

9th Circle of Development

and that I had today nothing to do so I decided to look on smali codes :P