bytedance / Fastbot_Android

Fastbot(2.0) is a model-based testing tool for modeling GUI transitions to discover app stability problems
Other
1.01k stars 235 forks source link

在小米10上执行报错 java.io.FileNotFoundException: /data/system/theme_config/theme_compatibility.xml #262

Open mykaneki opened 6 months ago

mykaneki commented 6 months ago

➜ Fastbot_Android git:(main) ✗ adb shell CLASSPATH=/sdcard/monkeyq.jar:/sdcard/framework.jar:/sdcard/fastbot-thirdpart.jar exec app_process /system/bin com.android.commands.monkey.Monkey -p XXX --agent reuseq --running-minutes 1 --throttle 500 -v -v > log2.txt [Fastbot] ERROR findMethod() error, NoSuchMethodException happened, there is no such method: setActivityController 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:575) at java.io.FileInputStream.(FileInputStream.java:160) at java.io.FileInputStream.(FileInputStream.java:115) at java.io.FileReader.(FileReader.java:58) 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.(ThemeCompatibility.java:31) at miui.content.res.ThemeCompatibility.isThemeEnabled(ThemeCompatibility.java:111) at android.content.res.MiuiResourcesImpl.(MiuiResourcesImpl.java:41) at android.content.res.MiuiResources.(MiuiResources.java:58) at android.content.res.IMiuiResourceImpl.createResources(IMiuiResourceImpl.java:13) at android.content.res.ThemeManagerStub.createMiuiResources(ThemeManagerStub.java:56) at android.content.res.Resources.getSystem(Resources.java:235) at android.app.ActivityManager.isHighEndGfx(ActivityManager.java:1097) at android.view.ThreadedRenderer.initForSystemProcess(ThreadedRenderer.java:217) at android.app.ActivityThread.systemMain(ActivityThread.java:8035) at java.lang.reflect.Method.invoke(Native Method) at com.android.commands.monkey.utils.ContextUtils.getSystemContext(ContextUtils.java:34) at com.android.commands.monkey.Monkey.getMainApps(Monkey.java:1296) at com.android.commands.monkey.Monkey.run(Monkey.java:724) at com.android.commands.monkey.Monkey.main(Monkey.java:460) at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method) at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:363) Caused by: android.system.ErrnoException: open failed: ENOENT (No such file or directory) at libcore.io.Linux.open(Native Method) at libcore.io.ForwardingOs.open(ForwardingOs.java:567) at libcore.io.BlockGuardOs.open(BlockGuardOs.java:273) at libcore.io.IoBridge.open(IoBridge.java:561) ... 23 more java.lang.IllegalStateException: UiAutomationService android.accessibilityservice.IAccessibilityServiceClient$Stub$Proxy@b87a070already registered! at android.os.Parcel.createExceptionOrNull(Parcel.java:2433) at android.os.Parcel.createException(Parcel.java:2409) at android.os.Parcel.readException(Parcel.java:2392) at android.os.Parcel.readException(Parcel.java:2334) at android.view.accessibility.IAccessibilityManager$Stub$Proxy.registerUiTestAutomationService(IAccessibilityManager.java:830) at android.app.UiAutomationConnection.registerUiTestAutomationServiceLocked(UiAutomationConnection.java:532) at android.app.UiAutomationConnection.connect(UiAutomationConnection.java:109) at android.app.UiAutomation.connectWithTimeout(UiAutomation.java:324) at android.app.UiAutomation.connect(UiAutomation.java:276) at com.android.commands.monkey.source.MonkeySourceApeNative.connect(MonkeySourceApeNative.java:280) at com.android.commands.monkey.source.MonkeySourceApeNative.(MonkeySourceApeNative.java:254) at com.android.commands.monkey.Monkey.run(Monkey.java:777) at com.android.commands.monkey.Monkey.main(Monkey.java:460) at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method) at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:363) Caused by: android.os.RemoteException: Remote stack trace: at com.android.server.accessibility.UiAutomationManager.registerUiTestAutomationServiceLocked(UiAutomationManager.java:102) at com.android.server.accessibility.AccessibilityManagerService.registerUiTestAutomationService(AccessibilityManagerService.java:1039) at android.view.accessibility.IAccessibilityManager$Stub.onTransact(IAccessibilityManager.java:404) at android.os.Binder.execTransactInternal(Binder.java:1182) at android.os.Binder.execTransact(Binder.java:1146)