[Treble-Enabled Device Development A/AB ROMS] ElHechicero:
On PR2 , work "Cast" ?

On all P versions fail and 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(RemoteD isplay.java:121)

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

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

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

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

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

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

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(RemoteD isplay.java:121)

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

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

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

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

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

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

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.

---------- Post added at 01:48 PM ---------- Previous post was at 01:47 PM ----------

On PR2 , work "Cast" ?

On all P versions fail and 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(RemoteD isplay.java:121)

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

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

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

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

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

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

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(RemoteD isplay.java:121)

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

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

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

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

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

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

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.