Skip to content

Commit 674278b

Browse files
committed
WIP: Sideload a different file to help TWRP on ab devices
1 parent 64eafa4 commit 674278b

3 files changed

Lines changed: 4 additions & 1 deletion

File tree

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
This file is sideloaded by OpenAndroidInstaller to help with a TWRP issue on A/B-partioned devices.
2+
Please visit https://github.com/openandroidinstaller-dev/openandroidinstaller to find out more.

openandroidinstaller/tool_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ def adb_twrp_wipe_and_install(bin_path: Path, target: str, config_path: Path) ->
159159
if (type(line) == bool) and not line:
160160
logger.error(f"Wiping {partition} failed.")
161161
# TODO: if this fails, a fix can be to just sideload something and then adb reboot
162-
for line in run_command("adb", ["sideload", str(config_path)], bin_path):
162+
for line in run_command("adb", ["sideload", str(config_path.parent.parent) + "/helper.txt"], bin_path):
163163
yield line
164164
sleep(1)
165165
if (type(line) == bool) and not line:

openandroidinstaller/views.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -655,6 +655,7 @@ def build(
655655
self.right_view.controls = [
656656
get_title("Installation completed successfully!"),
657657
self.state.progressbar,
658+
Text("Now your devices boots into the new OS. Have fun with it!"),
658659
Row(
659660
[
660661
ElevatedButton(

0 commit comments

Comments
 (0)