How to avoid reverse engineering of an APK file?

后端 未结 30 2231
醉梦人生
醉梦人生 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 23:06

     1. How can I completely avoid reverse engineering of an Android APK? Is this possible?

    This isn't possible

     2. How can I protect all the app's resources, assets and source code so that hackers can't hack the APK file in any way?

    When somebody change a .apk extension to .zip, then after unzipping, someone can easily get all resources (except Manifest.xml), but with APKtool one can get the real content of the manifest file too. Again, a no.

     3. Is there a way to make hacking more tough or even impossible? What more can I do to protect the source code in my APK file?

    Again, no, but you can prevent upto some level, that is,

    • Download a resource from the Web and do some encryption process
    • Use a pre-compiled native library (C, C++, JNI, NDK)
    • Always perform some hashing (MD5/SHA keys or any other logic)

    Even with Smali, people can play with your code. All in all, it's not POSSIBLE.

提交回复
热议问题