Skip to content

Commit 7f38246

Browse files
committed
Test with LineageOS 19.1 on yuga
1 parent ef25b23 commit 7f38246

File tree

4 files changed

+27
-12
lines changed

4 files changed

+27
-12
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ Every step in the config file corresponds to one view in the application. These
8686
- `allow_skip`: [OPTIONAL] boolean; If a skip button should be displayed to allow skipping this step. Can be useful when the bootloader is already unlocked.
8787
- `link`: [OPTIONAL] Link to use for the link button if type is `link_button_with_confirm`.
8888

89-
The file should be named after device name output by `adb shell getprop | grep ro.poroduct.device` when the devices is connected to the computer. You can also get the device code by connecting the device to the computer and run OpenAndroidInstaller to detect the device.
89+
The file should be named after device name output by `adb shell getprop | grep ro.product.device` when the devices is connected to the computer. You can also get the device code by connecting the device to the computer and run OpenAndroidInstaller to detect the device.
9090

9191
To test your config file with the executable without using the developer setup, place it in the same directory as the executable. There it will be detected by name.
9292
After you created a config file and it works fine, you can open a pull request to make the file available to other users. Please also add the device to the supported devices table above.

openandroidinstaller/assets/configs/yuga.yaml

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,21 @@ steps:
1212
content: Go to service info > configuration and check rooting status - you can only continue if it says 'Bootloader unlock allowed":" Yes.'
1313
- title: "Unlock the bootloader"
1414
type: confirm_button
15-
content: Connect the device to your PC via USB. And confirm to continue.
16-
- title: "Unlock the bootloader"
17-
type: call_button
18-
content: Press the button to reboot into the bootloader now. Then confirm to continue.
19-
command: "adb reboot bootloader"
15+
content: >
16+
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.
2017
- title: "Unlock the bootloader"
2118
type: link_button_with_confirm
2219
content: >
2320
Click on the button to open the instructions on Sonys official unlocking website to generate an unlock code for your bootloader.
24-
Once you got the code, continue to input the code.
21+
Once you got the code write it down somewhere and continue to input the code.
2522
link: https://developer.sonymobile.com/unlockbootloader/unlock-yourboot-loader/
23+
- title: "Unlock the bootloader"
24+
type: confirm_button
25+
content: Connect the device to your PC via USB. And confirm to continue.
26+
- title: "Unlock the bootloader"
27+
type: call_button
28+
content: Press the button to reboot into the bootloader now. When the notification light turns blue, confirm to continue.
29+
command: "adb reboot bootloader"
2630
- title: "Unlock the bootloader"
2731
type: call_button_with_input
2832
content: >
@@ -59,14 +63,19 @@ steps:
5963
- title: "Flash LineageOS"
6064
type: confirm_button
6165
content: >
62-
Return to the previous menu and tap 'Advanced Wipe', then select the 'Cache' and 'System' partitions and then 'Swipe to Wipe' on the phone.
63-
Once it's finished, confirm here to continue.
66+
Return to the previous menu on your phone by going back two times.
67+
Them tap 'Advanced Wipe', and select the 'Cache' and 'System' partitions and then 'Swipe to Wipe'.
68+
Confirm to continue once you are done.
6469
- title: "Flash LineageOS"
6570
type: confirm_button
66-
content: On the device, go back to the main menu and select “Advanced”, “ADB Sideload”, then swipe to begin sideload. Then confirm here
71+
content: >
72+
Now connect the phone to the computer again with the USB-cable. On the device, go back three times and select “Advanced”,
73+
then “ADB Sideload”. Select 'Wipe cache' and 'Wipe dalvik cache', then swipe to begin sideload. Then confirm here.
6774
- title: "Flash LineageOS"
6875
type: call_button
69-
content: By pressing the button, you flash lineageOS image now. This can take a while. Don't remove the USB-Cable!
76+
content: >
77+
Now it's time to flash the LineageOS image. Don't remove the USB-Cable and press 'Confirm and run' to start!
78+
This might take a while. Confirm after it's done.
7079
command: "adb sideload <image>"
7180
- title: "Reboot"
7281
type: call_button

openandroidinstaller/installer_config.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ def __init__(
4343

4444

4545
class InstallerConfig:
46+
4647
def __init__(
4748
self,
4849
unlock_bootloader: List[Step],

openandroidinstaller/openandroidinstaller.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
from widgets import call_button, confirm_button, get_title, link_button
3535

3636
# Toggle to True for development purposes
37-
DEVELOPMENT = True
37+
DEVELOPMENT = False
3838
DEVELOPMENT_CONFIG = "yuga" # "a3y17lte" # "sargo"
3939

4040

@@ -187,6 +187,10 @@ def close_developer_options_dlg(self, e):
187187

188188
def search_devices(self, e):
189189
"""Search the device when the button is clicked."""
190+
# map some detected device codes to their real code.
191+
device_code_mapping = {
192+
"C6603": "yuga",
193+
}
190194
# search the device
191195
if DEVELOPMENT:
192196
# this only happens for testing
@@ -197,6 +201,7 @@ def search_devices(self, e):
197201
else:
198202
device_code = search_device(platform=PLATFORM, bin_path=BIN_PATH)
199203
if device_code:
204+
device_code = device_code_mapping.get(device_code, device_code)
200205
self.device_name.value = device_code
201206
else:
202207
self.device_name.value = (

0 commit comments

Comments
 (0)