Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash on Android 12 Developer Preview 1 (secure flag) #2129

Closed
2 tasks done
AfzalivE opened this issue Feb 18, 2021 · 83 comments
Closed
2 tasks done

Crash on Android 12 Developer Preview 1 (secure flag) #2129

AfzalivE opened this issue Feb 18, 2021 · 83 comments

Comments

@AfzalivE
Copy link

AfzalivE commented Feb 18, 2021

  • I have read the FAQ.
  • I have searched in existing issues.

Environment

  • OS: macOS
  • scrcpy version: 1.17
  • installation method: brew
  • device model: Google Pixel
  • Android version: 12 DP1

ADB Logcat output

adb logcat
2021-02-18 15:23:02.317 1027-1112/? D/VSC: @ 981.257: [Device Pickup Sensor] Request accel, interval 20.0 ms, latency 100.0 ms
2021-02-18 15:23:03.093 1691-1714/? I/pixel-thermal: fps-therm-monitor: 41.104 degC
2021-02-18 15:23:03.094 24704-24704/? W/adbd: timeout expired while flushing socket, closing
2021-02-18 15:23:03.720 5378-5468/? D/DeviceStateHelper: Audo mode: 0
2021-02-18 15:23:03.725 5378-5468/? D/DeviceStateHelper: Audo mode: 0
2021-02-18 15:23:03.729 5378-5468/? D/DeviceStateHelper: Audo mode: 0
2021-02-18 15:23:04.465 1027-1112/? D/VSC: @ 983.409: [Device Pickup Sensor] Stop accel
2021-02-18 15:23:04.466 1027-1112/? D/VSC: @ 983.411: [Device Pickup Sensor] Request motion_detect, interval 18446744027136.0 ms, latency 0.0 ms
2021-02-18 15:23:05.104 1691-1714/? I/pixel-thermal: fps-therm-monitor: 41.046 degC
2021-02-18 15:23:05.388 29135-29135/? D/AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 2000 <<<<<<
2021-02-18 15:23:05.392 29135-29135/? E/libc: Access denied finding property "persist.device_config.runtime_native_boot.profilebootclasspath"
2021-02-18 15:23:05.392 29135-29135/? E/libc: Access denied finding property "persist.device_config.runtime_native_boot.enable_apex_image"
2021-02-18 15:23:05.392 29135-29135/? I/AndroidRuntime: Using default boot image
2021-02-18 15:23:05.392 29135-29135/? E/libc: Access denied finding property "persist.device_config.runtime_native_boot.disable_lock_profiling"
2021-02-18 15:23:05.392 29135-29135/? I/AndroidRuntime: Leaving lock profiling enabled
2021-02-18 15:23:05.392 29135-29135/? E/libc: Access denied finding property "persist.device_config.runtime_native_boot.enable_generational_cc"
2021-02-18 15:23:05.387 29135-29135/? W/app_process: type=1400 audit(0.0:411): avc: denied { read } for name="u:object_r:device_config_runtime_native_boot_prop:s0" dev="tmpfs" ino=23759 scontext=u:r:shell:s0 tcontext=u:object_r:device_config_runtime_native_boot_prop:s0 tclass=file permissive=0 b/175106535
2021-02-18 15:23:05.387 29135-29135/? W/app_process: type=1400 audit(0.0:412): avc: denied { read } for name="u:object_r:device_config_runtime_native_boot_prop:s0" dev="tmpfs" ino=23759 scontext=u:r:shell:s0 tcontext=u:object_r:device_config_runtime_native_boot_prop:s0 tclass=file permissive=0 b/175106535
2021-02-18 15:23:05.387 29135-29135/? W/app_process: type=1400 audit(0.0:413): avc: denied { read } for name="u:object_r:device_config_runtime_native_boot_prop:s0" dev="tmpfs" ino=23759 scontext=u:r:shell:s0 tcontext=u:object_r:device_config_runtime_native_boot_prop:s0 tclass=file permissive=0 b/175106535
2021-02-18 15:23:05.390 29135-29135/? W/app_process: type=1400 audit(0.0:414): avc: denied { read } for name="u:object_r:device_config_runtime_native_boot_prop:s0" dev="tmpfs" ino=23759 scontext=u:r:shell:s0 tcontext=u:object_r:device_config_runtime_native_boot_prop:s0 tclass=file permissive=0 b/175106535
2021-02-18 15:23:05.537 29135-29135/? D/app_process: Time zone APEX ICU file found: /apex/com.android.tzdata/etc/icu/icu_tzdata.dat
2021-02-18 15:23:05.537 29135-29135/? D/app_process: I18n APEX ICU file found: /apex/com.android.i18n/etc/icu/icudt67l.dat
2021-02-18 15:23:05.578 29135-29135/? W/app_process: JNI RegisterNativeMethods: attempt to register 0 native methods for android.media.AudioAttributes
2021-02-18 15:23:05.585 29135-29135/? D/AndroidRuntime: Calling main entry com.genymobile.scrcpy.Server
2021-02-18 15:23:05.588 29135-29135/? I/scrcpy: Device: Google Pixel 3 (Android 11)
    
    --------- beginning of system
2021-02-18 15:23:05.617 1719-3908/? I/PowerManagerService: Waking up from Dozing (uid=1000, reason=WAKE_REASON_POWER_BUTTON, details=android.policy:POWER)...
2021-02-18 15:23:05.617 3837-3837/? I/Elmyra/ElmyraService: Gated by SystemKeyPress
2021-02-18 15:23:05.621 29135-29135/? I/app_process: Thread[1,tid=29135,Native,Thread*=0x7587519010,peer=0x12c04db0,"main"] recursive attempt to load library "libmedia_jni.so"
2021-02-18 15:23:05.622 29135-29135/? I/app_process: Thread[1,tid=29135,Native,Thread*=0x7587519010,peer=0x12c04db0,"main"] recursive attempt to load library "libmedia_jni.so"
2021-02-18 15:23:05.622 29135-29135/? D/MtpDeviceJNI: register_android_mtp_MtpDevice
2021-02-18 15:23:05.622 29135-29135/? I/app_process: Thread[1,tid=29135,Native,Thread*=0x7587519010,peer=0x12c04db0,"main"] recursive attempt to load library "libmedia_jni.so"
2021-02-18 15:23:05.622 1719-1881/? I/DisplayPowerController: Blocking screen on until initial contents have been drawn.
2021-02-18 15:23:05.622 29135-29135/? I/app_process: Thread[1,tid=29135,Native,Thread*=0x7587519010,peer=0x12c04db0,"main"] recursive attempt to load library "libmedia_jni.so"
2021-02-18 15:23:05.623 3837-5862/? D/KeyguardViewMediator: notifyScreenOn
2021-02-18 15:23:05.623 3837-5862/? D/KeyguardViewMediator: onStartedWakingUp, seq = 7
2021-02-18 15:23:05.623 3837-5862/? D/KeyguardViewMediator: notifyStartedWakingUp
2021-02-18 15:23:05.623 1027-1027/? I/sensors-hal: batch_physical_sensor:285, android.sensor.light/51, period=250000000, max_latency=0
2021-02-18 15:23:05.623 1027-1027/? I/sensors-hal: batch_physical_sensor:296, android.sensor.light/51, period=250000000, max_latency=0 request completed
2021-02-18 15:23:05.624 1027-1027/? I/sensors-hal: activate_physical_sensor:220, android.sensor.light/51 en=1
2021-02-18 15:23:05.624 1027-1027/? I/sensors-hal: get_qmi_debug_flag:245, support_qmi_debug : false
2021-02-18 15:23:05.624 1719-6693/? I/WindowManager: Suppressed redundant power key press while already in the process of turning the screen on.
2021-02-18 15:23:05.625 1027-1027/? I/sensors-hal: activate_physical_sensor:233, android.sensor.light/51 en=1 completed
2021-02-18 15:23:05.627 1719-1843/? I/DisplayDeviceRepository: Display device changed state: "Built-in Screen", ON
2021-02-18 15:23:05.627 740-740/? D/SurfaceFlinger: Setting power mode 2 on display 0
2021-02-18 15:23:05.628 1027-1112/? I/ASH: @ 984.577: tmd2725: Enabling sensor 0
2021-02-18 15:23:05.628 743-743/? I/SDM: DisplayBase::SetDisplayState: Set state = 1, display 0
2021-02-18 15:23:05.628 1719-1843/? I/InputManager-JNI: Viewport [0] to add: local:0, isActive: true
2021-02-18 15:23:05.629 1719-3417/? I/InputReader: Reconfiguring input devices, changes=DISPLAY_INFO | 
2021-02-18 15:23:05.629 1719-3417/? I/InputReader: Device reconfigured: id=4, name='fts', size 1080x2160, orientation 0, mode 1, display id 0
2021-02-18 15:23:05.630 3837-3837/? D/KeyguardViewMediator: handleNotifyScreenTurningOn
2021-02-18 15:23:05.635 29135-29158/? D/CCodec: allocate(c2.qti.avc.encoder)
2021-02-18 15:23:05.635 1027-29156/? I/sensors-hal: handle_indication_realtime:456,  SCHED_FIFO(10) for qmi_cbk
2021-02-18 15:23:05.636 3837-3837/? D/KeyguardViewMediator: handleNotifyWakingUp
2021-02-18 15:23:05.639 1027-1112/? I/VSC: @ 984.589: [BINNED_BRIGHTNESS] Created instance at 0xb2064dd8
2021-02-18 15:23:05.639 1027-1112/? D/VSC: @ 984.589: [Binned Brightness] Request ambient_light, interval 250.0 ms, latency 0.0 ms
2021-02-18 15:23:05.641 1027-1112/? D/VSC: @ 984.590: [Binned Brightness] Request proximity, interval 200.0 ms, latency 0.0 ms
2021-02-18 15:23:05.641 1027-1112/? D/CHRE: @ 984.590: Parsed nanoapp message from host: app ID 0x476f6f676c00100e, endpoint 0x1, msgType 202, payload size 5
2021-02-18 15:23:05.642 3837-3837/? D/StatusBar: disable<e i a s b h R c s > disable2<q i n >
2021-02-18 15:23:05.642 3837-3837/? D/StatusBar: disable<e i a s b h R c s > disable2<q i n >
2021-02-18 15:23:05.642 29135-29158/? I/Codec2Client: Available Codec2 services: "default" "software"
2021-02-18 15:23:05.644 3837-3837/? D/StatusBar: updateQsExpansionEnabled - QS Expand enabled: true
2021-02-18 15:23:05.644 5289-5289/? D/NfcService: MSG_APPLY_SCREEN_STATE 4
2021-02-18 15:23:05.646 3837-3837/? D/StatusBar: updateQsExpansionEnabled - QS Expand enabled: true
2021-02-18 15:23:05.646 3837-3988/? D/KeyguardViewMediator: updateActivityLockScreenState(true, false)
2021-02-18 15:23:05.647 4193-4193/? D/GRIL-S: [0024]> UPDATE_DEVICE_STATE DeviceState: Usb:1, Wifi: 1, Wifi AP: 0, Earpiece: 0, Bluetooth: 1, Wireless charging: 0, Screen: 1, Camera: 0, 0, 0, 0, Motion: 1, Bluetooth tethering: 0, Voice: 0, Wifi 2.4G: 0, Radio: 1, Bluetooth connected: 0, Bluetooth media: 0
2021-02-18 15:23:05.647 29135-29158/? I/CCodec: setting up 'default' as default (vendor) store
2021-02-18 15:23:05.648 1027-1027/? I/sensors-hal: batch_physical_sensor:285, android.sensor.light/51, period=200000000, max_latency=0
2021-02-18 15:23:05.648 1027-1027/? I/sensors-hal: batch_physical_sensor:296, android.sensor.light/51, period=200000000, max_latency=0 request completed
2021-02-18 15:23:05.649 7492-7548/? I/QCNEJ/CndHalConnector: -> SND notifyScreenStateChanged(true)
2021-02-18 15:23:05.649 7492-7548/? I/QCNEJ/CndHalConnector: -> SND notifyScreenStateChanged(false)
2021-02-18 15:23:05.649 4193-5500/? D/GRIL-S: [0024]< UPDATE_DEVICE_STATE 
2021-02-18 15:23:05.653 1045-1426/? I/QC2Interface: Created Interface (c2.qti.avc.encoder)
2021-02-18 15:23:05.653 1045-1426/? E/QC2Prop: SK::kPropInputDelay:0
2021-02-18 15:23:05.653 1045-1426/? E/QC2Prop: SK::kPropOutputDelay:0
2021-02-18 15:23:05.654 1045-1426/? I/QC2Comp: Create: Allocated component[51] for name c2.qti.avc.encoder
2021-02-18 15:23:05.654 1045-1426/? I/QC2CompStore: Created component(c2.qti.avc.encoder) id(51)
2021-02-18 15:23:05.657 29135-29158/? I/CCodec: Created component [c2.qti.avc.encoder]
2021-02-18 15:23:05.657 29135-29158/? D/CCodecConfig: read media type: video/avc
2021-02-18 15:23:05.658 29135-29158/? D/ReflectedParamUpdater: extent() != 1 for single value type: output.buffers.pool-ids.values
2021-02-18 15:23:05.662 1719-1867/? D/KernelCpuUidUserSysTimeReader: Removing uids 90001-90001
2021-02-18 15:23:05.664 1719-1867/? D/KernelCpuUidUserSysTimeReader: Removing uids 90002-90002
2021-02-18 15:23:05.664 1719-1867/? D/KernelCpuUidUserSysTimeReader: Removing uids 90003-90003
2021-02-18 15:23:05.664 1719-1867/? D/KernelCpuUidUserSysTimeReader: Removing uids 90004-90004
2021-02-18 15:23:05.664 29135-29158/? D/CCodecConfig: ignoring local param raw.color (0xc2001809) as it is already supported
2021-02-18 15:23:05.664 1719-1867/? D/KernelCpuUidUserSysTimeReader: Removing uids 90005-90005
2021-02-18 15:23:05.665 1045-9990/? E/QC2Prop: SK::kPropInputDelay:0
2021-02-18 15:23:05.665 1045-9990/? E/QC2Prop: SK::kPropOutputDelay:0
2021-02-18 15:23:05.665 29135-29158/? I/CCodecConfig: query failed after returning 20 values (BAD_INDEX)
2021-02-18 15:23:05.665 29135-29158/? D/CCodecConfig: c2 config diff is Dict {
      c2::u32 algo.bitrate-mode.value = 3
      c2::i32 algo.priority.value = -1
      c2::u32 algo.quality.value = 50
      c2::float algo.rate.value = 4.2039e-44
      c2::u32 coded.bitrate.value = 20000000
      c2::float coded.frame-rate.value = 30
      c2::u32 coded.pl.level = 20480
      c2::u32 coded.pl.profile = 20480
      c2::u32 coded.vui.color.matrix = 0
      c2::u32 coded.vui.color.primaries = 0
      c2::u32 coded.vui.color.range = 0
      c2::u32 coded.vui.color.transfer = 0
      c2::i32 coding.gop.intra-period = 1
      c2::u32 coding.request-sync-frame.value = 0
      Buffer coding.temporal-layering = {
        00000000:  10 00 00 00 07 20 01 52  01 00 00 00 00 00 00 00  ..... .R........
      }
      c2::u32 default.color.matrix = 0
      c2::u32 default.color.primaries = 0
      c2::u32 default.color.range = 0
      c2::u32 default.color.transfer = 0
      c2::u32 input.delay.value = 8
      string input.media-type.value = "video/raw"
      c2::u32 output.buffers.prepend-header.value = 2
      c2::u32 output.delay.value = 8
      string output.media-type.value = "
2021-02-18 15:23:05.666 29135-29158/? W/ColorUtils: expected specified color aspects (0:0:0:0)
2021-02-18 15:23:05.668 3837-3837/? W/View: requestLayout() improperly called by com.android.keyguard.CarrierText{17b0af9 V.ED..... ......ID 44,0-821,110 #7f0b02a2 app:id/keyguard_carrier_text} during layout: running second layout pass
2021-02-18 15:23:05.668 21568-21756/? I/NearbyDiscovery: FastPairHandler: Received action android.intent.action.SCREEN_ON [CONTEXT service_id=49 ]
2021-02-18 15:23:05.669 740-1274/? E/SurfaceFlinger: Only privileged processes can create a secure display
2021-02-18 15:23:05.670 29135-29158/? D/CCodec: [c2.qti.avc.encoder] buffers are bound to CCodec for this session
2021-02-18 15:23:05.670 29135-29158/? D/CCodecConfig: no c2 equivalents for color-format
2021-02-18 15:23:05.670 29135-29158/? D/CCodecConfig: no c2 equivalents for repeat-previous-frame-after
2021-02-18 15:23:05.670 29135-29158/? D/CCodecConfig: no c2 equivalents for flags
2021-02-18 15:23:05.670 29135-29158/? D/CCodecConfig: no c2 equivalents for encoder
2021-02-18 15:23:05.671 29135-29158/? D/CCodecConfig: c2 config diff is   c2::u32 coded.bitrate.value = 8000000
      c2::float coded.frame-rate.value = 60
      c2::i32 coding.gop.intra-period = 600
      c2::u32 raw.pixel-format.value = 34
      c2::u32 raw.size.height = 2160
      c2::u32 raw.size.width = 1080
2021-02-18 15:23:05.671 29135-29158/? W/ColorUtils: expected specified color aspects (0:0:0:0)
2021-02-18 15:23:05.672 29135-29158/? W/Codec2Client: query -- param skipped: index = 1107298332.
2021-02-18 15:23:05.672 29135-29158/? W/Codec2Client: query -- param skipped: index = 3254781982.
2021-02-18 15:23:05.672 29135-29158/? D/CCodec: setup formats input: AMessage(what = 0x00000000) = {
      Rect crop(0, 0, 1079, 2159)
      int32_t color-standard = 0
      int32_t color-range = 0
      int32_t color-transfer = 0
      int32_t frame-rate = 60
      int32_t height = 2160
      int32_t i-frame-period = 600
      string mime = "video/raw"
      int32_t prepend-sps-pps-to-idr-frames = 1
      int32_t priority = 1
      int32_t width = 1080
      int32_t android._dataspace = 0
      int32_t android._color-format = 2130708361
      int32_t color-format = 2130708361
    } and output: AMessage(what = 0x00000000) = {
      int32_t bitrate = 8000000
      int32_t bitrate-mode = 1
      Rect crop(0, 0, 1079, 2159)
      int32_t width = 1080
      int32_t color-standard = 0
      int32_t color-range = 0
      int32_t color-transfer = 0
      int32_t frame-rate = 60
      int32_t height = 2160
      int32_t i-frame-period = 600
      int32_t level = 1
      int32_t max-bitrate = 8000000
      string mime = "video/avc"
      int32_t prepend-sps-pps-to-idr-frames = 1
      int32_t priority = 1
      int32_t profile = 1
    }
2021-02-18 15:23:05.675 29135-29158/? D/CCodec: input format changed to AMessage(what = 0x00000000) = {
      Rect crop(0, 0, 1079, 2159)
      int32_t color-standard = 1
      int32_t color-range = 2
      int32_t color-transfer = 3
      int32_t frame-rate = 60
      int32_t height = 2160
      int32_t i-frame-period = 600
      string mime = "video/raw"
      int32_t prepend-sps-pps-to-idr-frames = 1
      int32_t priority = 1
      int32_t width = 1080
      int32_t android._dataspace = 260
      int32_t android._color-format = 2130708361
      int32_t color-format = 2130708361
    }
2021-02-18 15:23:05.675 1045-9990/? E/QC2Prop: SK::kPropInputDelay:0
2021-02-18 15:23:05.676 21568-21756/? D/BluetoothAdapter: isLeEnabled(): ON
2021-02-18 15:23:05.676 29135-29158/? D/GraphicBufferSource: setting dataspace: 0x104, acquired=0
2021-02-18 15:23:05.676 29135-29158/? D/CCodec: ISConfig minFps=10 => repeatDelayUs=100000
2021-02-18 15:23:05.679 29135-29135/? D/AndroidRuntime: Shutting down VM
    
    
    --------- beginning of crash
2021-02-18 15:23:05.681 29135-29135/? E/AndroidRuntime: FATAL EXCEPTION: main
    PID: 29135
    java.lang.AssertionError: java.lang.reflect.InvocationTargetException
        at com.genymobile.scrcpy.wrappers.SurfaceControl.setDisplaySurface(SurfaceControl.java:75)
        at com.genymobile.scrcpy.ScreenEncoder.setDisplaySurface(ScreenEncoder.java:243)
        at com.genymobile.scrcpy.ScreenEncoder.internalStreamScreen(ScreenEncoder.java:91)
        at com.genymobile.scrcpy.ScreenEncoder.streamScreen(ScreenEncoder.java:60)
        at com.genymobile.scrcpy.Server.scrcpy(Server.java:80)
        at com.genymobile.scrcpy.Server.main(Server.java:252)
        at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
        at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:355)
     Caused by: java.lang.reflect.InvocationTargetException
        at java.lang.reflect.Method.invoke(Native Method)
        at com.genymobile.scrcpy.wrappers.SurfaceControl.setDisplaySurface(SurfaceControl.java:73)
        at com.genymobile.scrcpy.ScreenEncoder.setDisplaySurface(ScreenEncoder.java:243) 
        at com.genymobile.scrcpy.ScreenEncoder.internalStreamScreen(ScreenEncoder.java:91) 
        at com.genymobile.scrcpy.ScreenEncoder.streamScreen(ScreenEncoder.java:60) 
        at com.genymobile.scrcpy.Server.scrcpy(Server.java:80) 
        at com.genymobile.scrcpy.Server.main(Server.java:252) 
        at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method) 
        at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:355) 
     Caused by: java.lang.IllegalArgumentException: displayToken must not be null
        at android.view.SurfaceControl$Transaction.setDisplaySurface(SurfaceControl.java:3067)
        at android.view.SurfaceControl.setDisplaySurface(SurfaceControl.java:2147)
        at java.lang.reflect.Method.invoke(Native Method) 
        at com.genymobile.scrcpy.wrappers.SurfaceControl.setDisplaySurface(SurfaceControl.java:73) 
        at com.genymobile.scrcpy.ScreenEncoder.setDisplaySurface(ScreenEncoder.java:243) 
        at com.genymobile.scrcpy.ScreenEncoder.internalStreamScreen(ScreenEncoder.java:91) 
        at com.genymobile.scrcpy.ScreenEncoder.streamScreen(ScreenEncoder.java:60) 
        at com.genymobile.scrcpy.Server.scrcpy(Server.java:80) 
        at com.genymobile.scrcpy.Server.main(Server.java:252) 
        at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method) 
        at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:355) 
