Project

General

Profile

GTI9100GBootloaderFreedom » History » Version 8

Denis 'GNUtoo' Carikli, 03/06/2020 11:59 PM
simplify checking

1 1 Denis 'GNUtoo' Carikli
h1. I9100GBootloader
2
3 2 Denis 'GNUtoo' Carikli
h2. Unsigned versions
4
5 3 Denis 'GNUtoo' Carikli
We need to correlate some devices property (like the Android version it's shipped with, serial numbers, etc) to be able to easily differentiate between signed and unsigned versions, to makes it much more simple to get devices with unsigned bootloaders.
6 1 Denis 'GNUtoo' Carikli
7 3 Denis 'GNUtoo' Carikli
"hpagseddy/i9100g_xloader":https://github.com/hpagseddy/i9100g_xloader is based on "ths-backup/i9100g_xloader":https://github.com/ths-backup/i9100g_xloader which has an ics (Icecream Sandwitch, an Android version) branch only.
8
9
Devices with Android 4.0.4 or 4.1.2 might have the unsigned bootloader while at least one device with Android 2.3.6 have a signed bootloader.
10
11 8 Denis 'GNUtoo' Carikli
h2. Versions with signed bootloaders
12 3 Denis 'GNUtoo' Carikli
13 8 Denis 'GNUtoo' Carikli
h3. Checking if you have a signed bootloader
14 7 Denis 'GNUtoo' Carikli
15 8 Denis 'GNUtoo' Carikli
To do that you need to get into the ODIN MODE that is typically used to install the Replicant recovery:
16 1 Denis 'GNUtoo' Carikli
17 7 Denis 'GNUtoo' Carikli
# Start the device by holding the following key combination: *Volume down, Select, Power*,
18
# Hold the key combination until the device shows a *Warning* message.
19
# Confirm that you want to download a custom OS using volume up
20
# Make sure the device is in *Downloading* mode
21
22
When this is done, it should show some text:
23
<pre>
24
ODIN MODE
25
PRODUCT NAME: GT-I9100G_CHN_CHN
26
</pre>
27
28
Here CHN_CHN probably refers to the chinese version. According to "a thread on the XDA developers forum":https://forum.xda-developers.com/galaxy-s2/development/guide-repair-totally-sleep-dead-boot-t1701471 ("Means that you own a chinese bootloader locked I9100G. You can't flash any other bootloader than the chinese one.") , that version has a signed bootloader.
29 8 Denis 'GNUtoo' Carikli
30 1 Denis 'GNUtoo' Carikli
31 5 Denis 'GNUtoo' Carikli
h2. How to check for signed bootloader
32
33 1 Denis 'GNUtoo' Carikli
To get the bootrom to try to boot on USB, you need to do the following:
34
* Connect the USB cable to the device but make sure it's not connected on the computer.
35
* Power off the device
36
* Connect the USB cable
37
38
If we do that, we get the following in the kernel log of your laptop:
39
<pre>
40
usb 1-1: new high-speed USB device number 24 using ehci-pci
41
usb 1-1: unable to get BOS descriptor or descriptor too short
42
usb 1-1: New USB device found, idVendor=0451, idProduct=d00f, bcdDevice= 0.00
43
usb 1-1: New USB device strings: Mfr=33, Product=37, SerialNumber=0
44
usb 1-1: Product: OMAP4430
45
usb 1-1: Manufacturer: Texas Instruments
46
</pre>
47
48
We can also try to get a bit more infos with omap-usb-boot:
49
<pre>
50
$ sudo omap-usb-boot -v -w boot invalidbootmedia
51
Finding and opening USB device
52
Found and opened omap4 USB device: OMAP4430
53
ASIC device id: 4430, HS device
54
Booting from device invalidbootmedia...
55
Booting device invalidbootmedia not found
56
Booting from device failed
57
</pre>
58
59
Here we know the device is signed because it's a "HS device".
60 2 Denis 'GNUtoo' Carikli
If it was not signed it would print "GP device" instead.
61
62
h2. Source code
63
64
* https://github.com/hpagseddy/i9100g_xloader This got rebuilt and flashed, and it worked on the device it was tested on.
65
* https://blog.the-leviathan.ch/?p=408
66
67 1 Denis 'GNUtoo' Carikli
h2. TODO
68
69
* Understand how to get unsigned versions (Android version, serial number, etc)
70
* Get a device with u-boot and ask samsung for source code
71 6 Denis 'GNUtoo' Carikli
* Try to boot the xloader nevertheless, as the device could be in some "verify but not enforce mode" for signatures