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 when Running aospdtgen on MIUI Dump #69

Open
RuslanYestemessov opened this issue Apr 3, 2024 · 3 comments
Open

AssertionError when Running aospdtgen on MIUI Dump #69

RuslanYestemessov opened this issue Apr 3, 2024 · 3 comments

Comments

@RuslanYestemessov
Copy link

Operating System: Ubuntu 23.04
Python Version: 3.10
aospdtgen Version: 1.1.1

I encountered an AssertionError when attempting to generate an Android device tree using aospdtgen with a MIUI dump from the ZIYIGlobal variant. This error occurs during the initial phase where the tool tries to figure out the partition scheme.

Version 1.1.1

[INFO] Figuring out partitions scheme
Traceback (most recent call last):
...
File "/home/ruslan/.local/lib/python3.10/site-packages/sebaubuntu_libs/libandroid/partitions/partitions.py", line 27, in __init__
    assert PartitionModel.SYSTEM in self.partitions
AssertionError

I would appreciate any guidance on resolving this issue or any workarounds available. Thank you!

PS: Firmware OTA file here

@vedxp
Copy link

vedxp commented Apr 21, 2024

Encountering the same:

python3 -m aospdtgen /working/export84276185
$ Android device tree generator
Version 1.1.1

[INFO] Figuring out partitions scheme
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/workspace/.pyenv_mirror/user/current/lib/python3.12/site-packages/aospdtgen/__main__.py", line 11, in <module>
    main()
  File "/workspace/.pyenv_mirror/user/current/lib/python3.12/site-packages/aospdtgen/main.py", line 31, in main
    dump = DeviceTree(args.dump_path)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/workspace/.pyenv_mirror/user/current/lib/python3.12/site-packages/aospdtgen/device_tree.py", line 36, in __init__
    self.partitions = Partitions(self.path)
                      ^^^^^^^^^^^^^^^^^^^^^
  File "/workspace/.pyenv_mirror/user/current/lib/python3.12/site-packages/sebaubuntu_libs/libandroid/partitions/partitions.py", line 27, in __init__
    assert PartitionModel.SYSTEM in self.partitions
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError

@Minionguyjpro

This comment was marked as outdated.

@Minionguyjpro

This comment was marked as outdated.

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

3 participants