def METHOD_NAME(self):
    logger.hr('MaaTouch init')
    max_x, max_y = 1280, 720
    max_contacts = 2
    max_pressure = 50
    # CLASSPATH=/data/local/tmp/maatouch app_process / com.shxyke.MaaTouch.App
    stream = self.adb_shell(
        ['CLASSPATH=/data/local/tmp/maatouch', 'app_process', '/', 'com.shxyke.MaaTouch.App'],
        stream=True,
        recvall=False
    )
    # Prevent shell stream from being deleted causing socket close
    self._maatouch_stream_storage = stream
    stream = stream.conn
    stream.settimeout(10)
    self._maatouch_stream = stream
    retry_timeout = Timer(5).start()
    while 1:
        # v <version>
        # protocol version, usually it is 1. needn't use this
        # get maatouch server info
        socket_out = stream.makefile()
        # ^ <max-contacts> <max-x> <max-y> <max-pressure>
        out = socket_out.readline().replace("\n", "").replace("\r", "")
        logger.info(out)
        if out.strip() == 'Aborted':
            stream.close()
            raise MaaTouchNotInstalledError(
                'Received "Aborted" MaaTouch, '
                'probably because MaaTouch is not installed'
            )
        try:
            _, max_contacts, max_x, max_y, max_pressure = out.split(" ")
            break
        except ValueError:
            stream.close()
            if retry_timeout.reached():
                raise MaaTouchNotInstalledError(
                    'Received empty data from MaaTouch, '
                    'probably because MaaTouch is not installed'
                )
            else:
                # maatouch may not start that fast
                self.sleep(1)
                continue
    # self.max_contacts = max_contacts
    self.max_x = int(max_x)
    self.max_y = int(max_y)
    # self.max_pressure = max_pressure
    # $ <pid>
    out = socket_out.readline().replace("\n", "").replace("\r", "")
    logger.info(out)
    # _, pid = out.split(" ")
    # self._maatouch_pid = pid
    logger.info(
        "MaaTouch stream connected"
    )
    logger.info(
        "max_contact: {}; max_x: {}; max_y: {}; max_pressure: {}".format(
            max_contacts, max_x, max_y, max_pressure
        )
    )