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

AssertionError: Logical partition metadata has invalid geometry magic signature. #61

Closed
Fyramiz opened this issue Feb 18, 2024 · 1 comment

Comments

@Fyramiz
Copy link

Fyramiz commented Feb 18, 2024

Device:N-one(aka incar) npad air(codename NpadAir)
NOTE:i extracted pac file then made a zip out from it
Log:
Dumpyara
Version 1.0.2

[INFO] Step 1 - Extracting archive
[INFO] Step 2 - Preparing partition images
[INFO] Pattern payload.bin not found
[INFO] Found multipartition image: super.img
[INFO] Failed to unsparse super.img
Traceback (most recent call last):
File "/workspace/.pyenv_mirror/user/3.12.1/bin/dumpyara", line 8, in
sys.exit(main())
^^^^^^
File "/workspace/.pyenv_mirror/user/current/lib/python3.12/site-packages/dumpyara/main.py", line 40, in main
output_path = dumpyara(args.file, output, args.debug)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/workspace/.pyenv_mirror/user/current/lib/python3.12/site-packages/dumpyara/dumpyara.py", line 33, in dumpyara
step_2(extracted_archive_path, raw_images_path)
File "/workspace/.pyenv_mirror/user/current/lib/python3.12/site-packages/dumpyara/steps/step_2.py", line 43, in step_2
func(multipart_image, raw_images_path)
File "/workspace/.pyenv_mirror/user/current/lib/python3.12/site-packages/dumpyara/utils/multipartitions.py", line 32, in extract_super
lpunpack(image, output_dir)
File "/workspace/.pyenv_mirror/user/current/lib/python3.12/site-packages/liblp/partition_tools/lpunpack.py", line 87, in lpunpack
metadata = ReadMetadata(image, slot)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/workspace/.pyenv_mirror/user/current/lib/python3.12/site-packages/liblp/reader.py", line 275, in ReadMetadata
geometry = ReadLogicalPartitionGeometry(fd)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/workspace/.pyenv_mirror/user/current/lib/python3.12/site-packages/liblp/reader.py", line 97, in ReadLogicalPartitionGeometry
geometry = ReadPrimaryGeometry(fd)
^^^^^^^^^^^^^^^^^^^^^^^
File "/workspace/.pyenv_mirror/user/current/lib/python3.12/site-packages/liblp/reader.py", line 84, in ReadPrimaryGeometry
return ParseGeometry(buffer)
^^^^^^^^^^^^^^^^^^^^^
File "/workspace/.pyenv_mirror/user/current/lib/python3.12/site-packages/liblp/reader.py", line 54, in ParseGeometry
assert geometry.magic == LP_METADATA_GEOMETRY_MAGIC,
AssertionError: Logical partition metadata has invalid geometry magic signature.

@AntoninoScordino
Copy link
Contributor

File "/workspace/.pyenv_mirror/user/3.12.1/bin/dumpyara", line 8, in
sys.exit(main())
^^^^^^

Are you referencing to the Python rewrite of this project (SebaUbuntu-python/dumpyara)? Note that said rewrite does not have full support for all possible archives (in your case, .pac), hence the reason why it failed here.

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