sebaubuntu-python/aospdtgen

[pdx-223] [firmware provided] AttributeError: 'NoneType' object has no attribute 'name'

Opened this issue · 0 comments

Hello. I saw this issue for other devices but the requester did not submit the requested firmware files. I will link mine.

Full firmware: https://drive.google.com/file/d/15_1OQ86wLb5t9VFdj84G67FOf0fDF3jp/view?usp=share_link
dumpyara dump: https://drive.google.com/file/d/1SvTHSng8UG5k1jwT6w6CnSSGapC5KmpD/view?usp=share_link

The script is failing for me with the following error:

[noellemercer@fedora Documents]$ python3 -m aospdtgen -o tree ./dump
Android device tree generator
Version 1.0.0

[INFO] Figuring out partitions scheme
[WARNING] Unknown HAL type native
[INFO] Parsing build props and device info
[INFO] Parsing fstab
[INFO] Extracting boot image
[INFO] Cloning AIK...
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/home/noellemercer/.local/lib/python3.11/site-packages/aospdtgen/__main__.py", line 11, in <module>
    main()
  File "/home/noellemercer/.local/lib/python3.11/site-packages/aospdtgen/main.py", line 31, in main
    dump = DeviceTree(args.dump_path)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/noellemercer/.local/lib/python3.11/site-packages/aospdtgen/device_tree.py", line 62, in __init__
    self.boot_configuration = BootConfiguration(self.path)
                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/noellemercer/.local/lib/python3.11/site-packages/aospdtgen/utils/boot_configuration.py", line 26, in __init__
    self.boot_image_info = self.boot_aik_manager.unpackimg(self.boot)
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/noellemercer/.local/lib/python3.11/site-packages/sebaubuntu_libs/libaik/__init__.py", line 109, in unpackimg
    image_prefix = image.name
                   ^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'name'

Dumpyara log:

