Exemplo n.º 1
0
def camera_photo():
    out, rc, err = utils.execute('termux-camera-photo')
    if rc:
        raise Exception(err)
    return out
Exemplo n.º 2
0
def infrared_transmit():
    out, rc, err = utils.execute('termux-infrared-transmit')
    if rc:
        raise Exception(err)
    return out
Exemplo n.º 3
0
def dialog(t=''):
    com = 'termux-dialog' + t
    out, rc, err = utils.execute(com)
    if rc:
        raise Exception(err)
    return out
Exemplo n.º 4
0
def fix_shebang():
    out, rc, err = utils.execute('termux-fix-shebang')
    if rc:
        raise Exception(err)
    return out
Exemplo n.º 5
0
def infrared_frequencies():
    out, rc, err = utils.execute('termux-infrared-frequencies')
    if rc:
        raise Exception(err)
    return out
Exemplo n.º 6
0
def clipboard_set():
    out, rc, err = utils.execute('termux-clipboard-set')
    if rc:
        raise Exception(err)
    return out
Exemplo n.º 7
0
def dialog():
    out, rc, err = utils.execute('termux-dialog')
    if rc:
        raise Exception(err)
    return out
Exemplo n.º 8
0
def sms_send():
    out, rc, err = utils.execute('termux-sms-send')
    if rc:
        raise Exception(err)
    return out
Exemplo n.º 9
0
def storage_get():
    out, rc, err = utils.execute('termux-storage-get')
    if rc:
        raise Exception(err)
    return out
Exemplo n.º 10
0
def share():
    out, rc, err = utils.execute('termux-share')
    if rc:
        raise Exception(err)
    return out
Exemplo n.º 11
0
def sms_inbox():
    out, rc, err = utils.execute('termux-sms-inbox')
    if rc:
        raise Exception(err)
    return out
Exemplo n.º 12
0
def setup_storage():
    out, rc, err = utils.execute('termux-setup-storage')
    if rc:
        raise Exception(err)
    return out
Exemplo n.º 13
0
def reload_settings():
    out, rc, err = utils.execute('termux-reload-settings')
    if rc:
        raise Exception(err)
    return out
Exemplo n.º 14
0
def open_url():
    out, rc, err = utils.execute('termux-open-url')
    if rc:
        raise Exception(err)
    return out
Exemplo n.º 15
0
def wake_unlock():
    out, rc, err = utils.execute('termux-wake-unlock')
    if rc:
        raise Exception(err)
    return out
Exemplo n.º 16
0
def telephony_call():
    out, rc, err = utils.execute('termux-telephony-call')
    if rc:
        raise Exception(err)
    return out
Exemplo n.º 17
0
def wifi_scaninfo():
    out, rc, err = utils.execute('termux-wifi-scaninfo')
    if rc:
        raise Exception(err)
    return out
Exemplo n.º 18
0
def telephony_deviceinfo():
    out, rc, err = utils.execute('termux-telephony-deviceinfo')
    if rc:
        raise Exception(err)
    return out
Exemplo n.º 19
0
def contact_list():
    out, rc, err = utils.execute('termux-contact-list')
    if rc:
        raise Exception(err)
    return out
Exemplo n.º 20
0
def toast():
    out, rc, err = utils.execute('termux-toast')
    if rc:
        raise Exception(err)
    return out
Exemplo n.º 21
0
def download():
    out, rc, err = utils.execute('termux-download')
    if rc:
        raise Exception(err)
    return out
Exemplo n.º 22
0
def tts_engines():
    out, rc, err = utils.execute('termux-tts-engines')
    if rc:
        raise Exception(err)
    return out
Exemplo n.º 23
0
def info():
    out, rc, err = utils.execute('termux-info')
    if rc:
        raise Exception(err)
    return out
Exemplo n.º 24
0
def tts_speak():
    out, rc, err = utils.execute('termux-tts-speak')
    if rc:
        raise Exception(err)
    return out
Exemplo n.º 25
0
def battery_status():
    out, rc, err = utils.execute('termux-battery-status')
    if rc:
        raise Exception(err)
    return out
Exemplo n.º 26
0
def vibrate():
    out, rc, err = utils.execute('termux-vibrate')
    if rc:
        raise Exception(err)
    return out
Exemplo n.º 27
0
def notification():
    out, rc, err = utils.execute('termux-notification')
    if rc:
        raise Exception(err)
    return out
Exemplo n.º 28
0
def volume(t=''):
    com = 'termux-volume' + t
    out, rc, err = utils.execute(com)
    if rc:
        raise Exception(err)
    return out