Change_wifi_multicast_state?

I updated the Unity Editor to version 2019.1.0f2 (from 2018.3.12f1).

Now when I re-build my app (no changes, just a re-build with the new Unity version) and publish it to Google Play I get a warning about a new requested right “CHANGE_WIFI_MULTICAST_STATE”.

When investigating the AndroidManifest file, I can see that “android.permission.INTERNET” and “android.permission.CHANGE_WIFI_MULTICAST_STATE” by some reason has been added.

Why are those rights suddenly required without me changing anything in my app? Will users have to acknowledge these rights, and if so - what happens if they deny?

Edit: In addition, Google Play warns about a number of devices that are no longer supported by my “new” version. The reason for no longer being supported is the lack of support for “android.hardware.wifi” (?) What is this? I couldn’t care less for WiFi, this is a local app that require no network access at all.

Edit: Is this the “fix” that cause this? “Fixed in Unity 2019.1” If so - why does it require CHANGE_WIFI_MULTICAST_STATE when there’s nothing in the app that use WiFi?

3 Likes

I’ve experienced the same thing and am also curious about why this permission is required all of a sudden

The code says that the permission is being added when:

  • UnityEngine.Networking.NetworkTransport::SetMulticastLock method is used
  • or UnityEngine.Networking.NetworkDiscovery type is used.

I’m not sure why the latter was added. Please submit a bug report, attach a project and report the case # here.

Hello guys,

If you still having this issue. I had the same on my side, but after some investigation, I found that Unity 2019 has “Multiplayer HLAPI” package installed by default. I’ve removed it and additional permission has gone.

Hope it helps.

28 Likes

Perfect! Thank you :slight_smile:

I removed that package and it solved the problem.

That was my issue as well, thanks!

you just saved me :slight_smile: thanks

Same issue here. Fixed by removing package. Thanks

Thanks!

Unfortunately the solution by removing “Multiplayer HLAPI” package doesn’t worked for me. I’m with Unity 2019.1.6 and If I found fix I will write again…

If there is anybody who removed the package “Multiplayer HLAPI” and the permissions are still in the build, should try this:

Go to your Android.manifest and add:


don’t forget to add xmlns:tools=“http://schemas.android.com/tools to your xml schema. That’s completely worked for me :):):slight_smile:

So what’s the latest news regarding this creeping permission? My cloud builds are useless due to this problem. Could we get an official response regarding when they will fix this and how?

bump

I’m having the same issue. I removed the Multiplayer package but builds are still having the CHANGE_WIFI_MULTICAST_STATE permission. At least from Unity Cloud Builds they do.

Umm. Which package do you remove from? I can not understand (

Go to Unity. Look at your Project window where you see all the files that belong to your project. Navigate to packages and find multiplayer hlapi. Right click, open file location. Delete it. Build again.

Fixed, Thank you!

o brother thank you. You saved me from QA team. I have no words to thank you. you are legend, The Guru of Unity. Unity should hire you instead of Yury-Habets. :wink:

Any news on this? I need the Multiplayer HLAPI but I don’t use any of the API calls that add the permission request according to the documentation:

  • NetworkDiscovery
  • NetworkTransport.SetMulticastLock

Edit: I’ve filed a bug report, case ID 1216963. I’m running Unity 2019.2.15f1

Remove from /Packages/manifest.json and restart unity. It will not showing in Project/Packages

1 Like