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

FP3 fastboot image TypeError when extracting retrofit super_system #81

Open
lifehackerhansol opened this issue Apr 9, 2024 · 0 comments

Comments

@lifehackerhansol
Copy link

Dumpyara
Version 1.0.4

[INFO] Step 1 - Extracting archive
[INFO] Step 2 - Preparing partition images
[INFO] Pattern *payload.bin* not found
[INFO] Found multipartition image: super_system.img
Traceback (most recent call last):
  File "/home/lifehackerhansol/.local/bin/dumpyara", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/home/lifehackerhansol/.local/pipx/venvs/dumpyara/lib/python3.11/site-packages/dumpyara/main.py", line 40, in main
    output_path = dumpyara(args.file, output, args.debug)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/lifehackerhansol/.local/pipx/venvs/dumpyara/lib/python3.11/site-packages/dumpyara/dumpyara.py", line 45, in dumpyara
    prepare_images(extracted_archive_path, raw_images_path)
  File "/home/lifehackerhansol/.local/pipx/venvs/dumpyara/lib/python3.11/site-packages/dumpyara/steps/prepare_images.py", line 43, in prepare_images
    func(multipart_image, raw_images_path)
  File "/home/lifehackerhansol/.local/pipx/venvs/dumpyara/lib/python3.11/site-packages/dumpyara/utils/multipartitions.py", line 32, in extract_super
    lpunpack(image, output_dir)
  File "/home/lifehackerhansol/.local/pipx/venvs/dumpyara/lib/python3.11/site-packages/liblp/partition_tools/lpunpack.py", line 87, in lpunpack
    metadata = ReadMetadata(image, slot)
               ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/lifehackerhansol/.local/pipx/venvs/dumpyara/lib/python3.11/site-packages/liblp/reader.py", line 294, in ReadMetadata
    AdjustMetadataForSlot(metadata, slot_number)
  File "/home/lifehackerhansol/.local/pipx/venvs/dumpyara/lib/python3.11/site-packages/liblp/reader.py", line 251, in AdjustMetadataForSlot
    UpdatePartitionName(partition, partition_name)
  File "/home/lifehackerhansol/.local/pipx/venvs/dumpyara/lib/python3.11/site-packages/liblp/utility.py", line 81, in UpdatePartitionName
    assert len(name) + 1 <= sizeof(partition.name)
                            ^^^^^^^^^^^^^^^^^^^^^^
TypeError: this type has no size

Test: download FP3 image, repack contents of image folder in a tarball, run dumpyara on tarball

You can find FP3 images here: https://support.fairphone.com/hc/en-us/articles/18896094650513-Installing-Fairphone-OS-Manually

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

1 participant