[Sony Ericsson XPERIA X10 Mini] vincent_smoox:
(Important!!) Before unlock bootloader, initialize your mini pro with SEUS (Sony Ericsson Update Service) to download the official ROM image into your PC.

http://www.sonyericsson.co.jp/support/software/updateservice/

See Sony Ericsson bootloader unlock official site. Follow the instruction page, except No.8 and 10. See below regarding No.8 and 10.

http://unlockbootloader.sonyericsson.com/

http://unlockbootloader.sonyericsson.com/instructions

No.8 does not work. If you have the latest USB driver (which version is 12/06/2010,4.0.0000.00000 or newer) in your Android SDK folder, just add below description in the android_winusb.inf.

[Google.NTx86]

; SonyEricsson

%SingleAdbInterface% = USB_Install, USB\VID_0FCE&PID_0DDE

%CompositeAdbInterface% = USB_Install, USB\VID_0FCE&PID_0DDE&MI_01

%SingleBootLoaderInterface% = USB_Install, USB\VID_0FCE&PID_0DDE

for 64 bit Windows

[Google.NTamd64]

; SonyEricsson

%SingleAdbInterface% = USB_Install, USB\VID_0FCE&PID_0DDE

%CompositeAdbInterface% = USB_Install, USB\VID_0FCE&PID_0DDE&MI_01

%SingleBootLoaderInterface% = USB_Install, USB\VID_0FCE&PID_0DDE

No.10 - To enter fastboot mode, turn off the phone, hold [Vol Up] button, then connect USB cable. (It will turn on Blue LED.)

▲ ▼

Extract system image from downloaded SEUS image files Edit

Find 3 "FILE_(numbers)" files in SEUS db folder below. The file size are about 66KB, 15MB and 150MB.

C:\Program Files\Sony Ericsson\Update Service\db\13740270\blob_fs

Download ConvertTool.zip from here

Extract ConvertTool.zip, then put the 3 FILE_(numbers) files into the same folder.

Execute below command from cmd prompt. You will get 3 tgz files.

SeusDecrypt.bat FILE_(numbers)

The smallest file should be renamed "loader.sin".

Extract the largest file with 7-zip (as WinZip does not work), or rename *.tgz to *.zip, then extract it with WinRAR. You will get FILE_(number) files again.

Extract it with 7-zip or WinRAR to get *.sin files.

Download SIN2IMG from here

Convert system.sin to img file.

SIN2IMG system.sin system.img

▲ ▼

Modify system image Edit

Use linux PC

Download unyaffs tool from here, then make it

Download yaffs2 tool (mkfs.yaffs2.x86) from here, then put it into the same folder as unyaffs

Put system.img into the same folder as unyaffs

Extract the system.img into my_system folder

mkdir my_system

cd my_system

sudo ../unyaffs ../system.img

Modify my_system folder as you like. For example, download the Superuser and extract it,

mkdir extracted_superuser

cd extracted_superuser

sudo unzip su-2.3.6.1-ef-signed.zip

sudo cp extracted_superuser/system/app/Superuser.apk my_system/app/

sudo cp extracted_superuser/system/bin/su my_system/bin/

sudo chmod 644 my_sustem/Superuser.apk

sudo chmod 06755 my_system/bin/su

Compress my_system folder to image file.

sudo mkfs.yaffs2.x86 my_system my_system.img

▲ ▼

Burn system image Edit

Recommend using Windows PC, as Windows Android SDK has fastboot tool by default

Turn off the phone, then wait for a while.

Hold [Vol up] button, then connect USB cable. (will turn on the blue LED.)

Execute below command from cmd prompt

fastboot flash system my_system.img