0

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?

narek.gevorgyan
  • 4,165
  • 5
  • 32
  • 52

2 Answers2

4

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...

Kristopher Micinski
  • 7,572
  • 3
  • 29
  • 34
0

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

Community
  • 1
  • 1
MrEngineer13
  • 38,642
  • 13
  • 74
  • 93