Skip to content

Can't extract system for Xiaomi HyperOS #104

Open

Description

@ondrejnedoma

Tried both the fastboot and recovery flashable variants from xiaomifirmwareupdater.com, in both cases I get

AssertionError: System folder doesn't exist

Activity

  1. SebaUbuntu commented on Nov 4, 2024

    @SebaUbuntu
    Member

    Please retry with the latest version

  2. DubheBroken commented on Dec 18, 2024

    @DubheBroken

    I have same problem. I selected an OTA zip file.
    Many errors were reported in the third step, and no dump was seen after the fourth step was completed.

    dubhe@dubhe-ubuntu22:~/rothko$ python3 -m dumpyara miui_ROTHKO_OS1.0.29.0.UNNCNXM_635dd68c27_14.0.zip 
    Dumpyara
    Version 1.0.9
    
    [INFO] Step 1 - Extracting archive
    [INFO] Pattern .*\.tar\.md5 not found
    [INFO] Step 2 - Preparing partition images
    [INFO] Found multipartition image: payload.bin
    Extracting 'apusys.img'
    Extracting 'audio_dsp.img'
    Extracting 'boot.img'
    Extracting 'ccu.img'
    Extracting 'connsys_gnss.img'
    Extracting 'dpm.img'
    Extracting 'dtbo.img'
    Extracting 'gpueb.img'
    Extracting 'gz.img'
    Extracting 'init_boot.img'
    Extracting 'lk.img'
    Extracting 'logo.img'
    Extracting 'mcf_ota.img'
    Extracting 'mcupm.img'
    Extracting 'modem.img'
    Extracting 'mvpu_algo.img'
    Extracting 'odm.img'
    Extracting 'odm_dlkm.img'
    Extracting 'pi_img.img'
    Extracting 'preloader_raw.img'
    Extracting 'product.img'
    Extracting 'pvmfw.img'
    Extracting 'scp.img'
    Extracting 'spmfw.img'
    Extracting 'sspm.img'
    Extracting 'system.img'
    Extracting 'system_dlkm.img'
    Extracting 'system_ext.img'
    Extracting 'tee.img'
    Extracting 'vbmeta.img'
    Extracting 'vbmeta_system.img'
    Extracting 'vbmeta_vendor.img'
    Extracting 'vcp.img'
    Extracting 'vendor.img'
    Extracting 'vendor_boot.img'
    Extracting 'vendor_dlkm.img'
    Extracting 'mi_ext.img'
    [INFO] Pattern super(?!.*(_empty)).*\.img not found
    [INFO] Step 3 - Extracting partitions
    [INFO] Extracting boot
    [sudo] dubhe 的密码: 
    [INFO] creating /home/dubhe/rothko/miui_ROTHKO_OS1.0.29.0.UNNCNXM_635dd68c27_14.0/boot/ramdisk
    [INFO] creating /home/dubhe/rothko/miui_ROTHKO_OS1.0.29.0.UNNCNXM_635dd68c27_14.0/boot/ramdisk/second_stage_resources
    [INFO] creating /home/dubhe/rothko/miui_ROTHKO_OS1.0.29.0.UNNCNXM_635dd68c27_14.0/boot/ramdisk/dev
    [ERROR] Failed to extract boot.img
    [ERROR] Traceback (most recent call last):
      File "/home/dubhe/.local/lib/python3.10/site-packages/dumpyara/steps/extract_images.py", line 43, in extract_images
        extract_bootimg(image_path, output_path / partition)
      File "/home/dubhe/.local/lib/python3.10/site-packages/dumpyara/utils/bootimg.py", line 33, in extract_bootimg
        copy_tree(str(image_info.ramdisk), str(output_path / "ramdisk"), preserve_symlinks=True)
      File "/home/dubhe/.local/lib/python3.10/site-packages/sebaubuntu_libs/libcompat/distutils/dir_util.py", line 153, in copy_tree
        copy_tree(
      File "/home/dubhe/.local/lib/python3.10/site-packages/sebaubuntu_libs/libcompat/distutils/dir_util.py", line 165, in copy_tree
        copy_file(
      File "/home/dubhe/.local/lib/python3.10/site-packages/sebaubuntu_libs/libcompat/distutils/file_util.py", line 109, in copy_file
        raise DistutilsFileError(
    sebaubuntu_libs.libcompat.distutils.errors.DistutilsFileError: can't copy '/home/dubhe/AIK-Linux-mirror/ramdisk/dev/console.lnk.lnk.lnk.lnk.lnk': doesn't exist or not a regular file
    
    [INFO] Extracting dtbo
    [INFO] Extracting init_boot
    [INFO] creating /home/dubhe/rothko/miui_ROTHKO_OS1.0.29.0.UNNCNXM_635dd68c27_14.0/init_boot/ramdisk
    [INFO] creating /home/dubhe/rothko/miui_ROTHKO_OS1.0.29.0.UNNCNXM_635dd68c27_14.0/init_boot/ramdisk/second_stage_resources
    [INFO] creating /home/dubhe/rothko/miui_ROTHKO_OS1.0.29.0.UNNCNXM_635dd68c27_14.0/init_boot/ramdisk/dev
    [ERROR] Failed to extract init_boot.img
    [ERROR] Traceback (most recent call last):
      File "/home/dubhe/.local/lib/python3.10/site-packages/dumpyara/steps/extract_images.py", line 43, in extract_images
        extract_bootimg(image_path, output_path / partition)
      File "/home/dubhe/.local/lib/python3.10/site-packages/dumpyara/utils/bootimg.py", line 33, in extract_bootimg
        copy_tree(str(image_info.ramdisk), str(output_path / "ramdisk"), preserve_symlinks=True)
      File "/home/dubhe/.local/lib/python3.10/site-packages/sebaubuntu_libs/libcompat/distutils/dir_util.py", line 153, in copy_tree
        copy_tree(
      File "/home/dubhe/.local/lib/python3.10/site-packages/sebaubuntu_libs/libcompat/distutils/dir_util.py", line 165, in copy_tree
        copy_file(
      File "/home/dubhe/.local/lib/python3.10/site-packages/sebaubuntu_libs/libcompat/distutils/file_util.py", line 109, in copy_file
        raise DistutilsFileError(
    sebaubuntu_libs.libcompat.distutils.errors.DistutilsFileError: can't copy '/home/dubhe/AIK-Linux-mirror/ramdisk/dev/console.lnk.lnk.lnk.lnk.lnk': doesn't exist or not a regular file
    
    [INFO] Extracting vendor_boot
    [INFO] creating /home/dubhe/rothko/miui_ROTHKO_OS1.0.29.0.UNNCNXM_635dd68c27_14.0/vendor_boot/ramdisk
    [INFO] creating /home/dubhe/rothko/miui_ROTHKO_OS1.0.29.0.UNNCNXM_635dd68c27_14.0/vendor_boot/ramdisk/second_stage_resources
    [INFO] creating /home/dubhe/rothko/miui_ROTHKO_OS1.0.29.0.UNNCNXM_635dd68c27_14.0/vendor_boot/ramdisk/dev
    [ERROR] Failed to extract vendor_boot.img
    [ERROR] Traceback (most recent call last):
      File "/home/dubhe/.local/lib/python3.10/site-packages/dumpyara/steps/extract_images.py", line 43, in extract_images
        extract_bootimg(image_path, output_path / partition)
      File "/home/dubhe/.local/lib/python3.10/site-packages/dumpyara/utils/bootimg.py", line 33, in extract_bootimg
        copy_tree(str(image_info.ramdisk), str(output_path / "ramdisk"), preserve_symlinks=True)
      File "/home/dubhe/.local/lib/python3.10/site-packages/sebaubuntu_libs/libcompat/distutils/dir_util.py", line 153, in copy_tree
        copy_tree(
      File "/home/dubhe/.local/lib/python3.10/site-packages/sebaubuntu_libs/libcompat/distutils/dir_util.py", line 165, in copy_tree
        copy_file(
      File "/home/dubhe/.local/lib/python3.10/site-packages/sebaubuntu_libs/libcompat/distutils/file_util.py", line 109, in copy_file
        raise DistutilsFileError(
    sebaubuntu_libs.libcompat.distutils.errors.DistutilsFileError: can't copy '/home/dubhe/AIK-Linux-mirror/ramdisk/dev/console.lnk.lnk.lnk.lnk.lnk': doesn't exist or not a regular file
    
    [INFO] Extracting odm
    [WARNING] Using legacy p7zip, some features may not work
    [ERROR] Error extracting odm.img
    [ERROR] 
    7-Zip [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
    p7zip Version 16.02 (locale=zh_CN.UTF-8,Utf16=on,HugeFiles=on,64 bits,14 CPUs AMD Ryzen 7 7840HS w/ Radeon 780M Graphics      (A70F41),ASM,AES-NI)
    
    Scanning the drive for archives:
    1 file, 873431040 bytes (833 MiB)
    
    Extracting archive: /home/dubhe/rothko/miui_ROTHKO_OS1.0.29.0.UNNCNXM_635dd68c27_14.0/temp_raw_images/odm.img
    
    ERRORS:
    Headers Error
    Unconfirmed start of archive
    
    
    WARNINGS:
    There are data after the end of archive
    
    --
    Path = /home/dubhe/rothko/miui_ROTHKO_OS1.0.29.0.UNNCNXM_635dd68c27_14.0/temp_raw_images/odm.img
    Type = zip
    ERRORS:
    Headers Error
    Unconfirmed start of archive
    WARNINGS:
    There are data after the end of archive
    Offset = 4098
    Physical Size = 368
    Tail Size = 873426574
    
    ERROR: CRC Failed : res/drawable-hdpi-v4/abc_ab_share_pack_mtrl_alpha.9.png
    
    Sub items Errors: 1
    
    Archives with Errors: 1
    
    Warnings: 1
    
    Open Errors: 1
    
    Sub items Errors: 1
    
    [INFO] Extracting odm_dlkm
    [ERROR] Error extracting odm_dlkm.img
    [ERROR] 
    7-Zip [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
    p7zip Version 16.02 (locale=zh_CN.UTF-8,Utf16=on,HugeFiles=on,64 bits,14 CPUs AMD Ryzen 7 7840HS w/ Radeon 780M Graphics      (A70F41),ASM,AES-NI)
    
    Scanning the drive for archives:
    1 file, 348160 bytes (340 KiB)
    
    Extracting archive: /home/dubhe/rothko/miui_ROTHKO_OS1.0.29.0.UNNCNXM_635dd68c27_14.0/temp_raw_images/odm_dlkm.img
    
    WARNINGS:
    There are data after the end of archive
    
    --
    Path = /home/dubhe/rothko/miui_ROTHKO_OS1.0.29.0.UNNCNXM_635dd68c27_14.0/temp_raw_images/odm_dlkm.img
    Type = gzip
    WARNINGS:
    There are data after the end of archive
    Offset = 4096
    Physical Size = 40442
    Tail Size = 303622
    Headers Size = 10
    Streams = 1
    
    ERROR: CRC Failed : odm_dlkm
    
    Sub items Errors: 1
    
    Archives with Errors: 1
    
    Warnings: 1
    
    Sub items Errors: 1
    
    [INFO] Extracting product
    [ERROR] Error extracting product.img
    [ERROR] 
    7-Zip [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
    p7zip Version 16.02 (locale=zh_CN.UTF-8,Utf16=on,HugeFiles=on,64 bits,14 CPUs AMD Ryzen 7 7840HS w/ Radeon 780M Graphics      (A70F41),ASM,AES-NI)
    
    Scanning the drive for archives:
    1 file, 4313829376 bytes (4114 MiB)
    
    Extracting archive: /home/dubhe/rothko/miui_ROTHKO_OS1.0.29.0.UNNCNXM_635dd68c27_14.0/temp_raw_images/product.img
    
    ERRORS:
    Headers Error
    Unconfirmed start of archive
    
    
    WARNINGS:
    There are data after the end of archive
    
    --
    Path = /home/dubhe/rothko/miui_ROTHKO_OS1.0.29.0.UNNCNXM_635dd68c27_14.0/temp_raw_images/product.img
    Type = zip
    ERRORS:
    Headers Error
    Unconfirmed start of archive
    WARNINGS:
    There are data after the end of archive
    Offset = 4098
    Physical Size = 156
    Tail Size = 4313825122
    
    ERROR: CRC Failed : META-INF/com/android/build/gradle/app-metadata.properties
    
    Sub items Errors: 1
    
    Archives with Errors: 1
    
    Warnings: 1
    
    Open Errors: 1
    
    Sub items Errors: 1
    
    [INFO] Extracting system
    [ERROR] Error extracting system.img
    [ERROR] 
    7-Zip [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
    p7zip Version 16.02 (locale=zh_CN.UTF-8,Utf16=on,HugeFiles=on,64 bits,14 CPUs AMD Ryzen 7 7840HS w/ Radeon 780M Graphics      (A70F41),ASM,AES-NI)
    
    Scanning the drive for archives:
    1 file, 791588864 bytes (755 MiB)
    
    Extracting archive: /home/dubhe/rothko/miui_ROTHKO_OS1.0.29.0.UNNCNXM_635dd68c27_14.0/temp_raw_images/system.img
    
    ERRORS:
    Headers Error
    Unconfirmed start of archive
    
    
    WARNINGS:
    There are data after the end of archive
    
    --
    Path = /home/dubhe/rothko/miui_ROTHKO_OS1.0.29.0.UNNCNXM_635dd68c27_14.0/temp_raw_images/system.img
    Type = zip
    ERRORS:
    Headers Error
    Unconfirmed start of archive
    WARNINGS:
    There are data after the end of archive
    Offset = 12290
    Physical Size = 1164
    Tail Size = 791575410
    
    ERROR: CRC Failed : AndroidManifest.xml
    
    Sub items Errors: 1
    
    Archives with Errors: 1
    
    Warnings: 1
    
    Open Errors: 1
    
    Sub items Errors: 1
    
    [INFO] Extracting system_dlkm
    [ERROR] Error extracting system_dlkm.img
    [ERROR] 
    7-Zip [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
    p7zip Version 16.02 (locale=zh_CN.UTF-8,Utf16=on,HugeFiles=on,64 bits,14 CPUs AMD Ryzen 7 7840HS w/ Radeon 780M Graphics      (A70F41),ASM,AES-NI)
    
    Scanning the drive for archives:
    1 file, 7467008 bytes (7292 KiB)
    
    Extracting archive: /home/dubhe/rothko/miui_ROTHKO_OS1.0.29.0.UNNCNXM_635dd68c27_14.0/temp_raw_images/system_dlkm.img
    
    WARNINGS:
    There are data after the end of archive
    
    --
    Path = /home/dubhe/rothko/miui_ROTHKO_OS1.0.29.0.UNNCNXM_635dd68c27_14.0/temp_raw_images/system_dlkm.img
    Type = gzip
    WARNINGS:
    There are data after the end of archive
    Offset = 4096
    Physical Size = 40427
    Tail Size = 7422485
    Headers Size = 10
    Streams = 1
    
    ERROR: CRC Failed : system_dlkm
    
    Sub items Errors: 1
    
    Archives with Errors: 1
    
    Warnings: 1
    
    Sub items Errors: 1
    
    [INFO] Extracting system_ext
    [ERROR] Error extracting system_ext.img
    [ERROR] 
    7-Zip [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
    p7zip Version 16.02 (locale=zh_CN.UTF-8,Utf16=on,HugeFiles=on,64 bits,14 CPUs AMD Ryzen 7 7840HS w/ Radeon 780M Graphics      (A70F41),ASM,AES-NI)
    
    Scanning the drive for archives:
    1 file, 671080448 bytes (640 MiB)
    
    Extracting archive: /home/dubhe/rothko/miui_ROTHKO_OS1.0.29.0.UNNCNXM_635dd68c27_14.0/temp_raw_images/system_ext.img
    
    ERRORS:
    Headers Error
    Unconfirmed start of archive
    
    
    WARNINGS:
    There are data after the end of archive
    
    --
    Path = /home/dubhe/rothko/miui_ROTHKO_OS1.0.29.0.UNNCNXM_635dd68c27_14.0/temp_raw_images/system_ext.img
    Type = zip
    ERRORS:
    Headers Error
    Unconfirmed start of archive
    WARNINGS:
    There are data after the end of archive
    Offset = 4098
    Physical Size = 51011584
    Tail Size = 620064766
    
    ERROR: CRC Failed : apex_payload.img
    
    Sub items Errors: 1
    
    Archives with Errors: 1
    
    Warnings: 1
    
    Open Errors: 1
    
    Sub items Errors: 1
    
    [INFO] Extracting vendor
    [ERROR] Error extracting vendor.img
    [ERROR] 
    7-Zip [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
    p7zip Version 16.02 (locale=zh_CN.UTF-8,Utf16=on,HugeFiles=on,64 bits,14 CPUs AMD Ryzen 7 7840HS w/ Radeon 780M Graphics      (A70F41),ASM,AES-NI)
    
    Scanning the drive for archives:
    1 file, 2325999616 bytes (2219 MiB)
    
    Extracting archive: /home/dubhe/rothko/miui_ROTHKO_OS1.0.29.0.UNNCNXM_635dd68c27_14.0/temp_raw_images/vendor.img
    
    ERRORS:
    Headers Error
    Unconfirmed start of archive
    
    
    WARNINGS:
    There are data after the end of archive
    
    --
    Path = /home/dubhe/rothko/miui_ROTHKO_OS1.0.29.0.UNNCNXM_635dd68c27_14.0/temp_raw_images/vendor.img
    Type = zip
    ERRORS:
    Headers Error
    Unconfirmed start of archive
    WARNINGS:
    There are data after the end of archive
    Offset = 4098
    Physical Size = 4205
    Tail Size = 2325991313
    
    ERROR: CRC Failed : apex_manifest.pb
    
    Sub items Errors: 1
    
    Archives with Errors: 1
    
    Warnings: 1
    
    Open Errors: 1
    
    Sub items Errors: 1
    
    [INFO] Extracting vendor_dlkm
    [ERROR] Error extracting vendor_dlkm.img
    [ERROR] 
    7-Zip [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
    p7zip Version 16.02 (locale=zh_CN.UTF-8,Utf16=on,HugeFiles=on,64 bits,14 CPUs AMD Ryzen 7 7840HS w/ Radeon 780M Graphics      (A70F41),ASM,AES-NI)
    
    Scanning the drive for archives:
    1 file, 21614592 bytes (21 MiB)
    
    Extracting archive: /home/dubhe/rothko/miui_ROTHKO_OS1.0.29.0.UNNCNXM_635dd68c27_14.0/temp_raw_images/vendor_dlkm.img
    
    WARNINGS:
    There are data after the end of archive
    
    --
    Path = /home/dubhe/rothko/miui_ROTHKO_OS1.0.29.0.UNNCNXM_635dd68c27_14.0/temp_raw_images/vendor_dlkm.img
    Type = gzip
    WARNINGS:
    There are data after the end of archive
    Offset = 4096
    Physical Size = 40438
    Tail Size = 21570058
    Headers Size = 10
    Streams = 1
    
    ERROR: CRC Failed : vendor_dlkm
    
    Sub items Errors: 1
    
    Archives with Errors: 1
    
    Warnings: 1
    
    Sub items Errors: 1
    
    [INFO] Extracting mi_ext
    [ERROR] Error extracting mi_ext.img
    [ERROR] 
    7-Zip [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
    p7zip Version 16.02 (locale=zh_CN.UTF-8,Utf16=on,HugeFiles=on,64 bits,14 CPUs AMD Ryzen 7 7840HS w/ Radeon 780M Graphics      (A70F41),ASM,AES-NI)
    
    Scanning the drive for archives:
    1 file, 176128 bytes (172 KiB)
    
    Extracting archive: /home/dubhe/rothko/miui_ROTHKO_OS1.0.29.0.UNNCNXM_635dd68c27_14.0/temp_raw_images/mi_ext.img
    
    WARNINGS:
    There are data after the end of archive
    
    --
    Path = /home/dubhe/rothko/miui_ROTHKO_OS1.0.29.0.UNNCNXM_635dd68c27_14.0/temp_raw_images/mi_ext.img
    Type = gzip
    WARNINGS:
    There are data after the end of archive
    Offset = 4096
    Physical Size = 5043
    Tail Size = 166989
    Headers Size = 10
    Streams = 1
    
    ERROR: Data Error : mi_ext
    
    Sub items Errors: 1
    
    Archives with Errors: 1
    
    Warnings: 1
    
    Sub items Errors: 1
    
    [INFO] Extracting modem
    [ERROR] Error extracting modem.img
    [ERROR] 
    7-Zip [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
    p7zip Version 16.02 (locale=zh_CN.UTF-8,Utf16=on,HugeFiles=on,64 bits,14 CPUs AMD Ryzen 7 7840HS w/ Radeon 780M Graphics      (A70F41),ASM,AES-NI)
    
    Scanning the drive for archives:
    1 file, 98344960 bytes (94 MiB)
    
    Extracting archive: /home/dubhe/rothko/miui_ROTHKO_OS1.0.29.0.UNNCNXM_635dd68c27_14.0/temp_raw_images/modem.img
    ERROR: /home/dubhe/rothko/miui_ROTHKO_OS1.0.29.0.UNNCNXM_635dd68c27_14.0/temp_raw_images/modem.img
    Can not open the file as archive
    
    
    Can't open as archive: 1
    Files: 0
    Size:       0
    Compressed: 0
    
    [INFO] Step 4 - Finalizing
    [INFO] Creating all_files.txt
    
    Done! You can find the dump in /home/dubhe/rothko/miui_ROTHKO_OS1.0.29.0.UNNCNXM_635dd68c27_14.0
    
    dubhe@dubhe-ubuntu22:~/rothko$ cd miui_ROTHKO_OS1.0.29.0.UNNCNXM_635dd68c27_14.0/
    dubhe@dubhe-ubuntu22:~/rothko/miui_ROTHKO_OS1.0.29.0.UNNCNXM_635dd68c27_14.0$ ls -l
    总计 139432
    -rw-rw-r-- 1 dubhe dubhe     1656 12月 18 15:32 all_files.txt
    drwxrwxr-x 3 dubhe dubhe     4096 12月 18 15:32 boot
    -rw-rw-r-- 1 dubhe dubhe 67108864 12月 18 15:32 boot.img
    -rw-rw-r-- 1 dubhe dubhe   118784 12月 18 15:32 dtbo.img
    drwxrwxr-x 3 dubhe dubhe     4096 12月 18 15:32 init_boot
    -rw-rw-r-- 1 dubhe dubhe  8388608 12月 18 15:32 init_boot.img
    drwx------ 2 dubhe dubhe     4096 12月 18 15:32 mi_ext
    drwx------ 3 dubhe dubhe     4096 12月 18 15:32 odm
    drwx------ 2 dubhe dubhe     4096 12月 18 15:32 odm_dlkm
    drwx------ 3 dubhe dubhe     4096 12月 18 15:32 product
    drwx------ 2 dubhe dubhe     4096 12月 18 15:32 system
    drwx------ 2 dubhe dubhe     4096 12月 18 15:32 system_dlkm
    drwx------ 2 dubhe dubhe     4096 12月 18 15:32 system_ext
    drwx------ 2 dubhe dubhe     4096 12月 18 15:32 vendor
    drwxrwxr-x 3 dubhe dubhe     4096 12月 18 15:32 vendor_boot
    -rw-rw-r-- 1 dubhe dubhe 67108864 12月 18 15:32 vendor_boot.img
    drwx------ 2 dubhe dubhe     4096 12月 18 15:32 vendor_dlkm
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions