[Treble-Enabled Device Development A/AB ROMS] ElHechicero:
When send screen to my Miracast with "Cast" option , always restart systemui and don´t work.

This is error on logcat:

09-16 09:01:51.001 19841 20382 E AndroidRuntime:*

09-16 09:02:50.034* 1400* 1437 E AndroidRuntime: *** FATAL EXCEPTION IN SYSTEM PROCESS: android.display

09-16 09:02:50.034* 1400* 1437 E AndroidRuntime: java.lang.IllegalStateException: Could not start listening for remote display connection on "192.168.49.1:7236"

09-16 09:02:50.034* 1400* 1437 E AndroidRuntime:*at android.media.RemoteDisplay.startListening(RemoteDisplay.java:121)

09-16 09:02:50.034* 1400* 1437 E AndroidRuntime:*at android.media.RemoteDisplay.listen(RemoteDisplay.java:84)

09-16 09:02:50.034* 1400* 1437 E AndroidRuntime:*at com.android.server.display.WifiDisplayController.updateConnection(WifiDisplayController.java:738)

09-16 09:02:50.034* 1400* 1437 E AndroidRuntime:*at com.android.server.display.WifiDisplayController.access$1200(WifiDisplayController.java:70)

09-16 09:02:50.034* 1400* 1437 E AndroidRuntime:*at com.android.server.display.WifiDisplayController$15.onGroupInfoAvailable(WifiDisplayController.java:867)

09-16 09:02:50.034* 1400* 1437 E AndroidRuntime:*at android.net.wifi.p2p.WifiP2pManager$Channel$P2pHandler.handleMessage(WifiP2pManager.java:819)

09-16 09:02:50.034* 1400* 1437 E AndroidRuntime:*at android.os.Handler.dispatchMessage(Handler.java:106)

09-16 09:02:50.034* 1400* 1437 E AndroidRuntime:*at android.os.Looper.loop(Looper.java:193)

09-16 09:02:50.034* 1400* 1437 E AndroidRuntime:*at android.os.HandlerThread.run(HandlerThread.java:65)

09-16 09:02:50.034* 1400* 1437 E AndroidRuntime:*at com.android.server.ServiceThread.run(ServiceThread.java:44)

09-16 09:09:46.791 24469 24491 E AndroidRuntime: *** FATAL EXCEPTION IN SYSTEM PROCESS: android.display

09-16 09:09:46.791 24469 24491 E AndroidRuntime: java.lang.IllegalStateException: Could not start listening for remote display connection on "192.168.49.1:7236"

09-16 09:09:46.791 24469 24491 E AndroidRuntime:*at android.media.RemoteDisplay.startListening(RemoteDisplay.java:121)

09-16 09:09:46.791 24469 24491 E AndroidRuntime:*at android.media.RemoteDisplay.listen(RemoteDisplay.java:84)

09-16 09:09:46.791 24469 24491 E AndroidRuntime:*at com.android.server.display.WifiDisplayController.updateConnection(WifiDisplayController.java:738)

09-16 09:09:46.791 24469 24491 E AndroidRuntime:*at com.android.server.display.WifiDisplayController.access$1200(WifiDisplayController.java:70)

09-16 09:09:46.791 24469 24491 E AndroidRuntime:*at com.android.server.display.WifiDisplayController$15.onGroupInfoAvailable(WifiDisplayController.java:867)

09-16 09:09:46.791 24469 24491 E AndroidRuntime:*at android.net.wifi.p2p.WifiP2pManager$Channel$P2pHandler.handleMessage(WifiP2pManager.java:819)

09-16 09:09:46.791 24469 24491 E AndroidRuntime:*at android.os.Handler.dispatchMessage(Handler.java:106)

09-16 09:09:46.791 24469 24491 E AndroidRuntime:*at android.os.Looper.loop(Looper.java:193)

09-16 09:09:46.791 24469 24491 E AndroidRuntime:*at android.os.HandlerThread.run(HandlerThread.java:65)

09-16 09:09:46.791 24469 24491 E AndroidRuntime:*at com.android.server.ServiceThread.run(ServiceThread.java:44)

--------- beginning of system

With same firmware,modem,vendor but 8.1 Rom , works perfectly. Only fail with Android 9.

Any idea* to solve it ? .*Regards and thanks.

OnePlus5

Enviado desde mi Phh-Treble with GApps mediante Tapatalk