File tree Expand file tree Collapse file tree
Framework/install_handler/android Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -486,6 +486,11 @@ async def _accept_licenses(sdk_root: Path) -> bool:
486486async 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" ,
Original file line number Diff line number Diff line change 3838from settings import ZEUZ_NODE_PRIVATE_RSA_KEYS_DIR
3939from Framework .install_handler .long_poll_handler import InstallHandler
4040from server .mobile import upload_android_ui_dump
41-
41+ from Framework . install_handler . android . android_sdk import update_android_sdk_path
4242
4343def 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 ())
You can’t perform that action at this time.
0 commit comments