How to avoid reverse engineering of an APK file?

后端 未结 30 2220
醉梦人生
醉梦人生 2020-11-21 22:27

I am developing a payment processing app for Android, and I want to prevent a hacker from accessing any resources, assets or source code from the APK file.<

30条回答
  •  囚心锁ツ
    2020-11-21 22:51

    Here are few methods you can try:

    1. Use obfuscation and tools like ProGuard.
    2. Encrypt some part of source and data.
    3. Use a proprietary inbuilt checksum in the app to detect tampering.
    4. Introduce code to avoid loading in a debugger, that is, let the app have the ability to detect the debugger and exit / kill the debugger.
    5. Separate the authentication as an online service.
    6. Use application diversity
    7. Use the finger printing technique for e.g., hardware signatures of the devices from different subsystem before authenticating the device.

提交回复
热议问题