INNER CODE UNIT · Python

init

codematrixer/hmdriver2 · hmdriver2/_client.py:173

    def init(self):
        """
        Initialize the UITest service:
        1. Ensure agent.so is set up on the device.
        2. Start the UITest daemon.

        Note: 'hdc shell aa test' will also start a uitest daemon.
        $ hdc shell ps -ef |grep uitest
        shell        44306     1 25 11:03:37 ?    00:00:16 uitest start-daemon singleness
        shell        44416     1 2 11:03:42 ?     00:00:01 uitest start-daemon com.hmtest.uitest@4x9@1"
        """

        logger.debug("Initializing UITest service")
        local_path = self._get_local_agent_path()
        remote_path = "/data/local/tmp/agent.so"

        self._kill_uitest_service()  # Stop the service if running
        self._setup_device_agent(local_path, remote_path)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…