-
Notifications
You must be signed in to change notification settings - Fork 203
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
add Qualcomm Snapdragon bootloader for Android. #471
Conversation
Could you specify the whole format, not only its header? Having a non-implemented formats in the main repo does harm by creating a false impression that the format is specified, while it isn't. |
No, I cannot, as the contents could be anything: ELF files, proprietary Qualcomm formats, etc. |
At least splitting the file into chunks each one has a well-defined size and position is neeeded. I mean there should be instances using which we can get raw bytes for each chunk. |
archive/android_bootldr_qcom.ksy
Outdated
- id: name | ||
size: 64 | ||
type: strz | ||
encoding: UTF-8 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@armijnhemel Doesn't
kaitai_struct_formats/archive/android_asus_bootldr.ksy
Lines 14 to 15 in 82d9493
devices. The encoding is ASCII, because the `releasetools.py` script | |
is written using Python 2, where the default encoding is ASCII. |
in fact apply here as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could very well be. I am not entirely sure though and perhaps it is a silly comment. All the files I have tested with so far had ASCII characters.
... per the same naming convention as used for kaitai-io#471
* add Huawei Bootloader packed image format * huawei boot image: introduce version type, rewrite entries * android_img_huawei: rename to `android_bootldr_huawei` ... per the same naming convention as used for #471 * android_bootldr_huawei: shorten commit hash * android_bootldr_huawei: fix format description, link to samples * android_bootldr_huawei: fix indentation * android_bootldr_huawei: take `meta_hdr_sz` into account, rename headers * android_bootldr_huawei: make `image_version` a string, ASCII enc * android_bootldr_huawei: parse `body` in `image_hdr_entry`, rename fields * android_bootldr_huawei: add info where all factory images are Co-authored-by: Petr Pucil <[email protected]>
* add Huawei Bootloader packed image format * huawei boot image: introduce version type, rewrite entries * android_img_huawei: rename to `android_bootldr_huawei` ... per the same naming convention as used for kaitai-io#471 * android_bootldr_huawei: shorten commit hash * android_bootldr_huawei: fix format description, link to samples * android_bootldr_huawei: fix indentation * android_bootldr_huawei: take `meta_hdr_sz` into account, rename headers * android_bootldr_huawei: make `image_version` a string, ASCII enc * android_bootldr_huawei: parse `body` in `image_hdr_entry`, rename fields * android_bootldr_huawei: add info where all factory images are Co-authored-by: Petr Pucil <[email protected]>
* add Huawei Bootloader packed image format * huawei boot image: introduce version type, rewrite entries * android_img_huawei: rename to `android_bootldr_huawei` ... per the same naming convention as used for kaitai-io#471 * android_bootldr_huawei: shorten commit hash * android_bootldr_huawei: fix format description, link to samples * android_bootldr_huawei: fix indentation * android_bootldr_huawei: take `meta_hdr_sz` into account, rename headers * android_bootldr_huawei: make `image_version` a string, ASCII enc * android_bootldr_huawei: parse `body` in `image_hdr_entry`, rename fields * android_bootldr_huawei: add info where all factory images are Co-authored-by: Petr Pucil <[email protected]>
This file processes the header of the Qualcomm Snapdragon boot loader as used on some Android devices.