Skip to content

Commit 4bba095

Browse files
authored
Support for more Xperia devices (#734)
2 parents 9f26053 + 19f88b7 commit 4bba095

File tree

18 files changed

+579
-14
lines changed

18 files changed

+579
-14
lines changed

README.md

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -197,13 +197,23 @@ Samsung | Galaxy Note 10+ | [d2s](https://wiki.lineageos.org/devices/d2s) | | te
197197
Vendor | Device Name | CodeName | Models | Status
198198
---|---|---|---|---
199199
Sony | Xperia Z | [yuga](https://wiki.lineageos.org/devices/yuga) | C6603 | tested
200-
Sony | Xperia Z3 | [z3](https://wiki.lineageos.org/devices/z3) | | tested
201-
Sony | Xperia 10 | [kirin](https://wiki.lineageos.org/devices/kirin) | | tested
202-
Sony | Xperia 10 Plus | [mermaid](https://wiki.lineageos.org/devices/mermaid) | | tested
203-
Sony | Xperia XA2 | [pioneer](https://wiki.lineageos.org/devices/pioneer) | | tested
204-
Sony | Xperia XZ2 | [akari](https://wiki.lineageos.org/devices/akari) | | tested
205-
Sony | Xperia XZ3 | [akatsuki](https://wiki.lineageos.org/devices/akatsuki) | | tested
206-
Sony | Xperia XZ | kagura | | planned
200+
Sony | Xperia Z3 | [z3](https://wiki.lineageos.org/devices/z3) | D6603 | tested
201+
Sony | Xperia Z3 Compact | [z3c](https://wiki.lineageos.org/devices/z3c) | D5803, D5833 | untested
202+
Sony | Xperia 10 | [kirin](https://wiki.lineageos.org/devices/kirin) | I3113, I3123, I4113, I4193 | tested
203+
Sony | Xperia 10 Plus | [mermaid](https://wiki.lineageos.org/devices/mermaid) | I3213, I3223, I4213, I4293 | tested
204+
Sony | Xperia XA2 | [pioneer](https://wiki.lineageos.org/devices/pioneer) | H3113, H4113, H3133, H4133, H3123 | tested
205+
Sony | Xperia XZ Premium | maple | G8141 | untested
206+
Sony | Xperia XZ Premium Dual Sim | maple_dsds | G8142 | untested
207+
Sony | Xperia XZ1 | poplar | G8341 | tested
208+
Sony | Xperia XZ1 Dual Sim | poplar_dsds | G8342 | untested
209+
Sony | Xperia XZ1 Canada | poplar_canada | G8343 | untested
210+
Sony | Xperia XZ1 KDDI | poplar_kddi | SOV36 | untested
211+
Sony | Xperia XZ1 Compact | lilac | G8441, G8442 | untested
212+
Sony | Xperia XZ2 | [akari](https://wiki.lineageos.org/devices/akari) | H8216, H8266, H8276, H8296 | tested
213+
Sony | Xperia XZ2 Compact | [xz2c](https://wiki.lineageos.org/devices/xz2c) | H8314, H8324 | untested
214+
Sony | Xperia XZ2 Premium | [aurora](https://wiki.lineageos.org/devices/aurora) | H8116, H8166 | untested
215+
Sony | Xperia XZ3 | [akatsuki](https://wiki.lineageos.org/devices/akatsuki) | H8416, H9436, H9493 | tested
216+
Sony | Xperia XZ | kagura | F8331 | planned
207217

208218
</details>
209219

openandroidinstaller/assets/configs/akari.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ steps:
2222
content: >
2323
Click on the button to open the instructions on Sonys official unlocking website to generate an unlock code for your bootloader.
2424
Once you got the code write it down somewhere and continue to input the code.
25-
link: https://developer.sonymobile.com/unlockbootloader/unlock-yourboot-loader/
25+
link: https://developer.sony.com/open-source/aosp-on-xperia-open-devices/get-started/unlock-bootloader
2626
- type: confirm_button
2727
content: >
2828
Connect the device to your PC via USB. And confirm to continue.

openandroidinstaller/assets/configs/akatsuki.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ steps:
2222
content: >
2323
Click on the button to open the instructions on Sonys official unlocking website to generate an unlock code for your bootloader.
2424
Once you got the code write it down somewhere and continue to input the code.
25-
link: https://developer.sonymobile.com/unlockbootloader/unlock-yourboot-loader/
25+
link: https://developer.sony.com/open-source/aosp-on-xperia-open-devices/get-started/unlock-bootloader
2626
- type: confirm_button
2727
content: >
2828
Connect the device to your PC via USB. And confirm to continue.
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
metadata:
2+
maintainer: Tobias Sterbak (tsterbak)/SirRGB
3+
device_name: Sony Xperia XZ2 Premium
4+
is_ab_device: true
5+
device_code: aurora
6+
supported_device_codes:
7+
- aurora
8+
untested: true
9+
requirements:
10+
android: 10
11+
steps:
12+
unlock_bootloader:
13+
- type: confirm_button
14+
content: >
15+
As a first step, you need to unlock the bootloader of your device. On the device, dial *#*#7378423#*#* (*#*#SERVICE#*#*) to launch the service menu.
16+
- type: confirm_button
17+
content: >
18+
Go to service info > configuration and check rooting status - you can only continue if it says 'Bootloader unlock allowed":" Yes.'
19+
- type: confirm_button
20+
content: >
21+
Now go to Settings 'About the phone' and then Status. Write down the IMEI of your device. You will need it in the next step.
22+
- type: link_button_with_confirm
23+
content: >
24+
Click on the button to open the instructions on Sonys official unlocking website to generate an unlock code for your bootloader.
25+
Once you got the code write it down somewhere and continue to input the code.
26+
link: https://developer.sony.com/open-source/aosp-on-xperia-open-devices/get-started/unlock-bootloader
27+
- type: confirm_button
28+
content: >
29+
Connect the device to your PC via USB. And confirm to continue.
30+
- type: call_button
31+
content: >
32+
Press the button to reboot into the bootloader now. When the notification light turns blue, confirm to continue.
33+
command: adb_reboot_bootloader
34+
- type: call_button_with_input
35+
content: >
36+
Use your code to unlock the bootloader of your device. Type in the full 18 character code starting with 0x (Example: 0x3EC4F7AD6E0B32B6).
37+
If you already did that, you can skip this step.
38+
command: fastboot_unlock_with_code
39+
- type: call_button
40+
content: >
41+
Press the button to reboot. Since the device resets completely, you will need to re-enable USB debugging to continue.
42+
Connect your device to your PC via USB. Then confirm here to continue.
43+
command: fastboot_reboot
44+
boot_recovery:
45+
- type: call_button
46+
content: >
47+
Now you need to boot a custom recovery system on the phone. A recovery is a small subsystem on your phone, that manages updating,
48+
adapting and repairing of the operating system.
49+
Make sure your device is turned on. You need to reboot into the bootloader again by pressing 'Confirm and run' here. Then continue.
50+
command: adb_reboot_bootloader
51+
- type: call_button
52+
content: >
53+
Boot a custom recovery (temporarily) by pressing 'Confirm and run'. Once it's done continue.
54+
command: fastboot_flash_boot
55+
- type: call_button
56+
content: >
57+
In some cases, the inactive slot can be unpopulated or contain much older firmware than the active slot, leading to various issues including a potential hard-brick.
58+
We can ensure none of that will happen by copying the contents of the active slot to the inactive slot. Press 'confirm and run' to to this. Once you are in the bootloader again, continue.
59+
command: adb_twrp_copy_partitions
60+
- type: call_button
61+
content: >
62+
Now we need to boot into recovery again. Press run and when you see the TWRP screen you can continue.
63+
command: fastboot_flash_boot

openandroidinstaller/assets/configs/kirin.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ steps:
2020
content: >
2121
Click on the button to open the instructions on Sonys official unlocking website to generate an unlock code for your bootloader.
2222
Once you got the code write it down somewhere and continue to input the code.
23-
link: https://developer.sonymobile.com/unlockbootloader/unlock-yourboot-loader/
23+
link: https://developer.sony.com/open-source/aosp-on-xperia-open-devices/get-started/unlock-bootloader
2424
- type: confirm_button
2525
content: >
2626
Connect the device to your PC via USB. And confirm to continue.
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
metadata:
2+
maintainer: Tobias Sterbak (tsterbak)/SirRGB
3+
device_name: Sony Xperia XZ1 Compact
4+
is_ab_device: false
5+
device_code: lilac
6+
supported_device_codes:
7+
- lilac
8+
- G8441
9+
twrp-link: lilac
10+
untested: true
11+
requirements:
12+
android: 9
13+
steps:
14+
unlock_bootloader:
15+
- type: confirm_button
16+
content: >
17+
As a first step, you need to unlock the bootloader of your device. On the device, dial *#*#7378423#*#* (*#*#SERVICE#*#*) to launch the service menu.
18+
- type: confirm_button
19+
content: >
20+
Go to service info > configuration and check rooting status - you can only continue if it says 'Bootloader unlock allowed":" Yes.'
21+
- type: confirm_button
22+
content: >
23+
Now go to Settings 'About the phone' and then Status. Write down the IMEI of your device. You will need it in the next step.
24+
- type: link_button_with_confirm
25+
content: >
26+
Click on the button to open the instructions on Sonys official unlocking website to generate an unlock code for your bootloader.
27+
Once you got the code write it down somewhere and continue to input the code.
28+
link: https://developer.sony.com/open-source/aosp-on-xperia-open-devices/get-started/unlock-bootloader
29+
- type: confirm_button
30+
content: >
31+
Connect the device to your PC via USB. And confirm to continue.
32+
- type: call_button
33+
content: >
34+
Press the button to reboot into the bootloader now. When the notification light turns blue, confirm to continue.
35+
command: adb_reboot_bootloader
36+
- type: call_button_with_input
37+
content: >
38+
Use your code to unlock the bootloader of your device. Type in the full 18 character code starting with 0x (Example: 0x3EC4F7AD6E0B32B6).
39+
If you already did that, you can skip this step.
40+
command: fastboot_unlock_with_code
41+
- type: call_button
42+
content: >
43+
Press the button to reboot. Since the device resets completely, you will need to re-enable USB debugging to continue.
44+
Connect your device to your PC via USB. Then confirm here to continue.
45+
command: fastboot_reboot
46+
boot_recovery:
47+
- type: call_button
48+
content: >
49+
Now you have to reboot into bootloader again. With your phone turned on, press the button to do so and continue once it is done.
50+
command: adb_reboot_bootloader
51+
- type: call_button
52+
content: >
53+
Next, you need to boot a custom recovery image. Press the button to flash the selected image. Then continue.
54+
command: fastboot_flash_boot
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
metadata:
2+
maintainer: Tobias Sterbak (tsterbak)/SirRGB
3+
device_name: Sony Xperia XZ Premium
4+
is_ab_device: false
5+
device_code: maple
6+
supported_device_codes:
7+
- maple
8+
- G8141
9+
twrp-link: maple
10+
untested: true
11+
requirements:
12+
android: 9
13+
steps:
14+
unlock_bootloader:
15+
- type: confirm_button
16+
content: >
17+
As a first step, you need to unlock the bootloader of your device. On the device, dial *#*#7378423#*#* (*#*#SERVICE#*#*) to launch the service menu.
18+
- type: confirm_button
19+
content: >
20+
Go to service info > configuration and check rooting status - you can only continue if it says 'Bootloader unlock allowed":" Yes.'
21+
- type: confirm_button
22+
content: >
23+
Now go to Settings 'About the phone' and then Status. Write down the IMEI of your device. You will need it in the next step.
24+
- type: link_button_with_confirm
25+
content: >
26+
Click on the button to open the instructions on Sonys official unlocking website to generate an unlock code for your bootloader.
27+
Once you got the code write it down somewhere and continue to input the code.
28+
link: https://developer.sony.com/open-source/aosp-on-xperia-open-devices/get-started/unlock-bootloader
29+
- type: confirm_button
30+
content: >
31+
Connect the device to your PC via USB. And confirm to continue.
32+
- type: call_button
33+
content: >
34+
Press the button to reboot into the bootloader now. When the notification light turns blue, confirm to continue.
35+
command: adb_reboot_bootloader
36+
- type: call_button_with_input
37+
content: >
38+
Use your code to unlock the bootloader of your device. Type in the full 18 character code starting with 0x (Example: 0x3EC4F7AD6E0B32B6).
39+
If you already did that, you can skip this step.
40+
command: fastboot_unlock_with_code
41+
- type: call_button
42+
content: >
43+
Press the button to reboot. Since the device resets completely, you will need to re-enable USB debugging to continue.
44+
Connect your device to your PC via USB. Then confirm here to continue.
45+
command: fastboot_reboot
46+
boot_recovery:
47+
- type: call_button
48+
content: >
49+
Now you have to reboot into bootloader again. With your phone turned on, press the button to do so and continue once it is done.
50+
command: adb_reboot_bootloader
51+
- type: call_button
52+
content: >
53+
Next, you need to boot a custom recovery image. Press the button to flash the selected image. Then continue.
54+
command: fastboot_flash_boot
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
metadata:
2+
maintainer: Tobias Sterbak (tsterbak)/SirRGB
3+
device_name: Sony Xperia XZ Premium Dual Sim
4+
is_ab_device: false
5+
device_code: maple_dsds
6+
supported_device_codes:
7+
- maple_dsds
8+
- G8142
9+
twrp-link: maple_dsds
10+
untested: true
11+
requirements:
12+
android: 9
13+
steps:
14+
unlock_bootloader:
15+
- type: confirm_button
16+
content: >
17+
As a first step, you need to unlock the bootloader of your device. On the device, dial *#*#7378423#*#* (*#*#SERVICE#*#*) to launch the service menu.
18+
- type: confirm_button
19+
content: >
20+
Go to service info > configuration and check rooting status - you can only continue if it says 'Bootloader unlock allowed":" Yes.'
21+
- type: confirm_button
22+
content: >
23+
Now go to Settings 'About the phone' and then Status. Write down the IMEI of your device. You will need it in the next step.
24+
- type: link_button_with_confirm
25+
content: >
26+
Click on the button to open the instructions on Sonys official unlocking website to generate an unlock code for your bootloader.
27+
Once you got the code write it down somewhere and continue to input the code.
28+
link: https://developer.sony.com/open-source/aosp-on-xperia-open-devices/get-started/unlock-bootloader
29+
- type: confirm_button
30+
content: >
31+
Connect the device to your PC via USB. And confirm to continue.
32+
- type: call_button
33+
content: >
34+
Press the button to reboot into the bootloader now. When the notification light turns blue, confirm to continue.
35+
command: adb_reboot_bootloader
36+
- type: call_button_with_input
37+
content: >
38+
Use your code to unlock the bootloader of your device. Type in the full 18 character code starting with 0x (Example: 0x3EC4F7AD6E0B32B6).
39+
If you already did that, you can skip this step.
40+
command: fastboot_unlock_with_code
41+
- type: call_button
42+
content: >
43+
Press the button to reboot. Since the device resets completely, you will need to re-enable USB debugging to continue.
44+
Connect your device to your PC via USB. Then confirm here to continue.
45+
command: fastboot_reboot
46+
boot_recovery:
47+
- type: call_button
48+
content: >
49+
Now you have to reboot into bootloader again. With your phone turned on, press the button to do so and continue once it is done.
50+
command: adb_reboot_bootloader
51+
- type: call_button
52+
content: >
53+
Next, you need to boot a custom recovery image. Press the button to flash the selected image. Then continue.
54+
command: fastboot_flash_boot

openandroidinstaller/assets/configs/mermaid.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ steps:
2020
content: >
2121
Click on the button to open the instructions on Sonys official unlocking website to generate an unlock code for your bootloader.
2222
Once you got the code write it down somewhere and continue to input the code.
23-
link: https://developer.sonymobile.com/unlockbootloader/unlock-yourboot-loader/
23+
link: https://developer.sony.com/open-source/aosp-on-xperia-open-devices/get-started/unlock-bootloader
2424
- type: confirm_button
2525
content: >
2626
Connect the device to your PC via USB. And confirm to continue.

openandroidinstaller/assets/configs/pioneer.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ steps:
2222
content: >
2323
Click on the button to open the instructions on Sonys official unlocking website to generate an unlock code for your bootloader.
2424
Once you got the code write it down somewhere and continue to input the code.
25-
link: https://developer.sonymobile.com/unlockbootloader/unlock-yourboot-loader/
25+
link: https://developer.sony.com/open-source/aosp-on-xperia-open-devices/get-started/unlock-bootloader
2626
- type: confirm_button
2727
content: >
2828
Connect the device to your PC via USB. And confirm to continue.

0 commit comments

Comments
 (0)