script has one problem when i finds out that partitions are erofs thn while extracting it makes some file shortcut links instead of copying file to that location. when you click on that file to show target then file manager isnt able to find out the file because its path is written as root. for example rm10proa41/system/system/etc/security/otacerts.zip here the dumpyara extracted it with fsck.erofs but in that location it is shortcut/link of the file otacerts.zip when you click on the link file to go for the target file it cant find it because of wrong link location.
see it does not able to find the path of file because path is set as root.
see here is file present in that directory where it is pointing but becaus of starting path is set as root it cant find it.
thats why here it gives error while generating dt.
python -m aospdtgen rm10proa41/
Android device tree generator
Version 1.0.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/arsalan/.local/lib/python3.10/site-packages/aospdtgen/main.py", line 11, in
main()
File "/home/arsalan/.local/lib/python3.10/site-packages/aospdtgen/main.py", line 31, in main
dump = DeviceTree(args.dump_path)
File "/home/arsalan/.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 25, in init
self.partitions[PartitionModel.SYSTEM] = AndroidPartition(PartitionModel.SYSTEM, system)
File "/usr/local/lib/python3.10/dist-packages/sebaubuntu_libs/libandroid/partitions/partition.py", line 38, in init
self.files = get_files_list(self.path)
File "/usr/local/lib/python3.10/dist-packages/sebaubuntu_libs/libandroid/partitions/partition.py", line 29, in get_files_list
files.extend(get_files_list(i))
File "/usr/local/lib/python3.10/dist-packages/sebaubuntu_libs/libandroid/partitions/partition.py", line 29, in get_files_list
files.extend(get_files_list(i))
File "/usr/local/lib/python3.10/dist-packages/sebaubuntu_libs/libandroid/partitions/partition.py", line 29, in get_files_list
files.extend(get_files_list(i))
File "/usr/local/lib/python3.10/dist-packages/sebaubuntu_libs/libandroid/partitions/partition.py", line 25, in get_files_list
for i in path.iterdir():
File "/usr/lib/python3.10/pathlib.py", line 1017, in iterdir
for name in self._accessor.listdir(self):
FileNotFoundError: [Errno 2] No such file or directory: 'rm10proa41/system/system/etc/security/otacerts.zip'
please see through this issue deeply