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

add Qualcomm Snapdragon bootloader for Android. #471

Merged
merged 7 commits into from
Sep 2, 2021

Conversation

armijnhemel
Copy link
Collaborator

This file processes the header of the Qualcomm Snapdragon boot loader as used on some Android devices.

@KOLANICH
Copy link
Contributor

KOLANICH commented Apr 9, 2021

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.

@armijnhemel
Copy link
Collaborator Author

Could you specify the whole format, not only its header?

No, I cannot, as the contents could be anything: ELF files, proprietary Qualcomm formats, etc.

@KOLANICH
Copy link
Contributor

KOLANICH commented Apr 9, 2021

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.ksy Outdated Show resolved Hide resolved
archive/android_bootldr.ksy Outdated Show resolved Hide resolved
archive/android_bootldr.ksy Outdated Show resolved Hide resolved
archive/android_bootldr.ksy Outdated Show resolved Hide resolved
archive/android_bootldr.ksy Outdated Show resolved Hide resolved
archive/android_bootldr.ksy Outdated Show resolved Hide resolved
archive/android_bootldr.ksy Outdated Show resolved Hide resolved
archive/android_bootldr.ksy Outdated Show resolved Hide resolved
archive/android_bootldr.ksy Outdated Show resolved Hide resolved
@generalmimon
Copy link
Member

- id: name
size: 64
type: strz
encoding: UTF-8
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@armijnhemel Doesn't

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?

Copy link
Collaborator Author

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.

generalmimon added a commit to armijnhemel/kaitai_struct_formats that referenced this pull request Sep 2, 2021
... per the same naming convention as used for
kaitai-io#471
generalmimon added a commit that referenced this pull request Sep 2, 2021
* 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 <petr.pucil@seznam.cz>
@generalmimon generalmimon merged commit be2746a into kaitai-io:master Sep 2, 2021
ZetaTwo pushed a commit to ZetaTwo/kaitai_struct_formats that referenced this pull request May 17, 2022
* 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 <petr.pucil@seznam.cz>
ZetaTwo pushed a commit to ZetaTwo/kaitai_struct_formats that referenced this pull request May 17, 2022
* 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 <petr.pucil@seznam.cz>
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

Successfully merging this pull request may close these issues.

3 participants