scrcpy icon indicating copy to clipboard operation
scrcpy copied to clipboard

how to call SurfaceControl.setDisplayPowerMode() with adb shell

Open xdesniy opened this issue 2 years ago • 1 comments

how to call SurfaceControl.setDisplayPowerMode() screen off with out scrcpy only with adb

xdesniy avatar Mar 20 '23 15:03 xdesniy

With only adb, you can't, you must execute java code on the device with shell permissions to call setDisplayPowerMode().

rom1v avatar Mar 20 '23 16:03 rom1v

https://www.coolapk.com/feed/42236171?shareKey=YzVkZTEwN2Y1MmRjNjQ2ZWYyMGE~&shareUid=2638279&shareFrom=com.coolapk.market_13.0.2

I have wrote a dex file to run SurfaceControl.setDisplayPowerMode() in shell command.

WuDi-ZhanShen avatar May 25 '23 05:05 WuDi-ZhanShen