-
Notifications
You must be signed in to change notification settings - Fork 0
/
print_manual.rb
35 lines (34 loc) · 2.09 KB
/
print_manual.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# frozen_string_literal: true
# remove rubocop suppression when we fix https://github.com/tir38/ADBX/issues/64
# rubocop:disable Metrics/AbcSize
# rubocop:disable Layout/LineLength
def print_manual
puts 'Usage: ax [command]'
puts 'commands: '
puts ' add_wifi [ssid] [password]: add wifi to network configs'
puts ' airplane_mode [on|off]: turn airplane mode on or off'
puts ' animation_scale [off|0.5|1|1.5|2|5|10|resest]: sets window animation scale, transition animation scale, and animation duration scale'
puts ' clear_app_data [package]: clear app data, including cache and accepted permissions'
puts ' disable_audio [audio_stream]: lower a specific audio stream volume to zero'
puts ' display: print display size and density'
puts ' display_scale [small|default|large|larger|laergest]: sets accessibility display scale'
puts ' font_scale [small|default|large|largest]: sets accessibility font scale'
puts ' help: print this help manual'
puts ' launch_app [package]: launch a specific application by package name'
puts ' layout_bounds [show|hide]: show or hide layout bounds'
puts ' list_packages: list all installed packages'
puts ' max_bright: set display to max brightness'
puts ' night_mode [on|off|auto]: turn device night mode to on, off, or auto'
puts ' permissions [package]: list permissions for package (highlighted in larger dumpsys)'
puts ' processor : print information about deivce processor(s)'
puts ' pull_apks [destination] : download apks from device to optional destination or current directory'
puts ' reboot: reboot the device'
puts ' screenshot [destination] : capture screenshot and save to optional destination or current directory'
puts ' settings_app: start system settings app'
puts ' talkback [on|off]: turn Talkback on or off'
puts ' uninstall_package [package]: remove installed package'
puts ' version_name [package]: print package version name'
end
# rubocop:enable Metrics/AbcSize
# rubocop:enable Layout/LineLength
# TODO: get this to line up nicely