user905216
user905216

Reputation:

Problem when getting source code from .apk file?

As per this link. I can go first two steps but, i can't get souce code using this Java Decompiler. If anyone having good dj java decompiler then send it to me. And, also i need some good apktool v1.x AND apktool for getting xml files. Thanks in Advance.

Upvotes: 0

Views: 1446

Answers (3)

Farhana Haque
Farhana Haque

Reputation: 1381

Update The link I provided before is dead now. I am providing a new link where you can decompile source code online. You just need to upload the apk.

reverse engineer online

Old Answer this site might be helpful for you reverse engineering

Upvotes: 2

user896780
user896780

Reputation:

1) You should use two method for getting source code from .apk files? And, download apktool and jdgui application to do below steps :

 * `apktool d filename.apk` it'll get the res and manifest file.

 * `dex2jar filename.apk` it'll get the source code of that apk file. 

 * Then, you should use jdgui for saving the source code. 

Please follow these steps to get the source code. Hope this will helpful.

Upvotes: 1

sbrichards
sbrichards

Reputation: 2210

The most you'll be able to get are image resource files and xml files, using java vm decompilation you'll be able to get byte code which you can read and tinker with a little bit, it is tough to get the actual source code for the apk unless you're the developer. To get byte code simply use smali/baksmali to assemble and disassemble bytecode. See link below:

http://code.google.com/p/smali/

Upvotes: 1

Related Questions