[noellemercer@fedora dumpyara]$ ./dumpyara.sh "XQ-CT72_Customized HK_64.1.A.0.891.zip"
GitHub token not found. Dumping just locally...
File detected. Copying...
Already up to date.
Already up to date.
Already up to date.
Already up to date.
Already up to date.
Create Temp and out dir
grep: warning: stray \ before /
Extracting firmware on: /home/noellemercer/Documents/dumpyara/working/XQ-CT72_Customized_HK_64.1.A.0.891
grep: warning: stray \ before /
grep: warning: stray \ before /
sin detected
Extracting sparse files from SIN... Done!
Restoring image from sparse files... Done!
Successfully restored image to /home/noellemercer/Documents/dumpyara/working/XQ-CT72_Customized_HK_64.1.A.0.891/tmp/appslog_X-FLASH-ALL-6348.img
Extracting sparse files from SIN... Done!
Restoring image from sparse files... Done!
Successfully restored image to /home/noellemercer/Documents/dumpyara/working/XQ-CT72_Customized_HK_64.1.A.0.891/tmp/bluetooth_X-FLASH-ALL-6348.img
Extracting sparse files from SIN... Done!
Restoring image from sparse files... Done!
Successfully restored image to /home/noellemercer/Documents/dumpyara/working/XQ-CT72_Customized_HK_64.1.A.0.891/tmp/bootloader_112_X-FLASH-ALL-F8AF.img
Extracting sparse files from SIN... Done!
Restoring image from sparse files... Done!
Successfully restored image to /home/noellemercer/Documents/dumpyara/working/XQ-CT72_Customized_HK_64.1.A.0.891/tmp/bootloader_X_BOOT_SM8450_LA2_0_T_112_X-FLASH-ALL-5E20.img
Extracting sparse files from SIN... Done!
Restoring image from sparse files... Done!
Successfully restored image to /home/noellemercer/Documents/dumpyara/working/XQ-CT72_Customized_HK_64.1.A.0.891/tmp/bootloader_X_BOOT_SM8450_LA2_0_T_112_X-FLASH-ALL-6348.img
Extracting sparse files from SIN... Done!
Restoring image from sparse files... Done!
Successfully restored image to /home/noellemercer/Documents/dumpyara/working/XQ-CT72_Customized_HK_64.1.A.0.891/tmp/boot_X-FLASH-ALL-6348.img
Extracting sparse files from SIN... Done!
Restoring image from sparse files... Done!
Successfully restored image to /home/noellemercer/Documents/dumpyara/working/XQ-CT72_Customized_HK_64.1.A.0.891/tmp/cdt_X-FLASH-ALL-6348.img
Extracting sparse files from SIN... Done!
Restoring image from sparse files... Done!
Successfully restored image to /home/noellemercer/Documents/dumpyara/working/XQ-CT72_Customized_HK_64.1.A.0.891/tmp/diag_X-FLASH-ALL-6348.img
Extracting sparse files from SIN... Done!
Restoring image from sparse files... Done!
Successfully restored image to /home/noellemercer/Documents/dumpyara/working/XQ-CT72_Customized_HK_64.1.A.0.891/tmp/dsp_X-FLASH-ALL-6348.ext4
Extracting sparse files from SIN... Done!
Restoring image from sparse files... Done!
Successfully restored image to /home/noellemercer/Documents/dumpyara/working/XQ-CT72_Customized_HK_64.1.A.0.891/tmp/dtbo_X-FLASH-ALL-6348.img
Extracting sparse files from SIN... Done!
Restoring image from sparse files... Done!
Successfully restored image to /home/noellemercer/Documents/dumpyara/working/XQ-CT72_Customized_HK_64.1.A.0.891/tmp/elabel-XQ-CT72-row-s20000504_20220419071931_private_X-FLASH-LTALABEL-6348.ext4
Extracting sparse files from SIN... Done!
Restoring image from sparse files... Done!
Successfully restored image to /home/noellemercer/Documents/dumpyara/working/XQ-CT72_Customized_HK_64.1.A.0.891/tmp/featenabler_X-FLASH-ALL-6348.elf
Extracting sparse files from SIN... Done!
Restoring image from sparse files... Done!
Successfully restored image to /home/noellemercer/Documents/dumpyara/working/XQ-CT72_Customized_HK_64.1.A.0.891/tmp/metadata_X-FLASH-ALL-6348.ext4
Extracting sparse files from SIN... Done!
Restoring image from sparse files... Done!
Successfully restored image to /home/noellemercer/Documents/dumpyara/working/XQ-CT72_Customized_HK_64.1.A.0.891/tmp/misc_X-FLASH-ALL-6348.img
Extracting sparse files from SIN... Done!
Restoring image from sparse files... Done!
Successfully restored image to /home/noellemercer/Documents/dumpyara/working/XQ-CT72_Customized_HK_64.1.A.0.891/tmp/modemst1_X-FLASH-ALL-6348.img
Extracting sparse files from SIN... Done!
Restoring image from sparse files... Done!
Successfully restored image to /home/noellemercer/Documents/dumpyara/working/XQ-CT72_Customized_HK_64.1.A.0.891/tmp/modemst2_X-FLASH-ALL-6348.img
Extracting sparse files from SIN... Done!
Restoring image from sparse files... Done!
Successfully restored image to /home/noellemercer/Documents/dumpyara/working/XQ-CT72_Customized_HK_64.1.A.0.891/tmp/modem_X-FLASH-ALL-6348.img
Extracting sparse files from SIN... Done!
Restoring image from sparse files... Done!
Successfully restored image to /home/noellemercer/Documents/dumpyara/working/XQ-CT72_Customized_HK_64.1.A.0.891/tmp/oem_other_X-FLASH-ALL-6348.ext4
Extracting sparse files from SIN... Done!
Restoring image from sparse files... Done!
Successfully restored image to /home/noellemercer/Documents/dumpyara/working/XQ-CT72_Customized_HK_64.1.A.0.891/tmp/oem_X-FLASH-ALL-6348.ext4
Extracting sparse files from SIN... Done!
Restoring image from sparse files... Done!
Successfully restored image to /home/noellemercer/Documents/dumpyara/working/XQ-CT72_Customized_HK_64.1.A.0.891/tmp/partition-image-LUN0_124936192_X-FLASH-ALL-6348.img
Extracting sparse files from SIN... Done!
Restoring image from sparse files... Done!
Successfully restored image to /home/noellemercer/Documents/dumpyara/working/XQ-CT72_Customized_HK_64.1.A.0.891/tmp/partition-image-LUN0_249896960_X-FLASH-ALL-6348.img
Extracting sparse files from SIN... Done!
Restoring image from sparse files... Done!
Successfully restored image to /home/noellemercer/Documents/dumpyara/working/XQ-CT72_Customized_HK_64.1.A.0.891/tmp/partition-image-LUN0_499818496_X-FLASH-ALL-6348.img
Extracting sparse files from SIN... Done!
Restoring image from sparse files... Done!
Successfully restored image to /home/noellemercer/Documents/dumpyara/working/XQ-CT72_Customized_HK_64.1.A.0.891/tmp/partition-image-LUN1_8192_X-FLASH-ALL-6348.img
Extracting sparse files from SIN... Done!
Restoring image from sparse files... Done!
Successfully restored image to /home/noellemercer/Documents/dumpyara/working/XQ-CT72_Customized_HK_64.1.A.0.891/tmp/partition-image-LUN2_8192_X-FLASH-ALL-6348.img
Extracting sparse files from SIN... Done!
Restoring image from sparse files... Done!
Successfully restored image to /home/noellemercer/Documents/dumpyara/working/XQ-CT72_Customized_HK_64.1.A.0.891/tmp/persist_X-FLASH-ALL-6348.ext4
Extracting sparse files from SIN... Done!
Restoring image from sparse files... Done!
Successfully restored image to /home/noellemercer/Documents/dumpyara/working/XQ-CT72_Customized_HK_64.1.A.0.891/tmp/rdimage_X-FLASH-ALL-6348.img
Extracting sparse files from SIN... Done!
Restoring image from sparse files... Done!
Successfully restored image to /home/noellemercer/Documents/dumpyara/working/XQ-CT72_Customized_HK_64.1.A.0.891/tmp/recovery_X-FLASH-ALL-6348.img
Extracting sparse files from SIN... Done!
Restoring image from sparse files... Done!
Successfully restored image to /home/noellemercer/Documents/dumpyara/working/XQ-CT72_Customized_HK_64.1.A.0.891/tmp/super_X-FLASH-ALL-6348.img
Extracting sparse files from SIN... Done!
Restoring image from sparse files... Done!
Successfully restored image to /home/noellemercer/Documents/dumpyara/working/XQ-CT72_Customized_HK_64.1.A.0.891/tmp/userdata_X-FLASH-ALL-6348.img
Extracting sparse files from SIN... Done!
Restoring image from sparse files... Done!
Successfully restored image to /home/noellemercer/Documents/dumpyara/working/XQ-CT72_Customized_HK_64.1.A.0.891/tmp/vbmeta_system_X-FLASH-ALL-6348.img
Extracting sparse files from SIN... Done!
Restoring image from sparse files... Done!
Successfully restored image to /home/noellemercer/Documents/dumpyara/working/XQ-CT72_Customized_HK_64.1.A.0.891/tmp/vbmeta_X-FLASH-ALL-6348.img
Extracting sparse files from SIN... Done!
Restoring image from sparse files... Done!
Successfully restored image to /home/noellemercer/Documents/dumpyara/working/XQ-CT72_Customized_HK_64.1.A.0.891/tmp/vendor_boot_X-FLASH-ALL-6348.img
super image inside a sin detected
Creating super.img.raw ...
find: ‘/home/noellemercer/Documents/dumpyara/working/XQ-CT72_Customized_HK_64.1.A.0.891/bootimg’: No such file or directory
Extracting system partition
Extracting system_ext partition
Extracting vendor partition
Extracting odm partition
Extracting product partition
Extracting vendor_dlkm partition
[sudo] password for noellemercer: 
find: ‘/home/noellemercer/Documents/dumpyara/working/XQ-CT72_Customized_HK_64.1.A.0.891/modem’: No such file or directory
find: ‘/home/noellemercer/Documents/dumpyara/working/XQ-CT72_Customized_HK_64.1.A.0.891/tz*’: No such file or directory
system/system/build.prop
# qssi-user 13 64.1.A.0.891 1 release-keys
- manufacturer: sony
- platform: taro
- codename: pdx223
- flavor: qssi-user
- release: 13
- id: 64.1.A.0.891
- incremental: 1
- tags: release-keys
- fingerprint: Sony/pdx223/pdx223:12/SKQ1.220714.001/1:user/release-keys
- is_ab: true
- brand: Sony
- branch: qssi-user-13-64.1.A.0.891-1-release-keys
- repo: sony_pdx223_dump
Dump done locally.

Thank you.