Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
moldimolt opened this issue May 21, 2023 · 0 comments

Comments

@moldimolt
Copy link

moldimolt commented May 21, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant