App got rejection on Xiaomi, Oppo platform due to Unity collect user information

Hi Dear Unity,

Our app got rejection on Xiaomi, Oppo platform. Because when the platforms review our app they found out that our app is tracking user information when the app starts and the log they shown is pointed to Unity.

The review report they send to us shows Unity is collecting Android ID, device information, etc.

And we tried one way to manually disable the Unity Connect Settings by modifying the UnityConnectSettings.asset file like below.

7794915--984609--upload_2022-1-10_16-47-21.png

If we disable UnityConnectSettings and CrashReportingSettings highlighted above, the app will pass the review of Xiaomi, Oppo platform.

So we are wondering if there is anyway we can disable and enable this in runtime? If this is disabled what kind of features will be affected from Unity?

Best wishes!

[quote=“GiverDP”, post:1, topic: 867713]
Hi Dear Unity,

Our app got rejection on Xiaomi, Oppo platform. Because when the platforms review our app they found out that our app is tracking user information when the app starts and the log they shown is pointed to Unity.

The review report they send to us shows Unity is collecting Android ID, device information, etc.

And we tried one way to manually disable the Unity Connect Settings by modifying the UnityConnectSettings.asset file like below.

If we disable UnityConnectSettings and CrashReportingSettings highlighted above, the app will pass the review of Xiaomi, Oppo platform.

So we are wondering if there is anyway we can disable and enable this in runtime? If this is disabled what kind of features will be affected from Unity?

Best wishes!
[/quote]
Use Charles Proxy to determine exactly what your app is sending, and you can use this information in your appeal https://support.unity.com/hc/en-us/articles/115002917683-Using-Charles-Proxy-with-Unity . The only data we collect would show up in the Charles capture.

[quote=“JeffDUnity3D”, post:2, topic: 867713]
Use Charles Proxy to determine exactly what your app is sending, and you can use this information in your appeal https://support.unity.com/hc/en-us/articles/115002917683-Using-Charles-Proxy-with-Unity . The only data we collect would show up in the Charles capture.
[/quote]
I tried to use Charles, but I only saw those urls below.

7797531--985005--upload_2022-1-11_9-54-33.png

And this didn’t correspond to the Xiaomi, Oppo platform check. Because from their report there is the some splash.unity.cn host stuff.

7797531--985008--upload_2022-1-11_9-56-8.jpg

Also they mention Unity is collecting AndroidID when App start, any idea about those things?

[quote=“GiverDP”, post:3, topic: 867713]
I tried to use Charles, but I only saw those urls below.

And this didn’t correspond to the Xiaomi, Oppo platform check. Because from their report there is the some splash.unity.cn host stuff.

Also they mention Unity is collecting AndroidID when App start, any idea about those things?
[/quote]
The capture is still encrypted (the red X’s). That’s exactly the data we need, it will tell in the request payload which service is making the call and what data is in the response. If this was captured on Android, you need to install the charlesproxy.unitypackage as mentioned in the article.

[quote=“JeffDUnity3D”, post:4, topic: 867713]
The capture is still encrypted (the red X’s). That’s exactly the data we need, it will tell in the request payload which service is making the call and what data is in the response. If this was captured on Android, you need to install the charlesproxy.unitypackage as mentioned in the article.
[/quote]

I got it working and below shows the data it’s collecting.

7798101--985143--upload_2022-1-11_15-36-22.jpg

7798101--985146--upload_2022-1-11_15-36-39.jpg

Here is full text data shows above.

{“common”:{“appid”:“local.e0e09c6d18c4042349a946231f31e2dd”,“userid”:“d3794a9ec3dcbdc499120f690868830c”,“sessionid”:3286539128195096274,“platform”:“AndroidPlayer”,“platformid”:11,“sdk_ver”:“u2019.4.34f1c1”,“sdk_rev”:“74e9a986d8c7”,“session_count”:6,“localprojectid”:“e0e09c6d18c4042349a946231f31e2dd”,“build_guid”:“d2720cc3fce8d45fa8a968ca2426fcde”,“deviceid”:“f9866992d4ca7ecede3818f8be6288a8”,“identity_token”:“d3794a9ec3dcbdc499120f690868830c”}}
{“type”:“analytics.appPause.v1”,“msg”:{“ts”:1641886328927,“t_since_start”:228666483}}
{“type”:“analytics.appRunning.v1”,“msg”:{“duration”:227,“local_time_offset”:-28800000,“ts”:1641886328927,“t_since_start”:228666543}}

So it do collect device information, like deviceid.

[quote=“GiverDP”, post:5, topic: 867713]
I got it working and below shows the data it’s collecting.

Here is full text data shows above.

{“common”:{“appid”:“local.e0e09c6d18c4042349a946231f31e2dd”,“userid”:“d3794a9ec3dcbdc499120f690868830c”,“sessionid”:3286539128195096274,“platform”:“AndroidPlayer”,“platformid”:11,“sdk_ver”:“u2019.4.34f1c1”,“sdk_rev”:“74e9a986d8c7”,“session_count”:6,“localprojectid”:“e0e09c6d18c4042349a946231f31e2dd”,“build_guid”:“d2720cc3fce8d45fa8a968ca2426fcde”,“deviceid”:“f9866992d4ca7ecede3818f8be6288a8”,“identity_token”:“d3794a9ec3dcbdc499120f690868830c”}}
{“type”:“analytics.appPause.v1”,“msg”:{“ts”:1641886328927,“t_since_start”:228666483}}
{“type”:“analytics.appRunning.v1”,“msg”:{“duration”:227,“local_time_offset”:-28800000,“ts”:1641886328927,“t_since_start”:228666543}}

So it do collect device information, like deviceid.
[/quote]
This data is collected from the Unity Analytics service, you can rebuild the project after disabling the Unity Analytics service in the editor.
7798347--985224--upload_2022-1-11_17-27-31.png

[quote=“SamOYUnity3D”, post:6, topic: 867713]
This data is collected from the Unity Analytics service, you can rebuild the project after disabling the Unity Analytics service in the editor.

[/quote]

Actually the build I made already disabled analytics, but this is still collecting data.

7804344--986568--upload_2022-1-13_10-30-12.jpg

[quote=“GiverDP”, post:7, topic: 867713]
Actually the build I made already disabled analytics, but this is still collecting data.

[/quote]
Please send your Charles .chls capture file to me in a private message, I’ll take a look

[quote=“JeffDUnity3D”, post:8, topic: 867713]
Please send your Charles .chls capture file to me in a private message, I’ll take a look
[/quote]

I started a conversation with you and send the .chls file there. If you could check it as soon as possible that would be really helpful, because currently this issue is a blocker for us. Really appreciate!

@GiverDP Yes, Analytics is still showing as enabled and sending events. Was this capture created when running in the Editor or from a new build? If you've disabled Analytics in the Editor, you need to create a new build. Also, try removing all the Analytics packages from Package Manager, make sure to create a full project backup first. Then create a new build. What platform are you building to? Compare to a new/empty project with no services enabled.