Skip to content

Commit 3ee43f4

Browse files
committed
Use twrp scripting for samsung galaxy a3
1 parent a281d26 commit 3ee43f4

File tree

2 files changed

+24
-15
lines changed

2 files changed

+24
-15
lines changed

openandroidinstaller/assets/configs/a3y17lte.yaml

Lines changed: 23 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -27,29 +27,38 @@ steps:
2727
hold *Volume Up* + *Home* + *Power*.
2828
install_os:
2929
- title: "Flash LineageOS"
30-
type: confirm_button
30+
type: call_button
3131
content: >
32-
Now swipe right to allow modifications then tap 'Wipe' on your phone. Next tap 'Format Data' and follow
33-
the instructions on your phone to continue with the formatting process. This will remove encryption and delete all files stored
34-
in the internal storage. Confirm to continue once you are done.
32+
This step will remove encryption and delete all files stored
33+
in the internal storage. Confirm to format. Confirm when it's done.
34+
command: adb shell twrp format data
3535
- title: "Flash LineageOS"
36-
type: confirm_button
37-
content: >
38-
Return to the previous menu on your phone by going back two times.
39-
Them tap 'Advanced Wipe', and select the 'Cache' and 'System' partitions and then 'Swipe to Wipe'.
40-
Confirm to continue once you are done.
36+
type: call_button
37+
content: Wipe cache.
38+
command: adb shell twrp wipe cache
4139
- title: "Flash LineageOS"
42-
type: confirm_button
43-
content: >
44-
Now connect the phone to the computer again with the USB-cable. On the device, go back three times and select “Advanced”,
45-
then “ADB Sideload”. Select 'Wipe cache' and 'Wipe dalvik cache', then swipe to begin sideload. Then confirm here.
40+
type: call_button
41+
content: Wipe system
42+
command: adb shell twrp wipe system
43+
- title: "Flash LineageOS"
44+
type: call_button
45+
content: activate sideload
46+
command: adb shell twrp sideload
4647
- title: "Flash LineageOS"
4748
type: call_button
4849
content: >
4950
Now it's time to flash the LineageOS image. Don't remove the USB-Cable and press 'Confirm and run' to start!
5051
This might take a while. Confirm after it's done.
5152
command: "adb sideload <image>"
53+
- title: "Flash LineageOS"
54+
type: call_button
55+
content: Wipe cache.
56+
command: adb shell twrp wipe cache
57+
- title: "Flash LineageOS"
58+
type: call_button
59+
content: Wipe dalvik cache
60+
command: adb shell twrp wipe dalvik
5261
- title: "Reboot into LineageOS"
5362
type: call_button
5463
content: As a final step, reboot into LineageOS to finish the installation by pressing the button.
55-
command: "adb reboot"
64+
command: adb shell twrp reboot

openandroidinstaller/openandroidinstaller.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
from widgets import call_button, confirm_button, get_title, link_button
5858

5959
# Toggle to True for development purposes
60-
DEVELOPMENT = True
60+
DEVELOPMENT = False
6161
DEVELOPMENT_CONFIG = "sargo" # "a3y17lte" # "sargo"
6262

6363

0 commit comments

Comments
 (0)