Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial


How to see the code of .apk file with mac?

I've got a job to make ios app. I have to create app as same as android. Client gave me the file but I couldn't open the file and couldn't see the code. File type is .apk. How can I open this type of file with mac and see the android code?

3 Answers

I don't think you can. The .apk file is the compiled version; the end result - sort of like the .exe file in Windows.

I don't think you can uncompile it back in Java but may be wrong.

APK files are meant to be used by the Android OS to install an application. It's basically just a wrapper around an app, you can also open one in a program like WinRAR or some other unzipping/decompression program on your computer to view their contents. I have never done this before, but I'm sure Youtube has videos on how to.

Ah yes, it can be done to a certain level - I just had a quick Google! A bit of effort will be needed to work out the obfuscated code but it isn't totally impossible.