From 577bdec650ed20cbabedce90269c68003977f85a Mon Sep 17 00:00:00 2001 From: Denis 'GNUtoo' Carikli Date: Tue, 21 Jul 2020 18:21:57 +0200 Subject: stock GT-I9305 16G PIT: remove unknown data With the 16G.pit file we have the following information: - Device variant: GT-I9305 - eMMC size: 16G - Data at 0xA6C: 0000 0A4C: 72 65 6D 61 69 6E 65 64 00 00 00 00 00 00 00 00 remained ........ 0000 0A5C: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........ 0000 0A6C: 7B 99 2D 9E F9 FA 12 39 08 2D 43 69 29 C5 54 EB {.-....9 .-Ci).T. With another PIT we have differences starting at 0x85C: - Device variant: GT-I9305 - eMMC size: 16G - ro.bootloader: I9305XXSFQD1 - Data at 0xA6C: 0000 0A4C: 72 65 6D 61 69 6E 65 64 00 00 00 00 00 00 00 00 remained ........ 0000 0A5C: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........ 0000 0A6C: 32 62 8B D1 9F 21 FC 70 E7 A2 AB 4F B9 84 57 43 2b...!.p ...O..WC I've no idea what that data is, so it's better to remove it as it may contain data that is either privacy or security sensitive or data that we may not be able to redistribute. The comparison was done with vbindiff and stripping the data was achieved with the following commands: $ dd if=16G.pit of=new.pit count=2668 bs=1 $ mv new.pit 16G.pit The output of 'heimdall print-pit --file' is exactly the same between the old 16G.pit, the new one, and all other PITs mentioned above. Once stripped, all the PITs were identical bit by bit. This was verified with the cmp command. Signed-off-by: Denis 'GNUtoo' Carikli --- PIT/GT-I9305/stock/16G.pit | Bin 8192 -> 2668 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/PIT/GT-I9305/stock/16G.pit b/PIT/GT-I9305/stock/16G.pit index f24cc1d..c7800c7 100644 Binary files a/PIT/GT-I9305/stock/16G.pit and b/PIT/GT-I9305/stock/16G.pit differ -- cgit v1.2.3