Watch This Now!

Find Your Device:
Or Continue to Thread: [DEV][PROJECT][APP][PORT] The …
1st June 2014, 05:21 AM |#2  
Rizal Lovins's Avatar
OP Recognized Developer / Recognized Themer / Recognized Contributor
Flag Bandung
Thanks Meter: 15,425
Donate to Me
How to Edit framework.jar

STEP 1 :

• Download Baksmali tool (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; = ""

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

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

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

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

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

.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 06:40 AM.
The Following 8 Users Say Thank You to Rizal Lovins For This Useful Post: [ View ]