예제 #1
0
from adb.client import Client
import os, sys
import hashlib
import six
client = Client()


def devices():
    return client.devices()


def init():
    pass


def install():
    pass


def create_shortcut():
    if os.name != 'nt':
        sys.exit("Only valid in Windows")

    import pythoncom
    from win32com.shell import shell
    from win32com.shell import shellcon
    # Refs
    # - https://github.com/pearu/iocbio/blob/master/installer/utils.py
    # - https://blog.csdn.net/thundor/article/details/5968581
    ilist = shell.SHGetSpecialFolderLocation(0, shellcon.CSIDL_DESKTOP)
    dtpath = shell.SHGetPathFromIDList(ilist).decode('utf-8')
예제 #2
0
    def __init__(self):
        c = Client()

        self.device = c.devices()[0]

        self.pkgs = []