bk138 / droidVNC-NG

VNC server app for Android that does not require root privileges.
GNU General Public License v2.0
1.22k stars 177 forks source link

Use AccessibilityService takeScreenshot API on API level >= 10 to show screen before MediaProjection is enabled #195

Closed bk138 closed 2 months ago

bk138 commented 3 months ago

This way, on autostart we would enable a remote viewer to actually see the MediaProjection dialog an click to enable it.

https://developer.android.com/reference/android/accessibilityservice/AccessibilityService#takeScreenshot(int,%20java.util.concurrent.Executor,%20android.accessibilityservice.AccessibilityService.TakeScreenshotCallback)

re #181