bk138 / droidVNC-NG

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

Input: DENIED #229

Closed AndyM48 closed 2 months ago

AndyM48 commented 2 months ago

Describe the bug After setting permissions I still see Input; DENIED Screenshot_20240809_122758_net christianbeier droidvnc_ng

Running on Huawei Y6 2019 Android 9 EMUI 9.1.0 droidVNC-NG 2.5.0

Apps>Permissions> Storage droidVNC-NG true

To Reproduce Start droidVNC-NG

Expected Behavior Input: GRANTED

Additional context I have seen several other bug reports her, but none seem to have a solution.

Thanks for your App and for your help

bk138 commented 2 months ago

Thanks for your report! Please:

AndyM48 commented 2 months ago

alphavnc does not seem to work either. Can connect from client, but no input possible.

logcat for droidVNC is available here

Thanks for any help

bk138 commented 2 months ago

java.lang.ClassNotFoundException: Didn't find class android.accessibilityservice.AccessibilityService$TakeScreenshotCallback" looks interesting. This refers to https://developer.android.com/reference/android/accessibilityservice/AccessibilityService.TakeScreenshotCallback which was added for Android 10, so your device doesn't have it. But the code using it is not executed for Android 9. So basically, no good idea. Might be a vendor bug, it works on the Android 9 official emulator image.

AndyM48 commented 2 months ago

OK, thank you for looking. Indeed Huawei can be a pain. I will try searching all the less obvious settings.

th1031 commented 2 months ago

Experiencing the same issue as @AndyM48 (OP) - droidVNC-NG is denied accessibility usage (input), while alpha vnc lite is allowed and works. Some photos attached. Running on Lenovo Tab M8, Android 13

accessibility-disabled restricted-setting alpha_vnc_ok

bk138 commented 2 months ago

@th1031 please post:

Thanks!

AndyM48 commented 2 months ago

So I may have solved my problem, but it has to be proved yet:

  1. On droidVNC-NG select START
  2. Go to Accessibility as prompted
  3. Under INTERACTION CONTROL tap on Accessibility Shortcut

Screenshot_1

and select droidVNC-NG

  1. Under DOWNLOADED SERVICES tap on droidVNC-NG and turn it on

Screenshot_2

  1. Accept OK

Screenshot_3

Hopefully that might help someone

th1031 commented 2 months ago

@th1031 please post:

  • logcat output
  • how you installed the app Thanks!

Sorry - out of town a couple of days. Installed by downloading v. 2.5.0 from F-Droid, installed from a file manager with install perms. logcat.out.txt attached logcat.out.txt

bk138 commented 2 months ago

@th1031 please post:

  • logcat output
  • how you installed the app Thanks!

Sorry - out of town a couple of days. Installed by downloading v. 2.5.0 from F-Droid, installed from a file manager with install perms. logcat.out.txt attached logcat.out.txt

You need to install from a "store" app directly, otherwise Android imposes additional security restrictions. See https://www.reddit.com/r/AndroidQuestions/comments/139tyju/i_tried_to_turn_on_accessibility_option_and_it/ and other places on the web.

bk138 commented 2 months ago

@AndyM48 If i understand correctly, you could solve your issue? I'm tentatively closing this report, let me know if it's not solved.

AndyM48 commented 2 months ago

It was solved as detailed in my message. The solution may help others.

th1031 commented 2 months ago

@th1031 please post:

  • logcat output
  • how you installed the app Thanks!

Sorry - out of town a couple of days. Installed by downloading v. 2.5.0 from F-Droid, installed from a file manager with install perms. logcat.out.txt attached logcat.out.txt

You need to install from a "store" app directly, otherwise Android imposes additional security restrictions. See https://www.reddit.com/r/AndroidQuestions/comments/139tyju/i_tried_to_turn_on_accessibility_option_and_it/ and other places on the web.

Thank you! As it turns out, from my installed apps list, I simply had to open droidVNC-NG, and from the App permissions three dot menu upper right of the screen, select "Allow restricted settings". I especially appreciate that I can initiate a remote session without needing verification/permission from the remote end. Thank you for your work on this project.