Take the 2-minute tour ×
Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. It's 100% free, no registration required.

Having an .apk file, is there any way I can get its source code?

share|improve this question
6  
Before that, have you checked if the package is open source? –  ott-- Oct 3 '12 at 20:20
add comment

3 Answers

up vote 10 down vote accepted

Even if ProGuard was used you still can get some interesting insights. Here is a StackOverflow question with a detailed explanation: Android: Getting source code from an APK file. YouTube video with a detailed guide. And a blog entry about that: How to retrieve source code from an Android APK file.

share|improve this answer
add comment

An .apk is simply a .zip file. But unfortunatedly any app build for 'release' will probably be protected by ProGuard.

share|improve this answer
add comment

If you get lucky and your .apk file wasn't protected by Proguard or analog, you can use APK tool. It is a tool for reverse engineering 3rd party, closed, binary Android apps.

share|improve this answer
    
Apktool does only generate Smali-Code, not Java code - that is a big difference. –  Robert Oct 5 '12 at 7:52
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.