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

Does not work under Android 14 #202

Closed freebrowser1 closed 6 months ago

freebrowser1 commented 6 months ago

If you'd like to put out an incentive for fixing this bug, you can do so at https://issuehunt.io/r/bk138/droidVNC-NG

Describe the bug When starting it repeatedly says that accessibility is a restricted setting, even after I enabled it with Apps => ... (top right) => Allow restricted setting. Then I did:

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)

restarted the app and clicking on Start says I had to allow accessibility which was still restricted despite I did it earlier and allowed the restricted setting.

To Reproduce

  1. Install the app.
  2. See above.

Expected Behavior It should work.

Your environment (please complete the following information):

bk138 commented 6 months ago

Just tried again on Android 14 and works well here - what kind of device are you using?

Edit: you probably sideloaded the app and are maybe running into https://github.com/bk138/droidVNC-NG/issues/135#issuecomment-1566657486 ?

freebrowser1 commented 6 months ago

Indeed, I downloaded it from Github. I use a Nothing phone 2a. Then I installed in an Android Emulator (A Pixel A 14 emulator) and dragged the apk on the emulator window using scrcpy. Then it did work and no restricted Accessibility. Even no adb commands were needed.

Then I repeated this action using my Nothing 2a which I also opened using scrcpy and then I dragged the apk to the scrcpy window of my phone on the computer screen. Now I could get it working in the same way as the emulator. The only thing which is still missing is the keyboard entry in the VNC client (RealVNC). So this ticket can be closed.

bk138 commented 6 months ago

OK, then it really might be https://github.com/bk138/droidVNC-NG/issues/135#issuecomment-1566657486 - let's wait a few days once the app is available on the Play Store, would be nice if you could report back then.

freebrowser1 commented 6 months ago

@bk138: I just found out it worked ! See my previous note.

bk138 commented 6 months ago

Ah ok, closing then. For the keyboard see #4, it's work in progress.