get your framework.jar from your phone by doing this in command prompt while phone is connected:
Code:
cd c:\adb\platform-tools (if this is where you installed android sdk)
adb pull /system/framework/framework.jar c:\adb\platform-tools\framework.jar (or wherever you want it, 2nd path is where it will get saved)
it is now located in the given map, c:\adb\platform-tools in this case.
Use 7zip to extract the classes.dex file from it (dont extract whole archive, only classes.dex)
put the classes.dex in the same map as your smali/baksmali files (download smali/baksmali files
here
go in command prompt (cmd) again and navigate to the map your classes.dex and smali/baksmali are located
to decompile:
Code:
java -jar baksmali-0.93.jar -o <output directory> classes.dex
this makes a map named "classes.dex" with all files from classes.dex in it
edit stuff you want to
to recompile:
Code:
java -Xmx512M -jar smali-0.92.jar <output directory from above step> -o <name for new .dex output file>
This makes a new .dex file which you should rename to "classes.dex", but for now any name will do it. Open framework.jar with 7zip again (Dont extract, just open it), and put your new classes.dex in it
after that you can push it back to your phone or whatever you want to do with it
example:
cd c:\adb\platform-tools
adb pull /system/framework/framework.jar c:\user\outputmap\framework.jar
*extract the classes.dex from framework and place in same directory*
java -jar baksmali-0.93.jar -o c:\user\outputmap classes.dex
*edit, edit edit*
java -Xmx512M -jar smali-0.92.jar c:\user\outputmap -o new_classes.dex
*put new_classes.dex into framework.jar and rename to classes.dex*
Hope this helps