Skip to content

Commit bd0f75a

Browse files
Update android sdk path after successful installation and node start
1 parent 46de098 commit bd0f75a

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

Framework/install_handler/android/android_sdk.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -486,6 +486,11 @@ async def _accept_licenses(sdk_root: Path) -> bool:
486486
async def install() -> bool:
487487
print("[installer][android-sdk] Installing...")
488488

489+
# Check if Android SDK is already installed
490+
if await check_status():
491+
print("[installer][android-sdk] Android SDK is already installed")
492+
return True
493+
489494
sdk_root = _get_sdk_root()
490495

491496

@@ -541,6 +546,10 @@ async def install() -> bool:
541546
return False
542547

543548

549+
# Update PATH after successful installation
550+
update_android_sdk_path()
551+
552+
544553
print(f"[installer][android-sdk] Installation successful at {sdk_root}")
545554
await send_response({
546555
"action": "status",

node_cli.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
from settings import ZEUZ_NODE_PRIVATE_RSA_KEYS_DIR
3939
from Framework.install_handler.long_poll_handler import InstallHandler
4040
from server.mobile import upload_android_ui_dump
41-
41+
from Framework.install_handler.android.android_sdk import update_android_sdk_path
4242

4343
def adjust_python_path():
4444
"""Adjusts the Python path to include the Framework directory."""
@@ -1338,6 +1338,7 @@ async def main():
13381338
# Setup Node.js and Appium before other operations
13391339
setup_nodejs_appium()
13401340

1341+
update_android_sdk_path()
13411342
update_outdated_modules()
13421343
asyncio.create_task(start_server())
13431344
asyncio.create_task(upload_android_ui_dump())

0 commit comments

Comments
 (0)