Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

option to disable or delay device info collection?

Discussion in 'Android' started by rugbbyli, Nov 8, 2021.

  1. rugbbyli

    rugbbyli

    Joined:
    Mar 14, 2017
    Posts:
    6
    Hello I notice unity would collect some device info when launch game
    upload_2021-11-8_11-15-57.png

    While in china, our law disallow app to collect this type of data before ask user.
    So I wonder if there is an option to disable this collection behaviour or delay the timing so I can ask user this info beforehand.

    PS: Our game have already denied by one app store because of this. That's the detail log:
    Code (CSharp):
    1. action=android.permission.MY_GET_SIM_OPNAME,content=sim_opname:,callstack:android.telephony.TelephonyManager.getSimOperatorNumericForPhone:2764;android.telephony.TelephonyManager.getSimOperatorNumeric:2744;android.telephony.TelephonyManager.getSimOperatorNumeric:2726;android.telephony.TelephonyManager.getSimOperator:2685;com.unity3d.splash.services.core.device.Device.getSIMMCC:8;com.unity3d.player.UnityPlayer.registerLaunch:96;com.unity3d.player.UnityPlayer.<init>:244;com.unity3d.player.UnityPlayerActivity.onCreate:41;android.app.Activity.performCreate:7144;android.app.Activity.performCreate:7135;android.app.Instrumentation.callActivityOnCreate:1271;android.app.ActivityThread.performLaunchActivity:2954;android.app.ActivityThread.handleLaunchActivity:3109;android.app.servertransaction.LaunchActivityItem.execute:78;android.app.servertransaction.TransactionExecutor.executeCallbacks:108;android.app.servertransaction.TransactionExecutor.execute:68;android.app.ActivityThread$H.handleMessage:1839;android.os.Handler.dispatchMessage:106;android.os.Looper.loop:193;android.app.ActivityThread.main:7162;java.lang.reflect.Method.invoke:-2;com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run:493;com.android.internal.os.ZygoteInit.main:858;
     
    loopan likes this.
  2. loopan

    loopan

    Joined:
    Apr 24, 2018
    Posts:
    1
    Solve it? Encountered the same problem
     
  3. rugbbyli

    rugbbyli

    Joined:
    Mar 14, 2017
    Posts:
    6
    Not got any support from unity, finally we solved by add a new activity before unity launch to let user know about that.
     
  4. AcidArrow

    AcidArrow

    Joined:
    May 20, 2010
    Posts:
    11,004
    Are you using any analytics or ads? Theoretically with all that off Unity shouldn't collect anything, although it's a bit hard to get a straight answer out of them.
     
  5. rugbbyli

    rugbbyli

    Joined:
    Mar 14, 2017
    Posts:
    6
    I puzzled of that too, but it got confirmed by reading unity android source code. You can find it in `UnityPlayer` class's constructor process, or search keyword `Device.getSIMMCC`.
     
  6. pplcf

    pplcf

    Joined:
    Nov 16, 2013
    Posts:
    5
    Same issue here. Any workaround to disable "android.permission.MY_GET_SIM_OPNAME" data collection?
     
    Last edited: Jan 11, 2022
  7. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    14,446
    You can use Charles Proxy to see exactly what is being sent and from what cloud service (likely Analytics, but there are others). For China PIPL consent, we have this https://docs.unity.com/analytics/ManagingDataPrivacy.htm
     
  8. hao3039032

    hao3039032

    Joined:
    Oct 17, 2013
    Posts:
    3
    Same issue here. The "android.permission.MY_GET_SIM_OPNAME" data collection only available after we notify app store that the player has agreed the privacy consent, otherwise they will denied your game.
     
  9. codingfishwu

    codingfishwu

    Joined:
    Sep 25, 2019
    Posts:
    4
    Same issue here. We have been rejected by some app stores.
     
  10. Voxel-Busters

    Voxel-Busters

    Joined:
    Feb 25, 2015
    Posts:
    1,832
    Can you share what exactly is the issue? Is it with the permission MY_GET_SIM_OPNAME ? Would be great if you can share more details to get an insight of the issue.