scrcpy: Xiaomi MiUI: java.io.FileNotFoundException: /data/system/theme_config/theme_compatibility.xml
OS: Ubuntu 16.04 Android: Version 5.0.2 Mode of running: Run scrcpy without installation
On running the program without installation, the bottom keys are missing from the display (Please zoom in the image):
Please check the log that appears after executing ./run x
INFO: scrcpy 1.12 <https://github.com/Genymobile/scrcpy>
551 KB/s (26234 bytes in 0.046s)
java.io.FileNotFoundException: /data/system/theme_config/theme_compatibility.xml: open failed: ENOENT (No such file or directory)
at libcore.io.IoBridge.open(IoBridge.java:456)
at java.io.FileInputStream.<init>(FileInputStream.java:76)
at java.io.FileInputStream.<init>(FileInputStream.java:103)
at java.io.FileReader.<init>(FileReader.java:66)
at miui.content.res.ThemeCompatibilityLoader.getVersion(ThemeCompatibilityLoader.java:108)
at miui.content.res.ThemeCompatibilityLoader.getConfigDocumentTree(ThemeCompatibilityLoader.java:126)
at miui.content.res.ThemeCompatibilityLoader.loadConfig(ThemeCompatibilityLoader.java:59)
at miui.content.res.ThemeCompatibility.<clinit>(ThemeCompatibility.java:31)
at miui.content.res.ThemeCompatibility.isThemeEnabled(ThemeCompatibility.java:111)
at android.content.res.MiuiResources.<clinit>(MiuiResources.java:29)
at android.content.res.Resources.getSystem(Resources.java:259)
at android.app.LoadedApk.<init>(LoadedApk.java:197)
at android.app.ContextImpl.createSystemContext(ContextImpl.java:2214)
at android.app.ActivityThread.getSystemContext(ActivityThread.java:1812)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.genymobile.scrcpy.Workarounds.fillAppInfo(Workarounds.java:66)
at com.genymobile.scrcpy.ScreenEncoder.streamScreen(ScreenEncoder.java:56)
at com.genymobile.scrcpy.Server.scrcpy(Server.java:34)
at com.genymobile.scrcpy.Server.main(Server.java:163)
at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:329)
Caused by: android.system.ErrnoException: open failed: ENOENT (No such file or directory)
at libcore.io.Posix.open(Native Method)
at libcore.io.BlockGuardOs.open(BlockGuardOs.java:186)
at libcore.io.IoBridge.open(IoBridge.java:442)
... 21 more
INFO: Initial texture: 1080x1920
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 1
- Comments: 24
Commits related to this issue
- Do not report workarounds errors Some workarounds are needed on some devices. But applying them may cause exceptions on other devices, where they are not necessary anyway. Do not report these errors... — committed to Genymobile/scrcpy by rom1v 4 years ago
- java.io.FileNotFoundException logged but harmless 'java.io.FileNotFoundException' logged but harmless, properly handling this issue #994 — committed to hafizidev/scrcpy by hafizidev 4 years ago
- Do not report workarounds errors Some workarounds are needed on some devices. But applying them may cause exceptions on other devices, where they are not necessary anyway. Do not report these errors... — committed to testproject-io/scrcpy by rom1v 4 years ago
- Apply workarounds only on error To avoid NullPointerException on some devices, workarounds have been implemented. But these workaround produce (harmless) internal errors causing exceptions to be prin... — committed to Genymobile/scrcpy by rom1v 4 years ago
- Fix XML parsing error when using MIUI 12 on Pocophone X3 \#283 My script uses `AndroidViewClient` but cannot create a `ViewClient` ```python3 from com.dtmilano.android.viewclient import ViewClient ... — committed to Marc--Olivier/AndroidViewClient by Marc--Olivier 4 years ago
- Fix XML parsing error when using MIUI 12 on Pocophone X3 #283 My script uses `AndroidViewClient` but cannot create a `ViewClient` ```python3 from com.dtmilano.android.viewclient import ViewClient d... — committed to Marc--Olivier/AndroidViewClient by Marc--Olivier 4 years ago
- Use system context as base context DONOTMERGE: it causes #994 on Xiaomi devices This allows to make Context.getPackageManager() work. Fixes #4015 <https://github.com/Genymobile/scrcpy/issues/4015> ... — committed to Genymobile/scrcpy by rom1v a year ago
- Disable default stdout/stderr for Xiaomi devices Xiaomi device ROMs print internal errors using e.printStackTRace(), flooding the console with irrelevant errors. To get rid of them, on Xiaomi device... — committed to Genymobile/scrcpy by rom1v 8 months ago
- Disable default stdout/stderr Some devices (mostly Xiaomi) print internal errors using e.printStackTrace(), flooding the console with irrelevant errors. Disable system streams used via System.out an... — committed to Genymobile/scrcpy by rom1v 8 months ago
- Disable default stdout/stderr Some devices (mostly Xiaomi) print internal errors using e.printStackTrace(), flooding the console with irrelevant errors. Disable system streams used via System.out an... — committed to Genymobile/scrcpy by rom1v 8 months ago
- fix(dex): Workaround for systemMain exception on miui * Ref: https://github.com/Genymobile/scrcpy/issues/994 Change-Id: I700cee9418881880941fcf75fd813a1e2037173e — committed to XayahSuSuSu/Android-DataBackup by XayahSuSuSu 4 months ago
棒棒哒~ 我想问这是什么语音开发的 小白 看着啥都想 但是感觉啥都不是 混合语言吗
Use a newer version.
Android 12 requires at least scrcpy v1.18. Just use the latest (1.25 currently).
Yes, that’s expected. Check §“Downscaling quality” here: https://github.com/Genymobile/scrcpy/releases/tag/v1.13
(
scrcpy --render-driver=opengl
should remove the warning, and you’ll get trilinear filtering)