[Q] Run phone from linux desktop? - Android Software Development

Some threads are similar, but not quite a match to my question.
I was curious if there was a "realtime" way to run my phone from the Linux desktop PC? Possibly in its own application window, showing the same screen that my phone is producing at the time.
Lets say I am receiving a text message on my phone... can I reply using my computer screen in the same format that is visible on my phone?
Ubuntu 10.4 LTS
MytouchSlide

Related

Linux Virtual Machine USB Issue (Resolved)

http://forum.xda-developers.com/showthread.php?t=570452
EDIT: Fixed it. Windows takes a rather firm grip of that driver on setup so There needs to be an additional filter set up in VM for it to pass through properly to Linux.
Shut off Virtual Box
Connect Phone
Go to settings > USB on Virtual Box
Add USB filter
Select Device
Close
On reboot linux now allows adb to pass through properly. Earlier it was setting up the device but I couldn't actually use it without the filter. Other USB devices work fine without the filter.
Edit sorry had a phone call and I got owned by an accidental early posting with zero info.
What driver is everyone using for the Epic in Virtual Box Linux on Windows 7? I'm more of a java / C++ person, not so much linux and I'm trying to get into Kernel modifications. So I decided to set up Ubuntu on Virtual box and start messing around.
Windows 7 w/ virtual box running Ubuntu
SDK and Java is installed on Linux
Plug device in, shows up in Windows 7 (no issues in this environment)
Unmount in 7 or leave mounted in 7 no difference
Shows up in Linux under VM window > USB Devices > Samsung D700
Select it, computer beeps like it found it
I do lsusb in console but it only sees the mouse and keyboard.
I've tried mounted, unmounted, debug on and off. Not sure if I'm missing something.
Aridon said:
What driver is everyone using for the Epic in Linux? I'm more of a java / C++ person, not so much linux.
Click to expand...
Click to collapse
Java and C++ are programming languages.... Linux is an operating system... What?
I plugged my Epic in and Linux just knew what to do with it. It recognizes it as an Android Samsung phone and just works.
No need for drivers on linux/mac. Should recognize out of the box with the stock supplied cable. Install the sdk for other features like adb.
Sent from my SPH-D700 using XDA App
DevinXtreme said:
Java and C++ are programming languages.... Linux is an operating system... What?
I plugged my Epic in and Linux just knew what to do with it. It recognizes it as an Android Samsung phone and just works.
Click to expand...
Click to collapse
Meaning i'm a linux noob and trying to set this up in VM with Ubuntu and accidentally posted this early and had to edit it on the phone. Unfortunately I can't find the device via lsusb so I assume I need a driver for virtualbox or some setting needs to be edited.
I was looking to see if anyone else had it set up that way and I got side tracked with a phone call and couldn't edit the OP in time. (Got pwned by tab enter > auto post)
SDK and Java is installed
Plug device in, shows up in Windows 7
Unmount
Shows up in Linux under VM window > USB Devices
Select it, computer beeps like it found it
I do lsusb in console but it only sees the mouse and keyboard.
I've tried mounted, unmounted, debug on and off. Not sure if I'm missing something.
Aridon said:
Meaning i'm a linux noob and trying to set this up in VM with Ubuntu and accidentally posted this early and had to edit it on the phone. Unfortunately I can't find the device via lsusb so I assume I need a driver for virtualbox or some setting needs to be edited.
I was looking to see if anyone else had it set up that way and I got side tracked with a phone call and couldn't edit the OP in time. (Got pwned by tab enter > auto post)
SDK and Java is installed
Plug device in, shows up in Windows 7
Unmount
Shows up in Linux under VM window > USB Devices
Select it, computer beeps like it found it
I do lsusb in console but it only sees the mouse and keyboard.
I've tried mounted, unmounted, debug on and off. Not sure if I'm missing something.
Click to expand...
Click to collapse
See, now that makes a lot more sense. Hahahaha. I see in the OP that you figured it out. That kind of works the other way. It wasn't a Windows problem, but rather a virtual box problem. I have a Zune and Windows 7 in a VM under Linux, and for the longest time I couldn't figure out how to get them to talk to each other. Eventually found the path that you did.
Anyway, you know you can do coding for Android under Windows, right? It's all Java. All the plugins necessary come right through on Eclipse. This could be of some help to you.
DevinXtreme said:
See, now that makes a lot more sense. Hahahaha. I see in the OP that you figured it out. That kind of works the other way. It wasn't a Windows problem, but rather a virtual box problem. I have a Zune and Windows 7 in a VM under Linux, and for the longest time I couldn't figure out how to get them to talk to each other. Eventually found the path that you did.
Anyway, you know you can do coding for Android under Windows, right? It's all Java. All the plugins necessary come right through on Eclipse. This could be of some help to you.
Click to expand...
Click to collapse
Windows is my native environment for sure and all of my coding is done via Eclipse there.
I've always been fascinated with Linux though and given our device kernel I figured it would be a good time to dive into Linux and learn all the ins and outs.
I'm finding Linux itself is rather easy. Once i got used to getting things done in terminal its not so bad. It reminds me of the old DOS days. I'm still a huge Linux noob but I can get most of what I want done so I'm happy.
The biggest hurdle has been the stupid Virtual machine and I already regret not just doing an actual partition and dual booting. My first install was through Windows Virtual Machine which turned out to be a huge SNAFU. I found Virtual box which is much much better but in the time I spent dicking around with drivers for this, changing settings for that I could have just Partition shrunk my main drive and made a dual boot.
Lesson learned. My wife and I have been enjoying our Geek time and its been an enjoyable learning experience.

[Q] Android as an external (text) display: Linux/ADB/USB?

Hi everyone,
I would like to write an application (chain) like that:
MyLinuxApplication->FloatNumber->CallOfALibrary->SendToUsb->AndroidAsUsbDevice->AndroidAppToDisplayThatFloatNumber
All in all I want to send that float number about 30 times per second to Android as a live monitor/display for that value.
Is anyone aware of any other threads/tutorials/similar open source applications to avoid building such a solution from scratch?
I am aware of the iDisplay app. But it is too slow and it is Windows. The rest of our system is Linux and there is no chance to change it. Moreover I do not need any graphical content to be transmitted. Just a float number.
For the "SendToUsb->AndroidAsUsbDevice" part I could think of using ADB. Is there any example out there how to do "ADB->AndroidAppToDisplayThatFloatNumber" with the required speed? Any good ideas for "CallOfALibrary->Adb" otherwise I might end up abusing the adb shell interface.
If ADB does not work: There is an example of how to get data from an USB endpoint to an Android app on developers.android.com. However, does anyone have an example of "FloatNumber->CallOfALibrary->SendToUsb->UsbEndpoint"?
I did usb driver programming for windows about 5 years ago with the DDK and it was not fun. I fear it will be even worse in Linux. Anyone having experience with that?
Thanks for your help,
Simon

Ubuntu on DZ

hi,
i just found this interesting thread in the dhd development section:
http://forum.xda-developers.com/showthread.php?t=1546629
i´m wondering if this will work on dz?
it seems to be related to this one:
http://www.ubuntu.com/devices/android
...and that looks great
EDIT: it´s another version of chroot and not based on ubuntu for android.
Not exactly
That seems more related to linux installer, which you can look for in the market... it's basically a linux distro running chroot on your system. You can enter it from a terminal and start a VNC session from within it and then use android-VNC to connect to the "desktop".
It's not exactly the same thing as ubuntu on android. Although the team behind Linux Installer is also considering having X on it. THAT on the other hand is far closer to ubuntu on android, from what I can understand anyway. Ubuntu on android is meant to be used with a docking station though, so you can plug in an external monitor, keyboard and mouse if you want.
I have Debian on my Desire Z on a chroot environment as well and have the VNC setup, but... haven't used it like at all, the screen is so damn small, the amount of precision it takes to hit the "Close window" button, the little "X"... not fun. If you could get X to work and then be able to plug a display into the DZ, as well as other input devices, then there could be some real use. DZ running the actual Ubuntu for android project, I don't think is possible. If the VNC setup tickles your pickle, though, then you have a winner. You can still do everything like in a linux distro, but you won't be able to have a desktop, atleast not in the same fully functional way you have on your computer.
yes, i know what you are talking about. i already had ubuntu as chroot on my desire z and it was completly useless...

