sebaubuntu-python / aospdtgen

LineageOS device tree generator
219 stars 44 forks source link

AttributeError: 'xml.etree.ElementTree.Element' object has no attribute 'split' #23

Closed ghost closed 1 year ago

ghost commented 2 years ago

Android device tree generator Version 0.1.0

[INFO] Parsing all_files.txt [INFO] Figuring out partitions scheme [WARNING] Unknown HAL type native 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/red/.local/lib/python3.10/site-packages/aospdtgen/main.py", line 11, in main() File "/home/red/.local/lib/python3.10/site-packages/aospdtgen/main.py", line 31, in main dump = DeviceTree(args.dump_path) File "/home/red/.local/lib/python3.10/site-packages/aospdtgen/device_tree.py", line 43, in init self.partitions = Partitions(self.path) File "/home/red/.local/lib/python3.10/site-packages/aospdtgen/utils/partitions.py", line 35, in init self.partitions[PartitionModel.VENDOR] = AndroidPartition(PartitionModel.VENDOR, vendor, self.dump_path) File "/home/red/.local/lib/python3.10/site-packages/aospdtgen/utils/partition.py", line 119, in init self.manifest.import_file(manifest_path) File "/home/red/.local/lib/python3.10/site-packages/sebaubuntu_libs/libvintf/manifest.py", line 73, in import_file self.entries.append(AidlHal.from_entry(entry)) File "/home/red/.local/lib/python3.10/site-packages/sebaubuntu_libs/libvintf/aidl.py", line 67, in from_entry interfaces = set([AidlInterface.from_fqname(interface) File "/home/red/.local/lib/python3.10/site-packages/sebaubuntu_libs/libvintf/aidl.py", line 67, in interfaces = set([AidlInterface.from_fqname(interface) File "/home/red/.local/lib/python3.10/site-packages/sebaubuntu_libs/libvintf/aidl.py", line 40, in from_fqname name, instance = string.split("/", 1) AttributeError: 'xml.etree.ElementTree.Element' object has no attribute 'split'

SebaUbuntu commented 2 years ago

Mind sending a link to download this device firmware?

edward0181 commented 1 year ago

https://github.com/RandomPush/samsung_a13ve_dump

This has this issue

NRanjan-17 commented 1 year ago

@SebaUbuntu same issue here too https://gitlab.com/NRanjan-17/samsung_gta4l_dump.git

NRanjan-17 commented 1 year ago

Android device tree generator Version 0.1.0

[INFO] Figuring out partitions scheme Traceback (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "I:\aospdtgen\aospdtgen__main.py", line 11, in main() File "I:\aospdtgen\aospdtgen\main.py", line 31, in main dump = DeviceTree(args.dump_path) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "I:\aospdtgen\aospdtgen\device_tree.py", line 36, in init__ self.partitions = Partitions(self.path) ^^^^^^^^^^^^^^^^^^^^^ File "I:\Users\Nalinish\AppData\Local\Programs\Python\Python311\Lib\site-packages\sebaubuntu_libs\libandroid\partitions\partitions.py", line 27, in init assert PartitionModel.SYSTEM in self.partitions ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AssertionError

edward0181 commented 1 year ago

Latest FW on Samsung A13ve still same issue

a13vensxx-user 13 TP1A.220624.014 A137FXXS1BWA2 release-keys

[INFO] Cloning AIK...

Done! You can find the device tree in twrp-device-tree/samsung/a13ve % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 1241 100 1241 0 0 3841 0 --:--:-- --:--:-- --:--:-- 3842 Android device tree generator Version 0.1.0

[INFO] Figuring out partitions scheme [WARNING] Unknown HAL type native 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 "/usr/local/lib/python3.10/dist-packages/aospdtgen/main.py", line 11, in main() File "/usr/local/lib/python3.10/dist-packages/aospdtgen/main.py", line 31, in main dump = DeviceTree(args.dump_path) File "/usr/local/lib/python3.10/dist-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 36, in init self.partitions[PartitionModel.VENDOR] = AndroidPartition(PartitionModel.VENDOR, vendor) File "/usr/local/lib/python3.10/dist-packages/sebaubuntu_libs/libandroid/partitions/partition.py", line 56, in init self.manifest.import_file(manifest_path) File "/usr/local/lib/python3.10/dist-packages/sebaubuntu_libs/libandroid/vintf/manifest.py", line 74, in import_file self.entries.append(AidlHal.from_entry(entry)) File "/usr/local/lib/python3.10/dist-packages/sebaubuntu_libs/libandroid/vintf/aidl.py", line 68, in from_entry interfaces = set([AidlInterface.from_fqname(interface) File "/usr/local/lib/python3.10/dist-packages/sebaubuntu_libs/libandroid/vintf/aidl.py", line 68, in interfaces = set([AidlInterface.from_fqname(interface) File "/usr/local/lib/python3.10/dist-packages/sebaubuntu_libs/libandroid/vintf/aidl.py", line 41, in from_fqname name, instance = string.split("/", 1) AttributeError: 'xml.etree.ElementTree.Element' object has no attribute 'split'