Hey all, I have a quick query based on the following scenario:
My device is an OUYA with XBMC/SPMC installed. Connected to the device is a USB hub and connected to that Hub are two USB Vantec Nexstar dual-bay hard-drive docks. Each dock contains two NTFS formatted drives. My OUYA is rooted and I am using ParagonNTFS to mount the USB devices.
ParagonNTFS mounts the first drive to /sdcard/ParagonNTFS, the second to /sdcard/ParagonNTFS_1 and so forth. The problem is that which drive comes first, second and so forth sometimes changes, probably due to the order in which the OUYA and Linux detect each drive and assign it an entry in /dev/block
I would like to write script or application that mounts the devices using their associated volume label but I am having some trouble locating the tools to extract the volume label. It seems that the standard linux tools for doing so are not included with Android?
Does anyone have any experience or ideas about how I could obtain the volume labels from within a shell script? Ideally I would like to write a shell script that processes everything in /dev/block, determines if it is a volume and mounts it to something like /sdcard/<VOLUMELABEL>
Related
Hi!
I want to use my G1 to do some special measurements. For this purpose I've created a microcontroller board (Atmel ATmega8) that does that. Now I want to transfer the data the board collected to the Android phone.
Because of the high powerconsumption the G1 has while Bluetooth is on this isn't a real alternative for me - the measurements will last about 2 - 3 hours.
I'm not experienced concerning hardware access within Linux and Android but thought there might be a possibility to gain a kind of low level access to the USB port. I do neither need high bandwith nor real USB functionality - so might it be possible to create an own kind of bus using that interface? Do you have any other idea?
Thank you in advance!
If you use micro linux system, the ones that are like a usb port, a network jack and a vga connecter, you could script some adb commands and have it run every few seconds to upload the data, not an ideal solution. As far as I know the g1 doesn't support host mode. But if you have a micro linux computer in the middle, it could work.
Something like this
http://www.pcpro.co.uk/blogs/2008/08/27/a-real-space-oddity-arrives-at-pc-pro/
I'm sure there are other ways to do it, maybe check there how to make a serial port thread a few pages back in the dev section.
So, I have a USB hub and a couple flash drives. Everything "works" fine. I say it like that because the hub functions fine, and the first drive you plug in mounts to /usbdrive just fine. The issue is with the second. When you plug in the second drive, Android sees it in /dev/block as sdb1, and using the Terminal app I can manually mount the drive and use it.
Ideally though, it'd be nice if there was a way for Android to see the second drive and automatically (dis)mount it to something like /mnt/sdcard/external. Is this something that can be configured in the system?
What about the way Android detects and mounts an initial flash drive currently? Does anyone have any knowledge of how that's working currently? Perhaps that could just be duplicated to work with a second one?
This might help.
http://forum.xda-developers.com/showthread.php?t=952456
I'm not sure that's quite right. From what I'm seeing, that tool is designed to let you mount existing media on your device in a way that makes it available to a PC. I'm just wanting the tablet to mount a second USB drive so that it's available on the device itself.
I was wondering if anyone knew if there was a way (or, at least, if this'd be possible to implement) to expose via USB an arbitrary disk image file to be mounted by the host computer instead of the SD card itself.
Basically, my goal is to consolidate having to carry around a number of USB flash drives with different bootable OSes (such as Ubuntu, ntpasswd, knoppix, fedora's live usb versions), by storing a disk image for each on my Android phone, that, when connected to the computer (and set to be mounted), an arbitrary one could be exposed as if it was a different USB flash drive- instead of only having my sdcard mountable.
Hi,
I've been looking around to see if it possible to read a computer's process memory from a connected Android device. I know ADB allows you to modify things (on your device) via the computer's command line, but in reverse, how much control can you have over your computer. An end goal would be for me to read a process's memory (that's running on my computer) solely from my connected phone or tablet. Is this sort of thing even possible?
EDIT: I was just using ADB as an example. I know it's not capable of doing such a thing. Just trying to explain the concept.
Thanks!
Hi I am putting together a kiosk for a public space that should allow the user to place their android phone on a micro usb key.
I would like the micro usb key to automatically install an apk on their phone.
Now I was wondering how would one go about writing an executable that could be automatically executed from a usb on an android device. I know that this is possible for PC and mac.
stackoverflow.com/questions/1232966/auto-run-appilication-while-plug-in-usb-drive
So basically I need a way so when I plug a usb key into a phone a script will run that requests that the apk on the key installs on the phone. I presume that prerequisites like asking the user to turn on usb debugging and unknown sources is a given.
nothing?
I didnt expect XDA to be so quiet