Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App frequently asks for screen recording permissions #99

Closed
shalak opened this issue Aug 15, 2022 · 6 comments
Closed

App frequently asks for screen recording permissions #99

shalak opened this issue Aug 15, 2022 · 6 comments
Labels
answer-needed Waiting for response from OP bug Something isn't working

Comments

@shalak
Copy link

shalak commented Aug 15, 2022

Describe the bug
I use droidVNC on a phone that acts as a smart-home display that shows Home Assistant in kiosk mode. I find myself unable to perform any screen input actions via VNC, although I'm able to connect and see the screen as well as press the "Home button" via VNC client. Once I unlock the screen manually, the android request to grant screen-recording permissions is shown, once I allow it everything works correctly.

To Reproduce

  1. Start droidVNC on a device that's persistently connected to USB
  2. Wait big amount of time

Expected Behavior
The screen-recording permission is persistent

Actual Behavior
The screen-recording permission is revoked and must be "re-granted"

Your environment (please complete the following information):

  • droidVNC-NG version: 1.3.3
  • Android version: 12
  • Client-side OS and version: MacOS Monterey 12.5
  • VNC client and version: VNC Viewer 6.21.1109

Additional context
I'm not sure how much time do I have to wait for the permissions to be revoked, but it might be related to the fact that the screen becomes blocked. It usually happens after I update my Home Assistant server and as a consequence the HA client app running on the phone shuts down, thus eventually blocking the screen and revoking permissions for droidVNC

@shalak shalak added the bug Something isn't working label Aug 15, 2022
@shalak shalak changed the title App constantly asks for screen recording permissions App frequently asks for screen recording permissions Aug 15, 2022
@bk138
Copy link
Owner

bk138 commented Aug 15, 2022

I don't really know what's going on to be honest. What might happen is that Android kills the Service and restart it, you might find something in the logs.

What you might try is:

@bk138 bk138 added the answer-needed Waiting for response from OP label Aug 15, 2022
@phytoncidez
Copy link

I don't really know what's going on to be honest. What might happen is that Android kills the Service and restart it, you might find something in the logs.

What you might try is:

i have extensive experience with the old droid vnc
the old one doesn't have this problem, because it allows root access.
it works for months without any problem.
please add root privilege as option

@phytoncidez
Copy link

I don't really know what's going on to be honest. What might happen is that Android kills the Service and restart it, you might find something in the logs.

What you might try is:

is the permmision grant via adb permanent? even if the device restarts?
if so, this is the solution

@bk138
Copy link
Owner

bk138 commented Aug 23, 2022

i have extensive experience with the old droid vnc the old one doesn't have this problem, because it allows root access. it works for months without any problem. please add root privilege as option

That's tracked in #31, please have a look there and subscribe, if you like.

@bk138
Copy link
Owner

bk138 commented Aug 23, 2022

is the permmision grant via adb permanent? even if the device restarts? if so, this is the solution

AFAIK yes. You should try it out. Please report here if it works for you.

@bk138
Copy link
Owner

bk138 commented Sep 12, 2022

Tentatively closing, feel free to post here if there are news.

@bk138 bk138 closed this as completed Sep 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
answer-needed Waiting for response from OP bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants