Skip to content

Commit 1815df9

Browse files
committed
Script works for samsung galaxy a3 (2017) now.
1 parent 352dc9e commit 1815df9

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

scripts/lineageos-on-galaxy-a3.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
"""Script to flash a Samsung Galaxy A3.
1+
"""Script to flash a Samsung Galaxy A3 (2017).
22
33
Following: https://lineageosroms.com/a3xelte/#basic-requirements
44
55
Example usage:
6-
poetry run python scripts/lineageos-on-galaxy-a3.py --recovery images/samsung-galaxy-a3/twrp-3.6.2_9-0-a3xelte.img --image images/samsung-galaxy-a3/lineage-18.1-20220819-UNOFFICIAL-a7xelte.zip
6+
poetry run python scripts/lineageos-on-galaxy-a3.py --recovery images/samsung-galaxy-a3/twrp-3.6.2_9-0-a3y17lte.img --image images/samsung-galaxy-a3/lineage-16.0-20190908-UNOFFICIAL-a3y17lte.zip
77
"""
88
import click
99
from time import sleep
@@ -93,7 +93,8 @@ def boot_recovery(recovery: str):
9393
if call(f'adb reboot download', shell=True) < 0:
9494
click.echo("*** Booting into download mode failed! ***")
9595
return False
96-
sleep(5)
96+
confirmed = click.confirm("Confirm to continue",
97+
default=True, abort=False, prompt_suffix=': ', show_default=True, err=False)
9798

9899
# install TWRP recovery from image
99100
click.echo("\nFlash custom recovery")

0 commit comments

Comments
 (0)