Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,739,099 Members 46,110 Now Online
XDA Developers Android and Mobile Development Forum

[TUT]Decompile and compile apk and jar files

Tip us?
 
PradeepMurugan
Old
#1  
PradeepMurugan's Avatar
Senior Member - OP
Thanks Meter 230
Posts: 218
Join Date: Oct 2013
Location: Karur

 
DONATE TO ME
Default [TUT]Decompile and compile apk and jar files

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 4 Users Say Thank You to PradeepMurugan For This Useful Post: [ Click to Expand ]
 
PradeepMurugan
Old
(Last edited by PradeepMurugan; 8th January 2014 at 11:15 PM.)
#2  
PradeepMurugan's Avatar
Senior Member - OP
Thanks Meter 230
Posts: 218
Join Date: Oct 2013
Location: Karur

 
DONATE TO ME
Default 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
The Following User Says Thank You to PradeepMurugan For This Useful Post: [ Click to Expand ]
 
PradeepMurugan
Old
#3  
PradeepMurugan's Avatar
Senior Member - OP
Thanks Meter 230
Posts: 218
Join Date: Oct 2013
Location: Karur

 
DONATE TO ME
reserved
 
jagnik
Old
#4  
jagnik's Avatar
Senior Member
Thanks Meter 86
Posts: 211
Join Date: May 2013
Location: *******************
after recompile,, i think we have to place META-INF from original apk to modified...
Click "THANKS" if I've helped you

I'm currently using a...
Samsung s advance with cocore- 9.0 OC CWM TOUCH KERNEL (Rom not fixed, tries every rom)
Samsung galaxy s4(STOCK)
 
PradeepMurugan
Old
#5  
PradeepMurugan's Avatar
Senior Member - OP
Thanks Meter 230
Posts: 218
Join Date: Oct 2013
Location: Karur

 
DONATE TO ME
Quote:
Originally Posted by jagnik View Post
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
Tags
apk multitool, apk tool, decompile apk, how to decompile apk
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes