sebaubuntu-python/aospdtgen

assert PartitionModel.SYSTEM in self.partitions AssertionError

Closed this issue · 6 comments

aospdtgen$ python3 -m aospdtgen '/home/ninja/Desktop/working'
Android device tree generator
Version 0.1.0

[INFO] Figuring out partitions scheme
Traceback (most recent call last):
File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/home/ninja/.local/lib/python3.10/site-packages/aospdtgen/main.py", line 11, in
main()
File "/home/ninja/.local/lib/python3.10/site-packages/aospdtgen/main.py", line 31, in main
dump = DeviceTree(args.dump_path)
File "/home/ninja/.local/lib/python3.10/site-packages/aospdtgen/device_tree.py", line 36, in init
self.partitions = Partitions(self.path)
File "/usr/local/lib/python3.10/dist-packages/sebaubuntu_libs/libandroid/partitions/partitions.py", line 27, in init
assert PartitionModel.SYSTEM in self.partitions
AssertionError

Needs a dump link

@Carckv2 were you able to fix this error?

Closing for inactivity and not related to aospdtgen (dump issue)

for me . i have a super.img in .tar for (.tar.md5 works too).

  1. first download otatools
  2. lz4 -d super.img.lz4 super.img
  3. tar cvf super.tar super.img
  4. now python -m dumpyara -o ~/output super.tar

this worked for me

v4lkyr commented

Hello, I'm having this problem too.

for me . i have a super.img in .tar for (.tar.md5 works too).

  1. first download otatools
  2. lz4 -d super.img.lz4 super.img
  3. tar cvf super.tar super.img
  4. now python -m dumpyara -o ~/output super.tar

this worked for me

Don't forgot install cpio package :P