title: Turn off screen / display using ADB, but keep device in state mWakefulness=Awake
body: <p>I want to turn the screen off, but keep the device awake without root, so that the foreground app stays awake. I have an app that achieves this using the proximity sensor to turn the screen off.</p>
  
  <p>I've now tried:</p>
  
  <pre><code>adb shell settings put global stay_on_while_plugged_in 3
  adb shell input keyevent 26
  </code></pre>
  
  <p>But when I check: 
      adb shell dumpsys power </p>
  
  <p>the state changes to mWakefulness=Asleep. Can I do whatever the app is doing over ADB somehow?</p>