bk138 / droidVNC-NG

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

sometimes when launch service with adb, the controler can not access to touch the whole screen #198

Closed joyinglee closed 7 months ago

joyinglee commented 7 months ago

Describe the bug sometimes when launch service with adb, the controler can not access to touch the whole screen,only a small zone on the cornor is avilable.

To Reproduce I use this macro to launch droidvnc from computer:

adb shell cmd appops set net.christianbeier.droidvnc_ng PROJECT_MEDIA allow
adb shell settings put secure enabled_accessibility_services net.christianbeier.droidvnc_ng/.InputService:$(adb shell settings get secure enabled_accessibility_services)
adb shell am start-foreground-service  -n net.christianbeier.droidvnc_ng/.MainService  -a net.christianbeier.droidvnc_ng.ACTION_START  --es net.christianbeier.droidvnc_ng.EXTRA_ACCESS_KEY xxxxxxxxxxxxxxxxxxxx
  1. launch droidvnc in the phone mannually, touch start physically.
  2. connect to the android from the computer and touch stop from vnc.
  3. run the above macro,
  4. connect to the vnc again,and the screen can not be fully touched via the vnc client, they are not fully maped to eachother. However, if you kill droidvnc app and run the macro, it works fine again.

Your environment (please complete the following information):

bk138 commented 7 months ago

Thanks for your report - can reproduce.

bk138 commented 7 months ago

@joyinglee do you have scaling set to < 100% - it seems to happen only then...