-
-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This PR adds: Fixes: - Fairphone3 now uses flashing unlock to unlock the bootloader - fix bootloader unlock issue with fastboot Features: - Disable callbutton while command is running; clean error text at retry - another steptype for requirements and get them from config. - restructure welcome page to make it better - a bit more default pictures for steps - let advanced view toggle in every step independently - Enable copy_partitions sideloading Chores: - Major refactoring of views - test search device function in tooling - refactor call_to_phone method - refactored terminal box - test for TerminalBox 11 New devices: - Motorola moto g7 power (ocean) - Motorola moto g5 (cedric) - Samsung Galaxy Note 9 (crownlte) - Samsung Galaxy Note 10 (d1) - oneplus 6 - oneplus 6T - oneplus 7 - oneplus 7 Pro - oneplus 7T - oneplus 7T Pro - OnePlus Nord N200
- Loading branch information
Showing
48 changed files
with
2,081 additions
and
757 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
metadata: | ||
maintainer: Tobias Sterbak (tsterbak) | ||
devicename: Motorola Moto G5 | ||
devicecode: cedric | ||
steps: | ||
unlock_bootloader: | ||
- type: call_button | ||
command: adb_reboot_bootloader | ||
content: > | ||
As a first step, you need to unlock the bootloader of your device. A bootloader is the piece of software, that tells your phone | ||
how to start and run an operating system (like Android). You need to boot into fastboot mode by pressing the 'Confirm and run' button. Then continue. | ||
- type: call_button | ||
command: fastboot_get_unlock_data | ||
content: > | ||
Now you need to get your device ID to get an unlock code from Motorola. Press 'Confirm and run' to get the ID. (You need to toggle 'Advanced Output' here to see it.) | ||
Copy it to a separate file to use it in the next step. | ||
- type: link_button_with_confirm | ||
content: > | ||
Click on the button to open the instructions on Motorola's official unlocking website to generate an unlock code for your bootloader. | ||
Copy the code from the last step to the website and follow the instructions there. Then continue here. | ||
link: https://motorola-global-portal.custhelp.com/app/standalone/bootloader/unlock-your-device-a | ||
- type: confirm_button | ||
content: Connect the device to your PC via USB. And confirm to continue. | ||
- type: call_button_with_input | ||
content: > | ||
Use your code to unlock the bootloader of your device. Type in the full 21 character code you received by email (Example: 5RTSQCYL7ZJKL4NN35MY). Then confirm an run. Afterwards you can continue. | ||
command: fastboot_unlock_with_code | ||
- type: call_button_with_input | ||
content: > | ||
You need to perform the last command again, so reenter the code and run again. Afterwards you can continue. | ||
command: fastboot_unlock_with_code | ||
- type: call_button | ||
content: > | ||
Press the button to reboot. Since the device resets completely, you will need to re-enable USB debugging to continue. | ||
Connect your device to your PC via USB. Then confirm here to continue. | ||
command: fastboot_reboot | ||
flash_recovery: | ||
- type: call_button | ||
content: > | ||
Now you need to flash a custom recovery system on the phone. A recovery is a small subsystem on your phone, that manages updating, | ||
adapting and repairing of the operating system. | ||
Make sure your device is turned on. You need to reboot into the bootloader again by pressing 'Confirm and run' here. Then continue. | ||
command: adb_reboot_bootloader | ||
- type: call_button | ||
content: Flash a custom recovery (temporarily) by pressing 'Confirm and run'. Once it's done continue. | ||
command: fastboot_flash_recovery | ||
install_os: | ||
- type: call_button | ||
content: > | ||
In this last step, you finally flash the selected OS image. | ||
Wait until the TWRP screen appears. Then run the command. | ||
This step will format your phone and wipe all the data. It will also remove encryption and delete all files stored | ||
in the internal storage. Then the OS image will be installed. Confirm to run. This might take a while. At the end your phone will boot into the new OS. | ||
command: adb_twrp_wipe_and_install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
metadata: | ||
maintainer: Tobias Sterbak (tsterbak) | ||
devicename: Samsung Galaxy Note 9 | ||
devicecode: crownlte | ||
requirements: | ||
android: 10 | ||
steps: | ||
unlock_bootloader: | ||
flash_recovery: | ||
- type: call_button | ||
content: > | ||
As a first step, you need to boot into the bootloader. A bootloader is the piece of software, | ||
that tells your phone who to start and run an operating system (like Android). Your device should be turned on. | ||
Then press 'Confirm and run' to reboot into the bootloader. Continue once it's done. | ||
command: adb_reboot_download | ||
- type: call_button | ||
content: In this step, you need to flash a custom recovery on your device. Press 'Confirm and run' to start the process. Confirm afterwards to continue. | ||
command: heimdall_flash_recovery | ||
- type: confirm_button | ||
img: samsung-buttons.png | ||
content: > | ||
Unplug the USB cable from your device. Then manually reboot into recovery by pressing the *Volume Down* + *Bixby* for 8~10 seconds | ||
until the screen turns black & release the buttons immediately when it does, then boot to recovery with the device powered off, | ||
hold *Volume Up* + *Bixby* + *Power button*. | ||
install_os: | ||
- type: call_button | ||
content: > | ||
In the next steps, you finally flash the selected OS image. | ||
Connect your device with your computer with the USB-Cable. | ||
This step will format your phone and wipe all the data. It will also remove encryption and delete all files stored | ||
in the internal storage. Then the OS image will be installed. Confirm to run. This might take a while. At the end your phone will boot into the new OS. | ||
command: adb_twrp_wipe_and_install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
metadata: | ||
maintainer: Tobias Sterbak (tsterbak) | ||
devicename: Samsung Galaxy Note 10 | ||
devicecode: d1 | ||
requirements: | ||
android: 12 | ||
steps: | ||
unlock_bootloader: | ||
flash_recovery: | ||
- type: call_button | ||
content: > | ||
As a first step, you need to boot into the bootloader. A bootloader is the piece of software, | ||
that tells your phone who to start and run an operating system (like Android). Your device should be turned on. | ||
Then press 'Confirm and run' to reboot into the bootloader. Continue once it's done. | ||
command: adb_reboot_download | ||
- type: call_button | ||
content: In this step, you need to flash a custom recovery on your device. Press 'Confirm and run' to start the process. Confirm afterwards to continue. | ||
command: heimdall_flash_recovery | ||
- type: confirm_button | ||
img: samsung-buttons.png | ||
content: > | ||
Unplug the USB cable from your device. Then manually reboot into recovery by pressing the *Volume Down* + *Bixby* for 8~10 seconds | ||
until the screen turns black & release the buttons immediately when it does, then boot to recovery with the device powered off, | ||
hold *Volume Up* + *Bixby* + *Power button*. | ||
install_os: | ||
- type: call_button | ||
content: > | ||
In the next steps, you finally flash the selected OS image. | ||
Connect your device with your computer with the USB-Cable. | ||
This step will format your phone and wipe all the data. It will also remove encryption and delete all files stored | ||
in the internal storage. Then the OS image will be installed. Confirm to run. This might take a while. At the end your phone will boot into the new OS. | ||
command: adb_twrp_wipe_and_install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
metadata: | ||
maintainer: Tobias Sterbak (tsterbak) | ||
devicename: OnePlus Nord N200 | ||
devicecode: dre | ||
requirements: | ||
android: 11 | ||
steps: | ||
unlock_bootloader: | ||
- type: call_button | ||
content: > | ||
As a first step, you need to unlock the bootloader. A bootloader is the piece of software, that tells your phone | ||
how to start and run an operating system (like Android). Your device should be turned on. | ||
Press 'Confirm and run' to reboot into the bootloader. | ||
command: adb_reboot_bootloader | ||
- type: call_button | ||
content: In this step you actually unlock the bootloader. Just press 'Confirm and run' here. Once it's done, press continue here. | ||
command: fastboot_oem_unlock | ||
- type: confirm_button | ||
content: > | ||
At this point the device may display on-screen prompts which will require interaction to continue the process of unlocking the bootloader. | ||
Please take whatever actions the device asks you to to proceed. | ||
- type: call_button | ||
content: To finish the unlocking, the phone needs to reboot. Just press 'Confirm and run' here to reboot. Then continue. | ||
command: fastboot_reboot | ||
- type: confirm_button | ||
content: The bootloader is now unlocked. Since the device resets completely, you will need to re-enable Developer Options and USB debugging to continue. | ||
flash_recovery: | ||
- type: call_button | ||
content: > | ||
Now you need to flash a custom recovery system on the phone. A recovery is a small subsystem on your phone, that manages updating, | ||
adapting and repairing of the operating system. | ||
Make sure your device is turned on. You need to reboot into the bootloader again by pressing 'Confirm and run' here. Then continue. | ||
command: adb_reboot_bootloader | ||
- type: call_button | ||
content: Flash a custom recovery (temporarily) by pressing 'Confirm and run'. Once it's done continue. | ||
command: fastboot_flash_recovery | ||
- type: call_button | ||
command: adb_twrp_copy_partitions | ||
content: > | ||
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. | ||
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. | ||
- type: call_button | ||
command: fastboot_flash_recovery | ||
content: > | ||
Now we need to boot into recovery again. Press run and when you see the TWRP screen you can continue. | ||
install_os: | ||
- type: call_button | ||
content: > | ||
In this last step, you finally flash the selected OS image. | ||
Wait until the TWRP screen appears. Then run the command. | ||
This step will format your phone and wipe all the data. It will also remove encryption and delete all files stored | ||
in the internal storage. Then the OS image will be installed. Confirm to run. This might take a while. At the end your phone will boot into the new OS. | ||
command: adb_twrp_wipe_and_install |
Oops, something went wrong.