Skip to content

Commit 47c1711

Browse files
committed
Fix config for google pixal 3a; change the way image and recovery names are replaced from the config file; Update the readme with warnings and supported devices
1 parent 4f29c2e commit 47c1711

File tree

5 files changed

+30
-23
lines changed

5 files changed

+30
-23
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,20 @@
2121
</p>
2222
</div>
2323

24+
25+
## Warning: Unlocking the bootloader will erase all data on your device!
26+
This also includes your DRM keys, which are stored in the Trim Area partition (also called TA).
27+
Before proceeding, ensure the data you would like to retain is backed up to your PC and/or your Google account, or equivalent. Please note that OEM backup solutions like Samsung and Motorola backup may not be accessible from LineageOS once installed.
28+
If you wish to backup the TA partition first, you can find tutorials related to your device on the internet.
29+
30+
## Officially supported devices
31+
Vendor | Device Name | CodeName | Models | Status
32+
---|---|---|---|---
33+
Samsung | Galaxy A3 2017 | a3y17lte | SM-A320FL | tested
34+
Samsung | Galaxy A5 2016 | a5xelte | | under development
35+
Google | Pixel 3a | sargo | sargo | tested
36+
Sony | Xperia Z | yuga | | tested
37+
2438
## Installation
2539

2640
1. Download the AppImage, .exe or appropriate file for your OS.

openandroidinstaller/assets/configs/Pixel 3a.yaml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
11
steps:
2-
- title: "Enable developer options and OEM unlocking"
3-
type: confirm_button
4-
content: "Enable USB debugging on your device by enabling developer options. To do this, tap 5 times on the build number in the System-Menu in Settings. Then in developer options, toggle OEM unlocking and USB-Debugging."
5-
- title: "Unlock the bootloader"
6-
type: confirm_button
7-
content: "Turn on developer options and OEM Unlock on your phone."
82
- title: "Unlock the bootloader"
93
type: confirm_button
104
content: "Turn on your device and wait until its fully booted."
@@ -19,13 +13,15 @@ steps:
1913
type: call_button
2014
content: "Unlock the bootloader now:"
2115
command: "fastboot flashing unlock"
16+
allow_skip: True
2217
- title: "Unlock the bootloader"
2318
type: confirm_button
2419
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."
2520
- title: "Unlock the bootloader"
2621
type: call_button
2722
content: "Reboot the phone"
28-
command: "adb reboot"
23+
command: "fastboot reboot"
24+
allow_skip: True
2925
- title: "Unlock the bootloader"
3026
type: confirm_button
3127
content: "The bootloader is now unlocked. Since the device resets completely, you will need to re-enable USB debugging to continue."
@@ -39,7 +35,7 @@ steps:
3935
- title: "Flash custom recovery"
4036
type: call_button
4137
content: "Flash custom recovery (temporarily)"
42-
command: "fastboot flash boot recovery"
38+
command: "fastboot flash boot <recovery>"
4339
- title: "Flash LineageOS"
4440
type: call_button
4541
content: "Boot into recovery"
@@ -56,7 +52,7 @@ steps:
5652
- title: "Flash LineageOS"
5753
type: call_button
5854
content: "Flash lineageOS image. Don't remove the USB-Cable!"
59-
command: "adb sideload image"
55+
command: "adb sideload <image>"
6056
- title: "Reboot"
6157
type: call_button
6258
content: "Reboot into OS"

openandroidinstaller/assets/configs/Samsung Galaxy A3 2017.yaml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
steps:
2-
- title: "Unlock the bootloader"
3-
type: confirm_button
4-
content: "Turn on developer options and OEM Unlock on your phone."
52
- title: "Boot into recovery"
63
type: confirm_button
74
content: "Turn on your device and wait until its fully booted."
@@ -12,7 +9,7 @@ steps:
129
- title: "Boot into recovery"
1310
type: call_button
1411
content: "Flash custom recovery"
15-
command: "heimdall flash --no-reboot --RECOVERY recovery"
12+
command: "heimdall flash --no-reboot --RECOVERY <recovery>"
1613
- title: "Boot into recovery"
1714
type: confirm_button
1815
content: "Unplug the USB cable from your device. Manually reboot into recovery. Press the Volume Down + Power buttons 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 + Home + Power."
@@ -28,7 +25,7 @@ steps:
2825
- title: "Flash LineageOS"
2926
type: call_button
3027
content: "Flash lineageOS image. Don't remove the USB-Cable!"
31-
command: "adb sideload image"
28+
command: "adb sideload <image>"
3229
- title: "Reboot"
3330
type: call_button
3431
content: "Reboot into OS"

openandroidinstaller/assets/configs/Xperia Z.yaml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
steps:
2-
- title: "Unlock the bootloader"
3-
type: confirm_button
4-
content: "Enable USB debugging on your device by enabling developer options. To do this, tap 5 times on the build number in the System-Menu in Settings. Then in developer options, toggle OEM unlocking and USB-Debugging."
52
- title: "Unlock the bootloader"
63
type: confirm_button
74
content: "On the device, dial *#*#7378423#*#* (*#*#SERVICE#*#*) to launch the service menu."
@@ -21,7 +18,7 @@ steps:
2118
- title: "Unlock the bootloader"
2219
type: call_button_with_input
2320
content: "Use your code to unlock the bootloader of your device:"
24-
command: "fastboot oem unlock inputtext"
21+
command: "fastboot oem unlock <inputtext>"
2522
allow_skip: True
2623
- title: "Flash temporary recovery"
2724
type: confirm_button
@@ -34,7 +31,7 @@ steps:
3431
- title: "Flash temporary recovery"
3532
type: call_button
3633
content: "Flash recovery image"
37-
command: "fastboot flash boot recovery"
34+
command: "fastboot flash boot <recovery>"
3835
- title: "Flash LineageOS"
3936
type: call_button
4037
content: "Boot into recovery"
@@ -51,7 +48,7 @@ steps:
5148
- title: "Flash LineageOS"
5249
type: call_button
5350
content: "Flash lineageOS image. Don't remove the USB-Cable!"
54-
command: "adb sideload image"
51+
command: "adb sideload <image>"
5552
- title: "Reboot"
5653
type: call_button
5754
content: "Reboot into OS"

openandroidinstaller/openandroidinstaller.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,9 @@ def views_from_config(config: InstallerConfig) -> List[View]:
130130
return new_views
131131

132132
def call_to_phone(e, command: str):
133-
command = command.replace("recovery", recovery_path)
134-
command = command.replace("image", image_path)
135-
command = command.replace("inputtext", inputtext.value)
133+
command = command.replace("<recovery>", recovery_path)
134+
command = command.replace("<image>", image_path)
135+
command = command.replace("<inputtext>", inputtext.value)
136136
page.views[-1].controls.append(ProgressRing())
137137
page.update()
138138
res = call(f"{command}", shell=True)
@@ -256,6 +256,9 @@ def get_new_view(title: str, index: int, content: List = []) -> View:
256256
get_new_view(
257257
title="Welcome to OpenAndroidInstaller!",
258258
content=[
259+
Text("Enable USB debugging on your device by enabling developer options."),
260+
Text("To do this, tap 5 times on the build number in the System-Menu in Settings."),
261+
Text("Then in developer options, toggle OEM unlocking and USB-Debugging."),
259262
ElevatedButton(
260263
"Search device", on_click=search_devices, icon=icons.PHONE_ANDROID
261264
)

0 commit comments

Comments
 (0)