AnsweredAssumed Answered

Dual LVDS display in separate mode for Android 7.1.1

Question asked by Jian Zhu on Mar 25, 2018
Latest reply on Apr 10, 2018 by Diego Adrian Cuevas

I want to support the dual LVDS display in separate mode. My Android version is Nougat 7.1.1_1.0.0. My hardware is i.MX6 Quad. My issue is sometimes I can not show separate contents on my secondary display. When it fails, there is non-stop exceptions in Android's Window Manager framework: 

 

I also test with ApiDemos from Google.

 

Does anyone use the dual LVDS display in separate mode for Android 7.1.1? Do I need to modify some code in Android framework or HAL to support the dual display in separate mode?

 

03-26 09:51:48.582 488-511/system_process E/WindowManager: Unhandled exception in Window Manager
java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.DisplayInfo com.android.server.wm.DisplayContent.getDisplayInfo()' on a null object reference
at com.android.server.wm.Task.getDisplayInfo(Task.java:766)
at com.android.server.wm.DimLayer.getBoundsForFullscreen(DimLayer.java:209)
at com.android.server.wm.DimLayer.setBoundsForFullscreen(DimLayer.java:221)
at com.android.server.wm.DimLayerController.updateDimLayer(DimLayerController.java:60)
at com.android.server.wm.WindowSurfacePlacer.performLayoutLockedInner(WindowSurfacePlacer.java:1003)
at com.android.server.wm.WindowSurfacePlacer.applySurfaceChangesTransaction(WindowSurfacePlacer.java:656)
at com.android.server.wm.WindowSurfacePlacer.performSurfacePlacementInner(WindowSurfacePlacer.java:321)
at com.android.server.wm.WindowSurfacePlacer.performSurfacePlacementLoop(WindowSurfacePlacer.java:236)
at com.android.server.wm.WindowSurfacePlacer.performSurfacePlacement(WindowSurfacePlacer.java:184)
at com.android.server.wm.WindowManagerService$H.handleMessage(WindowManagerService.java:8362)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.os.HandlerThread.run(HandlerThread.java:61)
at com.android.server.ServiceThread.run(ServiceThread.java:46)

Outcomes