Venkat
Venkat

Reputation: 3457

How to Create an application build securing the source code?

Generally we can get source code from the android installation package as shown in this reference link.

But, is it possible to secure the actual program code (source code) from a reverse engineer ?

Upvotes: 2

Views: 805

Answers (2)

Girish Nair
Girish Nair

Reputation: 5216

The code that you write is converted into class files then dex files, so directly viewing the code is not possible. but however dex compilers can be used to de-compile the source code but that requires some good knowledge so for that you have to obfuscate the code. Google by default provides proguard so that you can protect the code

you can read about proguard from here

In simple words you cannot hide the source code, but just add this line proguard.config=proguard.cfg to your project.properties file so making it difficult to be decoded . You can check here for an example

Upvotes: 3

Techwolf
Techwolf

Reputation: 1228

No, because the android system has to be able to read it in order to run it. You can obfuscate it with tools like Proguard to make it harder to decompile, but there's no way to make it completely impossible.

Upvotes: 0

Related Questions