Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to prevent reverse engineering of an Android APK file to secure code?

Tags:

android

apk

I have an app source and its APK file. Now I want to prevent this APK file from being reverse engineered. If it is possible to secure my app from reverse engineering, what are the steps to follow in my coding or any library is used for that?

like image 749
RajeshVijayakumar Avatar asked Nov 14 '12 13:11

RajeshVijayakumar


People also ask

What is used to prevent reverse engineering?

It is advisable to secure the user credentials to avoid reverse engineering of the application. The frequency of seeking user credentials in the mobile application should be less. This will allow the apps to avoid phishing attacks, more likely to be unsuccessful. It is advisable to use an authorization token.


1 Answers

Now I want to prevent this APK file from being reverse engineered.

That is impossible, sorry.

If it is possible to secure my app from reverse engineering, what are the steps to follow in my coding or any library is used for that?

ProGuard, properly configured, will obfuscate your code. DexGuard, a commercial extended version of ProGuard, may help a bit more. However, your code can still be converted into smali, and developers with reverse-engineering experience will be able to learn what you do from that smali code.

If you do not want others seeing your code, do not store that code on their device.

like image 126
CommonsWare Avatar answered Nov 03 '22 01:11

CommonsWare