Skip to content

Instantly share code, notes, and snippets.

@mgrddsj
Created November 26, 2021 15:43
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mgrddsj/b3caea8d2710cd31830116c30294795e to your computer and use it in GitHub Desktop.
Save mgrddsj/b3caea8d2710cd31830116c30294795e to your computer and use it in GitHub Desktop.
  1. Add special mirroring modes for demonstration purposes.

  2. Assume rotation of HDMI display is portrait.

adb shell setprop persist.demo.hdmirotation portrait
  1. Don't lock rotation while HDMI is plugged in.
adb shell setprop persist.demo.hdmirotationlock false
  1. Hide secondary displays from apps but continue mirroring to them.
adb shell setprop persist.demo.singledisplay true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment