|
| 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 |
0 commit comments