Hello,
We are planning to write a small application for linux that captures the Screen of an Android phone and forwards inputs from the keyboard and mouse to it.
I know there is scrcpy but it needs access to the adb shell and the mobile phone to be in the developers mode.
Are there any possibilities to achieve this without the android developer mode? An alternative we had in mind would be to additionally write a android app that streams the Screen and the Inputs via USB - are there any openSource libraries/documentation/apis we could use for that?
Thank you
Langohr
Related
Hi,
I would like to introduce Bluetooth Remote PC which allow you to remotely control your PC.
Developer's site: Android Remote PC
Application's site: https://market.android.com/details?id=cz.rozkovec.android
Get access to computer and use your favourite programs from distance. You can control mouse, keyboard, multimedia player, presentation or power system commands.
Thx for comments and suggestions for new features.
George Rozkovec
Remote Desktop
Before 4 months I published my free Bluetooth Android application for remote control PC. Now I want to introduce full Remote PC.
Remote PC has extra remote desktop, Wi-Fi connection, keyboard shortcuts support and so on...
For more information you can visit our pages.
Rozky said:
Hi,
I would like to introduce Bluetooth Remote PC which allow you to remotely control your PC.
Developer's site: Android Remote PC
Application's site: https://market.android.com/details?id=cz.rozkovec.android
Get access to computer and use your favourite programs from distance. You can control mouse, keyboard, multimedia player, presentation or power system commands.
Thx for comments and suggestions for new features.
George Rozkovec
Click to expand...
Click to collapse
Hi, I tried the app's keyboard functionality on a linux computer, but insted of letters I see symbols like # and $ come out on the computer, when I type on the phone's keyboard. Any idea how to fix that?
sordna said:
Hi, I tried the app's keyboard functionality on a linux computer, but insted of letters I see symbols like # and $ come out on the computer, when I type on the phone's keyboard. Any idea how to fix that?
Click to expand...
Click to collapse
Yes, unfortunately I am aware of this problem. I had to use UNICODE input for GNU/Linux systems instead of Java mapping keys from class Robot, because this Java class is not completely supported by these systems. If a desktop environment uses UNICODE input (keyboard shortcuts), the typing of my application will work. GNOME and UNITY uses unicode input and KDE doesn't or different keyboard shortcuts. That's probably the reason why the typing is not working, unfortunately I don't know how to fix it.
Rozky said:
Yes, unfortunately I am aware of this problem. I had to use UNICODE input for GNU/Linux systems instead of Java mapping keys from class Robot, because this Java class is not completely supported by these systems. If a desktop environment uses UNICODE input (keyboard shortcuts), the typing of my application will work. GNOME and UNITY uses unicode input and KDE doesn't or different keyboard shortcuts. That's probably the reason why the typing is not working, unfortunately I don't know how to fix it.
Click to expand...
Click to collapse
Hmm, there is an older app called Gmote, which also has a java server, and that one seems to handle text input fine on my system. But that app doesn't support voice input. Maybe you can download the Gmote server and see what classes it uses?
sordna said:
Hmm, there is an older app called Gmote, which also has a java server, and that one seems to handle text input fine on my system. But that app doesn't support voice input. Maybe you can download the Gmote server and see what classes it uses?
Click to expand...
Click to collapse
I was able to type in libreoffice, which supports unicode input, but it's slow and you can see the application typing 4 numeric characters and then replacing them with a letter. It's very inefficient.
By the way, the X Input method seems to be an old legacy protocol that should not be used anymore:
https://mail.gnome.org/archives/gnome-list/2010-June/msg00032.html
http://code.google.com/p/uim/wiki/UimXim
So I think you need to move away from the unicode input method. X apps support unicode characters directly without the need for this legacy method.
Thanks for your feedback. I will look at it and add to the next version.
There is a program called "Input Director" for computers that lets you use a keyboard/mouse on one and seamlessly move the mouse to another monitor which giving you control of that computer over the internet. It's sort of like a VNC client/server on steroids but instead of sending the display to you it sends your keyboard/mouse input to the remote system.
This is assuming that Android can even use a mouse, which I figure it can or at least should be able to. I know the Atrix can using the webtop which has the android phone in a window and the android can basically do anything.
I know for a fact that there is an option for mouse/keyboard inputs on an android platform.
I own a http://www.asus.com/Eee/Eee_Pad/Eee_Pad_Transformer_TF101/
and it has a keyboard and trackpad keyboard attachment, as well as USB ports that I have tested and reliable used with the tablet/keyboard combo.
An app based kvm switch will work with android, just need a kind developer to make it. I would buy that app in a heartbeat.
As per the OP, there is a alternative currently called iDisplay. It only extends your desktop to your android platform, no forwarding of mouse/keyboard inputs. I haven't personally tried it, but it sounds like the app is really hit or miss for a lot of people.
There's a really cool light-weight tool that was developed by ROM1V to provide display and control of Android devices connected on USB. It does not require root access and does not require an application to be installed on the device! It works on GNU/Linux, Windows and MacOS.
It runs via ADB reverse.
I haven't seen anyone share this yet, so... here goes. Full credit to the author of this tool, ROM1V.
I've used this on both Linux and Windows variants. Both work quite well! There's a pre-built Windows package with all dependencies within the README. My experience is that Linux runs very smoothly, but the Windows variant is a little buggy.
Here is the link to the Github
(Sorry, I'm still *somewhat* of a new member and can't yet post external links... [been reading for years; posting... no so much]. I apologize, but you'll have to assemble this link a bit). Perhaps an admin might clean this up a bit.
github . com / Genymobile / scrcpy
This tool is GREAT!!! Mirrors your android screen on laptop over reverse ADB and without root and without installing anything on the device.
I used it on mobile which had its display totally non-functional but touch was working. Fortunately, ADB was enabled. All I had to do was unzip scrcpy files from https://github.com/Genymobile/scrcpy and refer to the FAQ at https://github.com/Genymobile/scrcpy/blob/master/FAQ.md. I could recover all my data from the device and even use the device seeing it screen and controlling it from my laptop.
But obviously, use cases go much beyond that and this is a full fledged screen copying tool. If you use your android while at your desk and keep it connected to your laptop then this gives the comfort of using your keyboard for typing long messages as well. Videos also play smoothly on computer screen but voice comes from mobile speakers (...if there was a way to route that to the laptop speakers, that'll be great and make it almost like an HDMI connection to a laptop over USB!).
Great job done, developers @ https://www.genymobile.com/ :good::good::good::good::good:
rk2612 said:
This tool is GREAT!!! Mirrors your android screen on laptop over reverse ADB and without root and without installing anything on the device.
Click to expand...
Click to collapse
I agree.
And, in Android 12, there's no need to establish the initial connection over USB.
Android 12 has the Wi-Fi debugging option in Developer options!
Hello,
I have a huge problem that is making me leave android.
Since android 4 I have been developing software for devices that are stuck to a wall and spread-ed across the country, mainly price-checking and digital signage software.
The end user (the client from the retailer) cannot access menus and anything else other then what running software offers. With android 4 I was able to make updates to software remotely, and monitor control all the device, with vnc and ssh.
Recent android versions are picky and for example i cant have vnc , neither an ssh that allows me to control the system, unfortunately whit this i can live. but for example if i need to update my app with another apk which require more permissions it will show a popup asking for permissions, that is not OK on a remote device where no one from the company is using it. I cannot hope a client clicks yes on the popup for my app to run again.
Android 4 and 5 where perfect, android 10 and 11 are terrible for this. How can i bypass this, is it possible?
Thanks and sorry for the English.
Hello once again I have Wifi Adb app installed on PrimeOS and Scrcpy app installed on my tablet. All you need to do is enter the IP address in Scrcpy and press start. The IP address is on Wifi Adb app. You will have full remote control of Android-x86 with good graphics. Enjoy.
Best regards
Ryan Johnson
How is your scrcpy different from this version? :
scrcpy
Download scrcpy for free. Display and control your Android device. scrcpy is an application for displaying and controlling your Android device through USB connection (or over TCP/IP). It is cross-platform (GNU/Linux, macOS and Windows) and does not require any root access.
sourceforge.net
ze7zez said:
How is your scrcpy different from this version? :
scrcpy
Download scrcpy for free. Display and control your Android device. scrcpy is an application for displaying and controlling your Android device through USB connection (or over TCP/IP). It is cross-platform (GNU/Linux, macOS and Windows) and does not require any root access.
sourceforge.net
Click to expand...
Click to collapse
Hello this app is used on the client device. It works exactly like Scrcpy by pushing the scrcpy-server.jar to the Android-x86 device. It is also an APK not a executable so it is only for Android. I wish someone could develop a Scrcpy for Android-x86 and mirror phones to your computer. But the interesting thing about this as my version of Prime OS doesn't support a vncserver. However this works.
Best regards
Ryan Johnson
Cat Stevens said:
Hello this app is used on the client device. It works exactly like Scrcpy by pushing the scrcpy-server.jar to the Android-x86 device. It is also an APK not a executable so it is only for Android. I wish someone could develop a Scrcpy for Android-x86 and mirror phones to your computer. But the interesting thing about this as my version of Prime OS doesn't support a vncserver. However this works.
Best regards
Ryan Johnson
Click to expand...
Click to collapse
This work was made by this he deserves the credit.
Anwar Mohammad Abdul / scrcpy-android ยท GitLab
GitLab.com
gitlab.com