2021-02-18 15:23:05.681 29135-29135/? E/scrcpy: Exception on thread Thread[main,5,main]
    java.lang.AssertionError: java.lang.reflect.InvocationTargetException
        at com.genymobile.scrcpy.wrappers.SurfaceControl.setDisplaySurface(SurfaceControl.java:75)
        at com.genymobile.scrcpy.ScreenEncoder.setDisplaySurface(ScreenEncoder.java:243)
        at com.genymobile.scrcpy.ScreenEncoder.internalStreamScreen(ScreenEncoder.java:91)
        at com.genymobile.scrcpy.ScreenEncoder.streamScreen(ScreenEncoder.java:60)
        at com.genymobile.scrcpy.Server.scrcpy(Server.java:80)
        at com.genymobile.scrcpy.Server.main(Server.java:252)
        at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
        at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:355)
     Caused by: java.lang.reflect.InvocationTargetException
        at java.lang.reflect.Method.invoke(Native Method)
        at com.genymobile.scrcpy.wrappers.SurfaceControl.setDisplaySurface(SurfaceControl.java:73)
        at com.genymobile.scrcpy.ScreenEncoder.setDisplaySurface(ScreenEncoder.java:243) 
        at com.genymobile.scrcpy.ScreenEncoder.internalStreamScreen(ScreenEncoder.java:91) 
        at com.genymobile.scrcpy.ScreenEncoder.streamScreen(ScreenEncoder.java:60) 
        at com.genymobile.scrcpy.Server.scrcpy(Server.java:80) 
        at com.genymobile.scrcpy.Server.main(Server.java:252) 
        at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method) 
        at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:355) 
     Caused by: java.lang.IllegalArgumentException: displayToken must not be null
        at android.view.SurfaceControl$Transaction.setDisplaySurface(SurfaceControl.java:3067)
        at android.view.SurfaceControl.setDisplaySurface(SurfaceControl.java:2147)
        at java.lang.reflect.Method.invoke(Native Method) 
        at com.genymobile.scrcpy.wrappers.SurfaceControl.setDisplaySurface(SurfaceControl.java:73) 
        at com.genymobile.scrcpy.ScreenEncoder.setDisplaySurface(ScreenEncoder.java:243) 
        at com.genymobile.scrcpy.ScreenEncoder.internalStreamScreen(ScreenEncoder.java:91) 
        at com.genymobile.scrcpy.ScreenEncoder.streamScreen(ScreenEncoder.java:60) 
        at com.genymobile.scrcpy.Server.scrcpy(Server.java:80) 
        at com.genymobile.scrcpy.Server.main(Server.java:252) 
        at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method) 
        at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:355) 
2021-02-18 15:23:05.683 4050-4050/? D/TouchInteractionService: Stopping tracing. Dumping to file=/data/user/0/com.google.android.apps.nexuslauncher/files/launcher_trace.pb

Terminal output

2021-02-18 15:24:57.272 scrcpy[62892:742769] INFO: scrcpy 1.17 <https://github.com/Genymobile/scrcpy>
/usr/local/Cellar/scrcpy/1.17_1/share/scrcpy/scrcpy-server: 1 file pushed, 0 skipped. 80.1 MB/s (34930 bytes in 0.000s)
[server] INFO: Device: Google Pixel 3 (Android 11)
[server] ERROR: Exception on thread Thread[main,5,main]
java.lang.AssertionError: java.lang.reflect.InvocationTargetException
	at com.genymobile.scrcpy.wrappers.SurfaceControl.setDisplaySurface(SurfaceControl.java:75)
	at com.genymobile.scrcpy.ScreenEncoder.setDisplaySurface(ScreenEncoder.java:243)
	at com.genymobile.scrcpy.ScreenEncoder.internalStreamScreen(ScreenEncoder.java:91)
	at com.genymobile.scrcpy.ScreenEncoder.streamScreen(ScreenEncoder.java:60)
	at com.genymobile.scrcpy.Server.scrcpy(Server.java:80)
	at com.genymobile.scrcpy.Server.main(Server.java:252)
	at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
	at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:355)
Caused by: java.lang.reflect.InvocationTargetException
	at java.lang.reflect.Method.invoke(Native Method)
	at com.genymobile.scrcpy.wrappers.SurfaceControl.setDisplaySurface(SurfaceControl.java:73)
	... 7 more
Caused by: java.lang.IllegalArgumentException: displayToken must not be null
	at android.view.SurfaceControl$Transaction.setDisplaySurface(SurfaceControl.java:3067)
	at android.view.SurfaceControl.setDisplaySurface(SurfaceControl.java:2147)
	... 9 more
2021-02-18 15:24:57.738 scrcpy[62892:742769] INFO: Renderer: metal
2021-02-18 15:24:57.742 scrcpy[62892:742769] INFO: Initial texture: 1080x2160
2021-02-18 15:24:58.102 scrcpy[62892:742769] WARN: Device disconnected
2021-02-18 15:24:59.109 scrcpy[62892:742769] WARN: Killing the server...

EDIT by rom1v: Use scrcpy >= 1.18

@rom1v
Copy link
Collaborator

rom1v commented Feb 18, 2021

Thank you for your report.

Could you please apply this patch, run scrcpy, and provide the output, please?

