Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
  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