Mimic the access through USB from within the phone - Android Q&A, Help & Troubleshooting

Hi All,
I was wondering if it is possible to mimic the behaviour of an app running on your PC that requests some data/service through USB/serial from within the phone.
I would like to create an android app (running on the phone) that connects with the phone through the USB port, mimicking what an app in the PC would do when the phone is connected to the PC by USB.
Thanks in advance.

An app running on phone should connect to same phone via USB? Doesn't make any sense to me.

jwoegerbauer said:
An app running on phone should connect to same phone via USB? Doesn't make any sense to me.
Click to expand...
Click to collapse
I know it sounds nonsense haha. I would like to replicate the behaviour of some diagnosis tools (like QXDM) from within the phone to avoid using a computer. QXDM communicates with the phone baseband through the USB. I would like to do the same but rather than using a PC, directly from the phone.

Related

[Q] USB toggle for Galaxy Player 4.2

First off, thanks guys for figuring out how to root the GP4.2. It is my first android anything after finally passing on my itouch to someone else.
I am using PCLinuxOS with gnome and my only hangup so far is trying to get the GP42 recognized as a USB MS device. Currently I am getting around this by WiFi and SFTP to the device but I would really prefer faster USB cable connections.
Plugging in the USB cable starts charging but I never get the USB MASS STORAGE app popup like I do in WinXP.
I looked on the forums here and can not find much info on the GP4.2.
Is there a toggle app for the USB MS mode that will run on this player or something built in?
iKosmos said:
First off, thanks guys for figuring out how to root the GP4.2. It is my first android anything after finally passing on my itouch to someone else.
I am using PCLinuxOS with gnome and my only hangup so far is trying to get the GP42 recognized as a USB MS device. Currently I am getting around this by WiFi and SFTP to the device but I would really prefer faster USB cable connections.
Plugging in the USB cable starts charging but I never get the USB MASS STORAGE app popup like I do in WinXP.
I looked on the forums here and can not find much info on the GP4.2.
Is there a toggle app for the USB MS mode that will run on this player or something built in?
Click to expand...
Click to collapse
Go to Settings -> Wireless and network -> USB settings
Choose Mass storange
Now connect to your computer using your cable. After few seconds there will be a button on the screen, press it, now your computer should see the device's internal (and external, if exists) sd card as a normal usb flash drive.
Not quite that easy
The problem is that I am using Linux and the above only works in Windows with the Samsung Driver installed.
Linux is not triggering the popuup! I was asking if there is a way to manually trigger that very popup, because I have those settings already and it works in XP.
Perhaps there is a Call or command I can do from a shortcut or the commandline in terminal (I have busybox and a Terminal emulator on my Player).
WiFi is just SOOOOO slow!
iKosmos said:
The problem is that I am using Linux and the above only works in Windows with the Samsung Driver installed.
Linux is not triggering the popuup! I was asking if there is a way to manually trigger that very popup, because I have those settings already and it works in XP.
Perhaps there is a Call or command I can do from a shortcut or the commandline in terminal (I have busybox and a Terminal emulator on my Player).
WiFi is just SOOOOO slow!
Click to expand...
Click to collapse
Well, in my case it just works OK with Arch Linux and also Ubuntu.
alice90 said:
Well, in my case it just works OK with Arch Linux and also Ubuntu.
Click to expand...
Click to collapse
Curious, what kernel versions?
Sent from my YP-GI1 using Tapatalk 2

[Q] USB mass storage mode?

