[HTC One S] touch of jobo:
I do it here in public, in case anyone else finds it interesting and/or useful. Since much of this is not specific to the Desire X but applies to most devices, and can also be used to identify other partitions, by comparing the contents to image files extracted from RUUs.

So here we go then.. Read the entire thing before you start doing it.

The .zip I attached is not flashable. You should unzip it on your Computer. Inside it is a file named xsplash.565 which you should put on your sdcard. You can do this while booted in android, or using 'adb push' after you boot into recovery. It doesn't matter as long as it ends up on the sdcard of your device.

Boot into recovery, get an adb shell.

From the info in the post I linked to before, the partitions that are not labeled as something else, and are not too small to hold the splash are:

3, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 18, 19, 20, 24

If you have the original HTC boot splash that is completely white wth green HTC letters halfway down, then we only need very little data to identify it, but let's take 1k. (

Let me know if you don't have the white stock splash.

) The command for this is 'dd', with the parameters if=input file, of=output file, bs=block size, count=how many blocks.

For each partition XX, do the following:

dd if=/dev/block/mmcblk0pXX bs=1024 count=1 | hexdump -v

Note: we don't use the 'of' (output file) parameter, but instead we pipe the output through hexdump, to display it in a readable form. The thing between 'count=1' and 'hexdump' is the pipe symbol, probably above your backslash on your keyboard. (It is on mine.)

It should look something like this:

~ # dd if=/dev/block/mmcblk0p24 bs=1024 count=1 | hexdump -v

1+0 records in

1+0 records out

1024 bytes (1.0KB) copied, 0.005676 seconds, 176.2KB/s

0000000 479a 9ff4 2d5d a303 7558 e5a8 e79f 0a79

0000010 1c33 c68c a8d4 8886 850c c85e 0a88 825a

0000020 2ec4 1f5f 3e56 ba8a ead4 b776 d06d 67eb

0000030 995b e227 bb03 430b 0fb5 c760 367a ffe1

..etc..

00003c0 f8e8 dd4b 6c36 2dca 7bc2 423c 13a6 9b10

00003d0 2ad8 8edc c1a0 4760 85ac 55a0 7a4b f40d

00003e0 66df 6c08 cf62 51bd d0a7 2808 fc35 f563

00003f0 24c8 0867 a004 e4b2 aed2 4664 7a9f 94a9

0000400

/sdcard #

For a lot of them you may find they consist of mostly zeros.

For one of the partitions, the output will look like this:

0000000 f79d f79d f79d f79d f79d f79d f79d f79d

0000010 f79d f79d f79d f79d f79d f79d f79d f79d

0000020 f79d f79d f79d f79d f79d f79d f79d f79d

0000030 f79d f79d f79d f79d f79d f79d f79d f79d

..etc..

It is full of f79d. That pattern is the solid almost-white color of the stock splash.

This is the partition we're looking for.

When you have this, continue for the others, to make sure that there is only one.

(I assume you find one, and not more than one.

If not, don't continue.

)

From here on, XX is the number we found here.

Now that we have our suspect, here comes the scary part: we're going to flash something new into it, to confirm.

Confirm that sdcard is mounted.

Type the command 'df'. The output should look like this and show you where sdcard is mounted.

~ # df

Filesystem 1K-blocks Used Available Use% Mounted on

tmpfs 389848 48 389800 0% /dev

/dev/block/mmcblk0p34 258012 4248 253764 2% /cache

/dev/block/mmcblk0p36 10413072 4892480 5520592 47% /sdcard

Go to your sdcard partition. (The output from the previous command tells you the mount point.)

~ # cd /sdcard

/sdcard #

If you want to be able to flash the original back, you have to dump it now.

(Replace XX with the partition number we found before.)

/sdcard # dd if=/dev/block/mmcblk0pXX of=stock.565 bs=1024 count=750

750+0 records in

750+0 records out

768000 bytes (750.0KB) copied, 0.020876 seconds, 35.1MB/s

/sdcard #

Make sure the xsplash.565 file is there, and if you made a backup, then the stock one as well.

/sdcard # ls -l *565

-rwxrwxrwx 1 root root 768000 May 24 19:54 stock.565

-rwxrwxrwx 1 root root 768000 May 24 19:16 xsplash.565

Confirm that the file size is

exactly 768000 bytes

. (This is 480 x 800 x 2. It is also 750 x 1024)

If all is good, we're now going to flash it:

(Replace XX with the partition number we found before.)

/sdcard # dd if=xsplash.565 of=/dev/block/mmcblk0pXX

1500+0 records in

1500+0 records out

768000 bytes (750.0KB) copied, 0.353151 seconds, 2.1MB/s

So this time round, the input is the file and the output is the block device.

If you enter the wrong partition number here, you may have a brick.

At this point, you cross your fingers, or do any other ritual to please the Gods of Gadgets,

then reboot your device.

...

If it all successful, let me know the partition number. If it is not successful, let me know where you get stuck, or have doubts, or the output doesn't match what I wrote.

The next thing will be to construct a recovery-flashable .zip for you to test, so you will get yet another opportunity to destroy your device.

Happy hunting,

-Jobo