[Galaxy S III Mini Q&A, Help & Troubleshooting] nslookup:
Before you follow all this steps, remember:

THIS IS NOT A HOW TO...!!!!!!!!!!!

Remember, that i'm asking to other more experienced users if this method should work, so, i haven't tried it yet ;)

Hi, im trying to change the ROM of my galaxy s3 mini from Linux using heimdall, and i've doubts.

My current ROM:

build number: JR003H.I8190XXALL2

kernel version: 3.0.31-639956

android version: 4.1.1

baseband version: I8190XXALL2​

New ROM:

http://xdaforums.com/showthread.php?t=2104638

build number: JZO54K.I8190XXAMA1

kernel version: 3.0.31 - 790526

baseband version: XAAMA1 [EUROPE]

android version: 4.1.2

ROM STATUS: NON-WIPE

FIRMWARE STATUS AFTER FLASH: OFFICIAL

BINARY COUNT AFTER FLASH: NONE​

In this thread, the user arturaz explained how to change the ROM using heimdall:

http://xdaforums.com/showthread.php?t=2066668

But, he used a ROM with the same baseband than the old one. As you see, I have an issue: my current baseband version is different than the new one. So, i'll have to flash more files, and thats my trouble. Because I'm not sure about that, and I need someone to tell me if my reasoning is ok.

Lets go!

1. Decompress all files of my ROM. I've stored then in my home:

/home/ali3n//galaxys3/I8190XXAMA1_I8190OXAAMA1_4.1.2_rooted_by_infected_/

[COLOR="Blue"]$ cd /home/ali3n//galaxys3/I8190XXAMA1_I8190OXAAMA1_4.1.2_rooted_by_infected_/[/COLOR]

[COLOR="Blue"]$ ls -1a[/COLOR]

boot.img

cache.img

hidden.img

modem.bin

STE_boot1.img

STE_boot2.img

system.img​

So, those are the files that I've to look for in my current pit file.

I put my phone in download mode, connect to my pc and:

2. ¿Does heimdall detect my device?

[COLOR="Blue"]$ sudo heimdall detect[/COLOR]

Device detected​

3. Lets see my pit file to look for the files needed in the new ROM version and which partitions are used for each of them:

[COLOR="Blue"]$ sudo heimdall print-pit[/COLOR]

Heimdall v1.3.1, Copyright (c) 2010-2011, Benjamin Dobell, Glass Echidna

http://www.glassechidna.com.au

This software is provided free of charge. Copying and redistribution is

encouraged.

If you appreciate this software and you would like to support future

development please consider donating:

http://www.glassechidna.com.au/donate/

Initialising connection...

Detecting device...

Claiming interface...

