FORUMS

CloudPlayer: DIY HiFi Music Streaming Solution

In our Helpful Guide to Music Streaming Services, we mentioned several different services … more

Optimize Battery Life with This Useful App

Battery life is an important aspect of your smartphone, especially if you use it for more … more

The OnePlus 2 & The Year of Smartphone Compromises

We are very close to entering the last third of 2015, and we have now seen many of … more

OnePlus 2 Teardown, Major Android Vulnerability – XDA TV

The OnePlus 2 has been officially released. That and much more news is … more

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

105 posts
Thanks Meter: 310
 
Post Reply Subscribe to Thread Email Thread
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)


.
.
.
Last edited by aguha1044; 18th September 2012 at 01:26 PM. Reason: mod
The Following 130 Users Say Thank You to aguha1044 For This Useful Post: [ View ]
 
 
10th September 2012, 05:05 PM |#2  
roxtreeme's Avatar
Member
Flag New Delhi
Thanks Meter: 38
 
More
cool.........
The Following 2 Users Say Thank You to roxtreeme For This Useful Post: [ View ]
11th September 2012, 07:01 AM |#3  
rivelta's Avatar
Member
Thanks Meter: 11
 
More
thank for nice guide

sent from my ass
The Following User Says Thank You to rivelta For This Useful Post: [ View ]
13th September 2012, 08:06 PM |#4  
lokeshsaini94's Avatar
Recognized Contributor / Themer
Flag Behind you!!!
Thanks Meter: 3,813
 
Donate to Me
More
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
The Following User Says Thank You to lokeshsaini94 For This Useful Post: [ View ]
15th September 2012, 01:11 PM |#5  
aguha1044's Avatar
OP Senior Member
Flag Kolkata
Thanks Meter: 310
 
Donate to Me
More
Quote:
Originally Posted by lokeshsaini94

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
15th September 2012, 05:40 PM |#6  
lokeshsaini94's Avatar
Recognized Contributor / Themer
Flag Behind you!!!
Thanks Meter: 3,813
 
Donate to Me
More
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
The Following 2 Users Say Thank You to lokeshsaini94 For This Useful Post: [ View ]
16th September 2012, 08:14 PM |#7  
cowsquad's Avatar
Senior Member
Flag Portland, Oregon
Thanks Meter: 304
 
Donate to Me
More
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: [ View ]
16th September 2012, 09:43 PM |#8  
delsus's Avatar
Senior Member
Thanks Meter: 879
 
More
Awesome guide, very simple to decompile and recompile with it.
The Following User Says Thank You to delsus For This Useful Post: [ View ]
16th September 2012, 10:39 PM |#9  
taomorpheus's Avatar
Recognized Developer
Thanks Meter: 2,427
 
More
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: [ View ]
16th September 2012, 11:33 PM |#10  
virgo2000's Avatar
Member
Thanks Meter: 14
 
More
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:	2142
Size:	99.6 KB
ID:	1331965  
Last edited by virgo2000; 17th September 2012 at 12:27 AM.
The Following User Says Thank You to virgo2000 For This Useful Post: [ View ]
17th September 2012, 12:47 AM |#11  
Senior Member
Flag Edmonton
Thanks Meter: 251
 
More
Yeah mine says java is not a recognized internal or external command, operable program or batch file. I probably have to add the environment variable, but im not sure how to.

EDIT: got it.
Last edited by AlwaysDroid; 17th September 2012 at 01:07 AM.

Read More
Post Reply Subscribe to Thread

Tags
decompile, decompile-recompile froyo app, guide, how to decompile/recompile android appliction, mod
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes