Hi, Guest! Login / Register




Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

[Development] How to unpack and repack system.img or system.new.dat in Windows

#1
(This post was last modified: 07-07-2017, 09:42 PM by hovatek. )

This guide will show you how to successfully unpack and repack an Android system image

Requirements


How to unpack and repack Android system.img & system.new.dat



How to unpack system.img


  1. Run Auto_Tool.exe as as Administrator

    [Image: Hovatek-how-to-unpack-and-repack-system.img-1.jpg]

  2. You should now be in the tools Dashboard

    [Image: Hovatek-how-to-unpack-and-repack-system.img-2.jpg]

    Type 4 then press Enter

    [Image: Hovatek-how-to-unpack-and-repack-system.img-3.jpg]

  3. Copy the file_contexts and system.img into the Input-IMG folder

    [Image: Hovatek-how-to-unpack-and-repack-system.img-4.jpg]

  4. Go back to the tool and press Enter

    [Image: Hovatek-how-to-unpack-and-repack-system.img-5.jpg]

  5. Wait while the system image gets unpacked

    [Image: Hovatek-how-to-unpack-and-repack-system.img-7.jpg]

  6. Copy the size
  7. bytes, you'll need it for repacking . In this example, it is 2684190720

    [Image: Hovatek-how-to-unpack-and-repack-system.img-8.jpg]

  8. Once unpacking is done, press Enter

    [Image: Hovatek-how-to-unpack-and-repack-system.img-9.jpg]

  9. You should find the unpacked system image in the Unpack-IMG folder

    [Image: Hovatek-how-to-unpack-and-repack-system.img-10.jpg]

How to repack system.img


  1. Go back to the tool, type 5 then press Enter

    [Image: Hovatek-how-to-unpack-and-repack-system.img-11.jpg]

  2. Type y then press Enter

    [Image: Hovatek-how-to-unpack-and-repack-system.img-12.jpg]

  3. Type the size in bytes you copied from above (in this example, it is 2684190720) then press Enter

    [Image: Hovatek-how-to-unpack-and-repack-system.img-13.jpg]

  4. Wait while the image is repacked

    [Image: Hovatek-how-to-unpack-and-repack-system.img-14.jpg]

  5. Once repacking is done, press Enter

    [Image: Hovatek-how-to-unpack-and-repack-system.img-15.jpg]

  6. You should see the repacked system.img in the IMG-Repack folder

    [Image: Hovatek-how-to-unpack-and-repack-system.img-16.jpg]

How to unpack system.new.dat


  1. Run Auto_Tool.exe as as Administrator

    [Image: Hovatek-how-to-unpack-and-repack-system.img-1.jpg]

  2. Type 1 then press Enter

    [Image: Hovatek-how-to-unpack-and-repack-system.new_.dat-1.jpg]

  3. Copy the file_contexts, system.new.dat and system.transfer.list into the Input-DAT folder

    [Image: Hovatek-how-to-unpack-and-repack-system.new_.dat-2.jpg]

  4. Go back to the tool and press Enter

    [Image: Hovatek-how-to-unpack-and-repack-system.new_.dat-3.jpg]

  5. Wait while the system.new.dat is unpacked

    [Image: Hovatek-how-to-unpack-and-repack-system.new_.dat-4.jpg]

  6. Copy the size
  7. bytes, you'll need it for repacking. In this example, it is 2684354560

    [Image: Hovatek-how-to-unpack-and-repack-system.new_.dat-5.jpg]

  8. Once unpacking is done, press Enter

    [Image: Hovatek-how-to-unpack-and-repack-system.new_.dat-6.jpg]

  9. You should see the unpacked system.new.dat in the Unpack-DAT folder

    [Image: Hovatek-how-to-unpack-and-repack-system.new_.dat-7.jpg]

How to repack system.new.dat


  1. Return to the tool, type 2 and press Enter

    [Image: Hovatek-how-to-unpack-and-repack-system.new_.dat-8.jpg]

  2. Type y then press Enter

    [Image: Hovatek-how-to-unpack-and-repack-system.new_.dat-9.jpg]

  3. Type the size in bytes you copied from above (in this example, it is 2684354560) then press Enter

    [Image: Hovatek-how-to-unpack-and-repack-system.new_.dat-10.jpg]

  4. Wait while system.new.dat is repacked

    [Image: Hovatek-how-to-unpack-and-repack-system.new_.dat-11.jpg]

  5. Once repacking is done, press Enter

    [Image: Hovatek-how-to-unpack-and-repack-system.new_.dat-12.jpg]

  6. You should now see the repacked system.new.dat and system.transfer.list in the DAT-Repack folder

    [Image: Hovatek-how-to-unpack-and-repack-system.new_.dat-13.jpg]



Reply
#2
thanks bro I will try , thanks for your quick response, great salute
Reply










Users browsing this thread:
1 Guest(s)