Attempt failed. Detaching driver... -----> (i'm not sure about if should I continue)

Claiming interface again...

Setting up interface...

Checking if protocol is initialised...

Protocol is not initialised.

Initialising protocol...

Handshaking with Loke...

Beginning session...

Session begun with device of type: 131072

Downloading device's PIT file...

PIT file download sucessful

Entry Count: 25

Unknown 1: 1598902083

Unknown 2: 844251476

Unknown 3: 28519

Unknown 4: 25708

Unknown 5: 28261

Unknown 6: 0

Unknown 7: 0

Unknown 8: 0

--- Entry #0 ---

Unused: No

Partition Type: 2 (EXT4)

Partition Identifier: 1

Partition Flags: 2 (R/W)

Unknown 1: 1

Partition Block Size: 0

Partition Block Count: 256

Unknown 2: 0

Unknown 3: 0

Partition Name: MBR,GPT

Filename:

--- Entry #1 ---

Unused: No

Partition Type: 2 (EXT4)

Partition Identifier: 2

Partition Flags: 2 (R/W)

Unknown 1: 1

Partition Block Size: 256

Partition Block Count: 768

Unknown 2: 0

Unknown 3: 0

Partition Name: MasterTOC

Filename: STE_boot.bin

--- Entry #2 ---

Unused: No

Partition Type: 2 (EXT4)

Partition Identifier: 70

Partition Flags: 5 (R)

Unknown 1: 1

Partition Block Size: 1024

Partition Block Count: 2048

Unknown 2: 0

Unknown 3: 0

Partition Name: PIT

Filename: goldenxx.pit

--- Entry #3 ---

Unused: No

Partition Type: 2 (EXT4)

Partition Identifier: 71

Partition Flags: 5 (R)

Unknown 1: 1

Partition Block Size: 6144

Partition Block Count: 2048

Unknown 2: 0

Unknown 3: 0

Partition Name: MD5HDR

Filename: md5.img

--- Entry #4 ---

Unused: No

Partition Type: 2 (EXT4)

Partition Identifier: 3

Partition Flags: 2 (R/W)

Unknown 1: 1

Partition Block Size: 8192

Partition Block Count: 1024

Unknown 2: 0

Unknown 3: 0

Partition Name: STEboot1

Filename: STE_boot1.img

--- Entry #5 ---

Unused: No

Partition Type: 2 (EXT4)

Partition Identifier: 4

Partition Flags: 2 (R/W)

Unknown 1: 1

Partition Block Size: 9216

Partition Block Count: 1024

Unknown 2: 0

Unknown 3: 0

Partition Name: STEboot2

Filename: STE_boot2.img

--- Entry #6 ---

Unused: No

Partition Type: 2 (EXT4)

Partition Identifier: 5

Partition Flags: 2 (R/W)

Unknown 1: 1

Partition Block Size: 10240

Partition Block Count: 1024

Unknown 2: 0

Unknown 3: 0

Partition Name: Dnt

Filename: dnt.ssw

--- Entry #7 ---

Unused: No

Partition Type: 2 (EXT4)

Partition Identifier: 6

Partition Flags: 2 (R/W)

Unknown 1: 1

Partition Block Size: 11264

Partition Block Count: 1024

Unknown 2: 0

Unknown 3: 0

Partition Name: reserved

Filename:

--- Entry #8 ---

Unused: No

Partition Type: 2 (EXT4)

Partition Identifier: 7

Partition Flags: 5 (R)

Unknown 1: 1

Partition Block Size: 16384

Partition Block Count: 2048

Unknown 2: 0

Unknown 3: 0

Partition Name: CSPSAFS

Filename: cspsa.img

--- Entry #9 ---

Unused: No

Partition Type: 2 (EXT4)

Partition Identifier: 8

Partition Flags: 5 (R)

Unknown 1: 1

Partition Block Size: 18432

Partition Block Count: 2048

Unknown 2: 0

Unknown 3: 0

Partition Name: CSPSAFS2

Filename: cspsa2.img

--- Entry #10 ---

Unused: No

Partition Type: 2 (EXT4)

Partition Identifier: 9

Partition Flags: 5 (R)

Unknown 1: 5

Partition Block Size: 20480

Partition Block Count: 32768

Unknown 2: 0

Unknown 3: 0

Partition Name: EFS

Filename: EFS.img

--- Entry #11 ---

Unused: No

Partition Type: 2 (EXT4)

Partition Identifier: 10

Partition Flags: 5 (R)

Unknown 1: 5

Partition Block Size: 53248

Partition Block Count: 32768

Unknown 2: 0

Unknown 3: 0

Partition Name: ModemFS

Filename: modemfs.img

--- Entry #12 ---

Unused: No

Partition Type: 2 (EXT4)

Partition Identifier: 11

Partition Flags: 5 (R)

Unknown 1: 5

Partition Block Size: 86016

Partition Block Count: 32768

Unknown 2: 0

Unknown 3: 0

Partition Name: ModemFS2

Filename: modemfs2.img

--- Entry #13 ---

Unused: No

Partition Type: 2 (EXT4)

Partition Identifier: 12

Partition Flags: 5 (R)

Unknown 1: 1

Partition Block Size: 118784

Partition Block Count: 102400

Unknown 2: 0

Unknown 3: 0

Partition Name: Fota

Filename: ssgtest.img

--- Entry #14 ---

Unused: No

Partition Type: 2 (EXT4)

Partition Identifier: 13

Partition Flags: 5 (R)

Unknown 1: 1

Partition Block Size: 380928

Partition Block Count: 128

Unknown 2: 0

Unknown 3: 0

Partition Name: IPL Modem

Filename: ipl.bin

--- Entry #15 ---

Unused: No

Partition Type: 2 (EXT4)

Partition Identifier: 14

Partition Flags: 5 (R)

Unknown 1: 1

Partition Block Size: 385024

Partition Block Count: 28672

Unknown 2: 0

Unknown 3: 0

Partition Name: Modem

Filename: modem.bin

--- Entry #16 ---

Unused: No

Partition Type: 2 (EXT4)

Partition Identifier: 15

Partition Flags: 2 (R/W)

Unknown 1: 1

Partition Block Size: 417792

Partition Block Count: 4096

Unknown 2: 0

Unknown 3: 0

Partition Name: Loke4

Filename: normal.bin

--- Entry #17 ---

Unused: No

Partition Type: 2 (EXT4)

Partition Identifier: 16

Partition Flags: 2 (R/W)

Unknown 1: 1

Partition Block Size: 421888

Partition Block Count: 4096

Unknown 2: 0

Unknown 3: 0

Partition Name: 2ndLoke4

Filename: normal2.bin

--- Entry #18 ---

Unused: No

Partition Type: 2 (EXT4)

Partition Identifier: 17

Partition Flags: 5 (R)

Unknown 1: 1

Partition Block Size: 425984

Partition Block Count: 32768

Unknown 2: 0

Unknown 3: 0

Partition Name: PARAM

Filename: param.lfs

--- Entry #19 ---

Unused: No

Partition Type: 2 (EXT4)

Partition Identifier: 18

Partition Flags: 5 (R)

Unknown 1: 1

Partition Block Size: 458752

Partition Block Count: 32768

Unknown 2: 0

Unknown 3: 0

Partition Name: Kernel

Filename: boot.img

--- Entry #20 ---

Unused: No

Partition Type: 2 (EXT4)

Partition Identifier: 19

Partition Flags: 5 (R)

Unknown 1: 1

Partition Block Size: 491520

Partition Block Count: 32768

Unknown 2: 0

Unknown 3: 0

Partition Name: Kernel2

Filename: recovery.img

--- Entry #21 ---

Unused: No

Partition Type: 2 (EXT4)

Partition Identifier: 20

Partition Flags: 5 (R)

Unknown 1: 5

Partition Block Size: 524288

Partition Block Count: 2457600

Unknown 2: 0

Unknown 3: 0

Partition Name: SYSTEM

Filename: system.img

--- Entry #22 ---

Unused: No

Partition Type: 2 (EXT4)

Partition Identifier: 21

Partition Flags: 5 (R)

Unknown 1: 5

Partition Block Size: 2981888

Partition Block Count: 1720320

Unknown 2: 0

Unknown 3: 0

Partition Name: CACHEFS

Filename: cache.img

--- Entry #23 ---

Unused: No

Partition Type: 2 (EXT4)

Partition Identifier: 22

Partition Flags: 5 (R)

Unknown 1: 5

Partition Block Size: 4702208

Partition Block Count: 655360

Unknown 2: 0

Unknown 3: 0

Partition Name: HIDDEN

Filename: hidden.img

--- Entry #24 ---

Unused: No

Partition Type: 2 (EXT4)

Partition Identifier: 23

Partition Flags: 5 (R)

Unknown 1: 5

Partition Block Size: 5357568

Partition Block Count: 9891840

Unknown 2: 0

Unknown 3: 0

Partition Name: DATAFS

Filename: userdata.img

Ending session...

Rebooting device...

Re-attaching kernel driver...
​

4. flashing the device and installing the rooted ROM

Once I've located which Partition Identifier is associated to each of the new ROM files:

[COLOR="Blue"]$ sudo heimdall flash --3 STE_boot1.img --4 STE_boot2.img --14 modem.bin --18 boot.img --20 system.img --21 cache.img --22 hidden.img[/COLOR]

I think thats all. ¿It's all right? ¿Does anybody do it before? I don't know if should i do anything else before flashing the device, and i wanna know your opinion about if this is the right way.

Thank you!