diff --git a/server/src/main/java/com/genymobile/scrcpy/wrappers/SurfaceControl.java b/server/src/main/java/com/genymobile/scrcpy/wrappers/SurfaceControl.java
index 8fbb860b..f173a6a7 100644
--- a/server/src/main/java/com/genymobile/scrcpy/wrappers/SurfaceControl.java
+++ b/server/src/main/java/com/genymobile/scrcpy/wrappers/SurfaceControl.java
@@ -23,6 +23,10 @@ public final class SurfaceControl {
     static {
         try {
             CLASS = Class.forName("android.view.SurfaceControl");
+
+            for (Method m : CLASS.getDeclaredMethods()) {
+                Ln.i("-- " + m);
+            }
         } catch (ClassNotFoundException e) {
             throw new AssertionError(e);
         }

@slimsymphony
Copy link

slimsymphony commented Feb 19, 2021

adb logcat
02-19 12:50:32.152  9346  9346 D AndroidRuntime: Calling main entry com.genymobile.scrcpy.Server
02-19 12:50:32.157  9346  9346 I scrcpy  : Device: Google Pixel 3 XL (Android 11)
02-19 12:50:32.266  9346  9346 E AndroidRuntime: 	at com.genymobile.scrcpy.wrappers.SurfaceControl.setDisplaySurface(SurfaceControl.java:75)
02-19 12:50:32.266  9346  9346 E AndroidRuntime: 	at com.genymobile.scrcpy.ScreenEncoder.setDisplaySurface(ScreenEncoder.java:243)
02-19 12:50:32.266  9346  9346 E AndroidRuntime: 	at com.genymobile.scrcpy.ScreenEncoder.internalStreamScreen(ScreenEncoder.java:91)
02-19 12:50:32.266  9346  9346 E AndroidRuntime: 	at com.genymobile.scrcpy.ScreenEncoder.streamScreen(ScreenEncoder.java:60)
02-19 12:50:32.266  9346  9346 E AndroidRuntime: 	at com.genymobile.scrcpy.Server.scrcpy(Server.java:80)
02-19 12:50:32.266  9346  9346 E AndroidRuntime: 	at com.genymobile.scrcpy.Server.main(Server.java:252)
02-19 12:50:32.266  9346  9346 E AndroidRuntime: 	at com.genymobile.scrcpy.wrappers.SurfaceControl.setDisplaySurface(SurfaceControl.java:73)
02-19 12:50:32.267  9346  9346 E scrcpy  : Exception on thread Thread[main,5,main]
02-19 12:50:32.267  9346  9346 E scrcpy  : java.lang.AssertionError: java.lang.reflect.InvocationTargetException
02-19 12:50:32.267  9346  9346 E scrcpy  : 	at com.genymobile.scrcpy.wrappers.SurfaceControl.setDisplaySurface(SurfaceControl.java:75)
02-19 12:50:32.267  9346  9346 E scrcpy  : 	at com.genymobile.scrcpy.ScreenEncoder.setDisplaySurface(ScreenEncoder.java:243)
02-19 12:50:32.267  9346  9346 E scrcpy  : 	at com.genymobile.scrcpy.ScreenEncoder.internalStreamScreen(ScreenEncoder.java:91)
02-19 12:50:32.267  9346  9346 E scrcpy  : 	at com.genymobile.scrcpy.ScreenEncoder.streamScreen(ScreenEncoder.java:60)
02-19 12:50:32.267  9346  9346 E scrcpy  : 	at com.genymobile.scrcpy.Server.scrcpy(Server.java:80)
02-19 12:50:32.267  9346  9346 E scrcpy  : 	at com.genymobile.scrcpy.Server.main(Server.java:252)
02-19 12:50:32.267  9346  9346 E scrcpy  : 	at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
02-19 12:50:32.267  9346  9346 E scrcpy  : 	at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:355)
02-19 12:50:32.267  9346  9346 E scrcpy  : Caused by: java.lang.reflect.InvocationTargetException
02-19 12:50:32.267  9346  9346 E scrcpy  : 	at java.lang.reflect.Method.invoke(Native Method)
02-19 12:50:32.267  9346  9346 E scrcpy  : 	at com.genymobile.scrcpy.wrappers.SurfaceControl.setDisplaySurface(SurfaceControl.java:73)
02-19 12:50:32.267  9346  9346 E scrcpy  : 	... 7 more
02-19 12:50:32.267  9346  9346 E scrcpy  : Caused by: java.lang.IllegalArgumentException: displayToken must not be null
02-19 12:50:32.267  9346  9346 E scrcpy  : 	at android.view.SurfaceControl$Transaction.setDisplaySurface(SurfaceControl.java:3067)
02-19 12:50:32.267  9346  9346 E scrcpy  : 	at android.view.SurfaceControl.setDisplaySurface(SurfaceControl.java:2147)
02-19 12:50:32.267  9346  9346 E scrcpy  : 	... 9 more
02-19 12:50:32.401  9367  9367 D AndroidRuntime: Calling main entry com.genymobile.scrcpy.CleanUp
02-19 12:50:33.624  9367  9367 I scrcpy  : Cleaning up
02-19 12:50:33.625  9367  9367 I scrcpy  : Restoring normal power mode
02-19 13:04:37.474 10809 10809 D AndroidRuntime: Calling main entry com.genymobile.scrcpy.Server
02-19 13:04:37.476 10809 10809 I scrcpy  : Device: Google Pixel 3 XL (Android 11)
02-19 13:04:37.533 10809 10809 I scrcpy  : -- static long android.view.SurfaceControl.access$000(android.view.SurfaceControl$OnJankDataListener)
02-19 13:04:37.533 10809 10809 I scrcpy  : -- static long android.view.SurfaceControl.access$2300()
02-19 13:04:37.533 10809 10809 I scrcpy  : -- static void android.view.SurfaceControl.access$2400(android.view.SurfaceControl)
02-19 13:04:37.533 10809 10809 I scrcpy  : -- static long android.view.SurfaceControl.access$2500()
02-19 13:04:37.533 10809 10809 I scrcpy  : -- static void android.view.SurfaceControl.access$2600(long,boolean)
02-19 13:04:37.534 10809 10809 I scrcpy  : -- static java.lang.Object android.view.SurfaceControl.access$2700(android.view.SurfaceControl)
02-19 13:04:37.534 10809 10809 I scrcpy  : -- static int android.view.SurfaceControl.access$2802(android.view.SurfaceControl,int)
02-19 13:04:37.534 10809 10809 I scrcpy  : -- static int android.view.SurfaceControl.access$2902(android.view.SurfaceControl,int)
02-19 13:04:37.534 10809 10809 I scrcpy  : -- static java.util.ArrayList android.view.SurfaceControl.access$3000(android.view.SurfaceControl)
02-19 13:04:37.534 10809 10809 I scrcpy  : -- static void android.view.SurfaceControl.access$3100(long,long,int)
02-19 13:04:37.534 10809 10809 I scrcpy  : -- static void android.view.SurfaceControl.access$3200(long,long,int,int)
02-19 13:04:37.535 10809 10809 I scrcpy  : -- static void android.view.SurfaceControl.access$3300(long,long,float,float)
02-19 13:04:37.535 10809 10809 I scrcpy  : -- static void android.view.SurfaceControl.access$3400(long,long,int,int)
02-19 13:04:37.535 10809 10809 I scrcpy  : -- static void android.view.SurfaceControl.access$3500(long,long,int)
02-19 13:04:37.535 10809 10809 I scrcpy  : -- static void android.view.SurfaceControl.access$3600(long,long,int)
02-19 13:04:37.535 10809 10809 I scrcpy  : -- static void android.view.SurfaceControl.access$3700(long,long,long,int)
02-19 13:04:37.536 10809 10809 I scrcpy  : -- static void android.view.SurfaceControl.access$3800(long,long,android.graphics.Region)
02-19 13:04:37.536 10809 10809 I scrcpy  : -- static void android.view.SurfaceControl.access$3900(long,long,float)
02-19 13:04:37.536 10809 10809 I scrcpy  : -- static void android.view.SurfaceControl.access$4000(long,long,android.view.InputWindowHandle)
02-19 13:04:37.536 10809 10809 I scrcpy  : -- static void android.view.SurfaceControl.access$4100(long)
02-19 13:04:37.536 10809 10809 I scrcpy  : -- static void android.view.SurfaceControl.access$4200(long,long,android.graphics.Rect,android.graphics.Rect,long)
02-19 13:04:37.536 10809 10809 I scrcpy  : -- static void android.view.SurfaceControl.access$4300(long,long,float,float,float,float)
02-19 13:04:37.537 10809 10809 I scrcpy  : -- static void android.view.SurfaceControl.access$4400(long,long,float[],float[])
02-19 13:04:37.537 10809 10809 I scrcpy  : -- static void android.view.SurfaceControl.access$4500(long,long,boolean)
02-19 13:04:37.537 10809 10809 I scrcpy  : -- static void android.view.SurfaceControl.access$4600(long,long,int,int,int,int)
02-19 13:04:37.537 10809 10809 I scrcpy  : -- static void android.view.SurfaceControl.access$4700(long,long,float)
02-19 13:04:37.537 10809 10809 I scrcpy  : -- static void android.view.SurfaceControl.access$4800(long,long,int)
02-19 13:04:37.537 10809 10809 I scrcpy  : -- static void android.view.SurfaceControl.access$4900(long,long,float[][],int)
02-19 13:04:37.538 10809 10809 I scrcpy  : -- static void android.view.SurfaceControl.access$5000(long,long,int)
02-19 13:04:37.538 10809 10809 I scrcpy  : -- static void android.view.SurfaceControl.access$5100(long,long,long,long)
02-19 13:04:37.538 10809 10809 I scrcpy  : -- static void android.view.SurfaceControl.access$5200(long,long,long)
02-19 13:04:37.538 10809 10809 I scrcpy  : -- static void android.view.SurfaceControl.access$5300(long,long,long)
02-19 13:04:37.538 10809 10809 I scrcpy  : -- static void android.view.SurfaceControl.access$5400(long,long)
02-19 13:04:37.539 10809 10809 I scrcpy  : -- static void android.view.SurfaceControl.access$5500(long,long,float[])
02-19 13:04:37.539 10809 10809 I scrcpy  : -- static void android.view.SurfaceControl.access$5600(long,android.os.IBinder,long)
02-19 13:04:37.539 10809 10809 I scrcpy  : -- static void android.view.SurfaceControl.access$5700(long,android.os.IBinder,int)
02-19 13:04:37.539 10809 10809 I scrcpy  : -- static void android.view.SurfaceControl.access$5800(long,android.os.IBinder,int,int,int,int,int,int,int,int,int)
02-19 13:04:37.539 10809 10809 I scrcpy  : -- static void android.view.SurfaceControl.access$5900(long,android.os.IBinder,int,int)
02-19 13:04:37.539 10809 10809 I scrcpy  : -- static void android.view.SurfaceControl.access$6000(long)
02-19 13:04:37.540 10809 10809 I scrcpy  : -- static void android.view.SurfaceControl.access$6100(long)
02-19 13:04:37.540 10809 10809 I scrcpy  : -- static void android.view.SurfaceControl.access$6200(long)
02-19 13:04:37.540 10809 10809 I scrcpy  : -- static void android.view.SurfaceControl.access$6300(long)
02-19 13:04:37.540 10809 10809 I scrcpy  : -- static void android.view.SurfaceControl.access$6400(long,long,int,android.os.Parcel)
02-19 13:04:37.540 10809 10809 I scrcpy  : -- static void android.view.SurfaceControl.access$6500(long,long,float)
02-19 13:04:37.540 10809 10809 I scrcpy  : -- static void android.view.SurfaceControl.access$6600(long,long,float,int,boolean)
02-19 13:04:37.541 10809 10809 I scrcpy  : -- static void android.view.SurfaceControl.access$6700(long,android.os.IBinder,java.lang.String,android.os.IBinder,java.lang.String,int)
02-19 13:04:37.541 10809 10809 I scrcpy  : -- static void android.view.SurfaceControl.access$6800(long,long)
02-19 13:04:37.541 10809 10809 I scrcpy  : -- static void android.view.SurfaceControl.access$6900(long,long)
02-19 13:04:37.541 10809 10809 I scrcpy  : -- static void android.view.SurfaceControl.access$7000(long,android.os.Parcel)
02-19 13:04:37.541 10809 10809 I scrcpy  : -- static long android.view.SurfaceControl.access$7100(android.os.Parcel)
02-19 13:04:37.541 10809 10809 I scrcpy  : -- public static long android.view.SurfaceControl.acquireFrameRateFlexibilityToken()
02-19 13:04:37.542 10809 10809 I scrcpy  : -- public static void android.view.SurfaceControl.addJankDataListener(android.view.SurfaceControl$OnJankDataListener,android.view.SurfaceControl)
02-19 13:04:37.542 10809 10809 I scrcpy  : -- private void android.view.SurfaceControl.assignNativeObject(long,java.lang.String)
02-19 13:04:37.542 10809 10809 I scrcpy  : -- public static int android.view.SurfaceControl.captureDisplay(android.view.SurfaceControl$DisplayCaptureArgs,android.view.SurfaceControl$ScreenCaptureListener)
02-19 13:04:37.542 10809 10809 I scrcpy  : -- public static android.view.SurfaceControl$ScreenshotHardwareBuffer android.view.SurfaceControl.captureDisplay(android.view.SurfaceControl$DisplayCaptureArgs)
02-19 13:04:37.542 10809 10809 I scrcpy  : -- public static int android.view.SurfaceControl.captureLayers(android.view.SurfaceControl$LayerCaptureArgs,android.view.SurfaceControl$ScreenCaptureListener)
02-19 13:04:37.542 10809 10809 I scrcpy  : -- public static android.view.SurfaceControl$ScreenshotHardwareBuffer android.view.SurfaceControl.captureLayers(android.view.SurfaceControl$LayerCaptureArgs)
02-19 13:04:37.543 10809 10809 I scrcpy  : -- public static android.view.SurfaceControl$ScreenshotHardwareBuffer android.view.SurfaceControl.captureLayers(android.view.SurfaceControl,android.graphics.Rect,float)
02-19 13:04:37.543 10809 10809 I scrcpy  : -- public static android.view.SurfaceControl$ScreenshotHardwareBuffer android.view.SurfaceControl.captureLayers(android.view.SurfaceControl,android.graphics.Rect,float,int)
02-19 13:04:37.543 10809 10809 I scrcpy  : -- public static android.view.SurfaceControl$ScreenshotHardwareBuffer android.view.SurfaceControl.captureLayersExcluding(android.view.SurfaceControl,android.graphics.Rect,float,int,android.view.SurfaceControl[])
02-19 13:04:37.543 10809 10809 I scrcpy  : -- private void android.view.SurfaceControl.checkNotReleased()
02-19 13:04:37.543 10809 10809 I scrcpy  : -- public static boolean android.view.SurfaceControl.clearAnimationFrameStats()
02-19 13:04:37.544 10809 10809 I scrcpy  : -- public static void android.view.SurfaceControl.closeTransaction()
02-19 13:04:37.544 10809 10809 I scrcpy  : -- public static android.os.IBinder android.view.SurfaceControl.createDisplay(java.lang.String,boolean)
02-19 13:04:37.544 10809 10809 I scrcpy  : -- public static void android.view.SurfaceControl.destroyDisplay(android.os.IBinder)
02-19 13:04:37.544 10809 10809 I scrcpy  : -- public static int android.view.SurfaceControl.getActiveColorMode(android.os.IBinder)
02-19 13:04:37.544 10809 10809 I scrcpy  : -- public static int android.view.SurfaceControl.getActiveConfig(android.os.IBinder)
02-19 13:04:37.544 10809 10809 I scrcpy  : -- public static boolean android.view.SurfaceControl.getAnimationFrameStats(android.view.WindowAnimationFrameStats)
02-19 13:04:37.545 10809 10809 I scrcpy  : -- public static boolean android.view.SurfaceControl.getAutoLowLatencyModeSupport(android.os.IBinder)
02-19 13:04:37.545 10809 10809 I scrcpy  : -- public static android.graphics.ColorSpace[] android.view.SurfaceControl.getCompositionColorSpaces()
02-19 13:04:37.545 10809 10809 I scrcpy  : -- public static android.view.SurfaceControl$DesiredDisplayConfigSpecs android.view.SurfaceControl.getDesiredDisplayConfigSpecs(android.os.IBinder)
02-19 13:04:37.545 10809 10809 I scrcpy  : -- public static boolean android.view.SurfaceControl.getDisplayBrightnessSupport(android.os.IBinder)
02-19 13:04:37.545 10809 10809 I scrcpy  : -- public static int[] android.view.SurfaceControl.getDisplayColorModes(android.os.IBinder)
02-19 13:04:37.546 10809 10809 I scrcpy  : -- public static android.view.SurfaceControl$DisplayConfig[] android.view.SurfaceControl.getDisplayConfigs(android.os.IBinder)
02-19 13:04:37.546 10809 10809 I scrcpy  : -- public static android.view.SurfaceControl$DisplayInfo android.view.SurfaceControl.getDisplayInfo(android.os.IBinder)
02-19 13:04:37.546 10809 10809 I scrcpy  : -- public static android.view.SurfaceControl$DisplayPrimaries android.view.SurfaceControl.getDisplayNativePrimaries(android.os.IBinder)
02-19 13:04:37.546 10809 10809 I scrcpy  : -- public static android.hardware.display.DisplayedContentSample android.view.SurfaceControl.getDisplayedContentSample(android.os.IBinder,long,long)
02-19 13:04:37.546 10809 10809 I scrcpy  : -- public static android.hardware.display.DisplayedContentSamplingAttributes android.view.SurfaceControl.getDisplayedContentSamplingAttributes(android.os.IBinder)
02-19 13:04:37.546 10809 10809 I scrcpy  : -- public static int android.view.SurfaceControl.getGPUContextPriority()
02-19 13:04:37.547 10809 10809 I scrcpy  : -- public static boolean android.view.SurfaceControl.getGameContentTypeSupport(android.os.IBinder)
02-19 13:04:37.547 10809 10809 I scrcpy  : -- public static android.view.SurfaceControl$Transaction android.view.SurfaceControl.getGlobalTransaction()
02-19 13:04:37.547 10809 10809 I scrcpy  : -- public static android.view.Display$HdrCapabilities android.view.SurfaceControl.getHdrCapabilities(android.os.IBinder)
02-19 13:04:37.547 10809 10809 I scrcpy  : -- public static android.os.IBinder android.view.SurfaceControl.getInternalDisplayToken()
02-19 13:04:37.547 10809 10809 I scrcpy  : -- public static long[] android.view.SurfaceControl.getPhysicalDisplayIds()
02-19 13:04:37.548 10809 10809 I scrcpy  : -- public static android.os.IBinder android.view.SurfaceControl.getPhysicalDisplayToken(long)
02-19 13:04:37.548 10809 10809 I scrcpy  : -- public static boolean android.view.SurfaceControl.getProtectedContentSupport()
02-19 13:04:37.548 10809 10809 I scrcpy  : -- public static void android.view.SurfaceControl.mergeToGlobalTransaction(android.view.SurfaceControl$Transaction)
02-19 13:04:37.548 10809 10809 I scrcpy  : -- public static android.view.SurfaceControl android.view.SurfaceControl.mirrorSurface(android.view.SurfaceControl)
02-19 13:04:37.548 10809 10809 I scrcpy  : -- private static native long android.view.SurfaceControl.nativeAcquireFrameRateFlexibilityToken()
02-19 13:04:37.549 10809 10809 I scrcpy  : -- private static native void android.view.SurfaceControl.nativeAddJankDataListener(long,long)
02-19 13:04:37.549 10809 10809 I scrcpy  : -- private static native void android.view.SurfaceControl.nativeApplyTransaction(long,boolean)
02-19 13:04:37.549 10809 10809 I scrcpy  : -- private static native int android.view.SurfaceControl.nativeCaptureDisplay(android.view.SurfaceControl$DisplayCaptureArgs,android.view.SurfaceControl$ScreenCaptureListener)
02-19 13:04:37.549 10809 10809 I scrcpy  : -- private static native int android.view.SurfaceControl.nativeCaptureLayers(android.view.SurfaceControl$LayerCaptureArgs,android.view.SurfaceControl$ScreenCaptureListener)
02-19 13:04:37.549 10809 10809 I scrcpy  : -- private static native boolean android.view.SurfaceControl.nativeClearAnimationFrameStats()
02-19 13:04:37.549 10809 10809 I scrcpy  : -- private static native boolean android.view.SurfaceControl.nativeClearContentFrameStats(long)
02-19 13:04:37.549 10809 10809 I scrcpy  : -- private static native long android.view.SurfaceControl.nativeCopyFromSurfaceControl(long)
02-19 13:04:37.550 10809 10809 I scrcpy  : -- private static native long android.view.SurfaceControl.nativeCreate(android.view.SurfaceSession,java.lang.String,int,int,int,int,long,android.os.Parcel) throws android.view.Surface$OutOfResourcesException
02-19 13:04:37.550 10809 10809 I scrcpy  : -- private static native android.os.IBinder android.view.SurfaceControl.nativeCreateDisplay(java.lang.String,boolean)
02-19 13:04:37.550 10809 10809 I scrcpy  : -- private static native long android.view.SurfaceControl.nativeCreateJankDataListenerWrapper(android.view.SurfaceControl$OnJankDataListener)
02-19 13:04:37.550 10809 10809 I scrcpy  : -- private static native long android.view.SurfaceControl.nativeCreateTransaction()
02-19 13:04:37.550 10809 10809 I scrcpy  : -- private static native void android.view.SurfaceControl.nativeDeferTransactionUntil(long,long,long,long)
02-19 13:04:37.550 10809 10809 I scrcpy  : -- private static native void android.view.SurfaceControl.nativeDestroyDisplay(android.os.IBinder)
02-19 13:04:37.550 10809 10809 I scrcpy  : -- private static native void android.view.SurfaceControl.nativeDisconnect(long)
02-19 13:04:37.550 10809 10809 I scrcpy  : -- private static native int android.view.SurfaceControl.nativeGetActiveColorMode(android.os.IBinder)
02-19 13:04:37.551 10809 10809 I scrcpy  : -- private static native int android.view.SurfaceControl.nativeGetActiveConfig(android.os.IBinder)
02-19 13:04:37.551 10809 10809 I scrcpy  : -- private static native boolean android.view.SurfaceControl.nativeGetAnimationFrameStats(android.view.WindowAnimationFrameStats)
02-19 13:04:37.551 10809 10809 I scrcpy  : -- private static native boolean android.view.SurfaceControl.nativeGetAutoLowLatencyModeSupport(android.os.IBinder)
02-19 13:04:37.551 10809 10809 I scrcpy  : -- private static native int[] android.view.SurfaceControl.nativeGetCompositionDataspaces()
02-19 13:04:37.551 10809 10809 I scrcpy  : -- private static native boolean android.view.SurfaceControl.nativeGetContentFrameStats(long,android.view.WindowContentFrameStats)
02-19 13:04:37.551 10809 10809 I scrcpy  : -- private static native android.view.SurfaceControl$DesiredDisplayConfigSpecs android.view.SurfaceControl.nativeGetDesiredDisplayConfigSpecs(android.os.IBinder)
02-19 13:04:37.551 10809 10809 I scrcpy  : -- private static native boolean android.view.SurfaceControl.nativeGetDisplayBrightnessSupport(android.os.IBinder)
02-19 13:04:37.551 10809 10809 I scrcpy  : -- private static native int[] android.view.SurfaceControl.nativeGetDisplayColorModes(android.os.IBinder)
02-19 13:04:37.551 10809 10809 I scrcpy  : -- private static native android.view.SurfaceControl$DisplayConfig[] android.view.SurfaceControl.nativeGetDisplayConfigs(android.os.IBinder)
02-19 13:04:37.551 10809 10809 I scrcpy  : -- private static native android.view.SurfaceControl$DisplayInfo android.view.SurfaceControl.nativeGetDisplayInfo(android.os.IBinder)
02-19 13:04:37.552 10809 10809 I scrcpy  : -- private static native android.view.SurfaceControl$DisplayPrimaries android.view.SurfaceControl.nativeGetDisplayNativePrimaries(android.os.IBinder)
02-19 13:04:37.552 10809 10809 I scrcpy  : -- private static native android.hardware.display.DisplayedContentSample android.view.SurfaceControl.nativeGetDisplayedContentSample(android.os.IBinder,long,long)
02-19 13:04:37.552 10809 10809 I scrcpy  : -- private static native android.hardware.display.DisplayedContentSamplingAttributes android.view.SurfaceControl.nativeGetDisplayedContentSamplingAttributes(android.os.IBinder)
02-19 13:04:37.552 10809 10809 I scrcpy  : -- private static native int android.view.SurfaceControl.nativeGetGPUContextPriority()
02-19 13:04:37.552 10809 10809 I scrcpy  : -- private static native boolean android.view.SurfaceControl.nativeGetGameContentTypeSupport(android.os.IBinder)
02-19 13:04:37.552 10809 10809 I scrcpy  : -- private static native long android.view.SurfaceControl.nativeGetHandle(long)
02-19 13:04:37.552 10809 10809 I scrcpy  : -- private static native android.view.Display$HdrCapabilities android.view.SurfaceControl.nativeGetHdrCapabilities(android.os.IBinder)
02-19 13:04:37.552 10809 10809 I scrcpy  : -- private static native long android.view.SurfaceControl.nativeGetNativeTransactionFinalizer()
02-19 13:04:37.552 10809 10809 I scrcpy  : -- private static native long[] android.view.SurfaceControl.nativeGetPhysicalDisplayIds()
02-19 13:04:37.552 10809 10809 I scrcpy  : -- private static native android.os.IBinder android.view.SurfaceControl.nativeGetPhysicalDisplayToken(long)
02-19 13:04:37.553 10809 10809 I scrcpy  : -- private static native boolean android.view.SurfaceControl.nativeGetProtectedContentSupport()
02-19 13:04:37.553 10809 10809 I scrcpy  : -- private static native void android.view.SurfaceControl.nativeMergeTransaction(long,long)
02-19 13:04:37.553 10809 10809 I scrcpy  : -- private static native long android.view.SurfaceControl.nativeMirrorSurface(long)
02-19 13:04:37.553 10809 10809 I scrcpy  : -- private static native long android.view.SurfaceControl.nativeReadFromParcel(android.os.Parcel)
02-19 13:04:37.553 10809 10809 I scrcpy  : -- private static native long android.view.SurfaceControl.nativeReadTransactionFromParcel(android.os.Parcel)
02-19 13:04:37.553 10809 10809 I scrcpy  : -- private static native void android.view.SurfaceControl.nativeRelease(long)
02-19 13:04:37.553 10809 10809 I scrcpy  : -- private static native void android.view.SurfaceControl.nativeReleaseFrameRateFlexibilityToken(long)
02-19 13:04:37.553 10809 10809 I scrcpy  : -- private static native void android.view.SurfaceControl.nativeRemoveJankDataListener(long)
02-19 13:04:37.553 10809 10809 I scrcpy  : -- private static native void android.view.SurfaceControl.nativeReparent(long,long,long)
02-19 13:04:37.553 10809 10809 I scrcpy  : -- private static native void android.view.SurfaceControl.nativeReparentChildren(long,long,long)
02-19 13:04:37.553 10809 10809 I scrcpy  : -- private static native boolean android.view.SurfaceControl.nativeSetActiveColorMode(android.os.IBinder,int)
02-19 13:04:37.554 10809 10809 I scrcpy  : -- private static native void android.view.SurfaceControl.nativeSetAlpha(long,long,float)
02-19 13:04:37.554 10809 10809 I scrcpy  : -- private static native void android.view.SurfaceControl.nativeSetAnimationTransaction(long)
02-19 13:04:37.554 10809 10809 I scrcpy  : -- private static native void android.view.SurfaceControl.nativeSetAutoLowLatencyMode(android.os.IBinder,boolean)
02-19 13:04:37.554 10809 10809 I scrcpy  : -- private static native void android.view.SurfaceControl.nativeSetBackgroundBlurRadius(long,long,int)
02-19 13:04:37.554 10809 10809 I scrcpy  : -- private static native void android.view.SurfaceControl.nativeSetBlurRegions(long,long,float[][],int)
02-19 13:04:37.554 10809 10809 I scrcpy  : -- private static native void android.view.SurfaceControl.nativeSetColor(long,long,float[])
02-19 13:04:37.554 10809 10809 I scrcpy  : -- private static native void android.view.SurfaceControl.nativeSetColorSpaceAgnostic(long,long,boolean)
02-19 13:04:37.554 10809 10809 I scrcpy  : -- private static native void android.view.SurfaceControl.nativeSetColorTransform(long,long,float[],float[])
02-19 13:04:37.554 10809 10809 I scrcpy  : -- private static native void android.view.SurfaceControl.nativeSetCornerRadius(long,long,float)
02-19 13:04:37.554 10809 10809 I scrcpy  : -- private static native boolean android.view.SurfaceControl.nativeSetDesiredDisplayConfigSpecs(android.os.IBinder,android.view.SurfaceControl$DesiredDisplayConfigSpecs)
02-19 13:04:37.554 10809 10809 I scrcpy  : -- private static native boolean android.view.SurfaceControl.nativeSetDisplayBrightness(android.os.IBinder,float)
02-19 13:04:37.555 10809 10809 I scrcpy  : -- private static native void android.view.SurfaceControl.nativeSetDisplayLayerStack(long,android.os.IBinder,int)
02-19 13:04:37.555 10809 10809 I scrcpy  : -- private static native void android.view.SurfaceControl.nativeSetDisplayPowerMode(android.os.IBinder,int)
02-19 13:04:37.555 10809 10809 I scrcpy  : -- private static native void android.view.SurfaceControl.nativeSetDisplayProjection(long,android.os.IBinder,int,int,int,int,int,int,int,int,int)
02-19 13:04:37.555 10809 10809 I scrcpy  : -- private static native void android.view.SurfaceControl.nativeSetDisplaySize(long,android.os.IBinder,int,int)
02-19 13:04:37.555 10809 10809 I scrcpy  : -- private static native void android.view.SurfaceControl.nativeSetDisplaySurface(long,android.os.IBinder,long)
02-19 13:04:37.555 10809 10809 I scrcpy  : -- private static native boolean android.view.SurfaceControl.nativeSetDisplayedContentSamplingEnabled(android.os.IBinder,boolean,int,int)
02-19 13:04:37.555 10809 10809 I scrcpy  : -- private static native void android.view.SurfaceControl.nativeSetEarlyWakeup(long)
02-19 13:04:37.555 10809 10809 I scrcpy  : -- private static native void android.view.SurfaceControl.nativeSetEarlyWakeupEnd(long)
02-19 13:04:37.555 10809 10809 I scrcpy  : -- private static native void android.view.SurfaceControl.nativeSetEarlyWakeupStart(long)
02-19 13:04:37.555 10809 10809 I scrcpy  : -- private static native void android.view.SurfaceControl.nativeSetFixedTransformHint(long,long,int)
02-19 13:04:37.555 10809 10809 I scrcpy  : -- private static native void android.view.SurfaceControl.nativeSetFlags(long,long,int,int)
02-19 13:04:37.556 10809 10809 I scrcpy  : -- private static native void android.view.SurfaceControl.nativeSetFocusedWindow(long,android.os.IBinder,java.lang.String,android.os.IBinder,java.lang.String,int)
02-19 13:04:37.556 10809 10809 I scrcpy  : -- private static native void android.view.SurfaceControl.nativeSetFrameRate(long,long,float,int,boolean)
02-19 13:04:37.556 10809 10809 I scrcpy  : -- private static native void android.view.SurfaceControl.nativeSetFrameRateSelectionPriority(long,long,int)
02-19 13:04:37.556 10809 10809 I scrcpy  : -- private static native void android.view.SurfaceControl.nativeSetFrameTimelineVsync(long,long)
02-19 13:04:37.556 10809 10809 I scrcpy  : -- private static native void android.view.SurfaceControl.nativeSetGameContentType(android.os.IBinder,boolean)
02-19 13:04:37.556 10809 10809 I scrcpy  : -- private static native void android.view.SurfaceControl.nativeSetGeometry(long,long,android.graphics.Rect,android.graphics.Rect,long)
02-19 13:04:37.556 10809 10809 I scrcpy  : -- private static native void android.view.SurfaceControl.nativeSetGlobalShadowSettings(float[],float[],float,float,float)
02-19 13:04:37.556 10809 10809 I scrcpy  : -- private static native void android.view.SurfaceControl.nativeSetInputWindowInfo(long,long,android.view.InputWindowHandle)
02-19 13:04:37.556 10809 10809 I scrcpy  : -- private static native void android.view.SurfaceControl.nativeSetLayer(long,long,int)
02-19 13:04:37.556 10809 10809 I scrcpy  : -- private static native void android.view.SurfaceControl.nativeSetLayerStack(long,long,int)
02-19 13:04:37.556 10809 10809 I scrcpy  : -- private static native void android.view.SurfaceControl.nativeSetMatrix(long,long,float,float,float,float)
02-19 13:04:37.557 10809 10809 I scrcpy  : -- private static native void android.view.SurfaceControl.nativeSetMetadata(long,long,int,android.os.Parcel)
02-19 13:04:37.557 10809 10809 I scrcpy  : -- private static native void android.view.SurfaceControl.nativeSetPosition(long,long,float,float)
02-19 13:04:37.557 10809 10809 I scrcpy  : -- private static native void android.view.SurfaceControl.nativeSetRelativeLayer(long,long,long,int)
02-19 13:04:37.557 10809 10809 I scrcpy  : -- private static native void android.view.SurfaceControl.nativeSetShadowRadius(long,long,float)
02-19 13:04:37.557 10809 10809 I scrcpy  : -- private static native void android.view.SurfaceControl.nativeSetSize(long,long,int,int)
02-19 13:04:37.557 10809 10809 I scrcpy  : -- private static native void android.view.SurfaceControl.nativeSetTransparentRegionHint(long,long,android.graphics.Region)
02-19 13:04:37.557 10809 10809 I scrcpy  : -- private static native void android.view.SurfaceControl.nativeSetWindowCrop(long,long,int,int,int,int)
02-19 13:04:37.557 10809 10809 I scrcpy  : -- private static native void android.view.SurfaceControl.nativeSeverChildren(long,long)
02-19 13:04:37.557 10809 10809 I scrcpy  : -- private static native void android.view.SurfaceControl.nativeSyncInputWindows(long)
02-19 13:04:37.557 10809 10809 I scrcpy  : -- private static native void android.view.SurfaceControl.nativeWriteToParcel(long,android.os.Parcel)
02-19 13:04:37.557 10809 10809 I scrcpy  : -- private static native void android.view.SurfaceControl.nativeWriteTransactionToParcel(long,android.os.Parcel)
02-19 13:04:37.558 10809 10809 I scrcpy  : -- public static void android.view.SurfaceControl.openTransaction()
02-19 13:04:37.558 10809 10809 I scrcpy  : -- public static void android.view.SurfaceControl.releaseFrameRateFlexibilityToken(long)
02-19 13:04:37.558 10809 10809 I scrcpy  : -- public static void android.view.SurfaceControl.removeJankDataListener(android.view.SurfaceControl$OnJankDataListener)
02-19 13:04:37.558 10809 10809 I scrcpy  : -- public static boolean android.view.SurfaceControl.setActiveColorMode(android.os.IBinder,int)
02-19 13:04:37.558 10809 10809 I scrcpy  : -- public static void android.view.SurfaceControl.setAutoLowLatencyMode(android.os.IBinder,boolean)
02-19 13:04:37.558 10809 10809 I scrcpy  : -- public static boolean android.view.SurfaceControl.setDesiredDisplayConfigSpecs(android.os.IBinder,android.view.SurfaceControl$DesiredDisplayConfigSpecs)
02-19 13:04:37.558 10809 10809 I scrcpy  : -- public static boolean android.view.SurfaceControl.setDisplayBrightness(android.os.IBinder,float)
02-19 13:04:37.558 10809 10809 I scrcpy  : -- public static void android.view.SurfaceControl.setDisplayLayerStack(android.os.IBinder,int)
02-19 13:04:37.558 10809 10809 I scrcpy  : -- public static void android.view.SurfaceControl.setDisplayPowerMode(android.os.IBinder,int)
02-19 13:04:37.558 10809 10809 I scrcpy  : -- public static void android.view.SurfaceControl.setDisplayProjection(android.os.IBinder,int,android.graphics.Rect,android.graphics.Rect)
02-19 13:04:37.558 10809 10809 I scrcpy  : -- public static void android.view.SurfaceControl.setDisplaySize(android.os.IBinder,int,int)
02-19 13:04:37.559 10809 10809 I scrcpy  : -- public static void android.view.SurfaceControl.setDisplaySurface(android.os.IBinder,android.view.Surface)
02-19 13:04:37.559 10809 10809 I scrcpy  : -- public static boolean android.view.SurfaceControl.setDisplayedContentSamplingEnabled(android.os.IBinder,boolean,int,int)
02-19 13:04:37.559 10809 10809 I scrcpy  : -- public static void android.view.SurfaceControl.setGameContentType(android.os.IBinder,boolean)
02-19 13:04:37.559 10809 10809 I scrcpy  : -- public static void android.view.SurfaceControl.setGlobalShadowSettings(float[],float[],float,float,float)
02-19 13:04:37.559 10809 10809 I scrcpy  : -- private static void android.view.SurfaceControl.validateColorArg(float[])
02-19 13:04:37.559 10809 10809 I scrcpy  : -- public boolean android.view.SurfaceControl.addOnReparentListener(android.view.SurfaceControl$OnReparentListener)
02-19 13:04:37.559 10809 10809 I scrcpy  : -- public boolean android.view.SurfaceControl.clearContentFrameStats()
02-19 13:04:37.559 10809 10809 I scrcpy  : -- public void android.view.SurfaceControl.copyFrom(android.view.SurfaceControl,java.lang.String)
02-19 13:04:37.559 10809 10809 I scrcpy  : -- public int android.view.SurfaceControl.describeContents()
02-19 13:04:37.559 10809 10809 I scrcpy  : -- public void android.view.SurfaceControl.disconnect()
02-19 13:04:37.559 10809 10809 I scrcpy  : -- public void android.view.SurfaceControl.dumpDebug(android.util.proto.ProtoOutputStream,long)
02-19 13:04:37.560 10809 10809 I scrcpy  : -- protected void android.view.SurfaceControl.finalize() throws java.lang.Throwable
02-19 13:04:37.560 10809 10809 I scrcpy  : -- public boolean android.view.SurfaceControl.getContentFrameStats(android.view.WindowContentFrameStats)
02-19 13:04:37.560 10809 10809 I scrcpy  : -- public int android.view.SurfaceControl.getHeight()
02-19 13:04:37.560 10809 10809 I scrcpy  : -- public android.view.View android.view.SurfaceControl.getLocalOwnerView()
02-19 13:04:37.560 10809 10809 I scrcpy  : -- public int android.view.SurfaceControl.getWidth()
02-19 13:04:37.560 10809 10809 I scrcpy  : -- public boolean android.view.SurfaceControl.isSameSurface(android.view.SurfaceControl)
02-19 13:04:37.560 10809 10809 I scrcpy  : -- public boolean android.view.SurfaceControl.isValid()
02-19 13:04:37.560 10809 10809 I scrcpy  : -- public void android.view.SurfaceControl.readFromParcel(android.os.Parcel)
02-19 13:04:37.560 10809 10809 I scrcpy  : -- public void android.view.SurfaceControl.release()
02-19 13:04:37.560 10809 10809 I scrcpy  : -- public boolean android.view.SurfaceControl.removeOnReparentListener(android.view.SurfaceControl$OnReparentListener)
02-19 13:04:37.561 10809 10809 I scrcpy  : -- public void android.view.SurfaceControl.setDebugRelease(boolean)
02-19 13:04:37.561 10809 10809 I scrcpy  : -- public java.lang.String android.view.SurfaceControl.toString()
02-19 13:04:37.561 10809 10809 I scrcpy  : -- public void android.view.SurfaceControl.writeToParcel(android.os.Parcel,int)
02-19 13:04:37.578 10809 10809 E AndroidRuntime: 	at com.genymobile.scrcpy.wrappers.SurfaceControl.setDisplaySurface(SurfaceControl.java:78)
02-19 13:04:37.578 10809 10809 E AndroidRuntime: 	at com.genymobile.scrcpy.ScreenEncoder.setDisplaySurface(ScreenEncoder.java:243)
02-19 13:04:37.578 10809 10809 E AndroidRuntime: 	at com.genymobile.scrcpy.ScreenEncoder.internalStreamScreen(ScreenEncoder.java:91)
02-19 13:04:37.578 10809 10809 E AndroidRuntime: 	at com.genymobile.scrcpy.ScreenEncoder.streamScreen(ScreenEncoder.java:60)
02-19 13:04:37.578 10809 10809 E AndroidRuntime: 	at com.genymobile.scrcpy.Server.scrcpy(Server.java:80)
02-19 13:04:37.578 10809 10809 E AndroidRuntime: 	at com.genymobile.scrcpy.Server.main(Server.java:252)
02-19 13:04:37.578 10809 10809 E AndroidRuntime: 	at com.genymobile.scrcpy.wrappers.SurfaceControl.setDisplaySurface(SurfaceControl.java:76)
02-19 13:04:37.578 10809 10809 E scrcpy  : Exception on thread Thread[main,5,main]
02-19 13:04:37.578 10809 10809 E scrcpy  : java.lang.AssertionError: java.lang.reflect.InvocationTargetException
02-19 13:04:37.578 10809 10809 E scrcpy  : 	at com.genymobile.scrcpy.wrappers.SurfaceControl.setDisplaySurface(SurfaceControl.java:78)
02-19 13:04:37.578 10809 10809 E scrcpy  : 	at com.genymobile.scrcpy.ScreenEncoder.setDisplaySurface(ScreenEncoder.java:243)
02-19 13:04:37.578 10809 10809 E scrcpy  : 	at com.genymobile.scrcpy.ScreenEncoder.internalStreamScreen(ScreenEncoder.java:91)
02-19 13:04:37.578 10809 10809 E scrcpy  : 	at com.genymobile.scrcpy.ScreenEncoder.streamScreen(ScreenEncoder.java:60)
02-19 13:04:37.578 10809 10809 E scrcpy  : 	at com.genymobile.scrcpy.Server.scrcpy(Server.java:80)
02-19 13:04:37.578 10809 10809 E scrcpy  : 	at com.genymobile.scrcpy.Server.main(Server.java:252)
02-19 13:04:37.578 10809 10809 E scrcpy  : 	at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
02-19 13:04:37.578 10809 10809 E scrcpy  : 	at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:355)
02-19 13:04:37.578 10809 10809 E scrcpy  : Caused by: java.lang.reflect.InvocationTargetException
02-19 13:04:37.578 10809 10809 E scrcpy  : 	at java.lang.reflect.Method.invoke(Native Method)
02-19 13:04:37.578 10809 10809 E scrcpy  : 	at com.genymobile.scrcpy.wrappers.SurfaceControl.setDisplaySurface(SurfaceControl.java:76)
02-19 13:04:37.578 10809 10809 E scrcpy  : 	... 7 more
02-19 13:04:37.578 10809 10809 E scrcpy  : Caused by: java.lang.IllegalArgumentException: displayToken must not be null
02-19 13:04:37.578 10809 10809 E scrcpy  : 	at android.view.SurfaceControl$Transaction.setDisplaySurface(SurfaceControl.java:3067)
02-19 13:04:37.578 10809 10809 E scrcpy  : 	at android.view.SurfaceControl.setDisplaySurface(SurfaceControl.java:2147)
02-19 13:04:37.578 10809 10809 E scrcpy  : 	... 9 more
02-19 13:04:37.736 10824 10824 D AndroidRuntime: Calling main entry com.genymobile.scrcpy.CleanUp
02-19 13:04:38.964 10824 10824 I scrcpy  : Cleaning up
02-19 13:04:38.965 10824 10824 I scrcpy  : Restoring normal power mode
02-19 13:04:38.976 10824 10824 I scrcpy  : -- static long android.view.SurfaceControl.access$000(android.view.SurfaceControl$OnJankDataListener)
02-19 13:04:38.976 10824 10824 I scrcpy  : -- static long android.view.SurfaceControl.access$2300()
02-19 13:04:38.977 10824 10824 I scrcpy  : -- static void android.view.SurfaceControl.access$2400(android.view.SurfaceControl)
02-19 13:04:38.977 10824 10824 I scrcpy  : -- static long android.view.SurfaceControl.access$2500()
02-19 13:04:38.977 10824 10824 I scrcpy  : -- static void android.view.SurfaceControl.access$2600(long,boolean)
02-19 13:04:38.978 10824 10824 I scrcpy  : -- static java.lang.Object android.view.SurfaceControl.access$2700(android.view.SurfaceControl)
02-19 13:04:38.978 10824 10824 I scrcpy  : -- static int android.view.SurfaceControl.access$2802(android.view.SurfaceControl,int)
02-19 13:04:38.979 10824 10824 I scrcpy  : -- static int android.view.SurfaceControl.access$2902(android.view.SurfaceControl,int)
02-19 13:04:38.979 10824 10824 I scrcpy  : -- static java.util.ArrayList android.view.SurfaceControl.access$3000(android.view.SurfaceControl)
02-19 13:04:38.979 10824 10824 I scrcpy  : -- static void android.view.SurfaceControl.access$3100(long,long,int)
02-19 13:04:38.980 10824 10824 I scrcpy  : -- static void android.view.SurfaceControl.access$3200(long,long,int,int)
02-19 13:04:38.980 10824 10824 I scrcpy  : -- static void android.view.SurfaceControl.access$3300(long,long,float,float)
02-19 13:04:38.981 10824 10824 I scrcpy  : -- static void android.view.SurfaceControl.access$3400(long,long,int,int)
02-19 13:04:38.981 10824 10824 I scrcpy  : -- static void android.view.SurfaceControl.access$3500(long,long,int)
02-19 13:04:38.981 10824 10824 I scrcpy  : -- static void android.view.SurfaceControl.access$3600(long,long,int)
02-19 13:04:38.982 10824 10824 I scrcpy  : -- static void android.view.SurfaceControl.access$3700(long,long,long,int)
02-19 13:04:38.982 10824 10824 I scrcpy  : -- static void android.view.SurfaceControl.access$3800(long,long,android.graphics.Region)
02-19 13:04:38.983 10824 10824 I scrcpy  : -- static void android.view.SurfaceControl.access$3900(long,long,float)
02-19 13:04:38.983 10824 10824 I scrcpy  : -- static void android.view.SurfaceControl.access$4000(long,long,android.view.InputWindowHandle)
02-19 13:04:38.983 10824 10824 I scrcpy  : -- static void android.view.SurfaceControl.access$4100(long)
02-19 13:04:38.984 10824 10824 I scrcpy  : -- static void android.view.SurfaceControl.access$4200(long,long,android.graphics.Rect,android.graphics.Rect,long)
02-19 13:04:38.984 10824 10824 I scrcpy  : -- static void android.view.SurfaceControl.access$4300(long,long,float,float,float,float)
02-19 13:04:38.985 10824 10824 I scrcpy  : -- static void android.view.SurfaceControl.access$4400(long,long,float[],float[])
02-19 13:04:38.985 10824 10824 I scrcpy  : -- static void android.view.SurfaceControl.access$4500(long,long,boolean)
02-19 13:04:38.985 10824 10824 I scrcpy  : -- static void android.view.SurfaceControl.access$4600(long,long,int,int,int,int)
02-19 13:04:38.986 10824 10824 I scrcpy  : -- static void android.view.SurfaceControl.access$4700(long,long,float)
02-19 13:04:38.986 10824 10824 I scrcpy  : -- static void android.view.SurfaceControl.access$4800(long,long,int)
02-19 13:04:38.986 10824 10824 I scrcpy  : -- static void android.view.SurfaceControl.access$4900(long,long,float[][],int)
02-19 13:04:38.987 10824 10824 I scrcpy  : -- static void android.view.SurfaceControl.access$5000(long,long,int)
02-19 13:04:38.987 10824 10824 I scrcpy  : -- static void android.view.SurfaceControl.access$5100(long,long,long,long)
02-19 13:04:38.988 10824 10824 I scrcpy  : -- static void android.view.SurfaceControl.access$5200(long,long,long)
02-19 13:04:38.988 10824 10824 I scrcpy  : -- static void android.view.SurfaceControl.access$5300(long,long,long)
02-19 13:04:38.989 10824 10824 I scrcpy  : -- static void android.view.SurfaceControl.access$5400(long,long)
02-19 13:04:38.989 10824 10824 I scrcpy  : -- static void android.view.SurfaceControl.access$5500(long,long,float[])
02-19 13:04:38.989 10824 10824 I scrcpy  : -- static void android.view.SurfaceControl.access$5600(long,android.os.IBinder,long)
02-19 13:04:38.990 10824 10824 I scrcpy  : -- static void android.view.SurfaceControl.access$5700(long,android.os.IBinder,int)
02-19 13:04:38.990 10824 10824 I scrcpy  : -- static void android.view.SurfaceControl.access$5800(long,android.os.IBinder,int,int,int,int,int,int,int,int,int)
02-19 13:04:38.990 10824 10824 I scrcpy  : -- static void android.view.SurfaceControl.access$5900(long,android.os.IBinder,int,int)
02-19 13:04:38.990 10824 10824 I scrcpy  : -- static void android.view.SurfaceControl.access$6000(long)
02-19 13:04:38.991 10824 10824 I scrcpy  : -- static void android.view.SurfaceControl.access$6100(long)
02-19 13:04:38.991 10824 10824 I scrcpy  : -- static void android.view.SurfaceControl.access$6200(long)
02-19 13:04:38.992 10824 10824 I scrcpy  : -- static void android.view.SurfaceControl.access$6300(long)
02-19 13:04:38.992 10824 10824 I scrcpy  : -- static void android.view.SurfaceControl.access$6400(long,long,int,android.os.Parcel)
02-19 13:04:38.992 10824 10824 I scrcpy  : -- static void android.view.SurfaceControl.access$6500(long,long,float)
02-19 13:04:38.993 10824 10824 I scrcpy  : -- static void android.view.SurfaceControl.access$6600(long,long,float,int,boolean)
02-19 13:04:38.993 10824 10824 I scrcpy  : -- static void android.view.SurfaceControl.access$6700(long,android.os.IBinder,java.lang.String,android.os.IBinder,java.lang.String,int)
02-19 13:04:38.993 10824 10824 I scrcpy  : -- static void android.view.SurfaceControl.access$6800(long,long)
02-19 13:04:38.994 10824 10824 I scrcpy  : -- static void android.view.SurfaceControl.access$6900(long,long)
02-19 13:04:38.994 10824 10824 I scrcpy  : -- static void android.view.SurfaceControl.access$7000(long,android.os.Parcel)
02-19 13:04:38.994 10824 10824 I scrcpy  : -- static long android.view.SurfaceControl.access$7100(android.os.Parcel)
02-19 13:04:38.994 10824 10824 I scrcpy  : -- public static long android.view.SurfaceControl.acquireFrameRateFlexibilityToken()
02-19 13:04:38.995 10824 10824 I scrcpy  : -- public static void android.view.SurfaceControl.addJankDataListener(android.view.SurfaceControl$OnJankDataListener,android.view.SurfaceControl)
02-19 13:04:38.995 10824 10824 I scrcpy  : -- private void android.view.SurfaceControl.assignNativeObject(long,java.lang.String)
02-19 13:04:38.996 10824 10824 I scrcpy  : -- public static int android.view.SurfaceControl.captureDisplay(android.view.SurfaceControl$DisplayCaptureArgs,android.view.SurfaceControl$ScreenCaptureListener)
02-19 13:04:38.996 10824 10824 I scrcpy  : -- public static android.view.SurfaceControl$ScreenshotHardwareBuffer android.view.SurfaceControl.captureDisplay(android.view.SurfaceControl$DisplayCaptureArgs)
02-19 13:04:38.996 10824 10824 I scrcpy  : -- public static int android.view.SurfaceControl.captureLayers(android.view.SurfaceControl$LayerCaptureArgs,android.view.SurfaceControl$ScreenCaptureListener)
02-19 13:04:38.996 10824 10824 I scrcpy  : -- public static android.view.SurfaceControl$ScreenshotHardwareBuffer android.view.SurfaceControl.captureLayers(android.view.SurfaceControl$LayerCaptureArgs)
02-19 13:04:38.997 10824 10824 I scrcpy  : -- public static android.view.SurfaceControl$ScreenshotHardwareBuffer android.view.SurfaceControl.captureLayers(android.view.SurfaceControl,android.graphics.Rect,float)
02-19 13:04:38.997 10824 10824 I scrcpy  : -- public static android.view.SurfaceControl$ScreenshotHardwareBuffer android.view.SurfaceControl.captureLayers(android.view.SurfaceControl,android.graphics.Rect,float,int)
02-19 13:04:38.997 10824 10824 I scrcpy  : -- public static android.view.SurfaceControl$ScreenshotHardwareBuffer android.view.SurfaceControl.captureLayersExcluding(android.view.SurfaceControl,android.graphics.Rect,float,int,android.view.SurfaceControl[])
02-19 13:04:38.998 10824 10824 I scrcpy  : -- private void android.view.SurfaceControl.checkNotReleased()
02-19 13:04:38.998 10824 10824 I scrcpy  : -- public static boolean android.view.SurfaceControl.clearAnimationFrameStats()
02-19 13:04:38.998 10824 10824 I scrcpy  : -- public static void android.view.SurfaceControl.closeTransaction()
02-19 13:04:38.999 10824 10824 I scrcpy  : -- public static android.os.IBinder android.view.SurfaceControl.createDisplay(java.lang.String,boolean)
02-19 13:04:38.999 10824 10824 I scrcpy  : -- public static void android.view.SurfaceControl.destroyDisplay(android.os.IBinder)
02-19 13:04:38.999 10824 10824 I scrcpy  : -- public static int android.view.SurfaceControl.getActiveColorMode(android.os.IBinder)
02-19 13:04:39.000 10824 10824 I scrcpy  : -- public static int android.view.SurfaceControl.getActiveConfig(android.os.IBinder)
02-19 13:04:39.000 10824 10824 I scrcpy  : -- public static boolean android.view.SurfaceControl.getAnimationFrameStats(android.view.WindowAnimationFrameStats)
02-19 13:04:39.000 10824 10824 I scrcpy  : -- public static boolean android.view.SurfaceControl.getAutoLowLatencyModeSupport(android.os.IBinder)
02-19 13:04:39.001 10824 10824 I scrcpy  : -- public static android.graphics.ColorSpace[] android.view.SurfaceControl.getCompositionColorSpaces()
02-19 13:04:39.001 10824 10824 I scrcpy  : -- public static android.view.SurfaceControl$DesiredDisplayConfigSpecs android.view.SurfaceControl.getDesiredDisplayConfigSpecs(android.os.IBinder)
02-19 13:04:39.001 10824 10824 I scrcpy  : -- public static boolean android.view.SurfaceControl.getDisplayBrightnessSupport(android.os.IBinder)
02-19 13:04:39.002 10824 10824 I scrcpy  : -- public static int[] android.view.SurfaceControl.getDisplayColorModes(android.os.IBinder)
02-19 13:04:39.002 10824 10824 I scrcpy  : -- public static android.view.SurfaceControl$DisplayConfig[] android.view.SurfaceControl.getDisplayConfigs(android.os.IBinder)
02-19 13:04:39.002 10824 10824 I scrcpy  : -- public static android.view.SurfaceControl$DisplayInfo android.view.SurfaceControl.getDisplayInfo(android.os.IBinder)
02-19 13:04:39.003 10824 10824 I scrcpy  : -- public static android.view.SurfaceControl$DisplayPrimaries android.view.SurfaceControl.getDisplayNativePrimaries(android.os.IBinder)
02-19 13:04:39.003 10824 10824 I scrcpy  : -- public static android.hardware.display.DisplayedContentSample android.view.SurfaceControl.getDisplayedContentSample(android.os.IBinder,long,long)
02-19 13:04:39.003 10824 10824 I scrcpy  : -- public static android.hardware.display.DisplayedContentSamplingAttributes android.view.SurfaceControl.getDisplayedContentSamplingAttributes(android.os.IBinder)
02-19 13:04:39.004 10824 10824 I scrcpy  : -- public static int android.view.SurfaceControl.getGPUContextPriority()
02-19 13:04:39.004 10824 10824 I scrcpy  : -- public static boolean android.view.SurfaceControl.getGameContentTypeSupport(android.os.IBinder)
02-19 13:04:39.004 10824 10824 I scrcpy  : -- public static android.view.SurfaceControl$Transaction android.view.SurfaceControl.getGlobalTransaction()
02-19 13:04:39.005 10824 10824 I scrcpy  : -- public static android.view.Display$HdrCapabilities android.view.SurfaceControl.getHdrCapabilities(android.os.IBinder)
02-19 13:04:39.005 10824 10824 I scrcpy  : -- public static android.os.IBinder android.view.SurfaceControl.getInternalDisplayToken()
02-19 13:04:39.005 10824 10824 I scrcpy  : -- public static long[] android.view.SurfaceControl.getPhysicalDisplayIds()
02-19 13:04:39.006 10824 10824 I scrcpy  : -- public static android.os.IBinder android.view.SurfaceControl.getPhysicalDisplayToken(long)
02-19 13:04:39.006 10824 10824 I scrcpy  : -- public static boolean android.view.SurfaceControl.getProtectedContentSupport()
02-19 13:04:39.006 10824 10824 I scrcpy  : -- public static void android.view.SurfaceControl.mergeToGlobalTransaction(android.view.SurfaceControl$Transaction)
02-19 13:04:39.007 10824 10824 I scrcpy  : -- public static android.view.SurfaceControl android.view.SurfaceControl.mirrorSurface(android.view.SurfaceControl)
02-19 13:04:39.007 10824 10824 I scrcpy  : -- private static native long android.view.SurfaceControl.nativeAcquireFrameRateFlexibilityToken()
02-19 13:04:39.007 10824 10824 I scrcpy  : -- private static native void android.view.SurfaceControl.nativeAddJankDataListener(long,long)
02-19 13:04:39.008 10824 10824 I scrcpy  : -- private static native void android.view.SurfaceControl.nativeApplyTransaction(long,boolean)
02-19 13:04:39.008 10824 10824 I scrcpy  : -- private static native int android.view.SurfaceControl.nativeCaptureDisplay(android.view.SurfaceControl$DisplayCaptureArgs,android.view.SurfaceControl$ScreenCaptureListener)
02-19 13:04:39.008 10824 10824 I scrcpy  : -- private static native int android.view.SurfaceControl.nativeCaptureLayers(android.view.SurfaceControl$LayerCaptureArgs,android.view.SurfaceControl$ScreenCaptureListener)
02-19 13:04:39.009 10824 10824 I scrcpy  : -- private static native boolean android.view.SurfaceControl.nativeClearAnimationFrameStats()
02-19 13:04:39.009 10824 10824 I scrcpy  : -- private static native boolean android.view.SurfaceControl.nativeClearContentFrameStats(long)
02-19 13:04:39.009 10824 10824 I scrcpy  : -- private static native long android.view.SurfaceControl.nativeCopyFromSurfaceControl(long)
02-19 13:04:39.009 10824 10824 I scrcpy  : -- private static native long android.view.SurfaceControl.nativeCreate(android.view.SurfaceSession,java.lang.String,int,int,int,int,long,android.os.Parcel) throws android.view.Surface$OutOfResourcesException
02-19 13:04:39.010 10824 10824 I scrcpy  : -- private static native android.os.IBinder android.view.SurfaceControl.nativeCreateDisplay(java.lang.String,boolean)
02-19 13:04:39.010 10824 10824 I scrcpy  : -- private static native long android.view.SurfaceControl.nativeCreateJankDataListenerWrapper(android.view.SurfaceControl$OnJankDataListener)
02-19 13:04:39.010 10824 10824 I scrcpy  : -- private static native long android.view.SurfaceControl.nativeCreateTransaction()
02-19 13:04:39.011 10824 10824 I scrcpy  : -- private static native void android.view.SurfaceControl.nativeDeferTransactionUntil(long,long,long,long)
02-19 13:04:39.011 10824 10824 I scrcpy  : -- private static native void android.view.SurfaceControl.nativeDestroyDisplay(android.os.IBinder)
02-19 13:04:39.011 10824 10824 I scrcpy  : -- private static native void android.view.SurfaceControl.nativeDisconnect(long)
02-19 13:04:39.011 10824 10824 I scrcpy  : -- private static native int android.view.SurfaceControl.nativeGetActiveColorMode(android.os.IBinder)
02-19 13:04:39.012 10824 10824 I scrcpy  : -- private static native int android.view.SurfaceControl.nativeGetActiveConfig(android.os.IBinder)
02-19 13:04:39.012 10824 10824 I scrcpy  : -- private static native boolean android.view.SurfaceControl.nativeGetAnimationFrameStats(android.view.WindowAnimationFrameStats)
02-19 13:04:39.012 10824 10824 I scrcpy  : -- private static native boolean android.view.SurfaceControl.nativeGetAutoLowLatencyModeSupport(android.os.IBinder)
02-19 13:04:39.012 10824 10824 I scrcpy  : -- private static native int[] android.view.SurfaceControl.nativeGetCompositionDataspaces()
02-19 13:04:39.013 10824 10824 I scrcpy  : -- private static native boolean android.view.SurfaceControl.nativeGetContentFrameStats(long,android.view.WindowContentFrameStats)
02-19 13:04:39.013 10824 10824 I scrcpy  : -- private static native android.view.SurfaceControl$DesiredDisplayConfigSpecs android.view.SurfaceControl.nativeGetDesiredDisplayConfigSpecs(android.os.IBinder)
02-19 13:04:39.013 10824 10824 I scrcpy  : -- private static native boolean android.view.SurfaceControl.nativeGetDisplayBrightnessSupport(android.os.IBinder)
02-19 13:04:39.013 10824 10824 I scrcpy  : -- private static native int[] android.view.SurfaceControl.nativeGetDisplayColorModes(android.os.IBinder)
02-19 13:04:39.014 10824 10824 I scrcpy  : -- private static native android.view.SurfaceControl$DisplayConfig[] android.view.SurfaceControl.nativeGetDisplayConfigs(android.os.IBinder)
02-19 13:04:39.014 10824 10824 I scrcpy  : -- private static native android.view.SurfaceControl$DisplayInfo android.view.SurfaceControl.nativeGetDisplayInfo(android.os.IBinder)
02-19 13:04:39.014 10824 10824 I scrcpy  : -- private static native android.view.SurfaceControl$DisplayPrimaries android.view.SurfaceControl.nativeGetDisplayNativePrimaries(android.os.IBinder)
02-19 13:04:39.014 10824 10824 I scrcpy  : -- private static native android.hardware.display.DisplayedContentSample android.view.SurfaceControl.nativeGetDisplayedContentSample(android.os.IBinder,long,long)
02-19 13:04:39.015 10824 10824 I scrcpy  : -- private static native android.hardware.display.DisplayedContentSamplingAttributes android.view.SurfaceControl.nativeGetDisplayedContentSamplingAttributes(android.os.IBinder)
02-19 13:04:39.015 10824 10824 I scrcpy  : -- private static native int android.view.SurfaceControl.nativeGetGPUContextPriority()
02-19 13:04:39.015 10824 10824 I scrcpy  : -- private static native boolean android.view.SurfaceControl.nativeGetGameContentTypeSupport(android.os.IBinder)
02-19 13:04:39.015 10824 10824 I scrcpy  : -- private static native long android.view.SurfaceControl.nativeGetHandle(long)
02-19 13:04:39.016 10824 10824 I scrcpy  : -- private static native android.view.Display$HdrCapabilities android.view.SurfaceControl.nativeGetHdrCapabilities(android.os.IBinder)
02-19 13:04:39.016 10824 10824 I scrcpy  : -- private static native long android.view.SurfaceControl.nativeGetNativeTransactionFinalizer()
02-19 13:04:39.016 10824 10824 I scrcpy  : -- private static native long[] android.view.SurfaceControl.nativeGetPhysicalDisplayIds()
02-19 13:04:39.016 10824 10824 I scrcpy  : -- private static native android.os.IBinder android.view.SurfaceControl.nativeGetPhysicalDisplayToken(long)
02-19 13:04:39.017 10824 10824 I scrcpy  : -- private static native boolean android.view.SurfaceControl.nativeGetProtectedContentSupport()
02-19 13:04:39.017 10824 10824 I scrcpy  : -- private static native void android.view.SurfaceControl.nativeMergeTransaction(long,long)
02-19 13:04:39.017 10824 10824 I scrcpy  : -- private static native long android.view.SurfaceControl.nativeMirrorSurface(long)
02-19 13:04:39.018 10824 10824 I scrcpy  : -- private static native long android.view.SurfaceControl.nativeReadFromParcel(android.os.Parcel)
02-19 13:04:39.018 10824 10824 I scrcpy  : -- private static native long android.view.SurfaceControl.nativeReadTransactionFromParcel(android.os.Parcel)
02-19 13:04:39.018 10824 10824 I scrcpy  : -- private static native void android.view.SurfaceControl.nativeRelease(long)
02-19 13:04:39.018 10824 10824 I scrcpy  : -- private static native void android.view.SurfaceControl.nativeReleaseFrameRateFlexibilityToken(long)
02-19 13:04:39.019 10824 10824 I scrcpy  : -- private static native void android.view.SurfaceControl.nativeRemoveJankDataListener(long)
02-19 13:04:39.019 10824 10824 I scrcpy  : -- private static native void android.view.SurfaceControl.nativeReparent(long,long,long)
02-19 13:04:39.020 10824 10824 I scrcpy  : -- private static native void android.view.SurfaceControl.nativeReparentChildren(long,long,long)
02-19 13:04:39.020 10824 10824 I scrcpy  : -- private static native boolean android.view.SurfaceControl.nativeSetActiveColorMode(android.os.IBinder,int)
02-19 13:04:39.021 10824 10824 I scrcpy  : -- private static native void android.view.SurfaceControl.nativeSetAlpha(long,long,float)
02-19 13:04:39.021 10824 10824 I scrcpy  : -- private static native void android.view.SurfaceControl.nativeSetAnimationTransaction(long)
02-19 13:04:39.021 10824 10824 I scrcpy  : -- private static native void android.view.SurfaceControl.nativeSetAutoLowLatencyMode(android.os.IBinder,boolean)
02-19 13:04:39.022 10824 10824 I scrcpy  : -- private static native void android.view.SurfaceControl.nativeSetBackgroundBlurRadius(long,long,int)
02-19 13:04:39.023 10824 10824 I scrcpy  : -- private static native void android.view.SurfaceControl.nativeSetBlurRegions(long,long,float[][],int)
02-19 13:04:39.023 10824 10824 I scrcpy  : -- private static native void android.view.SurfaceControl.nativeSetColor(long,long,float[])
02-19 13:04:39.023 10824 10824 I scrcpy  : -- private static native void android.view.SurfaceControl.nativeSetColorSpaceAgnostic(long,long,boolean)
02-19 13:04:39.024 10824 10824 I scrcpy  : -- private static native void android.view.SurfaceControl.nativeSetColorTransform(long,long,float[],float[])
02-19 13:04:39.024 10824 10824 I scrcpy  : -- private static native void android.view.SurfaceControl.nativeSetCornerRadius(long,long,float)
02-19 13:04:39.024 10824 10824 I scrcpy  : -- private static native boolean android.view.SurfaceControl.nativeSetDesiredDisplayConfigSpecs(android.os.IBinder,android.view.SurfaceControl$DesiredDisplayConfigSpecs)
02-19 13:04:39.024 10824 10824 I scrcpy  : -- private static native boolean android.view.SurfaceControl.nativeSetDisplayBrightness(android.os.IBinder,float)
02-19 13:04:39.025 10824 10824 I scrcpy  : -- private static native void android.view.SurfaceControl.nativeSetDisplayLayerStack(long,android.os.IBinder,int)
02-19 13:04:39.025 10824 10824 I scrcpy  : -- private static native void android.view.SurfaceControl.nativeSetDisplayPowerMode(android.os.IBinder,int)
02-19 13:04:39.025 10824 10824 I scrcpy  : -- private static native void android.view.SurfaceControl.nativeSetDisplayProjection(long,android.os.IBinder,int,int,int,int,int,int,int,int,int)
02-19 13:04:39.025 10824 10824 I scrcpy  : -- private static native void android.view.SurfaceControl.nativeSetDisplaySize(long,android.os.IBinder,int,int)
02-19 13:04:39.026 10824 10824 I scrcpy  : -- private static native void android.view.SurfaceControl.nativeSetDisplaySurface(long,android.os.IBinder,long)
02-19 13:04:39.026 10824 10824 I scrcpy  : -- private static native boolean android.view.SurfaceControl.nativeSetDisplayedContentSamplingEnabled(android.os.IBinder,boolean,int,int)
02-19 13:04:39.026 10824 10824 I scrcpy  : -- private static native void android.view.SurfaceControl.nativeSetEarlyWakeup(long)
02-19 13:04:39.026 10824 10824 I scrcpy  : -- private static native void android.view.SurfaceControl.nativeSetEarlyWakeupEnd(long)
02-19 13:04:39.027 10824 10824 I scrcpy  : -- private static native void android.view.SurfaceControl.nativeSetEarlyWakeupStart(long)
02-19 13:04:39.027 10824 10824 I scrcpy  : -- private static native void android.view.SurfaceControl.nativeSetFixedTransformHint(long,long,int)
02-19 13:04:39.027 10824 10824 I scrcpy  : -- private static native void android.view.SurfaceControl.nativeSetFlags(long,long,int,int)
02-19 13:04:39.027 10824 10824 I scrcpy  : -- private static native void android.view.SurfaceControl.nativeSetFocusedWindow(long,android.os.IBinder,java.lang.String,android.os.IBinder,java.lang.String,int)
02-19 13:04:39.028 10824 10824 I scrcpy  : -- private static native void android.view.SurfaceControl.nativeSetFrameRate(long,long,float,int,boolean)
02-19 13:04:39.028 10824 10824 I scrcpy  : -- private static native void android.view.SurfaceControl.nativeSetFrameRateSelectionPriority(long,long,int)
02-19 13:04:39.028 10824 10824 I scrcpy  : -- private static native void android.view.SurfaceControl.nativeSetFrameTimelineVsync(long,long)
02-19 13:04:39.028 10824 10824 I scrcpy  : -- private static native void android.view.SurfaceControl.nativeSetGameContentType(android.os.IBinder,boolean)
02-19 13:04:39.029 10824 10824 I scrcpy  : -- private static native void android.view.SurfaceControl.nativeSetGeometry(long,long,android.graphics.Rect,android.graphics.Rect,long)
02-19 13:04:39.029 10824 10824 I scrcpy  : -- private static native void android.view.SurfaceControl.nativeSetGlobalShadowSettings(float[],float[],float,float,float)
02-19 13:04:39.029 10824 10824 I scrcpy  : -- private static native void android.view.SurfaceControl.nativeSetInputWindowInfo(long,long,android.view.InputWindowHandle)
02-19 13:04:39.029 10824 10824 I scrcpy  : -- private static native void android.view.SurfaceControl.nativeSetLayer(long,long,int)
02-19 13:04:39.030 10824 10824 I scrcpy  : -- private static native void android.view.SurfaceControl.nativeSetLayerStack(long,long,int)
02-19 13:04:39.030 10824 10824 I scrcpy  : -- private static native void android.view.SurfaceControl.nativeSetMatrix(long,long,float,float,float,float)
02-19 13:04:39.030 10824 10824 I scrcpy  : -- private static native void android.view.SurfaceControl.nativeSetMetadata(long,long,int,android.os.Parcel)
02-19 13:04:39.030 10824 10824 I scrcpy  : -- private static native void android.view.SurfaceControl.nativeSetPosition(long,long,float,float)
02-19 13:04:39.030 10824 10824 I scrcpy  : -- private static native void android.view.SurfaceControl.nativeSetRelativeLayer(long,long,long,int)
02-19 13:04:39.031 10824 10824 I scrcpy  : -- private static native void android.view.SurfaceControl.nativeSetShadowRadius(long,long,float)
02-19 13:04:39.031 10824 10824 I scrcpy  : -- private static native void android.view.SurfaceControl.nativeSetSize(long,long,int,int)
02-19 13:04:39.031 10824 10824 I scrcpy  : -- private static native void android.view.SurfaceControl.nativeSetTransparentRegionHint(long,long,android.graphics.Region)
02-19 13:04:39.031 10824 10824 I scrcpy  : -- private static native void android.view.SurfaceControl.nativeSetWindowCrop(long,long,int,int,int,int)
02-19 13:04:39.032 10824 10824 I scrcpy  : -- private static native void android.view.SurfaceControl.nativeSeverChildren(long,long)
02-19 13:04:39.032 10824 10824 I scrcpy  : -- private static native void android.view.SurfaceControl.nativeSyncInputWindows(long)
02-19 13:04:39.032 10824 10824 I scrcpy  : -- private static native void android.view.SurfaceControl.nativeWriteToParcel(long,android.os.Parcel)
02-19 13:04:39.032 10824 10824 I scrcpy  : -- private static native void android.view.SurfaceControl.nativeWriteTransactionToParcel(long,android.os.Parcel)
02-19 13:04:39.032 10824 10824 I scrcpy  : -- public static void android.view.SurfaceControl.openTransaction()
02-19 13:04:39.033 10824 10824 I scrcpy  : -- public static void android.view.SurfaceControl.releaseFrameRateFlexibilityToken(long)
02-19 13:04:39.033 10824 10824 I scrcpy  : -- public static void android.view.SurfaceControl.removeJankDataListener(android.view.SurfaceControl$OnJankDataListener)
02-19 13:04:39.033 10824 10824 I scrcpy  : -- public static boolean android.view.SurfaceControl.setActiveColorMode(android.os.IBinder,int)
02-19 13:04:39.033 10824 10824 I scrcpy  : -- public static void android.view.SurfaceControl.setAutoLowLatencyMode(android.os.IBinder,boolean)
02-19 13:04:39.033 10824 10824 I scrcpy  : -- public static boolean android.view.SurfaceControl.setDesiredDisplayConfigSpecs(android.os.IBinder,android.view.SurfaceControl$DesiredDisplayConfigSpecs)
02-19 13:04:39.034 10824 10824 I scrcpy  : -- public static boolean android.view.SurfaceControl.setDisplayBrightness(android.os.IBinder,float)
02-19 13:04:39.034 10824 10824 I scrcpy  : -- public static void android.view.SurfaceControl.setDisplayLayerStack(android.os.IBinder,int)
02-19 13:04:39.034 10824 10824 I scrcpy  : -- public static void android.view.SurfaceControl.setDisplayPowerMode(android.os.IBinder,int)
02-19 13:04:39.034 10824 10824 I scrcpy  : -- public static void android.view.SurfaceControl.setDisplayProjection(android.os.IBinder,int,android.graphics.Rect,android.graphics.Rect)
02-19 13:04:39.035 10824 10824 I scrcpy  : -- public static void android.view.SurfaceControl.setDisplaySize(android.os.IBinder,int,int)
02-19 13:04:39.035 10824 10824 I scrcpy  : -- public static void android.view.SurfaceControl.setDisplaySurface(android.os.IBinder,android.view.Surface)
02-19 13:04:39.035 10824 10824 I scrcpy  : -- public static boolean android.view.SurfaceControl.setDisplayedContentSamplingEnabled(android.os.IBinder,boolean,int,int)
02-19 13:04:39.035 10824 10824 I scrcpy  : -- public static void android.view.SurfaceControl.setGameContentType(android.os.IBinder,boolean)
02-19 13:04:39.035 10824 10824 I scrcpy  : -- public static void android.view.SurfaceControl.setGlobalShadowSettings(float[],float[],float,float,float)
02-19 13:04:39.036 10824 10824 I scrcpy  : -- private static void android.view.SurfaceControl.validateColorArg(float[])
02-19 13:04:39.036 10824 10824 I scrcpy  : -- public boolean android.view.SurfaceControl.addOnReparentListener(android.view.SurfaceControl$OnReparentListener)
02-19 13:04:39.036 10824 10824 I scrcpy  : -- public boolean android.view.SurfaceControl.clearContentFrameStats()
02-19 13:04:39.036 10824 10824 I scrcpy  : -- public void android.view.SurfaceControl.copyFrom(android.view.SurfaceControl,java.lang.String)
02-19 13:04:39.037 10824 10824 I scrcpy  : -- public int android.view.SurfaceControl.describeContents()
02-19 13:04:39.037 10824 10824 I scrcpy  : -- public void android.view.SurfaceControl.disconnect()
02-19 13:04:39.037 10824 10824 I scrcpy  : -- public void android.view.SurfaceControl.dumpDebug(android.util.proto.ProtoOutputStream,long)
02-19 13:04:39.037 10824 10824 I scrcpy  : -- protected void android.view.SurfaceControl.finalize() throws java.lang.Throwable
02-19 13:04:39.037 10824 10824 I scrcpy  : -- public boolean android.view.SurfaceControl.getContentFrameStats(android.view.WindowContentFrameStats)
02-19 13:04:39.038 10824 10824 I scrcpy  : -- public int android.view.SurfaceControl.getHeight()
02-19 13:04:39.038 10824 10824 I scrcpy  : -- public android.view.View android.view.SurfaceControl.getLocalOwnerView()
02-19 13:04:39.038 10824 10824 I scrcpy  : -- public int android.view.SurfaceControl.getWidth()
02-19 13:04:39.038 10824 10824 I scrcpy  : -- public boolean android.view.SurfaceControl.isSameSurface(android.view.SurfaceControl)
02-19 13:04:39.039 10824 10824 I scrcpy  : -- public boolean android.view.SurfaceControl.isValid()
02-19 13:04:39.039 10824 10824 I scrcpy  : -- public void android.view.SurfaceControl.readFromParcel(android.os.Parcel)
02-19 13:04:39.039 10824 10824 I scrcpy  : -- public void android.view.SurfaceControl.release()
02-19 13:04:39.039 10824 10824 I scrcpy  : -- public boolean android.view.SurfaceControl.removeOnReparentListener(android.view.SurfaceControl$OnReparentListener)
02-19 13:04:39.039 10824 10824 I scrcpy  : -- public void android.view.SurfaceControl.setDebugRelease(boolean)
02-19 13:04:39.040 10824 10824 I scrcpy  : -- public java.lang.String android.view.SurfaceControl.toString()
02-19 13:04:39.040 10824 10824 I scrcpy  : -- public void android.view.SurfaceControl.writeToParcel(android.os.Parcel,int)

