How to use the andriller.adb_conn.ADBConn function in andriller

To help you get started, we’ve selected a few andriller examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github den4uk / andriller / andriller / windows.py View on Github external
def build_adb_menus(self):
        menu_adb = tk.Menu(self.menubar, tearoff=0)
        self.menubar.add_cascade(menu=menu_adb, label='ADB', underline=0)
        for mode in ['', *adb_conn.ADBConn.MODES.keys()]:
            label_ = f"Reboot: {mode.title() or 'Normal'}"
            action = lambda x = mode: self.adb.reboot(mode=x)
            menu_adb.add_command(label=label_, command=action)
github den4uk / andriller / andriller / config.py View on Github external
def upgrade_package(self, package=__package_name__, logger=logger):
        from .adb_conn import ADBConn
        cmd = f'{sys.executable} -m pip install {package} -U'
        for line in ADBConn.cmditer(cmd):
            logger.info(line)
github den4uk / andriller / andriller / windows.py View on Github external
self.StatusMsgLabel = ttk.Label(downframe, relief='flat', padding=(5, 1),
            font=self.FontStatus, textvariable=self.StatusMsg)
        self.StatusMsgLabel.grid(row=4, column=0, sticky=tk.W, padx=5, pady=3)
        self.StatusMsgLabel.configure(background='light green')

        # STARTUP & TIME SETTINGS
        logger.info(f'Started: {__app_name__} {__version__}')
        logger.info(f"Time settings/format: {self.conf('date_format')}")
        logger.info(f"Detected/PC time: {self.time_now_local}")
        logger.info(f"Universal time:   {self.time_now_utc}")
        logger.info(f"Time in reports:  {self.time_now_configured} <--")  # \u2190

        # Setup ADB
        # def setup_adb(self):
        self.adb = adb_conn.ADBConn(logger=logger, log_level=self.log_level)