Does anyone know if there is a way to connect the phone as a mass storage device without the Lg software? I work on a mac at work, and a PC at home, and transferring files on my phone is something that I used a lot. However I'm not able to install the LG software on every machine I hook my phone to.
Any insite would be greatly appreciated.
Thanks in advance.
Deathpickle said:
Does anyone know if there is a way to connect the phone as a mass storage device without the Lg software? I work on a mac at work, and a PC at home, and transferring files on my phone is something that I used a lot. However I'm not able to install the LG software on every machine I hook my phone to.
Any insite would be greatly appreciated.
Thanks in advance.
Click to expand...
Click to collapse
When you connect your phone, immediately push cancel (on the phone) when it is trying to check for LG software.
Also, you have some options on the phone to when you connect USB. I use the option that recognizes the phone as a media player. - Media Sync (MTP)
This is what works for me, and I use it as mass storage.
gregk232 said:
When you connect your phone, immediately push cancel (on the phone) when it is trying to check for LG software.
Also, you have some options on the phone to when you connect USB. I use the option that recognizes the phone as a media player. - Media Sync (MTP)
This is what works for me, and I use it as mass storage.
Click to expand...
Click to collapse
But MTP is very slow, and i can only make 1 transfert in same time... and i cant plug on my TV to watch photos, vidéos...
we need USB MASS STORAGE !!!
Crash95 said:
But MTP is very slow, and i can only make 1 transfert in same time... and i cant plug on my TV to watch photos, vidéos...
we need USB MASS STORAGE !!!
Click to expand...
Click to collapse
Look up how to adb push and pull. You will never need to be bothered by MTP again.
i agree that is a solution.
but its not for everyone, especially my relative who just want an easy plug and play options
also manage to help her switch tio ubuntu for most pc needs. therefore MTP is aoutof the question.
right now, my short term solution is an ftp server
however this has its limitations. like need 2 be connected o the same network.
still hoping the nest upgrade or custom rom will implement usb mass storage mode
yeah for some reason ICS did away with mass storage in favor of MTP, i think. OSX unfortunately doesnt MTP, so you need to download the 'Android File Transfer' app onto your laptop and then do it through there.

[Q] Usb problem.

Hi everyone.
I got this problem with my Galaxy: when connecting with usb cable to my pc, the phone isn't recognized at first try. Sometimes it starts the explorer on pc but I can see no files in the phone memory nor in sd memory. After unplugging and plugging back again 3 or 4 times it eventually works properly.
Can you help me?
Sent from my GT-I9300 using xda app-developers app
Try to clean USB port in your phone or use different cable.
Sent from my GT-I9305 using xda app-developers app
R: [Q] Usb problem.
Already tried it. I've also tried all the ports on pc..they all get the same problem. May it be because of the lock pattern?
Sent from my GT-I9300 using xda app-developers app
Nick Rj said:
Already tried it. I've also tried all the ports on pc..they all get the same problem. May it be because of the lock pattern?
Sent from my GT-I9300 using xda app-developers app
Click to expand...
Click to collapse
Clean install of USB drivers .
jje
I'm having trouble connecting to my Windows 8 laptop. I have reinstalled USB drivers and whatnot, but usually my phone is not recognised at all. However, if I use SGS3 Easy UMS app from Play Store to toggle MTP off and on while connected to USB I get the PC to recognise my device after a short while. It's so strange.
Usually I just use Samba server to transfer stuff because getting a USB connection is so complicated. USB (MTP) works normally with my Windows 7 PC at my workplace, though.
JJEgan said:
Clean install of USB drivers .
jje
Click to expand...
Click to collapse
This didn't work either
amppen said:
I'm having trouble connecting to my Windows 8 laptop. I have reinstalled USB drivers and whatnot, but usually my phone is not recognised at all. However, if I use SGS3 Easy UMS app from Play Store to toggle MTP off and on while connected to USB I get the PC to recognise my device after a short while. It's so strange.
Usually I just use Samba server to transfer stuff because getting a USB connection is so complicated. USB (MTP) works normally with my Windows 7 PC at my workplace, though.
Click to expand...
Click to collapse
I'm going to try Easy UMS.
I don't have the possibility to connect wirelessly bc I don't have any wifi router at the moment.

[Q] How can I transfer large files