@rom1v please take it as refer, thanks~

@slimsymphony
Copy link

Seems "public static void android.view.SurfaceControl.setDisplaySurface(android.os.IBinder,android.view.Surface)" keeps no change, so the error occurs from "displayToken must not be null".

@CankingApp
Copy link

CankingApp commented Feb 19, 2021

debug the source code , when SurfaceControl.createDisplay("my name", true) was executed, find the error log text below int logcat .

02-19 14:49:43.824 741 1870 E SurfaceFlinger: Only privileged processes can create a secure display

so, modify the parameter “secure“ to false in Android 12.

and re build the project to test, this problem was fixed.

@rom1v
Copy link
Collaborator

rom1v commented Feb 19, 2021

The source code of Android 12 is not available yet, but they probably remove AID_SHELL (here or somewhere else):
https://android.googlesource.com/platform/frameworks/native/+/d40036791bd882431bafb7e5d3401a1661c6e459/services/surfaceflinger/SurfaceFlinger.cpp#4836

@rom1v
Copy link
Collaborator

rom1v commented Feb 19, 2021

Refs #1935

@AfzalivE
Copy link
Author

Sorry, I wasn't available to do that yesterday.

In this case, maybe there's a better way that @rom1v knows, otherwise the createDisplay call with secure = false works. I don't understand the implications of that flag though. Do you think it would be valuable to have a special case for Android 12 where secure = false is passed?

