sebaubuntu-python/aospdtgen

assert PartitionModel.SYSTEM in self.partitions

Closed this issue · 4 comments

`PS C:\Users\x\Desktop> python -m aospdtgen -o C:\Users\x\Desktop\rom C:\Users\x\Desktop\images
Android device tree generator
Version 0.1.0

[INFO] Parsing all_files.txt
[INFO] Figuring out partitions scheme
Traceback (most recent call last):
File "C:\Users\x\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Users\x\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 86, in run_code
exec(code, run_globals)
File "C:\Users\x\AppData\Local\Programs\Python\Python310\lib\site-packages\aospdtgen_main
.py", line 11, in
main()
File "C:\Users\x\AppData\Local\Programs\Python\Python310\lib\site-packages\aospdtgen\main.py", line 31, in main
dump = DeviceTree(args.dump_path)
File "C:\Users\x\AppData\Local\Programs\Python\Python310\lib\site-packages\aospdtgen\device_tree.py", line 43, in init
self.partitions = Partitions(self.path)
File "C:\Users\x\AppData\Local\Programs\Python\Python310\lib\site-packages\aospdtgen\utils\partitions.py", line 26, in init
assert PartitionModel.SYSTEM in self.partitions
AssertionError`

i try in wsl&windows,dont work.
model: realme q3
kernel-souce: https://github.com/realme-kernel-opensource/realmeQ3_Q3pro_AndroidS_kernel-source
vendor-source: https://github.com/realme-kernel-opensource/realmeQ3_Q3pro_AndroidS_vendor-source

You must use dumpyara.

You must use dumpyara.

I am coming across the same issue and I can assure you I used dumpyara

Account gone, anyway, looks like this user didn't dump the images