Gurk Wiki:Unpacking APK

To view the source code and assets for an Android game, you will first need to unpack its APK file. This was tested on Gurk III and might not apply to the previous games.
== Finding the APK ==
Though it is possible to unpack an APK on a mobile device, it is much easier to view the files on a PC.
=== Option 1: Rooted Device ===
If your device is rooted, navigate to /data/app and copy the Gurk APK (com.larvalabs.gurk3.apk).
=== Option 2: Unrooted Device ===
If your device isn't rooted, you will have to use a third party app like AirDroid to access the APK.
== Unpacking the APK ==
Now that you have access to the APK, you'll need to unpack it. Since APKs are just renamed RAR files, change the file's extension to .rar. For example: com.larvalabs.gurk3.rar.
You should now be able to view and unpack the contents of the APK in any file extraction program (like 7zip or WinRar).
== File Structure ==
The Gurk III source is split into three folders.
* assets: Contains the actual source code along with most in-game assets and music.
** gurk.js: Engine code (rendering and game math).
** game.js: Contains all in-game content like enemies, maps, and items.
** icons2.png: Every sprite in the game (highest quality, 32x32). Will need to be split using a spritesheet cutter to view the individual sprites.
* META-INF: SHA checksums (you probably won't be needing this).
* res: Contains the UI assets and sound effects.