cocos2dx google升级libpng

这篇博客介绍了如何应对Google Play发送的安全警告,内容涉及使用了不安全版本libpng库的应用。开发者需要将Cocos2d-x项目中的libpng库升级到指定的安全版本,并提供了详细步骤:下载更新后的libpng文件,修改`Android.mk`文件,然后重新编译SO文件以确保应用的更新能够通过Google Play的安全检查。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

收到一份谷歌的邮件

Hello Google Play Developer,

We detected that your app(s) listed at the end of this email are using an unsafe version of the libpng library. Apps with vulnerabilities like this can expose users to risk of compromise and may be considered in violation of our Malicious Behavior policy.

What’s happening

Beginning September 17, 2016, Google Play will block publishing of any new apps or updates that use vulnerable versions of libpng. Your published APK version will not be affected, however any updates to the app will be blocked unless you address this vulnerability.

Action required: Migrate your app(s) to use libpng v1.0.66, v.1.2.56, v.1.4.19, v1.5.26 or higher as soon as possible and increment the version number of the upgraded APK.

更新方法

1、下载libpng文件目录:“cocos2dx\platform\third_party\android\prebuilt”

     下载地址:http://pan.baidu.com/s/1slhAznv

2、修改“cocos2dx” 目录下的 “Android.mk” 文件

   修改内容:

            原内容:LOCAL_WHOLE_STATIC_LIBRARIES := cocos_libpng_static

           修改为:

                      LOCAL_WHOLE_STATIC_LIBRARIES := cocos_libzlib_static

                       LOCAL_WHOLE_STATIC_LIBRARIES += cocos_libpng_static

           原内容::$(call import-module,libpng)

           修改为: 

                      $(call import-module,libzlib)

                     $(call import-module,libpng)

3、重新编译so文件即可


评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值