INNER CODE UNIT · Python

run_passthrough

cvet/fonline · BuildTools/android_device.py:65

def run_passthrough(command: list[str]) -> int:
	return subprocess.call(command)


def get_device_property(adb_path: str, endpoint: str, prop_name: str) -> str:
	return run_capture([adb_path, '-s', endpoint, 'shell', 'getprop', prop_name], check=False).strip()


def describe_device(adb_path: str, endpoint: str) -> str:
	manufacturer = get_device_property(adb_path, endpoint, 'ro.product.manufacturer')
	model = get_device_property(adb_path, endpoint, 'ro.product.model')
	parts = [part for part in [manufacturer, model] if part]
	if parts:
		return ' '.join(parts)
	return endpoint


def log_install_failed_user_restricted(adb_path: str, endpoint: str) -> None:

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…