How to Extract PIT File from Samsung Galaxy Devices

How to Extract PIT File from Samsung Galaxy DevicesSamsung Galaxy stock firmwares are now easily available on the internet, and flashing them to your Galaxy devices even easier. If you are an Android enthusiast, then you might also have faced such situations in which flashing the stock firmware might be your last chance to restore your device.

Whether you want to fix a bootloop issue of your device, unroot the device and remove a custom recovery or you just simply want to upgrade to new OS or downgrade it manually, in all such cases you will have to flash the stock firmware. If you are a Samsung user and have ever experienced flashing an official firmware, CF-Root or a recovery .tar file, then you must be well aware of this light weight handy tool called Odin.

In all Samsung devices there is a Download or Odin mode available to install firmwares, kernels, firmware components or custom recoveries with the help of Odin. Odin firmware flashing success rate is based on the preparations before flashing firmware. Things go according to the plan if you make the required preparations before starting the flashing process.

However, there are some reasons when the process ends up with FAIL! error message in Odin. “Invalid Ext6 image” and “Get PIT for mapping” are the two common issues encountered while flashing stock firmwares using Odin.

<ID:0/003>Added!!
<ID:0/003>Odin v.3 engine (ID:3)
<ID:0/003>File analysis
<ID:0/003>Set PIT file
<ID:0/003>DO NOT TURN OFF TARGET!!
<ID:0/003>Get PIT for mapping

EXT4 is the storage structure that Android devices use to define the allocation of available storage space to system partitions. PIT (Partition Information Table) contains the map of storage allocations for all system partitions and it is an integral element of all Samsung firmwares. Not only the storage, region or carrier is different in the variants of same device but the structure of PIT on them differ from each other.

When we flash a firmware on any device, the first thing Odin starts looking for is the partition information table. If the PIT is detected by Odin successfully, the installation will complete without any interruption but if Odin fails to detect PIT or it’s corrupted due to any reason then “Get PIT for mapping” error occurred in Odin. To resolve this issue you will have to provide the correct PIT in Odin in order to install the firmware successfully.

Note: The PIT is always storage sensitive and in some cases CSC sensitive. For example, if you have a Samsung Galaxy S6 64GB model, the required PIT file must be for the same model number and storage capacity.

You can Google to get the appropriate PIT file for your device, but if it’s not available then there is another way to get it from your device manually. Follow the instructions below to see how we can extract PIT file from Samsung Galaxy devices.

Also see: How to Create, Analyze, and Edit PIT Files using PIT Magic

Extract PIT File from Samsung Galaxy Devices

Requirements: Both the methods described below have been tested on the Samsung Galaxy devices. You must have root access on your Galaxy device to use any of the listed methods.

1. Terminal Emulator Method

  • Install the Terminal Emulator app for Android from the Play store:
  • Then install the BusyBox app. After installing, open this app and then tap on Install option.
  • Launch Terminal Emulator and allow root permission access when prompted.
  • Push the following command code:
    • su
  • Then push the following code in Terminal Emulator:
    • dd if=/dev/block/mmcblk0 of=/sdcard/out.pit bs=8 count=580 skip=2176

Now browse and find the backed up PIT file on your phone’s storage and then transfer it to your PC for future use.

2. ADB Command Method

Before applying the ADB command method, install the Android SDK or ADB on your computer but if you don’t know the procedure to setup the Android SDK or ADB then read these tutorials for further details.

  • Enable the USB Debugging Mode on your device:
    • Open device Settings
    • Go to Developer options
    • Enable USB Debugging
  • Open the ADB folder
  • Move the mouse pointer to an empty space on the folder and then press Shift key + Right mouse click.
  • Click on “Open command window here” option.
  • A command prompt window will appear on screen.
  • By using stock USB cable connect your Samsung device to the PC.
  • Type the following commands in the command prompt window and then hit the Enter key.
    • adb devices
    • adb shell
    • su
  • When SU is called, grant device root access and then push the following command line code:
    • dd if=/dev/block/mmcblk0 of=/sdcard/out.pit bs=8 count=580 skip=2176
  • Your device’s PIT should be backed up to the internal storage of the device. Save it on your computer.
  • Browse device’s internal storage for the backup up PIT file.
  • Transfer the backed up PIT file to your PC for future use.

Congrats! You have now successfully extracted the PIT file from your Samsung device. If you encounter any problem using the tutorial or have any other query, please leave us a comment.

PIT Files Collection for Samsung Devices

Here are the few PIT files download links for some Galaxy devices. If your model is listed you can download the PIT file by clicking on the link below. To find out your device model, go to  Settings >> About.

Samsung Galaxy S4

Galaxy S4 Windows | Mirror

AT&T Galaxy S4 SGH-I337 16GB | Mirror

Sprint Galaxy S4 SPH-L720 16GB

Verizon Galaxy S4 SCH-I545

Galaxy S4 I9500 32GB | Mirror

Galaxy S4 I9505 32GB | Mirror

Sprint S4 jfltespr 16GB | Mirror

Samsung Galaxy Note 3

Galaxy Note 3 SM-N900 ha3g 32GB | Mirror

Galaxy Note 3 SM-N9005 HLTE 16GB | Mirror

Galaxy Note 3 SM-N9005 32GB | Mirror

Galaxy Note 3 AT&T SM-N900A 32GMirror

Galaxy Note 3 Sprint SM-N900P 32 GBMirror

Galaxy Note 3 Verizon SM-N900V 32G | Mirror

Samsung Galaxy Note 4

Galaxy Note 4 SM-N910F 32GB | Mirror

Galaxy Note 4 T-Mobile SM-N910T 32GB | Mirror

Samsung Galaxy S5

Galaxy S5 Plus G901F G901FVFG1ANI1 VD2Mirror

Galaxy S5 AT&T SM-G900A 16GBMirror

Galaxy S5 SM-G900F 16GBMirror

Galaxy S5 SM-G900H 16GBMirror

Galaxy S5 SM-G900I 16GBMirror

Galaxy S5 SM-G900M 16GBMirror

Galaxy S5 Sprint SM-G900P 16GBMirror

Galaxy S5 T-Mobile SM-G900T 16GBMirror

Galaxy S5 SM-G900W8 16GBMirror

Galaxy Grand Prime SM-G530H

If you have some more PIT file links, you can share it with us in the comment section below!

Leave a Reply