diff --git a/lisa/target.py b/lisa/target.py index 214e326545a31875ebbacd5a2db48f02f46074f1..e7333def7b75b2fb50d6d50ba672fb0af21d96f0 100644 --- a/lisa/target.py +++ b/lisa/target.py @@ -687,19 +687,8 @@ class Target(Loggable, HideExekallID, ExekallTaggable, Configurable): ) target.connect(check_boot_completed=wait_boot, timeout=wait_boot_timeout) - - # None as username means adb root will be attempted, but failure will - # not prevent from connecting to the target. - if kind == 'android' and username is None: - try: - target.adb_root(enable=True) - except Exception as e: # pylint: disable=broad-except - logger.warning(f'"adb root" failed: {e}') - logger.debug(f'Target info: {dict(abi=target.abi, cpuinfo=target.cpuinfo, workdir=target.working_directory)}') - target.setup() - logger.info(f"Connected to target {(name or '')}") return target