java - how to decompile a .apk without errors? -


i tried apktool, , online version, http://www.decompileandroid.com/ still can't works in eclipse.

i want decompile app called bucket drops, made part of android course. want @ source code , tweak it.

when tried decompiling .apk file lacked .classpath , .project files, made new project in eclipse , copied source code it, reason eclipse shows app buggy!

what do?

how-to: decompile/recompile apk's apktool


requirements:

apktool java jdk/jre 32 bit basic cmd/terminal knowledge


download apktool here

apktool.zip

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

now place stock framework-res.apk & whatever other apk's modify 'apktool' folder


getting cmd directory

open cmd prompt (terminal) , 'apktool' directory ie:

your cmd probly this..

c:\users\yourname>

so type in

cd.. (yes include '..' , press enter after type each command)

this directory see

c:\users>

so type again

cd..

you should see this:

c:>

now type in:

cd 'apktoo'l/'directory'

for me looks like:

cd android/apktool

now should see:

c:/android/apktool>

and in apktool directory :d

click expand...

installing framework

now in directory need install device's framework system compile correctly type this:

apktool if framework-res.apk

this install devices framework system (need this)


decompiling

now decompile apk want edit.. type this:

apktool d framework-res.apk framework1

or

apktool d music.apk music

music.apk apk decompiling music folder you're creating decompiled apk

now make edits :d not change/edit png's


recompiling/finished product

now recompile new apk type this:

apktool b music music-new.apk

or

apktool b framework1 framework-res-new.apk

framework1 folder edited files framework-res-new.apk new apk file :d

now not done... cannot use new apk's... have take did , add original apk file keep proper signature :d

use 7zip, take 'resources.arcs' file , other xml files edited out of "-new" apk , copy them original apk

now apk ready flash new changes :d :d

hope helped of new themers out there!!!

source: androidforums


Comments

Popular posts from this blog

routing - AngularJS State management ->load multiple states in one page -

python - GRASS parser() error -

Swift game error message -