How to avoid reverse engineering of an APK file?

后端 未结 30 2248
醉梦人生
醉梦人生 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:44

    APK signature scheme v2 in Android N

    The PackageManager class now supports verifying apps using the APK signature scheme v2. The APK signature scheme v2 is a whole-file signature scheme that significantly improves verification speed and strengthens integrity guarantees by detecting any unauthorized changes to APK files.

    To maintain backward-compatibility, an APK must be signed with the v1 signature scheme (JAR signature scheme) before being signed with the v2 signature scheme. With the v2 signature scheme, verification fails if you sign the APK with an additional certificate after signing with the v2 scheme.

    APK signature scheme v2 support will be available later in the N Developer Preview.

    http://developer.android.com/preview/api-overview.html#apk_signature_v2

提交回复
热议问题