[Samsung Galaxy Fit GT 5670] wilfredcool007:
Hello Guys....

Just been watchin around our forum and The Galaxy Fit Development Group in FB and came to know that many are not able to decompile, compile, using apktool and apk manager !!! And few are not able to use the baksmali tool and even Android debugging bridge (ADB) So Decided to make a Guide on How to use all these ;)

The tools required are attached along with this file...

So here we go....

[How To Use APK Tool]

If you're using apktool for the first time thn

Place framework-res.apk and twframework-res.apk from STOCK Firmwares (Do not take it from Custom ROM )

Thn open command prompt in the current window and type the following code

apktool if framework-res.apk
apktool if twframework-res.apk

The Dependencies would be installed in apktool folder in C:\Users\USER NAME\apktool\framework and also check if u hav 1.apk and 2.apk present inside the folder

Decompile And Compile Apk's Using apktool

Place the apk file that u wish to decompile in the downloaded apktool folder

Open command prompt in the current window and type the following code

[To Decompile] apktool d "apk name.apk"
[To Recompile] apktool b "apk name"

Example:

[To Decompile Mms.apk] apktool d Mms.apk
[To Recompile Mms.apk] apktool b Mms

The Compiled apk would be in "dist folder" inside the "decompiled folder"

[How To Use APK Manager]

Always use apktool to install dependencies even if u r gonna use apk manager

Place the apk tat u wish to decompile in "Place here for modding folder"

Open Script.bat in the folder and Press 9 to decompile and 11 to recompile

The decompiled folder would be in "Projects" folder and recompiled apk would be in "place here for modding folder"

[How To Use Baksmali]

Smali/Baksmali is an assembler/disassembler for the dex format used by Dalvik

The names "smali" and "baksmali" are the Icelandic equivalents of "assembler" and "disassembler" respectively

Smali Editting can be done through apk tool as well as apk manager but all those needs experience and practice

Place either the .apk or .jar file who's dex u want to decompile in that baksmali folder

Right click and Edit 1.bat using notepad++

java -jar baksmali.jar -x "filename"."file extension" -o classout

Example:

[To Decompile Mms.apk] java -jar baksmali.jar -x [B]Mms.apk[/B] -o classout
[To Decompile android.policy.jar] java -jar baksmali.jar -x [B]android.policy.jar[/B] -o classout

U would get a folder called classout

Make necessary changes and to compile back just press 2.bat

U would get classes.dex in the current folder

Replace this classes.dex with the classes.dex in the unmodded file

[How To Use ADB]

Android Debug Bridge (adb) is a versatile command line tool that lets you communicate with an emulator instance or connected Android-powered device

With this adb u would be able to push pull files from your mobile, Logcat and much more

I would explain only the basic that is used most often that is pullin and pushin of files

Place the file tat u r about to push into the ADB folder

[To Push system apps] adb push "[B]apk name".apk [/B]/system/[B]app[/B]/[B]"apk name".apk[/B]
[To Push system framework files] adb push [B]"name".jar[/B]/system/[B]framework[/B]/[B]"name".jar[/B]
[To Push files to your SD Card] adb push [B]"filename.extension"[/B] /sdcard/

Example:

[To Push Mms.apk] adb push Mms.apk /system/app/Mms.apk
[To Push android.policy.jar] adb push android.policy.jar /system/framework/android.policy.jar
[To Push files to your SD Card] adb push Readme.txt /sdcard/

Credits:

Google :p

And to all those who taught me [How To Use These] :p

Tools