Skip to content

Instantly share code, notes, and snippets.

@ksharma-xyz
Last active June 3, 2024 10:04
Show Gist options
  • Save ksharma-xyz/50ca32b4781affaf15e52128719e44c9 to your computer and use it in GitHub Desktop.
Save ksharma-xyz/50ca32b4781affaf15e52128719e44c9 to your computer and use it in GitHub Desktop.
android - adb commands with alias
## Read Blog - https://www.ksharma.xyz/android-adb-shortcuts-for-productivity
## A11y - Talkback
alias TalkbackOn="adb shell settings put secure enabled_accessibility_services com.google.android.marvin.talkback/com.google.android.marvin.talkback.TalkBackService"
alias TalkbackOff="adb shell settings put secure enabled_accessibility_services com.android.talkback/com.google.android.marvin.talkback.TalkBackService"
## A11y - FontSize
alias LargeFontSize="adb shell settings put system font_scale 2.0" # Largest font size for android devices
alias MediumFontSize="adb shell settings put system font_scale 1.5"
alias DefaultFontSize="adb shell settings put system font_scale 1.0"
## Derk / Light Mode
alias Sunset="adb shell \"cmd uimode night yes\"" # Dark mode
alias Sunrise="adb shell \"cmd uimode night no\"" # Light mode
#@ A11y - Magnification
alias MagnifyScale="adb shell settings put secure accessibility_display_magnification_scale 5.0"
alias Magnify="adb shell settings put secure accessibility_display_magnification_enabled 1"
alias MagnifyDisable="adb shell settings put secure accessibility_display_magnification_enabled 0"
## Show Touch
alias ShowTouch="adb shell settings put system show_touches 1"
alias HideTouch="adb shell settings put system show_touches 0"
## Show Pointer Location
alias ShowPointer="adb shell settings put system pointer_location 1"
alias HidePointer="adb shell settings put system pointer_location 0"
## Layout Bounds
alias LayoutBoundsEnable="adb shell setprop debug.layout true && adb shell service call activity 1599295570"
alias LayoutBoundsDisable="adb shell setprop debug.layout false && adb shell service call activity 1599295570"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment