-
Notifications
You must be signed in to change notification settings - Fork 11.1k
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
magiskboot: add basic support for vendor_boot v4 #6620
base: master
Are you sure you want to change the base?
Conversation
6374397
to
bfda96f
Compare
BTW, in the vendor ramdisk table, there is |
I thought about that too, but it isn't mandatory to set. Google doesn't even do it in their own OTAs. Maybe we should use numbers+type. |
accroding to the document, vendor ramdisk name must be set and unique. |
https://source.android.com/docs/core/architecture/partitions/vendor-boot-partitions
|
You are right. I was just a bit confused, because the name of the "default" fragment isn't set in the google OTAs, but others are. I will change the naming scheme. |
There can never be a fragment with |
|
doubt if ramdisk_name is null-terminated |
That's what i meant. I think the confusions comes from the example they give in the last paragraph of this, where you have a fragment that isn't explicitly specified. And according to this, it's null-terminated. |
no. its not null-terminated https://android.googlesource.com/platform/system/tools/mkbootimg/+/refs/heads/master/mkbootimg.py#317 |
this indicates the name always takes 32 bytes, but it does not mean its null-terminated. |
It means the |
after disscusion, we decided to add an additional flag to cli to explictly distinguish vendor boot and boot so as to avoid user from accidentially patching vendor boot. In other words, by default, magiskboot should not accept vendor boot unless |
Sounds good to me. Do you guys want to do this or should I do it? |
feel free to implement |
Why would it need a --vendor switch when the format already uses a different header magic? Shouldn't the return value and boot_patch script just be made to reject VNDRBOOT magic? Similar things are done to support CHROMEOS magic: E.g. |
Because we don't actually want to unpack it. And mostly, returning 3 is not friendly to shell scripts (as we usually |
I think it's still reasonable where we have a return of 2 signifying CHROMEOS, so catching VNDRBOOT there with a return of 3 and aborting feels like a more consistent approach, but if everyone else has discussed it and agrees that adding some new switch is somehow cleaner instead, well then I guess we'll have to disagree but it is what it is. 👍 |
* un- and repack multiple ramdisks * un- and repack bootconfig
cc1f3e7
to
452f2a4
Compare
This comment was marked as resolved.
This comment was marked as resolved.
Since it looks like the merge conflicts have been resolved, any hope of this getting merged before the next release? |
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
@topjohnwu can this please be addressed again? It's going on a year now sitting here approved by @yujincheng08. |
e46cdcd
to
8e7186e
Compare
Whoever wants can grab the patched magiskboot builds here. |
Besides @topjohnwu personal conflict of interests are there any other obstacles for this being merged ? |
There's zero conflict of interest for this one. Not sure why nothing's happening. Hopefully @topjohnwu or someone in the know can comment on if there are more changes wanted before it's ready for merge from their point of view. |
ec54aed
to
f61827c
Compare
This PR addresses Issue #6460 and adds the following functionalities:
* un- and repack multiple ramdisks
* un- and repack bootconfig
There is currently no support for adding or removing ramdisk fragments.