Introduction:-
Hello !!
I want to share you the new apktool and guide to how to use the apktool , this apktool is based on apktool v2 which is in beta stage but still it has improved a lot then previous version and having compatibility for compiling with KitKat ROM
Follow Me :-
On Facebook :- https://www.facebook.com/Noel.Macwan.SXD
On Twitter :- https://twitter.com/@noelmacwan1997
I'm not taking any responsibility if you brick your device while you mod anything using this apktool
You are doing this your own risk.
Skip this , If you don't want to loose root access if you loose you are require to root again .
Although its tested but if you will play with files in this mod then Its over you.
I Hope you have read this carefully, Now move to next steps :
Requirement :-
click the mentioned file's name to download
You need Java SE Runtime Environment to use this tool
This Apktool !
Instructions :-
Extract the apktool and place it any where
copy your apk and framework-res.apk and tw-framework to same folder with apktool
Open Command Prompt batch file present in the apktool
Decompile :
Code:
apktool if framework-res.apk
apktool d (nameofapp).apk
Just like in Xperia Devices tw-framework is named as SemcGenericUxpRes.apk
Example
Code:
apktool if framework-res.apk
apktool if SemcGenericUxpRes.apk
apktool d (nameofapp).spk
Recompile :
Code:
apktool b (nameofapp)
open original .apk using Winrar or 7zip go to folder semcmusic>dist, open semcmusic.apk using Winrar or 7zip
Drag & drop folder META-INF & Lib in original apk to Modified apk, set compression to store and click ok
To sign :
Move apk modified from folder semcmusic>dist to same folder with apktool
Open Command Prompt (CMD)
Example
Code:
java -jar SignApk.jar testkey.x509.pem testkey.pk8 semcmusic.apk semcmusic_signed.apk ( can be whatever name you give to your apk )
To zipalign :
Open Command Prompt (CMD)
Example
Code:
zipalign -fv 4 semcmusic_signed.apk semcmusic_signed_zipaligned.apk
How to Decompile/Recompile Jar/Editing classes.dex
Copy Jar file to same folder Apktool
Example
framework.jar
Decompile :
Open framework.jar using Winrar or 7zip and extract classes.dex
Drag & drop classes.dex to Quick-Baksmali (CMD)
if done, you can find folder classes-out
now you can start editing smali file using Notepad++
Recompile :
Drag & drop folder classes-out to Quick-Smali (CMD)
if done, you can find New file "new-classes.dex"
rename file to classes.dex
Open framework.jar using Winrar or 7zip
Drag & drop file classes.dex modified to framework.jar using Winrar or 7zip set compression to normal
Copy Jar file to same folder Apktool
Example
framework.jar
Decompile :
Open framework.jar using Winrar or 7zip and extract classes.dex
Drag & drop classes.dex to Quick-Baksmali (CMD)
if done, you can find folder classes-out
now you can start editing smali file using Notepad++
Recompile :
Drag & drop folder classes-out to Quick-Smali (CMD)
if done, you can find New file "new-classes.dex"
rename file to classes.dex
Open framework.jar using Winrar or 7zip
Drag & drop file classes.dex modified to framework.jar using Winrar or 7zip set compression to normal
Credits:-
Brut.all for apktool
Yorzua for Sign apk tool/file
Team Reject for Quick baksmali/smali file
Regards
Noel Macwan
Author/ Admin @ SXDevelopers !