Post Reply

[TUT]Decompile and compile apk and jar files

OP PradeepMurugan

8th January 2014, 11:03 PM   |  #1  
PradeepMurugan's Avatar
OP Senior Member
Flag Karur
Thanks Meter: 253
 
218 posts
Join Date:Joined: Oct 2013
Donate to Me
More
In this tutorial i will show you how to decompile and compile apk and jar files with apktool and apk multitool

Apk multi tool

It is easy to use than apk tool and i prefer to use it

- Download apk multitool.zip from here
- Extract apkmultitool.zip to somewhere in a single folder
- Place the apk you want to decompile inside files folder

open AndroidMultitool.exe which inside apkmultitool folder




Now click on select file under decompiling menu and open the file you want to decompile from files folder




now click decompile




After decompiling it will show like this






You will find the decompiled file in decompiled apk folder if its a apk and in decompiled jar if its a jar file, now show your modding skills in xml, smali files and pngs
After you complete modding lets recompile it. to recompile select the open file option below recompile menu and open the folder




click compile




the compiled apk will be in compiled_apk folder and jar file in compiled_jar folder. Now most important thing, if you are editing any file inside system the file will work without signing it, if it is in data partition you have to sign it. sign it using the signing option

The Following 5 Users Say Thank You to PradeepMurugan For This Useful Post: [ View ]
8th January 2014, 11:05 PM   |  #2  
PradeepMurugan's Avatar
OP Senior Member
Flag Karur
Thanks Meter: 253
 
218 posts
Join Date:Joined: Oct 2013
Donate to Me
More
Using Apk Tool
Apk tool

To use apk tool you need these 3 files
download this zip
extract the zip file to a single folder
search cmd.exe in c and copy it to that folder

it should look like this




open cmd.exe and you should see that it navigates to folder location like this




now copy the apk or jar file that you want to decompile in that folder. Before decompiling the file you must install it so first use this command to install it, i took SystemUI.apk for this tutorial

type “apktool if SystemUI.apk” and press enter




Now time to decompile, to decompile type “apktool d SystemUI.apk” and press enter. If its successfully decompiled it should show like this and the decompiled apk will be in the same folder named SystemUI




Now time to show your modding skills after completing editing the files you can compile it again
To compile it use “apktool b SystemUI”

it may show some errors you can simply ignore it




and the build apk will be inside SystemUI/dist folder

Now you have known how to decompile and compile apk and rar files with both apk tool and apk multitool
Last edited by PradeepMurugan; 8th January 2014 at 11:15 PM.
The Following User Says Thank You to PradeepMurugan For This Useful Post: [ View ]
8th January 2014, 11:18 PM   |  #3  
PradeepMurugan's Avatar
OP Senior Member
Flag Karur
Thanks Meter: 253
 
218 posts
Join Date:Joined: Oct 2013
Donate to Me
More
reserved
9th January 2014, 04:23 AM   |  #4  
jagnik's Avatar
Senior Member
Flag *******************
Thanks Meter: 88
 
223 posts
Join Date:Joined: May 2013
More
Angry
after recompile,, i think we have to place META-INF from original apk to modified...
9th January 2014, 11:06 AM   |  #5  
PradeepMurugan's Avatar
OP Senior Member
Flag Karur
Thanks Meter: 253
 
218 posts
Join Date:Joined: Oct 2013
Donate to Me
More
Quote:
Originally Posted by jagnik

after recompile,, i think we have to place META-INF from original apk to modified...

I haven't replaced META-INF for any apks that i have modded. And for me it worked without replacing META-INF. I also read about it, i think it is required apk is not working
Post Reply Subscribe to Thread

Tags
apk multitool, apk tool, decompile apk, how to decompile apk
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Top Threads in Galaxy S Advance I9070 General by ThreadRank