Giter Site home page Giter Site logo

Comments (8)

bk138 avatar bk138 commented on July 23, 2024 1

Can now be done via automation apps like MacroDroid, Automate or Tasker, see https://github.com/bk138/droidVNC-NG#remote-control-via-the-intent-interface

from droidvnc-ng.

gitgrub avatar gitgrub commented on July 23, 2024

If you just want to copy files from your phone, use adb pull/push commands. Would that work for this case?

from droidvnc-ng.

godfuture avatar godfuture commented on July 23, 2024

Not really, main focus is to operate the phone when the display is not available. VNC is a great assist in such cases. For example to save the phone in urgency case like activating USB debugging (very important) or to do backups or using authentication apps (exception: Microsoft Authenticator showed only black screen. Do you know why?). Or simply to install other apps to help with whatever problems occur.

If the server is always started, this is not only a security problem, but also costs battery. On usb cable, energy does not play a very big role.

Edit: my idea was to start the server when usb is plugged in, but also to stop when usb is unplugged. Is it maybe possible to have some kind of wait time for the shutdown? Otherwise the server would start and stop with every connect and disconnect of the usb cable. I have quite some attempts to connect the usb cable. So it might happen that I connect/disconnect my phone several times in short moment.

from droidvnc-ng.

gitgrub avatar gitgrub commented on July 23, 2024

Got your point, interesting idea. Concerning the usb plug/unplug attempts, a way to go could be to start the server via adb command when the usb connection is stable. Otherwise the server would always been started when charging - security problem? This is an emergency scenario, you dont want that every time when charging. I am not against that idea, just thinking about it, guessing it would be a configurable option via checkbox.

It reminds me about a situation when a PC didnt show the screen, the graphic card was dead. As VNC was running there, I tried it this way, but that did not work. That was a disappointing moment. I think thats because VNC grabs the screen from graphic cards frame buffer. So the scenario would only work if the display is broken, not the graphic environment, if I understood that correctly.

PS: glad to hear your device is alive again, even when sunken into the ocean :-)

from droidvnc-ng.

godfuture avatar godfuture commented on July 23, 2024

Concerning the usb plug/unplug attempts, a way to go could be to start the server via adb command when the usb connection is stable.

Nice idea. I guess there is no usb debugging required?!

from droidvnc-ng.

bk138 avatar bk138 commented on July 23, 2024

Would https://stackoverflow.com/questions/13380590/is-it-possible-to-start-activity-through-adb-shell be it? I don't know though if usb debugging would need to be enabled or not...

from droidvnc-ng.

gitgrub avatar gitgrub commented on July 23, 2024

I think usb debugging has to be enabled to use adb. Look at https://developer.android.com/studio/command-line/adb
Here is an example list of adb commands, not complete for sure, but to see a bit whats possible:
https://gist.github.com/Pulimet/5013acf2cd5b28e55036c82c91bd56d8

from droidvnc-ng.

Martii avatar Martii commented on July 23, 2024

I think usb debugging has to be enabled to use adb.

It does on my phone... Galaxy S8. Newer ones have USB debugging over wifi option (from articles I read when I first discovered this project) but this one you have to connect to USB first then can use over wifi after a adb tcpip port.

However if Android lets you detect/read the ARP, a list of "acceptable" MAC addresses to start/stop in droidVNC-NG could be used to start and stop the server just using TCP/IP... I haven't twiddled with that much but it might be an idea for better security.

from droidvnc-ng.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.