Thứ Tư, 10 tháng 4, 2013

Decompile with Apk Tool With Easy Tool



Requirements:

ApkTool
Java JDK/JRE 32 bit 
Basic Cmd/terminal knowledge

Download ApkTool here

ApkTool.zip

first you need to extract that zip folder to anywhere you choose, preferably on root of c/drive ie: C:/android/apktool extracting the files to 'apktool' folder

Now place the STOCK framework-res.apk & whatever other apk's you would like to modify into the 'apktool' folder


Getting to CMD directory


Open up a Cmd Prompt (terminal) and get to the 'apktool' directory ie:


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 in:

cd 'apktoo'l/'directory'

for me it looks like:

cd android/apktool

now you should see:

C:/android/apktool>

and you are in the apktool directory 

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)


Decompiling

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

apktool d framework-res.apk framework1

or

apktool d music.apk music 

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

now make your edits DO NOT Change/Edit ANY PNG's


Recompiling/Finished Product

now to recompile your new apk type this:

apktool b music music-new.apk

or

apktool b framework1 framework-res-new.apk

framework1 is the folder with your edited files
framework-res-new.apk is your new apk file 

Now we are NOT done... we cannot use the new apk's... we have to take what we did and add it back to the original apk file to keep proper signature 

use something like 7zip, take the 'resources.arcs' file and any other xml files you edited out of the "-new" apk and copy them into Original apk 

now the apk is ready to flash with your new changes  

Không có nhận xét nào:

Đăng nhận xét