废话一句
本文仅分享问题分析解决过程、思路,不保证正确,仅供参考。欢迎各位大佬讨论、指正。
问题
最近团队有个项目要上线谷歌,上线aab提审时总提示我们的Unity SDK 版本过低不符合隐私政策。但是实际上我们的项目并未使用Unity Ads 的SDK, 其他功能也不涉及隐私问题。
分析
多次修改项目中使用的SDK内容再重新提审,先后排除了项目使用过的Facebook SDK 和 数数SDK,即使不接入任何额外的SDK也还是因同样的原因提审失败。
反编译APK后发现我们的包里确实有低版本的Unity Ads 但manifest.json和AndroidManifest.xml都没有体现相关内容。应该是Unity自动偷偷集成了低版本的Unity Ads,随着谷歌隐私政策的更新,该版本变得不再符合隐私政策。
解决
主动安装高版本的Unity Ads,比如在Package Manager 安装当前的最新版本4.3.0或审核不通过提示中的高于4.0.1的版本。推测是高版本会覆盖低版本,或是以高版本为准。重新提审,审核通过,问题解决。(可能等Unity更新了偷偷集成的Unity Ads 版本就不会有这个问题了。)
附:提审不通过提示
After a recent review, we found that your app 应用名 (包名) is
not compliant with one or more of our Developer Program Policies. See
below for more information about your app’s status and how to correct
the issue. Reasons of violation Issue with your app Your app is
using the Unity SDK which collects but may not be limited to Android
ID and Advertising ID identifiers. Persistent device identifiers may
not be linked to other personal and sensitive user data or resettable
device identifiers. You may consider moving to another SDK; removing
this SDK; or if available from your SDK provider, upgrading to a
policy-compliant version of this SDK that does not include the
violating code.According to the information provided by your SDK provider, you may
consider upgrading to 4.0.1. Please consult the SDK provider for
further information.Affected Version(s):
App Bundle:N, App Bundle:N Reasons of violation About the User Data
policy Limit the access, collection, use, and sharing of personal and
sensitive user data acquired through the app to app and service
functionality and policy conforming purposes reasonably expected by
the user. Persistent device identifiers may not be linked to other
personal and sensitive user data or resettable device identifiers
except for the purposes of:Telephony linked to a SIM identity (e.g., wifi calling linked to a
carrier account), and Enterprise device management apps using device
owner mode. These uses must be prominently disclosed to users as
specified in the User Data policy. Please consult this resource for
alternative unique identifiers. Publishing Status App status:
Rejected Your app has been rejected and wasn’t published due to this
policy issue. If you submitted an update, the previous version of your
app is still available on Google Play.
=========================================================
2023.03.13修改
文中写的这次提审过了之后,运营操作了一下测试分组,就又出现了一样的审核不通过提示。
联系Unity官方说是需要运营删除关联的有问题的包(大意),但也没说一定是这个原因。后来同事用Pro版的Unity打包,去掉了开屏动画,再提交就过审了,这几天也没再出问题。
之前反编译APK时发现的低版本的Unity Ads 确实是在开屏动画的模块(Splash Image、Splash Screen),推测是和开屏动画的广告功能有关。具体原因可能还是要等官方具体解释。