Libaums - 无法打开zip存档'/system/framework/fipstimakeystore.jar'

时间:2018-02-18 15:52:33

标签: android usb

我在Android上使用libaums将文件写入USB记忆棒。一切正常但在app启动时我在logcat中遇到了大量错误,由FileSystemFactory.registerFileSystem触发:

public class CopyActivity extends AppCompatActivity
{
    static {
-->     FileSystemFactory.registerFileSystem(new JavaFsFileSystemCreator());
    }

[...]

logcat的要点如下:

02-18 16:22:09.318 23778-23778/com.tmpsystems.chipandship I/System.out: waiting for debugger to settle...
02-18 16:22:09.518 23778-23778/com.tmpsystems.chipandship I/System.out: debugger has settled (1341)
02-18 16:22:09.528 23778-23778/com.tmpsystems.chipandship D/ContextImpl: ContextImpl running for user UserHandle{0} 0
02-18 16:22:09.748 23778-23778/com.tmpsystems.chipandship W/art: Failed to open zip archive '/system/framework/fipstimakeystore.jar': I/O Error
[...]
Unable to open '/system/framework/fipstimakeystore.jar': No such file or directory
[...]
02-18 16:22:09.868 23778-23778/com.tmpsystems.chipandship W/System.err: java.io.FileNotFoundException: /jacoco.exec: open failed: EROFS (Read-only file system)
[...]
02-18 16:22:09.878 23778-23778/com.tmpsystems.chipandship W/System.err:     at com.github.mjdev.libaums.fs.FileSystemFactory.registerFileSystem(FileSystemFactory.java)
02-18 16:22:09.878 23778-23778/com.tmpsystems.chipandship W/System.err:     at com.tmpsystems.chipandship.CopyActivity.<clinit>(CopyActivity.java:44)

这似乎不会影响复制到USB记忆棒,但是我仍然想了解它是什么。

1 个答案:

答案 0 :(得分:0)

这看起来很奇怪。我真的不知道它是什么以及可能导致这种情况的原因。它看起来与libaums几乎无关,尽管例外情况另有说法。

JaCoCo是我用来为codecov创建代码覆盖率统计数据的工具。但我不知道为什么这会干扰你调试/启动应用程序。如果你也在运行示例文件管理器,那么你能得到它吗?你可以在删除JaCoCo之后再试一次:

https://github.com/magnusja/libaums/blob/acbd724223a91d392d98aa053ca5d5ab39783161/libaums/build.gradle#L2

https://github.com/magnusja/libaums/blob/a9fe9e54e6271577430537bd71f0784b77c9e229/build.gradle#L15

相关问题