Android Question protect the APK as good as possible

marcel

Active Member
Licensed User
Longtime User
Hi,

My customer want's me to protect the APK as good as possible. Currently I use the release (obfuscated) to protect it. But I found also a tool "DexProtector" which do similar things. But this cost a awful lot of money. Do you really think this is much better?

Are there any other alternatives that you know of?

Best Regards,

Marcel
 

MarcoRome

Expert
Licensed User
Longtime User
Look also THIS
 
Upvote 0

marcel

Active Member
Licensed User
Longtime User
Would it be possible to have create a simple example project with B4A. How do you include for example the .so files and call them from B4A?
 
Upvote 0

wonder

Expert
Licensed User
Longtime User
Alright, so here's a small native obfuscation example.
The encryption algorithm isn't the strongest, but it should be enough.

Here's the B4A test code:
B4X:
Dim test As NativeObfuscationDemo
Dim out As String
For i = 0 To test.kL - 1
    out = out & test.gS(i)
Next
Log(out)

'Output: "password"

Source code, explanation and encryption tutorial available on request.
 

Attachments

  • NativeObfuscationDemo.zip
    18.4 KB · Views: 197
Last edited:
Upvote 0

elitevenkat

Active Member
Licensed User
Longtime User
Yes I am interested kindly send me the tutorial.
 
Upvote 0

Informatix

Expert
Licensed User
Longtime User
Obfuscating a string is useless IF you don't prevent the hacker from altering and running your code. He will just have to log the string content once deobfuscated (e.g. after you load it from the .so library).
The main purpose of obfuscation is to make the understanding of your code a lot harder, not to protect your data.
 
Upvote 0

elitevenkat

Active Member
Licensed User
Longtime User
Then kindly tell me how to secure my apk. Is there any tool available? I use source cop utility for encrypting my php apps.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…