Hello,
Pixel 7, Stable channel with sandboxed Play Services installed. Recently updated to 2026062300 (Android 17) via OTA and now casting no longer works in YouTube, Google Home app, or the OS built-in "cast" quick settings tile. No cast targets are ever found to select. This was definitely working as recently as the previous stable release the day before I upgraded. All related apps (Play Services, Play Store, and the media apps) have "Network" and "Nearby devices" permissions granted. I suspect an issue with the new ACCESS_LOCAL_NETWORK permission as part of Android 17, which I understand should be covered by the "Nearby devices" permission, yet I still get an EPERM in my logcat:
06-26 10:07:47.654 3006 10869 E AOSP-MdnsDiscoveryManag: Failed to send a multicast mDNS packet. [CONTEXT service_id=168 ]
06-26 10:07:47.654 3006 10869 E AOSP-MdnsDiscoveryManag: java.io.IOException: sendto failed: EPERM (Operation not permitted)
06-26 10:07:47.654 3006 10869 E AOSP-MdnsDiscoveryManag: at libcore.io.IoBridge.maybeThrowAfterSendto(IoBridge.java:738)
06-26 10:07:47.654 3006 10869 E AOSP-MdnsDiscoveryManag: at libcore.io.IoBridge.sendto(IoBridge.java:705)
06-26 10:07:47.654 3006 10869 E AOSP-MdnsDiscoveryManag: at java.net.PlainDatagramSocketImpl.send(PlainDatagramSocketImpl.java:126)
06-26 10:07:47.654 3006 10869 E AOSP-MdnsDiscoveryManag: at java.net.DatagramSocket.send(DatagramSocket.java:723)
06-26 10:07:47.654 3006 10869 E AOSP-MdnsDiscoveryManag: at hqpk.run(:com.google.android.gms@262031035@26.20.31 (260400-919905943):101)
06-26 10:07:47.654 3006 10869 E AOSP-MdnsDiscoveryManag: at java.lang.Thread.run(Thread.java:1572)
06-26 10:07:47.654 3006 10869 E AOSP-MdnsDiscoveryManag: Caused by: android.system.ErrnoException: sendto failed: EPERM (Operation not permitted)
06-26 10:07:47.654 3006 10869 E AOSP-MdnsDiscoveryManag: at libcore.io.Linux.sendtoBytes(Native Method)
06-26 10:07:47.654 3006 10869 E AOSP-MdnsDiscoveryManag: at libcore.io.Linux.sendto(Linux.java:280)
06-26 10:07:47.654 3006 10869 E AOSP-MdnsDiscoveryManag: at libcore.io.ForwardingOs.sendto(ForwardingOs.java:745)
06-26 10:07:47.654 3006 10869 E AOSP-MdnsDiscoveryManag: at libcore.io.BlockGuardOs.sendto(BlockGuardOs.java:413)
06-26 10:07:47.654 3006 10869 E AOSP-MdnsDiscoveryManag: at libcore.io.ForwardingOs.sendto(ForwardingOs.java:745)
06-26 10:07:47.654 3006 10869 E AOSP-MdnsDiscoveryManag: at libcore.io.IoBridge.sendto(IoBridge.java:703)
06-26 10:07:47.654 3006 10869 E AOSP-MdnsDiscoveryManag: ... 4 more
There is also a curious note in the GrapheneOS release notes for this release possibly related:
"Sandboxed Google Play compatibility layer: add stub for NsdManager.registerService() to handle lack of ACCESS_LOCAL_NETWORK"
Thanks for any help!