Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,737,266 Members 40,972 Now Online
XDA Developers Android and Mobile Development Forum

[How to] noobs guide to decompile/recompile android application

Tip us?
 
aguha1044
Old
(Last edited by aguha1044; 18th September 2012 at 01:26 PM.) Reason: mod
#1  
aguha1044's Avatar
Senior Member - OP
Thanks Meter 305
Posts: 105
Join Date: Apr 2012
Location: Kolkata

 
DONATE TO ME
Tutorial [How to] noobs guide to decompile/recompile android application

Guide to decompile android application

REQUIREMENT

Apktool [click here to download][Thanks to brut.all for this apktool]

Java JDK/JRE 32 bit [please google it guy's]

Little knowledge on cmd
__________________________________________________ __________________________________________________ _____________________

Preparation before WORKING

Process :-

1)now install the java in your pc/lappy
then copy the apktool.zip & goto directory C:/
make a folder name apktool (u can name it by watever u like)
now goto that folder & paste the zip
extract that zip there...


2) now copy the .apk or jar file which u wnt to decompile
& paste it on apktool folder.....
also copy the framework-res.apk of that rom &
paste it on that folder..

Decompiling application


3) now open cmd

Your cmd will probly look like this..

C:\users\yourname>

so type in

cd.. (yes include the '..' and press enter after you type each command)

this will get you to back directory so now you will see

C:\users>


so type again

cd..

you should now see this:

C:\>

now type

cd apktool (and you are in the apktool directory)


4)Installing Framework

Now that you are in directory we need to install the device's framework to your system for it to compile correctly so type this:

apktool if framework-res.apk

this will install the devices framework to your system (need to do this)

5)now to decompile the apk you want to edit.. type this:

apktool d music.apk mod

music.apk is the apk your decompiling
mod is the folder you're creating for the decompiled apk

do whatever you want to do with your apk...

NOW RECOMPILING

6)now to recompile your new apk type this:

apktool b mod music-new.apk


mod is the folder with your edited files

music-new.apk is your new apk file

Now we are NOT done... we cannot use the new apk's...


now make two separate folder a & b
copy-paste the original music.apk in 'a'
& music-new.apk in 'b'
use something like 7zip, take the 'resources.arcs' file and any other xml files you edited out of the "new-edited" apk and copy them into Original apk
now add to archive ...the origanl apk in zip format
& at the end of the file name .apk ( i mean give the file format name as .apk insted of .zip)


Now you are almost done.....:thumbup:

IF it is a system app then don't sign it....otherwise u have to sign that app....


[=>Guide On How To Sign The Moded App<=]

NOTE:- If you are getting this error =>" java is not a recognized internal or external command "

[=>Then Follow this Guide<=][Thanks to KartzXDA]


That's all

don't forget to hit thanks or comment....



All Mod-Rom by Abhijit Guha(mee)

1} X-zooM[V2] (Netlock free : Transparent Rom)


.
.
.
The Following 126 Users Say Thank You to aguha1044 For This Useful Post: [ Click to Expand ]
 
roxtreeme
Old
#2  
roxtreeme's Avatar
Member
Thanks Meter 38
Posts: 65
Join Date: Jul 2012
Location: New Delhi
cool.........
Hey wait a minute U forgot to hit Thanks
My Guides
[Guide]How To Edit Apk + Video
[Share] Beast™Tool by me MultiFunction


Phones:-
Micromax A60 [[Self Modded Rom]]
Micromax A87 [[RedBeast : Red ICS Themed Rom]]
Canvas 2 [[Stock Rom]]
Samsung Galaxy Note 8000
The Following 2 Users Say Thank You to roxtreeme For This Useful Post: [ Click to Expand ]
 
rivelta
Old
#3  
rivelta's Avatar
Member
Thanks Meter 11
Posts: 86
Join Date: Sep 2011
thank for nice guide

sent from my ass ®
The Following User Says Thank You to rivelta For This Useful Post: [ Click to Expand ]
 
lokeshsaini94
Old
#4  
lokeshsaini94's Avatar
Recognized Contributor / Themer
Thanks Meter 3614
Posts: 1,775
Join Date: May 2012
Location: Behind you!!!

 
DONATE TO ME
Insted of so much to cd folder just right click the folder while holding shift button and you will see adbance options... now open command prompt.. It will save time and is very easy ....

Sent from my GT-S7500 using xda premium

lokeshsaini94's Theming Hub
MY WORK <= click here
TEAM GFX BANDITS - you request, we design.
I WON'T REPLY TO ANY DEVELOPMENT RELATED QUESTIONS WITH PM...
The Following User Says Thank You to lokeshsaini94 For This Useful Post: [ Click to Expand ]
 
aguha1044
Old
#5  
aguha1044's Avatar
Senior Member - OP
Thanks Meter 305
Posts: 105
Join Date: Apr 2012
Location: Kolkata

 
DONATE TO ME
Quote:
Originally Posted by lokeshsaini94 View Post
Insted of so much to cd folder just right click the folder while holding shift button and you will see adbance options... now open command prompt.. It will save time and is very easy ....

Sent from my GT-S7500 using xda premium
I think you haven't followed something...... this guide is for begginers...so it should be simple one.... not eeky
 
lokeshsaini94
Old
#6  
lokeshsaini94's Avatar
Recognized Contributor / Themer
Thanks Meter 3614
Posts: 1,775
Join Date: May 2012
Location: Behind you!!!

 
DONATE TO ME
This is simple method to cd a folder in cmd without all that long commands.... I always use it... Try it once and you will know what i am trying to say....

Sent from my GT-S7500 using xda premium

lokeshsaini94's Theming Hub
MY WORK <= click here
TEAM GFX BANDITS - you request, we design.
I WON'T REPLY TO ANY DEVELOPMENT RELATED QUESTIONS WITH PM...
The Following 2 Users Say Thank You to lokeshsaini94 For This Useful Post: [ Click to Expand ]
 
cowsquad
Old
#7  
cowsquad's Avatar
Senior Member
Thanks Meter 265
Posts: 1,098
Join Date: Aug 2009
Location: Portland, Oregon

 
DONATE TO ME
Thank s for this awesome guide

Sent from my Galaxy Nexus using Tapatalk 2
The Following User Says Thank You to cowsquad For This Useful Post: [ Click to Expand ]
 
delsus
Old
#8  
delsus's Avatar
Senior Member
Thanks Meter 848
Posts: 4,495
Join Date: Oct 2011
Awesome guide, very simple to decompile and recompile with it.
Device: Xperia Z2

ROM: Stock

Kernel: Stock
The Following User Says Thank You to delsus For This Useful Post: [ Click to Expand ]
 
taomorpheus
Old
#9  
taomorpheus's Avatar
Recognized Developer
Thanks Meter 2075
Posts: 929
Join Date: Nov 2011
Cool guide! I will use it to do some tests with my apks
The Following User Says Thank You to taomorpheus For This Useful Post: [ Click to Expand ]
 
virgo2000
Old
(Last edited by virgo2000; 17th September 2012 at 12:27 AM.)
#10  
virgo2000's Avatar
Member
Thanks Meter 14
Posts: 70
Join Date: Mar 2011
solved problem lol ... good tutorial ...
xda facebook page should share more tutorials like this!!
Attached Thumbnails
Click image for larger version

Name:	trf.jpg
Views:	1989
Size:	99.6 KB
ID:	1331965  
.epicline.

The Following User Says Thank You to virgo2000 For This Useful Post: [ Click to Expand ]
Tags
decompile, decompile-recompile froyo app, guide, how to decompile/recompile android appliction, mod
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes