Decompiling Android apk

I have already compiled android application(.apk file). I want to change it, to show splash screen before starting. Can I do this without any source code?


Not really.

Decompiling is not a direct process. You lose a large amount of information in the compilation process (variable names get thrown away, comments get thrown out, etc...). For Android:

  • An APK is simply a zip file with a set of classes and resources.
  • Those classes are compiled into a .dex file.
  • That .dex file contains code which is somewhat like Java virtual machine code.
  • You can translate dex to jars using the tool dex2jar.
  • After doing this, you can simply using a Java decompiler.

However, as your original question asks, modifying the code this way is basically impossible, produces an unmaintainable pile of horrible code. It will take you a long time to do this as well, partly understanding how the decompiled code works (as there won't be any comments or intermediate variable names), and then modify that...

See this question.

First, an apk file is just a modified jar file. So the real question is can they decompile the dex files inside. The answer is sort of.

So it would be easiest if you just modded the source code you used to compile your .APK

Need Your Help

Convert integer hashset to a integer array

arrays hashset

So i have made a hashset with -you've guessed it- integers in it. Now i need to convert this into a array, so i can refer to each array 'cell' and use the value from the hashset in a process.

MySQL - Matching 2 rows (or more!) within a sub-query/table


I have this schema which I need to match 2 rows from