Comments (8)
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.
If you just want to copy files from your phone, use adb pull/push commands. Would that work for this case?
from droidvnc-ng.
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.
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.
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.
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.
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.
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)
- Input Permissions Denied, no option to allow HOT 2
- Build Issues on Windows with Android NDK and CMake HOT 1
- How can I connect to two android devices when them are not in same local area network? HOT 3
- VNC Input not working but still able to see whats on the screen HOT 6
- Use AccessibilityService takeScreenshot API on API level >= 10 to show screen before MediaProjection is enabled
- Streaming of single app: restrict input to that app HOT 3
- Add "Restrictions" for configuring app-settings by MDM HOT 12
- sometimes when launch service with adb, the controler can not access to touch the whole screen HOT 2
- Prepare for Android 14
- droidvnc-ng can not reconnect and maintain the connection using repeater
- Viewing video of a channel from Android TV 11 HOT 3
- Does not work under Android 14 HOT 5
- Notification Sound HOT 2
- Remove confirmation at start HOT 3
- Need Cut and Paste HOT 1
- Explore use of API 33 methods to overcome Android limitiation where for some text fields only single character can be entered HOT 6
- Remote Input does not work on ChromeOS. HOT 1
- Make it possible to record phone unlock screen HOT 1
- Mouse clicks freeze connection for 1 second each and are not sent (Android 10) HOT 3
- Port it to magisk module / using root access HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from droidvnc-ng.