Announcement

Collapse
No announcement yet.

Announcement

Collapse
No announcement yet.

Android 9 partition repack tool!

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #16
    Thank.It was different on the site ATVxperience.Now you need to understand this way.











    Comment


      #17
      the tool now does everything automatically, you no longer have to write long commands

      Comment


        #18
        I'm trying to unpack an android 9 image with this but I am getting this error

        mkdir -p "out/amlogic/device/1-2g/img-unpack"
        touch "out/amlogic/device/1-2g/img-unpack/.stamp.dir"
        tools/linux/aml_image_v2_packer -d ingredients/aml_upgrade_package.img out/amlogic/device/1-2g/img-unpack
        [Msg]Image package version 0x2
        [ERR]f(AmlImagePack.cpp)L306:Image check error! CRC check failed!
        [ERR]f(AmlImagePack.cpp)L1635:Image file check failed!
        make: *** [build/img-amlogic-unpack.mak:31: out/amlogic/device/1-2g/img-unpack/.stamp.unpack] Error 253

        Comment


          #19
          You have to copy aml_upgrade_package.img to afck/ingredients, pay attention to file names, you must not change them

          Comment


            #20
            Hi bumerc I was using a stock image and not upgrade image, but I renamed to aml_upgrade_package.img and placed in the folder you said above.

            I was hoping this would open the image

            Comment


              #21
              what does the command say?
              Code:
              fileinfo ingrediends/aml_upgrade_package.img

              Comment


                #22
                hmm

                it comes back with this

                aml_upgrade_package.img
                Error in pixReadHeader: unknown format in file aml_upgrade_package.img
                Error in writeImageFileInfo: failure to read header of aml_upgrade_package.img

                Comment


                  #23
                  strange, try with
                  Code:
                  file ingredients/aml_upgrade_package.img

                  Comment


                    #24
                    it comes back with

                    upgrade_package.img
                    aml_upgrade_package.img: data

                    Comment


                      #25
                      Originally posted by no1special View Post
                      hmm

                      it comes back with this

                      aml_upgrade_package.img
                      Error in pixReadHeader: unknown format in file aml_upgrade_package.img
                      Error in writeImageFileInfo: failure to read header of aml_upgrade_package.img
                      strange, it looks like a different file format, install binwalk for more information and then
                      Code:
                      binwalk ingredients/aml_upgrade_package.img

                      Comment


                        #26
                        DECIMAL HEXADECIMAL DESCRIPTION
                        --------------------------------------------------------------------------------
                        1248 0x4E0 Ubiquiti partition header, header size: 56 bytes, name: "PARTITION", base address: 0x00000000, data size: 0 bytes
                        3552 0xDE0 Ubiquiti partition header, header size: 56 bytes, name: "PARTITION", base address: 0x00000000, data size: 0 bytes
                        4704 0x1260 Ubiquiti partition header, header size: 56 bytes, name: "PARTITION", base address: 0x00000000, data size: 0 bytes
                        5856 0x16E0 Ubiquiti partition header, header size: 56 bytes, name: "PARTITION", base address: 0x00000000, data size: 0 bytes
                        7008 0x1B60 Ubiquiti partition header, header size: 56 bytes, name: "PARTITION", base address: 0x00000000, data size: 0 bytes
                        8736 0x2220 Ubiquiti partition header, header size: 56 bytes, name: "PARTITION", base address: 0x00000000, data size: 0 bytes
                        10464 0x28E0 Ubiquiti partition header, header size: 56 bytes, name: "PARTITION", base address: 0x00000000, data size: 0 bytes
                        11616 0x2D60 Ubiquiti partition header, header size: 56 bytes, name: "PARTITION", base address: 0x00000000, data size: 0 bytes
                        12768 0x31E0 Ubiquiti partition header, header size: 56 bytes, name: "PARTITION", base address: 0x00000000, data size: 0 bytes
                        13920 0x3660 Ubiquiti partition header, header size: 56 bytes, name: "PARTITION", base address: 0x00000000, data size: 0 bytes
                        15072 0x3AE0 Ubiquiti partition header, header size: 56 bytes, name: "PARTITION", base address: 0x00000000, data size: 0 bytes
                        722869 0xB07B5 Android bootimg, kernel size: 1280131328 bytes, kernel addr: 0x55434553, ramdisk size: 1094713377 bytes, ramdisk addr: 0x7E004C4D, product name: " : fail to load internal RSA key!"
                        727512 0xB19D8 SHA256 hash constants, little endian
                        1197571 0x124603 LZO compressed data
                        1198521 0x1249B9 SHA256 hash constants, little endian
                        1317552 0x141AB0 gzip compressed data, from Unix, last modified: 1970-01-01 00:00:00 (null date)
                        2108201 0x202B29 Android bootimg, kernel size: 1280131328 bytes, kernel addr: 0x55434553, ramdisk size: 1094713377 bytes, ramdisk addr: 0x7E004C4D, product name: " : fail to load internal RSA key!"
                        2112844 0x203D4C SHA256 hash constants, little endian
                        2582903 0x276977 LZO compressed data
                        2583853 0x276D2D SHA256 hash constants, little endian
                        2703488 0x294080 Android bootimg, kernel size: 9535672 bytes, kernel addr: 0x1080000, ramdisk size: 0 bytes, ramdisk addr: 0x1000000, product name: ""
                        2705536 0x294880 uImage header, header size: 64 bytes, header CRC: 0x5DF80BD0, created: 2019-10-09 06:26:13, image size: 9535608 bytes, Data Address: 0x108000, Entry Point: 0x108000, data CRC: 0xA271987A, OS: Linux, CPU: ARM, image type: OS Kernel Image, compression type: none, image name: "Linux-4.9.113"
                        2705600 0x2948C0 Linux kernel ARM boot executable zImage (little-endian)
                        2708036 0x295244 device tree image (dtb)
                        2734140 0x29B83C gzip compressed data, maximum compression, from Unix, last modified: 1970-01-01 00:00:00 (null date)
                        12243072 0xBAD080 gzip compressed data, from Unix, last modified: 1970-01-01 00:00:00 (null date)
                        12327200 0xBC1920 device tree image (dtb)
                        13228984 0xC9DBB8 gzip compressed data, from Unix, last modified: 1970-01-01 00:00:00 (null date)
                        13239744 0xCA05C0 Linux EXT filesystem, blocks count: 32768, image size: 33554432, rev 1.0, ext2 filesystem data, UUID=659b9b4d-880e-42cb-87c8-b3e9a47da47d, volume name "odm"
                        46833696 0x2CAA020 xz compressed data

                        whats the command to save it to file

                        Comment


                          #27
                          this is not an ordinary aml format, post the link to this firmware.
                          Rename *upgrade_package.img to aml_upgrade_package.img.xz and try to extract it
                          Code:
                          tar xfJ aml_upgrade_package.img.xz
                          then
                          Code:
                          make mod-unpack aml_upgrade_package.img

                          Comment


                            #28
                            I got the image from here https://androidtvbox.eu/t95-max-plus...-soc-20191119/

                            I appreciate your help.

                            I'll rename it now and open it

                            Comment


                              #29
                              Downloads/afck/ingredients$ tar xfJ aml_upgrade_package.img.xz
                              xz: (stdin): File format not recognized
                              tar: Child returned status 1
                              tar: Error is not recoverable: exiting now

                              something strange going on here lol

                              Comment


                                #30
                                Originally posted by Justsomeone View Post
                                I got the image from here https://androidtvbox.eu/t95-max-plus...-soc-20191119/

                                I appreciate your help.

                                I'll rename it now and open it
                                ok, i will check it when i am at home

                                Comment

                                Working...
                                X