Example #1
0
def get_state(device):
    # ui_night_mode [1.0, 2.0]
    night_mode = adbGetValue("secure",
                             "ui_night_mode",
                             device=device,
                             output=True)
    return int(night_mode)
Example #2
0
def get_density(device):
    value = adbGetValue("secure", "display_density_forced", device)
    if value not in density_dictionary(device):
        value = "440"
    return value
Example #3
0
def get_forcertl(device):
    prop_value = adbCommand(["shell", "getprop", "debug.force_rtl"], device)
    global_value = str(adbGetValue("global", "debug.force_rtl", device))
    global_value = global_value.replace(".0", "")
    # print("GET\nProp value:   [{}]\nGlobal value: [{}]".format(prop_value, global_value))
    return global_value
Example #4
0
def get_touch_state(device):
    return adbGetValue("system", "show_touches", device)
Example #5
0
def get_brightness(device):
    return int(
        adbGetValue("system", "screen_brightness", device=device, output=True))
Example #6
0
def get_accessibility_state(device):
    # adv shell settings get secure enabled_accessibility_services
    return adbGetValue("secure", "enabled_accessibility_services", device)
Example #7
0
def get_orientation(device):
    return int(adbGetValue("system", "user_rotation", device))
Example #8
0
def get_font_scale(device):
    return float(adbGetValue("system", "font_scale", device))
Example #9
0
def get_animation_state(device):
    return float(adbGetValue("global", "window_animation_scale", device))