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

unpack/repack of vbmeta.img doesn't work #24

Closed
Tkkg1994 opened this issue Mar 25, 2019 · 2 comments
Closed

unpack/repack of vbmeta.img doesn't work #24

Tkkg1994 opened this issue Mar 25, 2019 · 2 comments

Comments

@Tkkg1994
Copy link

Hey :)

I've successfully unpacked my vbmeta.img and also repacked it. But one thing doesn't work:

As soon as you set algorithm_type = 0 you'll get this issue:

> Task :packClear FAILED
Exception in thread "main" java.io.IOException: Is a directory
        at sun.nio.ch.FileDispatcherImpl.read0(Native Method)
        at sun.nio.ch.FileDispatcherImpl.read(FileDispatcherImpl.java:46)
        at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:223)
        at sun.nio.ch.IOUtil.read(IOUtil.java:197)
        at sun.nio.ch.FileChannelImpl.read(FileChannelImpl.java:159)
        at sun.nio.ch.ChannelInputStream.read(ChannelInputStream.java:65)
        at sun.nio.ch.ChannelInputStream.read(ChannelInputStream.java:109)
        at sun.nio.ch.ChannelInputStream.read(ChannelInputStream.java:103)
        at java.nio.file.Files.read(Files.java:3105)
        at java.nio.file.Files.readAllBytes(Files.java:3158)
        at cfig.Avb.packVbMeta(Avb.kt:324)
        at cfig.Avb.packVbMetaWithPadding(Avb.kt:374)
        at cfig.Avb.packVbMetaWithPadding$default(Avb.kt:373)
        at cfig.RKt.main(R.kt:19)

* What went wrong:
Execution failed for task ':packClear'.
> Process 'command '/usr/lib/jvm/java-8-openjdk-amd64/bin/java'' finished with non-zero exit value 1

Everything else works perfectly fine

@cfig
Copy link
Owner

cfig commented Mar 26, 2019

oh yes, i reproduced this problem

@cfig
Copy link
Owner

cfig commented Mar 26, 2019

Hi Tkkg1994,
I submitted a fix for this:

fix issue #3: packing error when "algorithm_type = 0"

Please have a try with latest 'master' branch.

@cfig cfig closed this as completed Mar 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants