How to Edit framework.jar

STEP 1 :

• Download Baksmali tool http://d-h.st/g0W (Please use this baksmali because i decompile with this baksmali version)
• Download Framework Source
• Extract Framework Source (Already decompiled)
• Extract baksmali tool & classes.dex from your framework.jar and framework2.jar (if available) with the same directory
• Drag & drop classes.dex to Quick-Baksmali

STEP 2 :

• Copy folder "com/sony/walkman" from framework source to your framework.jar or framework2.jar
• Now open AudioEffect.smali in folder "android/media/audiofx" from your framework.jar or framework2.jar

Add this RED line to your AudioEffect.smali in framework.jar or framework2.jar

Code:
Select Code
.field public static final EXTRA_AUDIO_SESSION:Ljava/lang/String; = "android.media.extra.AUDIO_SESSION"

.field public static final EXTRA_CONTENT_TYPE:Ljava/lang/String; = "android.media.extra.CONTENT_TYPE"

.field public static final EXTRA_PACKAGE_NAME:Ljava/lang/String; = "android.media.extra.PACKAGE_NAME"

.field public static final EXTRA_SONY_ICON_ENFORCEMENT:Ljava/lang/String; = "com.sony.walkman.intent.EXTRA_SONY_ICON_ENFORCEMENT"

.field public static final EXTRA_SONY_PANEL_ENFORCEMENT:Ljava/lang/String; = "com.sony.walkman.intent.EXTRA_SONY_PANEL_ENFORCEMENT"

.field public static final EXTRA_SONY_PREEFFECT_SETTING_ID:Ljava/lang/String; = "com.sony.walkman.intent.EXTRA_PREEFFECT_SETTING_ID"

.field public static final NATIVE_EVENT_CONTROL_STATUS:I = 0x0

.field public static final NATIVE_EVENT_ENABLED_STATUS:I = 0x1

.field public static final NATIVE_EVENT_PARAMETER_CHANGED:I = 0x2

.field public static final SONY_PANEL_BYPASS_BLUETOOTH:I = 0x4

.field public static final SONY_PANEL_EQ_PRE_POST:I = 0x0

.field public static final SONY_PANEL_POST:I = 0x1

.field public static final SONY_PANEL_ROOT:I = 0x2

.field public static final SONY_PANEL_SE_DIRECTLY:I = 0x3

.field public static final SONY_PREEFFECT_SETTING_ID_0:Ljava/lang/String; = "_id_0"

.field public static final SONY_PREEFFECT_SETTING_ID_1:Ljava/lang/String; = "_id_1"

.field public static final STATE_INITIALIZED:I = 0x1

.field public static final STATE_UNINITIALIZED:I = 0x0

.field public static final SUCCESS:I = 0x0
STEP 3 :

In this step is very hard, you need to copy all code from framework source

List file from framework source :

AudioManager.smali
AudioRoutesInfo.smali
AudioService$2.smali
AudioService$AudioHandler.smali
AudioService$VolumeStreamState.smali
AudioService.smali
AudioSystem$ErrorCallback.smali
AudioSystem.smali
IAudioService$Stub$Proxy.smali
IAudioService$Stub.smali
IAudioService.smali

You need to open one by one, and copy all code with tag walkman, or wmport, or sony, or icx to your framework.jar or framework2.jar(please DON'T COPY that list file but COPY All CODE to your framework.jar with tha same name smali file)

Example :




Ash nazg durbatulūk, ash nazg gimbatul, ash nazg thrakatulūk agh burzum-ishi krimpatul.
One ring to rule them all, one ring to find them, one ring to bring them all and in the darkness bind them.

Closer to me? everything about me and my work!!!
DON'T PM me for any question regarding my work, please post in specific thread, anyone can help you, I WON'T respond
Lead Developer of LOVINS DEV : The 2 Brothers - Rizal Lovins & ibanez7