addPhoneCallListener cause user privacy problem

Hi everyone, we are developing a game, but the privacy test company said our app has user privacy issue.

they test our app and said we monitor the user’s phone call state, this action is a privacy violation. we use Xpose to hook the TelephonyManager.listen function, and found that unityplayer will call a function named com.unity3d.player.UnityPlayer.addPhoneCallListener, then when a phone call is coming, unityplayer will stop the sound of the game, means will keep quite when user is making phone calls.

But this function will cause our game could not distribute, we found no setting about this all around the editor. Is there any solution for this problem? We try 2017.4 and 2019.4, both fail. Thank you.

I met the same problem and didn’t know what to do.

we have same problem

we have similar issue and
In our case, checking Player->‘Mute Other Audio Sources’ → true can prevent crash.
but I don’t want check this option.

there should be other way to prevent Unity call TelephonyManager.listen

1 Like

same problem, Unity 2020.3.31f1, crash on Android API 31

It works