Project

General

Profile

Actions

Feature #2073

open

PIT file editor: extend Heimdall with reverse of print-pit or create separate tool

Added by dl lud almost 4 years ago. Updated over 2 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Heimdall
Target version:
-
Start date:
07/07/2020
Due date:
% Done:

0%

Estimated time:
Upstream patch status:
Work not started
Grant:
Type of work:
Any programming languages (scripts, C, etc)

Description

PIT (Partition Information Table) files contain the partition layout for Samsung phones and tablets. They can be used by flashing tools such as Heimdall to repartition the device.

So far, Replicant did not require any device to be repartitioned, and rather sticked with the stock partition table. However, repartitioning may be needed in the near future, due to issues like #1873.

Unfortunately, there is no free software tool available to edit PIT files. There is only a proprietary tool dubbed PIT Magic.

Heimdall includes a sub-module, called libpit that can read a PIT file and print the contents in a human readable format. This can be used through Heimdall's print-pit command.
This existing feature could be leveraged to create the reverse command, say build-pit, that grabs the human readable text format and generates the corresponding binary PIT.

Due to modularity and separation of concerns, I would rather have both these commands (print-pit and build-pit) in a separate tool. Heimdall should only do flashing ("do one thing, do it right").
The only advantage I see on adding this to Heimdall, is that Heimdall is already packaged in several GNU/Linux distros. Users could easily access this new feature once a new version is released. However this isn't much relevant, as editing PIT files is not something end-users are going to do. The PIT file must be crafted according to needs of the Android distribution, and thus is a task for Replicant maintainers.

Actions

Also available in: Atom PDF