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

Can't use scrcpy #23

Closed
edent opened this issue Mar 22, 2023 · 7 comments
Closed

Can't use scrcpy #23

edent opened this issue Mar 22, 2023 · 7 comments
Labels

Comments

@edent
Copy link

edent commented Mar 22, 2023

This is a weird issue. I can't run scrcpy - it gives the error "ART APEX data files are untrusted."

Only happens on my fltexx - doesn't happen on any other Lineage device.

Any idea what's causing it?

Genymobile/scrcpy#3467

@fragtion
Copy link

fragtion commented Mar 24, 2023

Same problem. On my zeroltexx (SM-G925F) with lineage-19.1-20230322-UNOFFICIAL-zeroltexx.zip

D:\scrcpy>scrcpy -s 192.168.10.142:5555 --video-bit-rate=1M --disable-screensaver --stay-awake --force-adb-forward --show-touches --tcpip -p 27206:27220
scrcpy 2.0 https://github.com/Genymobile/scrcpy
INFO: Device already connected via TCP/IP: 192.168.10.142:5555
D:\ntr\scrcpy\scrcpy-server: 1 file pushed, 0 skipped. 96.4 MB/s (52867 bytes in 0.001s)
ERROR: Server connection failed

logcat:
03-24 18:59:43.797 6105 6105 D AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 0 <<<<<<
03-24 18:59:43.804 6105 6105 I AndroidRuntime: Using default boot image
03-24 18:59:43.804 6105 6105 I AndroidRuntime: Leaving lock profiling enabled
03-24 18:59:43.808 6105 6105 W app_process: ART APEX data files are untrusted.
03-24 18:59:43.808 6105 6105 E app_process: Could not open boot oat file for extracting boot class path: File /apex/com.android.art/javalib/boot.art:/system/framework/boot-framework.art!/system/etc/arm64/boot-image.vdex does not exist.
03-24 18:59:43.808 6105 6105 E AndroidRuntime: JNI_CreateJavaVM failed

@fragtion
Copy link

fragtion commented Mar 25, 2023

Same problem when trying to use Vysor, btw. So it's likely a LineageOS issue, not any of these programs? (RustDesk & AnyDesk seem to work, though)

03-25 15:48:20.297 3616 3692 I RoleService: Granting default roles...
03-25 15:48:20.350 7225 7225 D AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 0 <<<<<<
03-25 15:48:20.355 7225 7225 I AndroidRuntime: Using default boot image
03-25 15:48:20.356 7225 7225 I AndroidRuntime: Leaving lock profiling enabled
03-25 15:48:20.360 7225 7225 W app_process64: ART APEX data files are untrusted.
03-25 15:48:20.360 7225 7225 E app_process64: Could not open boot oat file for extracting boot class path: File /apex/com.android.art/javalib/boot.art:/system/framework/boot-framework.art!/system/etc/arm64/boot-image.vdex does not exist.
03-25 15:48:20.360 7225 7225 E AndroidRuntime: JNI_CreateJavaVM failed
03-25 15:48:20.421 7228 7228 D ProcessState: Binder ioctl to enable oneway spam detection failed: Invalid argument
03-25 15:48:20.438 0 0 I [5: cmd: 7228] binder: 7228:7228 ioctl 40046210 7fec297f94 returned -22
03-25 15:48:20.523 0 0 I : [0: kworker/u16:6: 3493] vfsspi_work_func_debug ldo:3, sleep:0, irq:0, tz:1, type:viper, cnt_irq:0, adm: 0
03-25 15:48:20.649 7237 7237 D AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 0 <<<<<<
03-25 15:48:20.655 7237 7237 I AndroidRuntime: Using default boot image
03-25 15:48:20.655 7237 7237 I AndroidRuntime: Leaving lock profiling enabled
03-25 15:48:20.659 7237 7237 W app_process64: ART APEX data files are untrusted.
03-25 15:48:20.659 7237 7237 E app_process64: Could not open boot oat file for extracting boot class path: File /apex/com.android.art/javalib/boot.art:/system/framework/boot-framework.art!/system/etc/arm64/boot-image.vdex does not exist.
03-25 15:48:20.659 7237 7237 E AndroidRuntime: JNI_CreateJavaVM failed

@fakemanoan fakemanoan added the bug Something isn't working label Mar 27, 2023
@edent
Copy link
Author

edent commented Apr 28, 2023

Still an issue on 20230416.

@fakemanoan
Copy link
Owner

Issue will be resolved in latest upcoming Lineage 20 build

@fwiep
Copy link

fwiep commented Jan 5, 2024

Issue will be resolved in latest upcoming Lineage 20 build

That is good news, but could you please elaborate on this victory? Was there a recent change on the LineageOS side, or did you alter your own build procedure? Does this fix also apply for LineageOS 19 custom builds?

I would really like to be able to use scrcpy once again with my Android 12 devices; your comment is the first shred of hope in a long time.

Thanks,
FWieP

@fakemanoan
Copy link
Owner

I noticed randomly when doing other debugging with some art changes I made that when adb had root, scrcpy started to work (rooted debugging in dev options).

It seems to be a usb.rc file issue relating to stopping adbd (i think?). Commit that fixed the issue: samsungexynos7420/android_device_samsung_universal7420-common@f367a42

Hope this helps.

@fakemanoan fakemanoan added fixed and removed bug Something isn't working labels Jan 6, 2024
@edent
Copy link
Author

edent commented Jan 11, 2024

All works perfectly. Many thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants