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

how to fix pack boot V3 #59

Closed
Leminh8686 opened this issue Apr 26, 2021 · 6 comments
Closed

how to fix pack boot V3 #59

Leminh8686 opened this issue Apr 26, 2021 · 6 comments

Comments

@Leminh8686
Copy link

pls help me pack boot.img.v3 (android11)

Exception in thread "main" java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at kotlin.reflect.jvm.internal.calls.CallerImpl$Method.callMethod(CallerImpl.kt:97)
at kotlin.reflect.jvm.internal.calls.CallerImpl$Method$Instance.call(CallerImpl.kt:113)
at kotlin.reflect.jvm.internal.KCallableImpl.call(KCallableImpl.kt:108)
at cfig.packable.PackableLauncherKt.main(PackableLauncher.kt:92)
Caused by: java.nio.BufferOverflowException
at java.base/java.nio.HeapByteBuffer.put(HeapByteBuffer.java:221)
at cfig.bootimg.Common$Companion.writePaddedFile(Common.kt:287)
at cfig.bootimg.v3.BootV3.pack(BootV3.kt:104)
at cfig.packable.BootImgParser.pack(BootImgParser.kt:57)
... 8 more

@cfig
Copy link
Owner

cfig commented Apr 26, 2021

Have you tried latest code from 'master' branch?
Suppose master branch should have fixed the problem.
If not, please attach your boot.img here, and I can have a try.

Thanks~

@Leminh8686
Copy link
Author

Here sir https://drive.google.com/file/d/1os3cuULGo-36QUyibc8kMTKzgcqCLIOz/view?usp=drivesdk

I can unpack but can't not repack

cfig added a commit that referenced this issue Apr 26, 2021
@cfig
Copy link
Owner

cfig commented Apr 27, 2021

Can you have a try with latest 'rc' branch?

git fetch origin
git checkout origin/rc

and then do unpack and pack.

@Leminh8686
Copy link
Author

Can you have a try with latest 'rc' branch?

git fetch origin
git checkout origin/rc

and then do unpack and pack.

Yes latest bro.
I use on windowns and linux

@cfig
Copy link
Owner

cfig commented Apr 27, 2021

does it work?

cfig added a commit that referenced this issue Apr 28, 2021
cfig added a commit that referenced this issue Apr 28, 2021
cfig added a commit that referenced this issue May 2, 2021
aosp: mkdtboimg,mkbootimg
test: Issue #59
cfig added a commit that referenced this issue May 2, 2021
aosp: mkdtboimg,mkbootimg
test: Issue #59
parser: support boot-debug and vendor_boot-debug
@cfig
Copy link
Owner

cfig commented Jun 5, 2021

Fixed and added into integration test case.

@cfig cfig closed this as completed Jun 5, 2021
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