I need a way to transfer large files, 700mb+, from my hox+ to my Iconia. Problem is I'm on cellular data, so something like Wi-Fi file transfer would be out of the question. I tried using Bluetooth file transfer, but it takes ages, and always fails anyway. My hox+ is rooted but the Iconia isn't, and it's running android 3.2 if that's at all relevant. thanks in advance ladies/gents.
Do you have a computer.
I have a two, but this phone is completely incapable of connecting to either via usb. neither computer even acknowledges my phone is connected to it.
NoobDude said:
I have a two, but this phone is completely incapable of connecting to either via usb. neither computer even acknowledges my phone is connected to it.
Click to expand...
Click to collapse
I have had issues with this coming from a HTC Desire and found the only way to get my PC to see the phone correctly is to turn on USB Debugging on and the moment I connect the phone to the PC I have to unlock the screen otherwise all I get is a blank window. (Once the drivers have installed)
Do you have drivers installed?
I've installed every driver I can find pertaining to mtp, htc, android, etc. I honestly think maybe there's something wrong with the phone, but then again when I "install hardware" on Vista and install all the drivers that way,I still get a code 10 (cannot connect).
What about ADB? If so you can transfer to computer with it.
my phone will not connect via usb, to transfer files I use web sharing. but that isn't feasible to transfer from phone to tablet, unless I'm on Wi-Fi. I need a way to do it when I'm away from home and on cellular data.
Are you using windows XP? If so, you must install windows media player 11 / 12 so that your pc will recognize your phone as a usb mass storage device and download and install the latest HTC Sync Manager, just google it.
Hope it helps.
Best regards.
Pushu.X
Sent from my HTC One X+ using Tapatalk 2
Well i finally figured out why my phone wouldn't connect via usb, because the phone itself was BROKEN! Got a new one under warranty and everything is working perfect! Thanks for all the help guys! Its time to get rooting, again!
Hoy can use Airdroid from the play store
Sent from my HTC One X+ using xda app-developers app
thanks for the advice, but airdroid uses data. it's handy if you're on Wi-Fi though.

Unable to recognize device USB.

I have tried to connect with the device through USB with fastboot, adb, and just through Windows. It does not show up in the Device Manager at all.
Is this a hardware issue with the device? Seems odd as it was working fine and now it isn't and it has only been sitting on my desk as this isn't my main phone.
By the way I have tried this on 2 different Windows 8.1 computers and one Windows 7 PC.
Try removing all drivers for the phone and reinstalling them and see if it works. Also are there any other phone drivers installed for a different device you may have recently installed? They may be conflicting.
Sent from my Nexus 7 using XDA Premium 4 mobile app
It should still show up in Device Manager regardless of drivers though. Just tested on a computer that has never had a single phone plugged into it and Device Manager still does not detect and devices.
Windows 8.1 has driver issues for the DNA. Though it should have worked fine in Windows 7. But I believe for a device to show up the drivers need to be installed.
Sent from my HTC6435LVW using XDA Premium 4 mobile app
justinds89 said:
I have tried to connect with the device through USB with fastboot, adb, and just through Windows. It does not show up in the Device Manager at all.
Is this a hardware issue with the device? Seems odd as it was working fine and now it isn't and it has only been sitting on my desk as this isn't my main phone.
By the way I have tried this on 2 different Windows 8.1 computers and one Windows 7 PC.
Click to expand...
Click to collapse
try a different cable
The device should still show up without drivers as an unknown device. You can't really mess with the drivers for the device until it shows up. Also on a Windows 7 computer that has never been used before the computer should automatically pickup the device so you can transfer files to/from through Windows Explorer.
I have tried a different cable.
I am starting to think it's a hardware issue with the device itself.
what happens when you connect an OTG cable and a flash drive? Does the activity light on the drive activate?
I have not tried that and I do not believe I have an micro OTG cable. I will have to check when I am back at my place later.
Try installing HTC sync and update it and see if that installs ur correct drivers
Sent from my HTC6435LVW using xda app-developers app
Appreciate the replies. It should still detect a device plugged in without drivers/HTC Sync, but I have tried installing HTC Sync and all that anyhow. The PC's can detect other Android devices just fine(HTC One M8 & EVO 4G).
justinds89 said:
Appreciate the replies. It should still detect a device plugged in without drivers/HTC Sync, but I have tried installing HTC Sync and all that anyhow. The PC's can detect other Android devices just fine(HTC One M8 & EVO 4G).
Click to expand...
Click to collapse
If you KNOW the cable is "good", the port may not be "GOOD". Does the cable work with another device?
The cable is definitely good(tried multiple and they work with other devices). I have been thinking it's the port in the device from the beginning, but was hoping maybe there was something else going on.

Categories

Resources