Or Continue to Thread: [DEV][PROJECT][APP][PORT] The …
Find Your Device:
1st June 2014, 06:21 AM   |  #2  
Rizal Lovins's Avatar
OP Recognized Developer / Recognized Themer / Recognized Contributor
Flag Bandung - One Ring To Rule Them All
Thanks Meter: 15,103
1,472 posts
Join Date:Joined: May 2012
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

.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 :


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 :

Last edited by Rizal Lovins; 1st June 2014 at 07:40 AM.
The Following 8 Users Say Thank You to Rizal Lovins For This Useful Post: [ View ]