java.lang.SecurityException: Invalid media projection
at android.os.Parcel.readException(Parcel.java:2021)
at android.os.Parcel.readException(Parcel.java:1967)
at android.hardware.display.IDisplayManager$Stub$Proxy.createVirtualDisplay(IDisplayManager.java:528)
at android.hardware.display.DisplayManagerGlobal.createVirtualDisplay(DisplayManagerGlobal.java:399)
at android.hardware.display.DisplayManager.createVirtualDisplay(DisplayManager.java:620)
at android.media.projection.MediaProjection.createVirtualDisplay(MediaProjection.java:138)
at com.stardust.autojs.core.image.capture.ScreenCapturer.initVirtualDisplay(ScreenCapturer.java:106)
at com.stardust.autojs.core.image.capture.ScreenCapturer.refreshVirtualDisplay(ScreenCapturer.java:100)
at com.stardust.autojs.core.image.capture.ScreenCapturer.access$300(ScreenCapturer.java:29)
at com.stardust.autojs.core.image.capture.ScreenCapturer$1.onOrientationChanged(ScreenCapturer.java:71)
at android.view.OrientationEventListener$SensorEventListenerImpl.onSensorChanged(OrientationEventListener.java:160)
at android.hardware.SystemSensorManager$SensorEventQueue.dispatchSensorEvent(SystemSensorManager.java:898)
at android.os.MessageQueue.nativePollOnce(Native Method)
at android.os.MessageQueue.next(MessageQueue.java:325)
at android.os.Looper.loop(Looper.java:172)
at android.app.ActivityThread.main(ActivityThread.java:7038)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:521)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:837)
Description:
java.lang.SecurityException: Invalid media projection at android.os.Parcel.readException(Parcel.java:2021) at android.os.Parcel.readException(Parcel.java:1967) at android.hardware.display.IDisplayManager$Stub$Proxy.createVirtualDisplay(IDisplayManager.java:528) at android.hardware.display.DisplayManagerGlobal.createVirtualDisplay(DisplayManagerGlobal.java:399) at android.hardware.display.DisplayManager.createVirtualDisplay(DisplayManager.java:620) at android.media.projection.MediaProjection.createVirtualDisplay(MediaProjection.java:138) at com.stardust.autojs.core.image.capture.ScreenCapturer.initVirtualDisplay(ScreenCapturer.java:106) at com.stardust.autojs.core.image.capture.ScreenCapturer.refreshVirtualDisplay(ScreenCapturer.java:100) at com.stardust.autojs.core.image.capture.ScreenCapturer.access$300(ScreenCapturer.java:29) at com.stardust.autojs.core.image.capture.ScreenCapturer$1.onOrientationChanged(ScreenCapturer.java:71) at android.view.OrientationEventListener$SensorEventListenerImpl.onSensorChanged(OrientationEventListener.java:160) at android.hardware.SystemSensorManager$SensorEventQueue.dispatchSensorEvent(SystemSensorManager.java:898) at android.os.MessageQueue.nativePollOnce(Native Method) at android.os.MessageQueue.next(MessageQueue.java:325) at android.os.Looper.loop(Looper.java:172) at android.app.ActivityThread.main(ActivityThread.java:7038) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:521) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:837)
Device info: