[TUTORIAL] Decompiling and Recompiling

Note: Do it with your own risk !
What is decompiling? Android apps are BASICALLY made up of Java codes and XML files. After compiling the app, these files cannot be viewed. Decompiling is a process which decompiles the binary form of XMLs and .Java files into readable form. The XML files can be retained as it is, but the .java files are converted into smali files, a totally different language.

What is recompiling? Recompiling is simply a way to convert the XML and smali files back into the binary form and building up of the APK with the changes made. All apps after recompiled have to be signed (except system apps).

Requirements :
JRE ( Java Runtime Environment )
apktool (with APK signer) ( extract it in C:/apk )
Steps :
1. Choose what .apk you wish to mod. . ( ex: framework-res.apk )
2. Place it in the same folder as apktool & rename it to ( framework-stock.apk)
3. Navigate to C:\apk by typing :

Code:
cd C:\apk


then, type this :
Code:
C:\apk>apktool if framework-stock.apk
DECOMPILING :
In cmd, type :
C:\apk>apktool d framework-res.apk frame
this will put decompiled files to a folder named "frame"
Now, you can MOD the framework !
And when you're done, recompile it.
COMPILING :
In cmd, type :
Code:
C:\apk>apktool b frame framework.apk
and you're DONE !
now you've created a signed framework-res.apk and you can push it to your system !

UPDATE :
now you can easily decompile and recompile APKs easily by downloading x-TOOLS by Gagan  ! ( link above )

4:12 PM

[TUTORIAL] Decompiling and Recompiling

Note: Do it with your own risk !
What is decompiling? Android apps are BASICALLY made up of Java codes and XML files. After compiling the app, these files cannot be viewed. Decompiling is a process which decompiles the binary form of XMLs and .Java files into readable form. The XML files can be retained as it is, but the .java files are converted into smali files, a totally different language.

What is recompiling? Recompiling is simply a way to convert the XML and smali files back into the binary form and building up of the APK with the changes made. All apps after recompiled have to be signed (except system apps).

Requirements :
JRE ( Java Runtime Environment )
apktool (with APK signer) ( extract it in C:/apk )
Steps :
1. Choose what .apk you wish to mod. . ( ex: framework-res.apk )
2. Place it in the same folder as apktool & rename it to ( framework-stock.apk)
3. Navigate to C:\apk by typing :

Code:
cd C:\apk


then, type this :
Code:
C:\apk>apktool if framework-stock.apk
DECOMPILING :
In cmd, type :
C:\apk>apktool d framework-res.apk frame
this will put decompiled files to a folder named "frame"
Now, you can MOD the framework !
And when you're done, recompile it.
COMPILING :
In cmd, type :
Code:
C:\apk>apktool b frame framework.apk
and you're DONE !
now you've created a signed framework-res.apk and you can push it to your system !

UPDATE :
now you can easily decompile and recompile APKs easily by downloading x-TOOLS by Gagan  ! ( link above )