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)
def get_density(device): value = adbGetValue("secure", "display_density_forced", device) if value not in density_dictionary(device): value = "440" return value
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
def get_touch_state(device): return adbGetValue("system", "show_touches", device)
def get_brightness(device): return int( adbGetValue("system", "screen_brightness", device=device, output=True))
def get_accessibility_state(device): # adv shell settings get secure enabled_accessibility_services return adbGetValue("secure", "enabled_accessibility_services", device)
def get_orientation(device): return int(adbGetValue("system", "user_rotation", device))
def get_font_scale(device): return float(adbGetValue("system", "font_scale", device))
def get_animation_state(device): return float(adbGetValue("global", "window_animation_scale", device))