Thursday, December 18, 2014

Using Heimdall MacOS to Install Stock ROM on Galaxy S2

I have always played with my Samsung Handsets (Rooting, Multi-Booting, trying different ROMs) using the standard Odin software on Windows. Somehow have never loved the easy life on Windows and always fancied to work on the Macintosh OS (Being from a Unix Background, I liked it even more). I own an Apple MacBook Air, and have been doing a lot of stuff lately using it.

The latest was trying to install the stock rom on my Galaxy S2. The steps I followed will be briefed in the below blog.

Pre-requisites

1- Samsung S2 phone (Or any other phone model)
2- USB Cable
3- Battery at-least 50% charged
4- Download the required Stock Rom (can use http://stockroms.net)
5- Install heimdall-suite-1.4.0-mac.dmg on your Mac. Download here

In my case I downloaded ICS Stock Rom for Galaxy S2


Step 1 : Connect your phone

A- Open Heimdall
B- Connect the USB cable on the phone
C- Restart the phone in download mode (Vol Down + Power + Home)
D- Vol UP to continue download mode
E- In Heimdall GUI, click on Utilities
F- Click on detect on the top left. The output should say "Device detected", if not, repeat the steps again from B.

Step 2 : Download the current PIT file.

If you need to save your current partition instruction table, you have to create a PIT file of the current set up.

A - Follow step 1 to connect phone
B- Once device is connected, in Utilities screen, click on save as.
C- Give a path where you want to save the PIT file
D- Click on download. This will download the pit file on the location you mention. If it hangs in the process anywhere, repeat the steps and try

Output Screen Heimdall+++++++++++++++++++++++++++++++

Successful Rom Updates using Macbok - Heimdall

Heimdall v1.4.0

Copyright (c) 2010-2013, 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...
Setting up interface...

Initialising protocol...
Protocol initialisation successful.

Beginning session...

Some devices may take up to 2 minutes to respond.
Please be patient!

Session begun.

Downloading device's PIT file...
PIT file download successful.

Output Ends++++++++++++++++++++++++++++++++++++++++


Step 3 : Installing the ROM

The ROM you download, should have the below mentioned files to continue install


A - Follow Step 1 and Step 2 above
B- Click on Flash in Heimdall GUI frontend
C- Browse the PIT which you downloaded in Step 2, Once you do that the partition name field gets active
D- Select Partition name and assign respective files from the ROM which you need to install e.g

BOOT=boot.bin
CACHE=cache.img
FACTORYFS=factoryfs.img
HIDDEN=hidden.img
MODEM=modem.bin
PARAM=param.lfs
SB1=SbI.bin
KERNEL=zimage

E- Then click start. The magic will begin. Post install the phone will reboot, and Heimdall GUI fronted will look as below :


Output Screen Heimdall+++++++++++++++++++++++++++++++

Successful Rom Updates using Macbok - Heimdall

Heimdall v1.4.0

Copyright (c) 2010-2013, 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...
Setting up interface...

Initialising protocol...
Protocol initialisation successful.

Beginning session...

Some devices may take up to 2 minutes to respond.
Please be patient!

Session begun.

Uploading BOOT
0%
100%

BOOT upload successful

Uploading SBL1
0%
80%
100%

SBL1 upload successful

Uploading PARAM
0%
94%
100%

PARAM upload successful

Uploading KERNEL
0%
12%
25%
37%
50%
62%
75%
87%
100%

KERNEL upload successful

Uploading CACHE
0%
5%
10%
16%
21%
27%
32%
38%
43%
49%
54%
60%
65%
71%
76%
82%
87%
93%
98%
100%

CACHE upload successful

Uploading MODEM
0%
8%
16%
24%
33%
41%
49%
58%
66%
74%
83%
91%
99%
100%

MODEM upload successful

Uploading FACTORYFS
0%
1%
2%
3%
4%
5%
6%
7%
8%
9%
10%
11%
12%
13%
14%
15%
16%
17%
18%
19%
20%
21%
22%
23%
24%
25%
26%
27%
28%
29%
30%
31%
32%
33%
34%
35%
36%
37%
38%
39%
40%
41%
42%
43%
44%
45%
46%
47%
48%
49%
50%
51%
52%
53%
54%
55%
56%
57%
58%
59%
60%
61%
62%
63%
64%
65%
66%
67%
68%
69%
70%
71%
72%
73%
74%
75%
76%
77%
78%
79%
80%
81%
82%
83%
84%
85%
86%
87%
88%
89%
90%
91%
92%
93%
94%
95%
96%
97%
98%
99%
100%

FACTORYFS upload successful

Uploading HIDDEN
0%
1%
2%
3%
4%
5%
6%
7%
8%
9%
10%
11%
12%
13%
14%
15%
16%
17%
18%
19%
20%
21%
23%
24%
25%
26%
27%
28%
29%
30%
31%
32%
33%
34%
35%
36%
37%
38%
39%
40%
41%
42%
43%
44%
46%
47%
48%
49%
50%
51%
52%
53%
54%
55%
56%
57%
58%
59%
60%
61%
62%
63%
64%
65%
66%
67%
69%
70%
71%
72%
73%
74%
75%
76%
77%
78%
79%
80%
81%
82%
83%
84%
85%
86%
87%
88%
89%
90%
92%
93%
94%
95%
96%
97%
98%
99%
100%

HIDDEN upload successful

Ending session...
Rebooting device...
Releasing device interface...



Output Ends++++++++++++++++++++++++++++++++++++++++

Enjoy Flashing your handset.... Cheers.


The Azure Synapse Resource Provider Error

  If you are get the error " The Azure Synapse resource provider (Microsoft.Synapse) needs to be registered with the selected subscript...