[Q] X11, Terminal use, Different OS's

Hey so I have a couple questions and I have not been able to find these out just browsing the web so perhaps some of you guys know.
My intention is that I want to be able to ssh into my computer/school server so that I can do my programming from some where with my tablet and be able to get some graphics to display. Mainly I have some C and python code that displays a plot via matplotlib and when I ssh into my school server I use ssh -X which I assume is for X11 forwarding for graphics(I use that when connecting on my computer not android)
1. How do I enable X11 forwarding on my nexus 7?
-I have connect bot installed, and I have X11 server by some MIT dude installed as well but I have not been able to get it to display anygraphics. When I try to get my graphics to work I get this error in connect bot: "_tkinter.TclError: no display name and no $DISPLAY environment variable."
I do not want to have to a vnc, or vpn or whatever that bs is. I just want to get x11 to work
2. If I cant get X11 to work....Does anyone know if Ubuntu Touch supports X11? I read http://www.xda-developers.com/tag/cyanogenmod-10-1/ saying that Ubuntu Touch does not use X11 so does that mean it does not support it? What I mean is if I use the Ubuntu Touch terminal and do ssh -X [email protected] would my graphics display? I'd like to know before I try to install Ubuntu Touch.
I would try to install Ubuntu desktop which I'm pretty sure it would work, except that Ubuntu desktop is mad slow and not very pratical, unless someone as a kernel that optimizes it for speed / terminal use.
3. Bodhi OS for nexus 7....is it faster than the Ubuntu Desktop?
thank in advance
Same question -- any easy way to open displays from another server?
I'm glad to see I'm not alone in trying to find this. I installed VX Connectbot, which lets me log into my linux server and type commands, but I cannot figure out how to get the graphics to display locally, or to open an emacs window on my server and have it pop up on my android device. I thought there might be an app for this, but have not found one. It just doesn't seem like it should be that complicated. Any suggestions?
You need to install an X server to display X applications (whether running locally or remotely): this seems to be the most used. I believe ConnectBot supports X11 forwarding, though it may be that only some forks of it do.

Programmatically transfer file from Windows to Android phone

Hello Community,
By now, everyone knows Android has dropped support for USB Mass Storage access to its folder. Which means a Windows computer can no longer programmatically copy a file from Windows to a USB-connected Android device.
I have a Windows application that needs to be able to drop a text file from time to time onto an Android phone. I also have an Android app that monitors a certain folder on the device and processes those text files as they come in. In the past, all I had to do on the Windows side was to map a drive pointing to the Android device and my Windows app would then be able to copy the files to that drive. But that doesn't work anymore with more recent versions of Android.
The phone and the computer may be located in an environment where no wifi is available or where both devices are not on the same wifi network. The computer may also not have bluetooth capabilities. In other words, the only thing I can count on with certainty is the USB connexion between the phone and the computer.
I could use a batch file calling ADB, but since different phones may have different ADB drivers, it means I can't provide a generic way for my Windows App to transfer a file to any Android phone. And I have no control over which phone gets connected to which computer. In addition, I can't use a GUI based application to transfer the files: my Windows application needs to run unattended, without having to wait for user action. The same is true of the Android application.
I know there are a number of WebDav/FTP/Bluetooth applications I can install on the Android device so that it can expose a folder to outside computers, but they all rely on over the air connectivity. I tried to find information on writing my own Android Server application that would "publish" a folder to the PC to which the phone is connected via USB, but I can't find anything of use in the Android SDK documentation; the USB stuff all pertains to IoT, not to the actual link that gets established between a PC and a phone. I think what I need to do is to write an app that turns the device into some kind of Samba server that's accessible through the USB connecion, but I have no idea where to start looking for documentation on doing it.
Does anyone have any pointers on how to accomplish this?
PS: please don't start asking questions like "Why do you need to drop a file onto the phone", or "Why don't you just make sure Wifi or bluetooth is always available?". I already explained those restrictions and they are there for very good reasons. So thanks for staying on topic.
Hi,
I am also under the same question of "how to transfer a file from PC to Android Device". The only difference is, I have a GUI which prepare data to be transferred. The user can say "proceed" to copy.
Have found any solution for the above question raised ??

Categories

Resources