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):

scrcpy_issue1-min

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

Most upvoted comments

棒棒哒~ 我想问这是什么语音开发的 小白 看着啥都想 但是感觉啥都不是 混合语言吗

Use a newer version.

Caused by: java.lang.IllegalArgumentException: displayToken must not be null

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)