rom1v added a commit that referenced this issue Feb 19, 2021
Since Android 12, secure displays could not be created with shell
permissions anymore.

Refs commit 1fdde49
Fixes #2129 <#2129>
@rom1v
Copy link
Collaborator

rom1v commented Feb 19, 2021

In this case, maybe there's a better way that @rom1v knows, otherwise the createDisplay call with secure = false works.

No, I have no other solution. (I have this change in mind since #1935, but the Android 12 preview was not available at that time.)

Do you think it would be valuable to have a special case for Android 12 where secure = false is passed?

Yes, I guess I will merge something like this: android12_nosecure

Unfortunately, #36 will be "unsolved".

rom1v added a commit that referenced this issue Feb 19, 2021
Since Android 12, secure displays could not be created with shell
permissions anymore.

Refs commit 1fdde49
Fixes #2129 <#2129>
@rom1v
Copy link
Collaborator

rom1v commented Feb 19, 2021

Other than that, everything works correctly on Android 12?

@AfzalivE
Copy link
Author

Other than that, everything works correctly on Android 12?

Tried all the shortcuts and wifi debugging, everything there seemed fine.

@rom1v
Copy link
Collaborator

rom1v commented Feb 20, 2021

Thank you 👍

@AndroidDeveloperLB
Copy link

@rom1v I actually found various issues, even on third party apps. For example, on Nova launcher, dragging an app from the app drawer will crash it...

Sadly this occurs on Windows 10 too. I can't use ScrCpy with Android 12 at all.

Will it be possible for scrCpy to still work? Or you think Android should change? If so, can you please create something on the issue tracker:
https://issuetracker.google.com/issues/new
?
I will star it.

I love this tool!
Is there any workaround? I tried adb-wireless too...
Would rooting help?

@rom1v
Copy link
Collaborator

rom1v commented Feb 20, 2021

For example, on Nova launcher, dragging an app from the app drawer will crash it...

What if you drag it without scrcpy? What is the error (in adb logcat)?

@AndroidDeveloperLB
Copy link

AndroidDeveloperLB commented Feb 20, 2021

@rom1v It has nothing to do with scrcpy. I drag the camera app, and Nova launcher crashes, for example, but for some apps it is ok.
Sadly scrcpy doesn't work at all anymore for Android 12 (tested on Windows OS with Pixel 4). I can see its processes start and soon close. If you wish I can show you more information. Just tell me how and what.
I hope that those who work on this great tool (you, probably, right?) will figure out how to make it work on Android 12, and that if there is some clue about this that makes it impossible on Android 12, make a request on the issue tracker.

@AfzalivE
Copy link
Author

AfzalivE commented Feb 20, 2021

It has nothing to do with scrcpy. I drag the camera app, and Nova launcher crashes, for example, but for some apps it is ok.
Sadly scrcpy doesn't work at all anymore for Android 12 (tested on Windows OS with Pixel 4).

I might be misunderstanding what you're saying but we weren't talking about the stability of Android 12. That's in its first developer preview so bugs are expected. We were talking about the stability of scrcpy working with Android 12 after the fix discussed in this thread. Could you try the fix?

@AndroidDeveloperLB
Copy link

@AfzalivE Wait you mean there is a fix to the crash? I don't see it mentioned here.
How can I get the fix? Can you please publish it here as executable files ?

@ssalenik
Copy link

ssalenik commented Mar 3, 2021

FYI, for this check to work on the developer preview:

boolean secure = Build.VERSION.SDK_INT <= Build.VERSION_CODES.R;

Need to add, eg:

var secure = Build.VERSION.SDK_INT <= Build.VERSION_CODES.R && !Build.VERSION.CODENAME.contains('S', true)

Since the preview still reports the the SDK as 30

@AndroidDeveloperLB
Copy link

Is this issue on scrcpy itself, or because of Android 12 ?
I think there is now a new version of it:
https://www.androidpolice.com/2021/03/03/android-12-developer-preview-1-1-is-here-with-bug-fixes-a-plenty/

Would that help?

@dsandler
Copy link

dsandler commented Mar 4, 2021

var secure = Build.VERSION.SDK_INT <= Build.VERSION_CODES.R && !Build.VERSION.CODENAME.contains('S', true)

Since the preview still reports the the SDK as 30

In general, using BuildCompat.isAtLeastS() is the robust way to do this sort of check.

@rom1v
Copy link
Collaborator

rom1v commented Mar 4, 2021

BuildCompat is in androidx, not available from scrcpy server 😉

@rom1v
Copy link
Collaborator

rom1v commented Mar 12, 2021

Cross-ref: https://issuetracker.google.com/issues/180777866

EDIT: Here is the bug report content:

In Android 12 preview, shell permissions are not sufficient anymore to capture "protected" screen content. As a consequence, scrcpy (of which I'm the author) could not mirror some apps anymore like it did for Android <= 11. Note that it's just about the "secure" flag, the content with DRM was still not viewable.

IMO, shell permissions are sufficiently privileged to allow capturing such content. Some apps like Silence or Signal allow to disable this "screen protection", but some apps don't provide such a settings, while it's still convenient to control them from the computer with screen mirroring.

Could you bring back this ability with shell permission on Android 12?

Ref: #2129

Thank you,
Regards

* Are you an Android developer?" Yes
* Is this a regression from Android 11 to 12? Yes
* What are the steps to reproduce the problem? Start scrcpy to mirror the device on the computer
* Issue Category: Framework (platform) / Runtime Permissions
* What was the expected result? For convenience, shell permissions should allow to mirror content having FLAG_SECURE (like it is the case since at least Android 5)
* What was the actual result? Could not create a secure display with shell permissions: E SurfaceFlinger: Only privileged processes can create a secure display
* Relevant logcat output: See https://github.com/Genymobile/scrcpy/issues/2129

The bug has been assigned, and its state has been set to:

Blocked by -/1 180941209 [Details unavailable.]

I have no more details.

@AndroidDeveloperLB
Copy link

AndroidDeveloperLB commented Mar 12, 2021

@rom1v What is this link? I can't reach it...

@moghingold
Copy link

In case anyone needs to know of the one workaround that does exist, if you are comfortable with rooting your device you can follow these instructions:

  • Install Magisk
  • Enable "zygisk" in Magisk settings
  • Download the latest LPosed zygisk release
  • Go to Magisk modules and choose "install from storage", then install LPosed and reboot
  • Pull down the notification drawer and tap on the "LPosed loaded" notification to open LPosed Manager
  • Install Disable-FLAG_SECURE
  • Enable the Disable-FLAG_SECURE module in LPosed
  • Scroll through your installed apps and check any app that uses flag_secure that you wish to be able to view through scrcpy
  • Reboot

Unfortunately disabling flag_secure also means that the apps you disable it for will be, well, insecure. It will be possible to take screenshots of them and so forth. If any attacks targeting Android use the screen as their attack vector, the added security of flag_secure will no longer protect you.

Rooting your device may also interfere with things like banking apps. To work around that, you can install an additional Magisk module called "Shamiko" which will help your device bypass SafetyNet checks. I have also installed the LPosed module "HiddenCore" but I don't know if this is actually doing anything for me that Shamiko isn't, since it hasn't been updated in quite some time and doesn't even seem to be in the LPosed repository anymore.

Hopefully this information will prove useful for users with disabilities who rely on scrcpy to use their mobile devices.

@RiggiG
Copy link

RiggiG commented Jun 23, 2023

Root users may also use this fork which simply runs the scrcpy-server as the system user: #3049 (comment)

@rom1v rom1v mentioned this issue Jul 20, 2023
2 tasks
@rom1v rom1v mentioned this issue Sep 1, 2023
@rom1v rom1v mentioned this issue Apr 16, 2024
2 tasks
@rom1v rom1v changed the title Crash on Android 12 Developer Preview 1 Crash on Android 12 Developer Preview 1 (secure flag) Aug 20, 2024
This was referenced Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests