Skip to content

Commit c4aec8d

Browse files
committed
configs: add support for tama devices
* copied from akari * fixes #717
1 parent 7c05e5a commit c4aec8d

3 files changed

Lines changed: 128 additions & 0 deletions

File tree

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,8 @@ Sony | Xperia 10 | [kirin](https://wiki.lineageos.org/devices/kirin) | | tested
202202
Sony | Xperia 10 Plus | [mermaid](https://wiki.lineageos.org/devices/mermaid) | | tested
203203
Sony | Xperia XA2 | [pioneer](https://wiki.lineageos.org/devices/pioneer) | | tested
204204
Sony | Xperia XZ2 | [akari](https://wiki.lineageos.org/devices/akari) | | tested
205+
Sony | Xperia XZ2 Compact | [xz2c](https://wiki.lineageos.org/devices/xz2c) | | untested
206+
Sony | Xperia XZ2 Premium | [aurora](https://wiki.lineageos.org/devices/aurora) | | untested
205207
Sony | Xperia XZ3 | [akatsuki](https://wiki.lineageos.org/devices/akatsuki) | | tested
206208
Sony | Xperia XZ | kagura | | planned
207209

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.sonymobile.com/unlockbootloader/unlock-yourboot-loader/
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
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 compact
4+
is_ab_device: true
5+
device_code: xz2c
6+
supported_device_codes:
7+
- xz2c
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.sonymobile.com/unlockbootloader/unlock-yourboot-loader/
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

0 commit comments

Comments
 (0)